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

int poly_verify(void *handle,uchar *blk,int len,ulong seq)

{
  int iVar1;
  int iVar2;
  int in_GS_OFFSET;
  uchar mac [16];
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  poly_op(handle,blk,len,seq);
  poly1305_finalise((poly1305 *)((int)handle + 0x114),mac);
  iVar2 = smemeq(blk + len,mac,0x10);
  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {
    return iVar2;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



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

void FUN_0005bf50(undefined4 param_1,int param_2,int param_3,undefined4 param_4)

{
  int in_GS_OFFSET;
  undefined1 local_30 [16];
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x5bf59;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  FUN_0005bb70(param_4);
  FUN_0005a2d0();
  FUN_0001e2c0(param_3 + param_2,local_30,0x10);
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0008d800();
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x000149a0
ADD EBX,0x70e17
SUB ESP,0x38
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x28],EAX
XOR EAX,EAX
MOV EBP,dword ptr [ESP + 0x50]
MOV EDI,dword ptr [ESP + 0x4c]
MOV ESI,dword ptr [ESP + 0x54]
PUSH dword ptr [ESP + 0x58]
MOV EDX,EBP
MOV EAX,EDI
MOV ECX,ESI
ADD ESI,EBP
CALL 0x0005bb70
LEA EBP,[ESP + 0x1c]
LEA EAX,[EDI + 0x114]
MOV EDX,EBP
CALL 0x0005a2d0
ADD ESP,0xc
PUSH 0x10
PUSH EBP
PUSH ESI
CALL 0x0001e2c0
ADD ESP,0x10
MOV ECX,dword ptr [ESP + 0x1c]
XOR ECX,dword ptr GS:[0x14]
JNZ 0x0005bfc0
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
CALL 0x0008d800
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_0005bf50(undefined4 param_1,int param_2,int param_3,undefined4 param_4)\n\n{\n  int in_GS_OFFSET;\n  undefined1 local_30 [16];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x5bf59;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  FUN_0005bb70(param_4);\n  FUN_0005a2d0();\n  FUN_0001e2c0(param_3 + param_2,local_30,0x10);\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0008d800();\n}\n\n" comment (function_definition "void FUN_0005bf50(undefined4 param_1,int param_2,int param_3,undefined4 param_4)\n\n{\n  int in_GS_OFFSET;\n  undefined1 local_30 [16];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x5bf59;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  FUN_0005bb70(param_4);\n  FUN_0005a2d0();\n  FUN_0001e2c0(param_3 + param_2,local_30,0x10);\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0008d800();\n}" primitive_type (function_declarator "FUN_0005bf50(undefined4 param_1,int param_2,int param_3,undefined4 param_4)" identifier (parameter_list "(undefined4 param_1,int param_2,int param_3,undefined4 param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  int in_GS_OFFSET;\n  undefined1 local_30 [16];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x5bf59;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  FUN_0005bb70(param_4);\n  FUN_0005a2d0();\n  FUN_0001e2c0(param_3 + param_2,local_30,0x10);\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0008d800();\n}" { (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined1 local_30 [16];" type_identifier (array_declarator "local_30 [16]" identifier [ number_literal ]) ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x5bf59;" (assignment_expression "uStack_14 = 0x5bf59" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(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_0005bb70(param_4);" (call_expression "FUN_0005bb70(param_4)" identifier (argument_list "(param_4)" ( identifier ))) ;) (expression_statement "FUN_0005a2d0();" (call_expression "FUN_0005a2d0()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_0001e2c0(param_3 + param_2,local_30,0x10);" (call_expression "FUN_0001e2c0(param_3 + param_2,local_30,0x10)" identifier (argument_list "(param_3 + param_2,local_30,0x10)" ( (binary_expression "param_3 + param_2" identifier + identifier) , identifier , number_literal ))) ;) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(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_0008d800();" (call_expression "FUN_0008d800()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nint poly_verify(void *handle,uchar *blk,int len,ulong seq)\n\n{\n  int iVar1;\n  int iVar2;\n  int in_GS_OFFSET;\n  uchar mac [16];\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  poly_op(handle,blk,len,seq);\n  poly1305_finalise((poly1305 *)((int)handle + 0x114),mac);\n  iVar2 = smemeq(blk + len,mac,0x10);\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}\n\n" comment comment (function_definition "int poly_verify(void *handle,uchar *blk,int len,ulong seq)\n\n{\n  int iVar1;\n  int iVar2;\n  int in_GS_OFFSET;\n  uchar mac [16];\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  poly_op(handle,blk,len,seq);\n  poly1305_finalise((poly1305 *)((int)handle + 0x114),mac);\n  iVar2 = smemeq(blk + len,mac,0x10);\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" primitive_type (function_declarator "poly_verify(void *handle,uchar *blk,int len,ulong seq)" identifier (parameter_list "(void *handle,uchar *blk,int len,ulong seq)" ( (parameter_declaration "void *handle" primitive_type (pointer_declarator "*handle" * identifier)) , (parameter_declaration "uchar *blk" type_identifier (pointer_declarator "*blk" * identifier)) , (parameter_declaration "int len" primitive_type identifier) , (parameter_declaration "ulong seq" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int in_GS_OFFSET;\n  uchar mac [16];\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  poly_op(handle,blk,len,seq);\n  poly1305_finalise((poly1305 *)((int)handle + 0x114),mac);\n  iVar2 = smemeq(blk + len,mac,0x10);\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "uchar mac [16];" type_identifier (array_declarator "mac [16]" identifier [ number_literal ]) ;) (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 "poly_op(handle,blk,len,seq);" (call_expression "poly_op(handle,blk,len,seq)" identifier (argument_list "(handle,blk,len,seq)" ( identifier , identifier , identifier , identifier ))) ;) (expression_statement "poly1305_finalise((poly1305 *)((int)handle + 0x114),mac);" (call_expression "poly1305_finalise((poly1305 *)((int)handle + 0x114),mac)" identifier (argument_list "((poly1305 *)((int)handle + 0x114),mac)" ( (cast_expression "(poly1305 *)((int)handle + 0x114)" ( (type_descriptor "poly1305 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)handle + 0x114)" ( (binary_expression "(int)handle + 0x114" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))) , identifier ))) ;) (expression_statement "iVar2 = smemeq(blk + len,mac,0x10);" (assignment_expression "iVar2 = smemeq(blk + len,mac,0x10)" identifier = (call_expression "smemeq(blk + len,mac,0x10)" identifier (argument_list "(blk + len,mac,0x10)" ( (binary_expression "blk + len" identifier + identifier) , identifier , number_literal )))) ;) (if_statement "if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar2;\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 iVar2;\n  }" { (return_statement "return iVar2;" return identifier ;) })) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "void FUN_0005bf50(undefined4 param_1,int param_2,int param_3,undefined4 param_4)\n\n{\n  int in_GS_OFFSET;\n  undefined1 local_30 [16];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x5bf59;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  FUN_0005bb70(param_4);\n  FUN_0005a2d0();\n  FUN_0001e2c0(param_3 + param_2,local_30,0x10);\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_0008d800();\n}\n\n" (function_definition "void FUN_0005bf50(undefined4 param_1,int param_2,int param_3,undefined4 param_4)\n\n{\n  int in_GS_OFFSET;\n  undefined1 local_30 [16];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x5bf59;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  FUN_0005bb70(param_4);\n  FUN_0005a2d0();\n  FUN_0001e2c0(param_3 + param_2,local_30,0x10);\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_0008d800();\n}" primitive_type (function_declarator "FUN_0005bf50(undefined4 param_1,int param_2,int param_3,undefined4 param_4)" identifier (parameter_list "(undefined4 param_1,int param_2,int param_3,undefined4 param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  int in_GS_OFFSET;\n  undefined1 local_30 [16];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x5bf59;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  FUN_0005bb70(param_4);\n  FUN_0005a2d0();\n  FUN_0001e2c0(param_3 + param_2,local_30,0x10);\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_0008d800();\n}" { (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined1 local_30 [16];" type_identifier (array_declarator "local_30 [16]" identifier [ number_literal ]) ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x5bf59;" (assignment_expression "uStack_14 = 0x5bf59" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(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_0005bb70(param_4);" (call_expression "FUN_0005bb70(param_4)" identifier (argument_list "(param_4)" ( identifier ))) ;) (expression_statement "FUN_0005a2d0();" (call_expression "FUN_0005a2d0()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_0001e2c0(param_3 + param_2,local_30,0x10);" (call_expression "FUN_0001e2c0(param_3 + param_2,local_30,0x10)" identifier (argument_list "(param_3 + param_2,local_30,0x10)" ( (binary_expression "param_3 + param_2" identifier + identifier) , identifier , number_literal ))) ;) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(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_0008d800();" (call_expression "FUN_0008d800()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (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 ))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + IDENT) , IDENT , LIT ))) ;) (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 FUN_0005bf50(undefined4 param_1,int param_2,int param_3,undefined4 param_4)\n\n{\n  int in_GS_OFFSET;\n  undefined1 local_30 [16];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x5bf59;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  FUN_0005bb70(param_4);\n  FUN_0005a2d0();\n  FUN_0001e2c0(param_3 + param_2,local_30,0x10);\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_0008d800();\n}" (primitive_type "void") (function_declarator "FUN_0005bf50(undefined4 param_1,int param_2,int param_3,undefined4 param_4)" (identifier "FUN_0005bf50") (parameter_list "(undefined4 param_1,int param_2,int param_3,undefined4 param_4)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) () ")"))) (compound_statement "{\n  int in_GS_OFFSET;\n  undefined1 local_30 [16];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x5bf59;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  FUN_0005bb70(param_4);\n  FUN_0005a2d0();\n  FUN_0001e2c0(param_3 + param_2,local_30,0x10);\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_0008d800();\n}" ({ "{") (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "undefined1 local_30 [16];" (type_identifier "undefined1") (array_declarator "local_30 [16]" (identifier "local_30") ([ "[") (number_literal "16") (] "]")) (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x5bf59;" (assignment_expression "uStack_14 = 0x5bf59" (identifier "uStack_14") (= "=") (number_literal "0x5bf59")) (; ";")) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (= "=") (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_0005bb70(param_4);" (call_expression "FUN_0005bb70(param_4)" (identifier "FUN_0005bb70") (argument_list "(param_4)" (( "(") (identifier "param_4") () ")"))) (; ";")) (expression_statement "FUN_0005a2d0();" (call_expression "FUN_0005a2d0()" (identifier "FUN_0005a2d0") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "FUN_0001e2c0(param_3 + param_2,local_30,0x10);" (call_expression "FUN_0001e2c0(param_3 + param_2,local_30,0x10)" (identifier "FUN_0001e2c0") (argument_list "(param_3 + param_2,local_30,0x10)" (( "(") (binary_expression "param_3 + param_2" (identifier "param_3") (+ "+") (identifier "param_2")) (, ",") (identifier "local_30") (, ",") (number_literal "0x10") () ")"))) (; ";")) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" (if "if") (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (== "==") (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_0008d800();" (call_expression "FUN_0008d800()" (identifier "FUN_0008d800") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

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

int function_1(void *handle,type_1 *var_5,int var_6,type_2 seq)

{
  int var_7;
  int iVar2;
  int var_1;
  type_1 mac [16];
  
  var_7 = *(int *)(var_1 + 0x14);
  var_2(handle,var_5,var_6,seq);
  var_3((type_3 *)((int)handle + 0x114),mac);
  iVar2 = var_4(var_5 + var_6,mac,0x10);
  if (var_7 == *(int *)(var_1 + 0x14)) {
    return iVar2;
  }
                    /* WARNING: Subroutine does not return */
  var_8();
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (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 (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (identifier)) (identifier) (number_literal)))) (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 MASKED(undefined4 param_1,int param_2,int param_3,undefined4 param_4)

{
  int in_GS_OFFSET;
  undefined1 local_30 [16];
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x5bf59;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  FUN_0005bb70(param_4);
  FUN_0005a2d0();
  FUN_0001e2c0(param_3 + param_2,local_30,0x10);
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0008d800();
}

