
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

void send_ACK(dhcp_packet *oldpacket,uint32_t yiaddr)

{
  dhcp_packet packet;
  
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

void __regparm3 FUN_0004ca64(undefined4 param_1,in_addr param_2)

{
  int iVar1;
  char *pcVar2;
  int iVar3;
  undefined1 uVar4;
  int in_GS_OFFSET;
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  FUN_0004c1a5();
  FUN_0004bf64();
  FUN_0004e587();
  FUN_0004c210();
  pcVar2 = inet_ntoa(param_2);
  FUN_000191bd("sending ACK to %s",pcVar2);
  FUN_0004c282();
  iVar3 = FUN_0004e3c4();
  uVar4 = 0;
  if (iVar3 != 0) {
    uVar4 = *(undefined1 *)(iVar3 + -1);
  }
  FUN_0004c396(iVar3,uVar4);
  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00017e10();
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
SUB ESP,0x29c
CALL 0x00017640
ADD EBX,0x83fad
MOV EDI,EAX
MOV EBP,EDX
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x28c],EAX
XOR EAX,EAX
LEA ESI,[ESP + 0x18]
MOV ECX,0x5
MOV EDX,EDI
MOV EAX,ESI
CALL 0x0004c1a5
MOV dword ptr [ESP + 0x28],EBP
MOV EAX,EDI
CALL 0x0004bf64
MOV dword ptr [ESP + 0xc],EAX
MOV ECX,EAX
BSWAP ECX
MOV EDX,0x33
MOV EAX,ESI
CALL 0x0004e587
MOV EAX,ESI
CALL 0x0004c210
SUB ESP,0xc
PUSH EBP
CALL 0x00016350
POP EDX
POP ECX
PUSH EAX
LEA EAX,[EBX + 0xffff77d3]
PUSH EAX
CALL 0x000191bd
XOR EDX,EDX
MOV EAX,ESI
CALL 0x0004c282
MOV EDX,0xc
MOV EAX,EDI
CALL 0x0004e3c4
MOV EDX,EAX
ADD ESP,0x10
XOR ECX,ECX
TEST EAX,EAX
JZ 0x0004cb00
MOVZX ECX,byte ptr [EAX + -0x1]
LEA EAX,[ESP + 0x34]
SUB ESP,0x8
PUSH ECX
PUSH EDX
MOV ECX,dword ptr [ESP + 0x1c]
MOV EDX,dword ptr [ESP + 0x38]
CALL 0x0004c396
ADD ESP,0x10
MOV EAX,dword ptr [ESP + 0x28c]
XOR EAX,dword ptr GS:[0x14]
JNZ 0x0004cb34
ADD ESP,0x29c
POP EBX
POP ESI
POP EDI
POP EBP
RET
CALL 0x00017e10
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 FUN_0004ca64(undefined4 param_1,in_addr param_2)\n\n{\n  int iVar1;\n  char *pcVar2;\n  int iVar3;\n  undefined1 uVar4;\n  int in_GS_OFFSET;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  FUN_0004c1a5();\n  FUN_0004bf64();\n  FUN_0004e587();\n  FUN_0004c210();\n  pcVar2 = inet_ntoa(param_2);\n  FUN_000191bd("sending ACK to %s",pcVar2);\n  FUN_0004c282();\n  iVar3 = FUN_0004e3c4();\n  uVar4 = 0;\n  if (iVar3 != 0) {\n    uVar4 = *(undefined1 *)(iVar3 + -1);\n  }\n  FUN_0004c396(iVar3,uVar4);\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00017e10();\n}\n\n" comment (function_definition "void __regparm3 FUN_0004ca64(undefined4 param_1,in_addr param_2)\n\n{\n  int iVar1;\n  char *pcVar2;\n  int iVar3;\n  undefined1 uVar4;\n  int in_GS_OFFSET;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  FUN_0004c1a5();\n  FUN_0004bf64();\n  FUN_0004e587();\n  FUN_0004c210();\n  pcVar2 = inet_ntoa(param_2);\n  FUN_000191bd("sending ACK to %s",pcVar2);\n  FUN_0004c282();\n  iVar3 = FUN_0004e3c4();\n  uVar4 = 0;\n  if (iVar3 != 0) {\n    uVar4 = *(undefined1 *)(iVar3 + -1);\n  }\n  FUN_0004c396(iVar3,uVar4);\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00017e10();\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0004ca64(undefined4 param_1,in_addr param_2)" identifier (parameter_list "(undefined4 param_1,in_addr param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "in_addr param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  char *pcVar2;\n  int iVar3;\n  undefined1 uVar4;\n  int in_GS_OFFSET;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  FUN_0004c1a5();\n  FUN_0004bf64();\n  FUN_0004e587();\n  FUN_0004c210();\n  pcVar2 = inet_ntoa(param_2);\n  FUN_000191bd("sending ACK to %s",pcVar2);\n  FUN_0004c282();\n  iVar3 = FUN_0004e3c4();\n  uVar4 = 0;\n  if (iVar3 != 0) {\n    uVar4 = *(undefined1 *)(iVar3 + -1);\n  }\n  FUN_0004c396(iVar3,uVar4);\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00017e10();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined1 uVar4;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "FUN_0004c1a5();" (call_expression "FUN_0004c1a5()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_0004bf64();" (call_expression "FUN_0004bf64()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_0004e587();" (call_expression "FUN_0004e587()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_0004c210();" (call_expression "FUN_0004c210()" identifier (argument_list "()" ( ))) ;) (expression_statement "pcVar2 = inet_ntoa(param_2);" (assignment_expression "pcVar2 = inet_ntoa(param_2)" identifier = (call_expression "inet_ntoa(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "FUN_000191bd("sending ACK to %s",pcVar2);" (call_expression "FUN_000191bd("sending ACK to %s",pcVar2)" identifier (argument_list "("sending ACK to %s",pcVar2)" ( (string_literal ""sending ACK to %s"" " string_content ") , identifier ))) ;) (expression_statement "FUN_0004c282();" (call_expression "FUN_0004c282()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar3 = FUN_0004e3c4();" (assignment_expression "iVar3 = FUN_0004e3c4()" identifier = (call_expression "FUN_0004e3c4()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) (if_statement "if (iVar3 != 0) {\n    uVar4 = *(undefined1 *)(iVar3 + -1);\n  }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar4 = *(undefined1 *)(iVar3 + -1);\n  }" { (expression_statement "uVar4 = *(undefined1 *)(iVar3 + -1);" (assignment_expression "uVar4 = *(undefined1 *)(iVar3 + -1)" identifier = (pointer_expression "*(undefined1 *)(iVar3 + -1)" * (cast_expression "(undefined1 *)(iVar3 + -1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + -1)" ( (binary_expression "iVar3 + -1" identifier + number_literal) ))))) ;) })) (expression_statement "FUN_0004c396(iVar3,uVar4);" (call_expression "FUN_0004c396(iVar3,uVar4)" identifier (argument_list "(iVar3,uVar4)" ( identifier , identifier ))) ;) (if_statement "if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" if (parenthesized_expression "(iVar1 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar1 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) comment (expression_statement "FUN_00017e10();" (call_expression "FUN_00017e10()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid send_ACK(dhcp_packet *oldpacket,uint32_t yiaddr)\n\n{\n  dhcp_packet packet;\n  \n}\n\n" comment (function_definition "void send_ACK(dhcp_packet *oldpacket,uint32_t yiaddr)\n\n{\n  dhcp_packet packet;\n  \n}" primitive_type (function_declarator "send_ACK(dhcp_packet *oldpacket,uint32_t yiaddr)" identifier (parameter_list "(dhcp_packet *oldpacket,uint32_t yiaddr)" ( (parameter_declaration "dhcp_packet *oldpacket" type_identifier (pointer_declarator "*oldpacket" * identifier)) , (parameter_declaration "uint32_t yiaddr" primitive_type identifier) ))) (compound_statement "{\n  dhcp_packet packet;\n  \n}" { (declaration "dhcp_packet packet;" type_identifier identifier ;) })))
(translation_unit "void __regparm3 FUN_0004ca64(undefined4 param_1,in_addr param_2)\n\n{\n  int iVar1;\n  char *pcVar2;\n  int iVar3;\n  undefined1 uVar4;\n  int in_GS_OFFSET;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  FUN_0004c1a5();\n  FUN_0004bf64();\n  FUN_0004e587();\n  FUN_0004c210();\n  pcVar2 = inet_ntoa(param_2);\n  FUN_000191bd("sending ACK to %s",pcVar2);\n  FUN_0004c282();\n  iVar3 = FUN_0004e3c4();\n  uVar4 = 0;\n  if (iVar3 != 0) {\n    uVar4 = *(undefined1 *)(iVar3 + -1);\n  }\n  FUN_0004c396(iVar3,uVar4);\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_00017e10();\n}\n\n" (function_definition "void __regparm3 FUN_0004ca64(undefined4 param_1,in_addr param_2)\n\n{\n  int iVar1;\n  char *pcVar2;\n  int iVar3;\n  undefined1 uVar4;\n  int in_GS_OFFSET;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  FUN_0004c1a5();\n  FUN_0004bf64();\n  FUN_0004e587();\n  FUN_0004c210();\n  pcVar2 = inet_ntoa(param_2);\n  FUN_000191bd("sending ACK to %s",pcVar2);\n  FUN_0004c282();\n  iVar3 = FUN_0004e3c4();\n  uVar4 = 0;\n  if (iVar3 != 0) {\n    uVar4 = *(undefined1 *)(iVar3 + -1);\n  }\n  FUN_0004c396(iVar3,uVar4);\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_00017e10();\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0004ca64(undefined4 param_1,in_addr param_2)" identifier (parameter_list "(undefined4 param_1,in_addr param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "in_addr param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  char *pcVar2;\n  int iVar3;\n  undefined1 uVar4;\n  int in_GS_OFFSET;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  FUN_0004c1a5();\n  FUN_0004bf64();\n  FUN_0004e587();\n  FUN_0004c210();\n  pcVar2 = inet_ntoa(param_2);\n  FUN_000191bd("sending ACK to %s",pcVar2);\n  FUN_0004c282();\n  iVar3 = FUN_0004e3c4();\n  uVar4 = 0;\n  if (iVar3 != 0) {\n    uVar4 = *(undefined1 *)(iVar3 + -1);\n  }\n  FUN_0004c396(iVar3,uVar4);\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_00017e10();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined1 uVar4;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "FUN_0004c1a5();" (call_expression "FUN_0004c1a5()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_0004bf64();" (call_expression "FUN_0004bf64()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_0004e587();" (call_expression "FUN_0004e587()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_0004c210();" (call_expression "FUN_0004c210()" identifier (argument_list "()" ( ))) ;) (expression_statement "pcVar2 = inet_ntoa(param_2);" (assignment_expression "pcVar2 = inet_ntoa(param_2)" identifier = (call_expression "inet_ntoa(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "FUN_000191bd("sending ACK to %s",pcVar2);" (call_expression "FUN_000191bd("sending ACK to %s",pcVar2)" identifier (argument_list "("sending ACK to %s",pcVar2)" ( (string_literal ""sending ACK to %s"" " string_content ") , identifier ))) ;) (expression_statement "FUN_0004c282();" (call_expression "FUN_0004c282()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar3 = FUN_0004e3c4();" (assignment_expression "iVar3 = FUN_0004e3c4()" identifier = (call_expression "FUN_0004e3c4()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) (if_statement "if (iVar3 != 0) {\n    uVar4 = *(undefined1 *)(iVar3 + -1);\n  }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar4 = *(undefined1 *)(iVar3 + -1);\n  }" { (expression_statement "uVar4 = *(undefined1 *)(iVar3 + -1);" (assignment_expression "uVar4 = *(undefined1 *)(iVar3 + -1)" identifier = (pointer_expression "*(undefined1 *)(iVar3 + -1)" * (cast_expression "(undefined1 *)(iVar3 + -1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + -1)" ( (binary_expression "iVar3 + -1" identifier + number_literal) ))))) ;) })) (expression_statement "FUN_0004c396(iVar3,uVar4);" (call_expression "FUN_0004c396(iVar3,uVar4)" identifier (argument_list "(iVar3,uVar4)" ( identifier , identifier ))) ;) (if_statement "if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" if (parenthesized_expression "(iVar1 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar1 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "FUN_00017e10();" (call_expression "FUN_00017e10()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "void __regparm3 FUN_0004ca64(undefined4 param_1,in_addr param_2)\n\n{\n  int iVar1;\n  char *pcVar2;\n  int iVar3;\n  undefined1 uVar4;\n  int in_GS_OFFSET;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  FUN_0004c1a5();\n  FUN_0004bf64();\n  FUN_0004e587();\n  FUN_0004c210();\n  pcVar2 = inet_ntoa(param_2);\n  FUN_000191bd("sending ACK to %s",pcVar2);\n  FUN_0004c282();\n  iVar3 = FUN_0004e3c4();\n  uVar4 = 0;\n  if (iVar3 != 0) {\n    uVar4 = *(undefined1 *)(iVar3 + -1);\n  }\n  FUN_0004c396(iVar3,uVar4);\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_00017e10();\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_0004ca64(undefined4 param_1,in_addr param_2)" (identifier "FUN_0004ca64") (parameter_list "(undefined4 param_1,in_addr param_2)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "in_addr param_2" (type_identifier "in_addr") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  char *pcVar2;\n  int iVar3;\n  undefined1 uVar4;\n  int in_GS_OFFSET;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  FUN_0004c1a5();\n  FUN_0004bf64();\n  FUN_0004e587();\n  FUN_0004c210();\n  pcVar2 = inet_ntoa(param_2);\n  FUN_000191bd("sending ACK to %s",pcVar2);\n  FUN_0004c282();\n  iVar3 = FUN_0004e3c4();\n  uVar4 = 0;\n  if (iVar3 != 0) {\n    uVar4 = *(undefined1 *)(iVar3 + -1);\n  }\n  FUN_0004c396(iVar3,uVar4);\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_00017e10();\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "char *pcVar2;" (primitive_type "char") (pointer_declarator "*pcVar2" (* "*") (identifier "pcVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "undefined1 uVar4;" (type_identifier "undefined1") (identifier "uVar4") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "FUN_0004c1a5();" (call_expression "FUN_0004c1a5()" (identifier "FUN_0004c1a5") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "FUN_0004bf64();" (call_expression "FUN_0004bf64()" (identifier "FUN_0004bf64") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "FUN_0004e587();" (call_expression "FUN_0004e587()" (identifier "FUN_0004e587") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "FUN_0004c210();" (call_expression "FUN_0004c210()" (identifier "FUN_0004c210") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "pcVar2 = inet_ntoa(param_2);" (assignment_expression "pcVar2 = inet_ntoa(param_2)" (identifier "pcVar2") (= "=") (call_expression "inet_ntoa(param_2)" (identifier "inet_ntoa") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (expression_statement "FUN_000191bd("sending ACK to %s",pcVar2);" (call_expression "FUN_000191bd("sending ACK to %s",pcVar2)" (identifier "FUN_000191bd") (argument_list "("sending ACK to %s",pcVar2)" (( "(") (string_literal ""sending ACK to %s"" (" """) (string_content "sending ACK to %s") (" """)) (, ",") (identifier "pcVar2") () ")"))) (; ";")) (expression_statement "FUN_0004c282();" (call_expression "FUN_0004c282()" (identifier "FUN_0004c282") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "iVar3 = FUN_0004e3c4();" (assignment_expression "iVar3 = FUN_0004e3c4()" (identifier "iVar3") (= "=") (call_expression "FUN_0004e3c4()" (identifier "FUN_0004e3c4") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" (identifier "uVar4") (= "=") (number_literal "0")) (; ";")) (if_statement "if (iVar3 != 0) {\n    uVar4 = *(undefined1 *)(iVar3 + -1);\n  }" (if "if") (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    uVar4 = *(undefined1 *)(iVar3 + -1);\n  }" ({ "{") (expression_statement "uVar4 = *(undefined1 *)(iVar3 + -1);" (assignment_expression "uVar4 = *(undefined1 *)(iVar3 + -1)" (identifier "uVar4") (= "=") (pointer_expression "*(undefined1 *)(iVar3 + -1)" (* "*") (cast_expression "(undefined1 *)(iVar3 + -1)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + -1)" (( "(") (binary_expression "iVar3 + -1" (identifier "iVar3") (+ "+") (number_literal "-1")) () ")"))))) (; ";")) (} "}"))) (expression_statement "FUN_0004c396(iVar3,uVar4);" (call_expression "FUN_0004c396(iVar3,uVar4)" (identifier "FUN_0004c396") (argument_list "(iVar3,uVar4)" (( "(") (identifier "iVar3") (, ",") (identifier "uVar4") () ")"))) (; ";")) (if_statement "if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" (if "if") (parenthesized_expression "(iVar1 == *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "iVar1 == *(int *)(in_GS_OFFSET + 0x14)" (identifier "iVar1") (== "==") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_00017e10();" (call_expression "FUN_00017e10()" (identifier "FUN_00017e10") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

void function_1(type_1 *oldpacket,uint32_t yiaddr)

{
  type_1 packet;
  
}


(translation_unit (function_definition type: (primitive_type) (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) consequence: (compound_statement (return_statement))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))))))

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

void __regparm3 MASKED(undefined4 param_1,in_addr param_2)

{
  int iVar1;
  char *pcVar2;
  int iVar3;
  undefined1 uVar4;
  int in_GS_OFFSET;
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  FUN_0004c1a5();
  FUN_0004bf64();
  FUN_0004e587();
  FUN_0004c210();
  pcVar2 = inet_ntoa(param_2);
  FUN_000191bd("sending ACK to %s",pcVar2);
  FUN_0004c282();
  iVar3 = FUN_0004e3c4();
  uVar4 = 0;
  if (iVar3 != 0) {
    uVar4 = *(undefined1 *)(iVar3 + -1);
  }
  FUN_0004c396(iVar3,uVar4);
  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00017e10();
}

