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

void __register_frame_info_bases_part_5(void)

{
}



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

void __regparm3
FUN_004469e0(undefined4 param_1,undefined4 *param_2,undefined4 param_3,undefined4 param_4)

{
  undefined *puVar1;
  undefined4 *puVar2;
  
  *param_2 = 0xffffffff;
  param_2[1] = param_3;
  param_2[3] = param_1;
  param_2[2] = param_4;
  param_2[4] = 0x7f8;
  puVar1 = PTR___pthread_key_create_005e9ff8;
  if (PTR___pthread_key_create_005e9ff8 != (undefined *)0x0) {
    pthread_mutex_lock((pthread_mutex_t *)&DAT_005f43a0);
  }
  puVar2 = param_2;
  param_2[5] = DAT_005f43c0;
  DAT_005f43c0 = puVar2;
  if (DAT_005f43b8 == 0) {
    DAT_005f43b8 = 1;
  }
  if (puVar1 != (undefined *)0x0) {
    pthread_mutex_unlock((pthread_mutex_t *)&DAT_005f43a0);
  }
  return;
}


PUSH EDI
PUSH ESI
MOV ESI,EDX
PUSH EBX
CALL 0x00050b50
ADD EBX,0x1a3616
MOV dword ptr [EDX],0xffffffff
MOV dword ptr [EDX + 0x4],ECX
MOV EDX,dword ptr [ESP + 0x10]
MOV dword ptr [ESI + 0xc],EAX
MOV dword ptr [ESI + 0x8],EDX
MOV dword ptr [ESI + 0x10],0x7f8
MOV EDI,dword ptr [EBX + 0xfffffff8]
TEST EDI,EDI
JZ 0x00446a26
SUB ESP,0xc
LEA EAX,[EBX + 0xa3a0]
PUSH EAX
CALL 0x000396b0
ADD ESP,0x10
MOV EAX,dword ptr [EBX + 0xa3c0]
MOV dword ptr [EBX + 0xa3c0],ESI
MOV dword ptr [ESI + 0x14],EAX
MOV EAX,dword ptr [EBX + 0xa3b8]
TEST EAX,EAX
JZ 0x00446a60
TEST EDI,EDI
JZ 0x00446a55
SUB ESP,0xc
LEA EAX,[EBX + 0xa3a0]
PUSH EAX
CALL 0x000395e0
ADD ESP,0x10
POP EBX
POP ESI
POP EDI
RET
MOV dword ptr [EBX + 0xa3b8],0x1
JMP 0x00446a3f
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3\nFUN_004469e0(undefined4 param_1,undefined4 *param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  undefined *puVar1;\n  undefined4 *puVar2;\n  \n  *param_2 = 0xffffffff;\n  param_2[1] = param_3;\n  param_2[3] = param_1;\n  param_2[2] = param_4;\n  param_2[4] = 0x7f8;\n  puVar1 = PTR___pthread_key_create_005e9ff8;\n  if (PTR___pthread_key_create_005e9ff8 != (undefined *)0x0) {\n    pthread_mutex_lock((pthread_mutex_t *)&DAT_005f43a0);\n  }\n  puVar2 = param_2;\n  param_2[5] = DAT_005f43c0;\n  DAT_005f43c0 = puVar2;\n  if (DAT_005f43b8 == 0) {\n    DAT_005f43b8 = 1;\n  }\n  if (puVar1 != (undefined *)0x0) {\n    pthread_mutex_unlock((pthread_mutex_t *)&DAT_005f43a0);\n  }\n  return;\n}\n\n" comment (function_definition "void __regparm3\nFUN_004469e0(undefined4 param_1,undefined4 *param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  undefined *puVar1;\n  undefined4 *puVar2;\n  \n  *param_2 = 0xffffffff;\n  param_2[1] = param_3;\n  param_2[3] = param_1;\n  param_2[2] = param_4;\n  param_2[4] = 0x7f8;\n  puVar1 = PTR___pthread_key_create_005e9ff8;\n  if (PTR___pthread_key_create_005e9ff8 != (undefined *)0x0) {\n    pthread_mutex_lock((pthread_mutex_t *)&DAT_005f43a0);\n  }\n  puVar2 = param_2;\n  param_2[5] = DAT_005f43c0;\n  DAT_005f43c0 = puVar2;\n  if (DAT_005f43b8 == 0) {\n    DAT_005f43b8 = 1;\n  }\n  if (puVar1 != (undefined *)0x0) {\n    pthread_mutex_unlock((pthread_mutex_t *)&DAT_005f43a0);\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_004469e0(undefined4 param_1,undefined4 *param_2,undefined4 param_3,undefined4 param_4)" identifier (parameter_list "(undefined4 param_1,undefined4 *param_2,undefined4 param_3,undefined4 param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined4 *puVar2;\n  \n  *param_2 = 0xffffffff;\n  param_2[1] = param_3;\n  param_2[3] = param_1;\n  param_2[2] = param_4;\n  param_2[4] = 0x7f8;\n  puVar1 = PTR___pthread_key_create_005e9ff8;\n  if (PTR___pthread_key_create_005e9ff8 != (undefined *)0x0) {\n    pthread_mutex_lock((pthread_mutex_t *)&DAT_005f43a0);\n  }\n  puVar2 = param_2;\n  param_2[5] = DAT_005f43c0;\n  DAT_005f43c0 = puVar2;\n  if (DAT_005f43b8 == 0) {\n    DAT_005f43b8 = 1;\n  }\n  if (puVar1 != (undefined *)0x0) {\n    pthread_mutex_unlock((pthread_mutex_t *)&DAT_005f43a0);\n  }\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (expression_statement "*param_2 = 0xffffffff;" (assignment_expression "*param_2 = 0xffffffff" (pointer_expression "*param_2" * identifier) = number_literal) ;) (expression_statement "param_2[1] = param_3;" (assignment_expression "param_2[1] = param_3" (subscript_expression "param_2[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_2[3] = param_1;" (assignment_expression "param_2[3] = param_1" (subscript_expression "param_2[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_2[2] = param_4;" (assignment_expression "param_2[2] = param_4" (subscript_expression "param_2[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_2[4] = 0x7f8;" (assignment_expression "param_2[4] = 0x7f8" (subscript_expression "param_2[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1 = PTR___pthread_key_create_005e9ff8;" (assignment_expression "puVar1 = PTR___pthread_key_create_005e9ff8" identifier = identifier) ;) (if_statement "if (PTR___pthread_key_create_005e9ff8 != (undefined *)0x0) {\n    pthread_mutex_lock((pthread_mutex_t *)&DAT_005f43a0);\n  }" if (parenthesized_expression "(PTR___pthread_key_create_005e9ff8 != (undefined *)0x0)" ( (binary_expression "PTR___pthread_key_create_005e9ff8 != (undefined *)0x0" identifier != (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pthread_mutex_lock((pthread_mutex_t *)&DAT_005f43a0);\n  }" { (expression_statement "pthread_mutex_lock((pthread_mutex_t *)&DAT_005f43a0);" (call_expression "pthread_mutex_lock((pthread_mutex_t *)&DAT_005f43a0)" identifier (argument_list "((pthread_mutex_t *)&DAT_005f43a0)" ( (cast_expression "(pthread_mutex_t *)&DAT_005f43a0" ( (type_descriptor "pthread_mutex_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&DAT_005f43a0" & identifier)) ))) ;) })) (expression_statement "puVar2 = param_2;" (assignment_expression "puVar2 = param_2" identifier = identifier) ;) (expression_statement "param_2[5] = DAT_005f43c0;" (assignment_expression "param_2[5] = DAT_005f43c0" (subscript_expression "param_2[5]" identifier [ number_literal ]) = identifier) ;) (expression_statement "DAT_005f43c0 = puVar2;" (assignment_expression "DAT_005f43c0 = puVar2" identifier = identifier) ;) (if_statement "if (DAT_005f43b8 == 0) {\n    DAT_005f43b8 = 1;\n  }" if (parenthesized_expression "(DAT_005f43b8 == 0)" ( (binary_expression "DAT_005f43b8 == 0" identifier == number_literal) )) (compound_statement "{\n    DAT_005f43b8 = 1;\n  }" { (expression_statement "DAT_005f43b8 = 1;" (assignment_expression "DAT_005f43b8 = 1" identifier = number_literal) ;) })) (if_statement "if (puVar1 != (undefined *)0x0) {\n    pthread_mutex_unlock((pthread_mutex_t *)&DAT_005f43a0);\n  }" if (parenthesized_expression "(puVar1 != (undefined *)0x0)" ( (binary_expression "puVar1 != (undefined *)0x0" identifier != (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pthread_mutex_unlock((pthread_mutex_t *)&DAT_005f43a0);\n  }" { (expression_statement "pthread_mutex_unlock((pthread_mutex_t *)&DAT_005f43a0);" (call_expression "pthread_mutex_unlock((pthread_mutex_t *)&DAT_005f43a0)" identifier (argument_list "((pthread_mutex_t *)&DAT_005f43a0)" ( (cast_expression "(pthread_mutex_t *)&DAT_005f43a0" ( (type_descriptor "pthread_mutex_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&DAT_005f43a0" & identifier)) ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __register_frame_info_bases_part_5(void)\n\n{\n}\n\n" comment (function_definition "void __register_frame_info_bases_part_5(void)\n\n{\n}" primitive_type (function_declarator "__register_frame_info_bases_part_5(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n}" { })))
(translation_unit "void __regparm3\nFUN_004469e0(undefined4 param_1,undefined4 *param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  undefined *puVar1;\n  undefined4 *puVar2;\n  \n  *param_2 = 0xffffffff;\n  param_2[1] = param_3;\n  param_2[3] = param_1;\n  param_2[2] = param_4;\n  param_2[4] = 0x7f8;\n  puVar1 = PTR___pthread_key_create_005e9ff8;\n  if (PTR___pthread_key_create_005e9ff8 != (undefined *)0x0) {\n    pthread_mutex_lock((pthread_mutex_t *)&DAT_005f43a0);\n  }\n  puVar2 = param_2;\n  param_2[5] = DAT_005f43c0;\n  DAT_005f43c0 = puVar2;\n  if (DAT_005f43b8 == 0) {\n    DAT_005f43b8 = 1;\n  }\n  if (puVar1 != (undefined *)0x0) {\n    pthread_mutex_unlock((pthread_mutex_t *)&DAT_005f43a0);\n  }\n  return;\n}\n\n" (function_definition "void __regparm3\nFUN_004469e0(undefined4 param_1,undefined4 *param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  undefined *puVar1;\n  undefined4 *puVar2;\n  \n  *param_2 = 0xffffffff;\n  param_2[1] = param_3;\n  param_2[3] = param_1;\n  param_2[2] = param_4;\n  param_2[4] = 0x7f8;\n  puVar1 = PTR___pthread_key_create_005e9ff8;\n  if (PTR___pthread_key_create_005e9ff8 != (undefined *)0x0) {\n    pthread_mutex_lock((pthread_mutex_t *)&DAT_005f43a0);\n  }\n  puVar2 = param_2;\n  param_2[5] = DAT_005f43c0;\n  DAT_005f43c0 = puVar2;\n  if (DAT_005f43b8 == 0) {\n    DAT_005f43b8 = 1;\n  }\n  if (puVar1 != (undefined *)0x0) {\n    pthread_mutex_unlock((pthread_mutex_t *)&DAT_005f43a0);\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_004469e0(undefined4 param_1,undefined4 *param_2,undefined4 param_3,undefined4 param_4)" identifier (parameter_list "(undefined4 param_1,undefined4 *param_2,undefined4 param_3,undefined4 param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined4 *puVar2;\n  \n  *param_2 = 0xffffffff;\n  param_2[1] = param_3;\n  param_2[3] = param_1;\n  param_2[2] = param_4;\n  param_2[4] = 0x7f8;\n  puVar1 = PTR___pthread_key_create_005e9ff8;\n  if (PTR___pthread_key_create_005e9ff8 != (undefined *)0x0) {\n    pthread_mutex_lock((pthread_mutex_t *)&DAT_005f43a0);\n  }\n  puVar2 = param_2;\n  param_2[5] = DAT_005f43c0;\n  DAT_005f43c0 = puVar2;\n  if (DAT_005f43b8 == 0) {\n    DAT_005f43b8 = 1;\n  }\n  if (puVar1 != (undefined *)0x0) {\n    pthread_mutex_unlock((pthread_mutex_t *)&DAT_005f43a0);\n  }\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (expression_statement "*param_2 = 0xffffffff;" (assignment_expression "*param_2 = 0xffffffff" (pointer_expression "*param_2" * identifier) = number_literal) ;) (expression_statement "param_2[1] = param_3;" (assignment_expression "param_2[1] = param_3" (subscript_expression "param_2[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_2[3] = param_1;" (assignment_expression "param_2[3] = param_1" (subscript_expression "param_2[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_2[2] = param_4;" (assignment_expression "param_2[2] = param_4" (subscript_expression "param_2[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_2[4] = 0x7f8;" (assignment_expression "param_2[4] = 0x7f8" (subscript_expression "param_2[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1 = PTR___pthread_key_create_005e9ff8;" (assignment_expression "puVar1 = PTR___pthread_key_create_005e9ff8" identifier = identifier) ;) (if_statement "if (PTR___pthread_key_create_005e9ff8 != (undefined *)0x0) {\n    pthread_mutex_lock((pthread_mutex_t *)&DAT_005f43a0);\n  }" if (parenthesized_expression "(PTR___pthread_key_create_005e9ff8 != (undefined *)0x0)" ( (binary_expression "PTR___pthread_key_create_005e9ff8 != (undefined *)0x0" identifier != (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pthread_mutex_lock((pthread_mutex_t *)&DAT_005f43a0);\n  }" { (expression_statement "pthread_mutex_lock((pthread_mutex_t *)&DAT_005f43a0);" (call_expression "pthread_mutex_lock((pthread_mutex_t *)&DAT_005f43a0)" identifier (argument_list "((pthread_mutex_t *)&DAT_005f43a0)" ( (cast_expression "(pthread_mutex_t *)&DAT_005f43a0" ( (type_descriptor "pthread_mutex_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&DAT_005f43a0" & identifier)) ))) ;) })) (expression_statement "puVar2 = param_2;" (assignment_expression "puVar2 = param_2" identifier = identifier) ;) (expression_statement "param_2[5] = DAT_005f43c0;" (assignment_expression "param_2[5] = DAT_005f43c0" (subscript_expression "param_2[5]" identifier [ number_literal ]) = identifier) ;) (expression_statement "DAT_005f43c0 = puVar2;" (assignment_expression "DAT_005f43c0 = puVar2" identifier = identifier) ;) (if_statement "if (DAT_005f43b8 == 0) {\n    DAT_005f43b8 = 1;\n  }" if (parenthesized_expression "(DAT_005f43b8 == 0)" ( (binary_expression "DAT_005f43b8 == 0" identifier == number_literal) )) (compound_statement "{\n    DAT_005f43b8 = 1;\n  }" { (expression_statement "DAT_005f43b8 = 1;" (assignment_expression "DAT_005f43b8 = 1" identifier = number_literal) ;) })) (if_statement "if (puVar1 != (undefined *)0x0) {\n    pthread_mutex_unlock((pthread_mutex_t *)&DAT_005f43a0);\n  }" if (parenthesized_expression "(puVar1 != (undefined *)0x0)" ( (binary_expression "puVar1 != (undefined *)0x0" identifier != (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pthread_mutex_unlock((pthread_mutex_t *)&DAT_005f43a0);\n  }" { (expression_statement "pthread_mutex_unlock((pthread_mutex_t *)&DAT_005f43a0);" (call_expression "pthread_mutex_unlock((pthread_mutex_t *)&DAT_005f43a0)" identifier (argument_list "((pthread_mutex_t *)&DAT_005f43a0)" ( (cast_expression "(pthread_mutex_t *)&DAT_005f43a0" ( (type_descriptor "pthread_mutex_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&DAT_005f43a0" & identifier)) ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression & IDENT)) ))) ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression & IDENT)) ))) ;) })) (return_statement return ;) })))
(function_definition "void __regparm3\nFUN_004469e0(undefined4 param_1,undefined4 *param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  undefined *puVar1;\n  undefined4 *puVar2;\n  \n  *param_2 = 0xffffffff;\n  param_2[1] = param_3;\n  param_2[3] = param_1;\n  param_2[2] = param_4;\n  param_2[4] = 0x7f8;\n  puVar1 = PTR___pthread_key_create_005e9ff8;\n  if (PTR___pthread_key_create_005e9ff8 != (undefined *)0x0) {\n    pthread_mutex_lock((pthread_mutex_t *)&DAT_005f43a0);\n  }\n  puVar2 = param_2;\n  param_2[5] = DAT_005f43c0;\n  DAT_005f43c0 = puVar2;\n  if (DAT_005f43b8 == 0) {\n    DAT_005f43b8 = 1;\n  }\n  if (puVar1 != (undefined *)0x0) {\n    pthread_mutex_unlock((pthread_mutex_t *)&DAT_005f43a0);\n  }\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_004469e0(undefined4 param_1,undefined4 *param_2,undefined4 param_3,undefined4 param_4)" (identifier "FUN_004469e0") (parameter_list "(undefined4 param_1,undefined4 *param_2,undefined4 param_3,undefined4 param_4)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 *param_2" (type_identifier "undefined4") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  undefined4 *puVar2;\n  \n  *param_2 = 0xffffffff;\n  param_2[1] = param_3;\n  param_2[3] = param_1;\n  param_2[2] = param_4;\n  param_2[4] = 0x7f8;\n  puVar1 = PTR___pthread_key_create_005e9ff8;\n  if (PTR___pthread_key_create_005e9ff8 != (undefined *)0x0) {\n    pthread_mutex_lock((pthread_mutex_t *)&DAT_005f43a0);\n  }\n  puVar2 = param_2;\n  param_2[5] = DAT_005f43c0;\n  DAT_005f43c0 = puVar2;\n  if (DAT_005f43b8 == 0) {\n    DAT_005f43b8 = 1;\n  }\n  if (puVar1 != (undefined *)0x0) {\n    pthread_mutex_unlock((pthread_mutex_t *)&DAT_005f43a0);\n  }\n  return;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined4 *puVar2;" (type_identifier "undefined4") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (expression_statement "*param_2 = 0xffffffff;" (assignment_expression "*param_2 = 0xffffffff" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (number_literal "0xffffffff")) (; ";")) (expression_statement "param_2[1] = param_3;" (assignment_expression "param_2[1] = param_3" (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "param_3")) (; ";")) (expression_statement "param_2[3] = param_1;" (assignment_expression "param_2[3] = param_1" (subscript_expression "param_2[3]" (identifier "param_2") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "param_1")) (; ";")) (expression_statement "param_2[2] = param_4;" (assignment_expression "param_2[2] = param_4" (subscript_expression "param_2[2]" (identifier "param_2") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "param_4")) (; ";")) (expression_statement "param_2[4] = 0x7f8;" (assignment_expression "param_2[4] = 0x7f8" (subscript_expression "param_2[4]" (identifier "param_2") ([ "[") (number_literal "4") (] "]")) (= "=") (number_literal "0x7f8")) (; ";")) (expression_statement "puVar1 = PTR___pthread_key_create_005e9ff8;" (assignment_expression "puVar1 = PTR___pthread_key_create_005e9ff8" (identifier "puVar1") (= "=") (identifier "PTR___pthread_key_create_005e9ff8")) (; ";")) (if_statement "if (PTR___pthread_key_create_005e9ff8 != (undefined *)0x0) {\n    pthread_mutex_lock((pthread_mutex_t *)&DAT_005f43a0);\n  }" (if "if") (parenthesized_expression "(PTR___pthread_key_create_005e9ff8 != (undefined *)0x0)" (( "(") (binary_expression "PTR___pthread_key_create_005e9ff8 != (undefined *)0x0" (identifier "PTR___pthread_key_create_005e9ff8") (!= "!=") (cast_expression "(undefined *)0x0" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    pthread_mutex_lock((pthread_mutex_t *)&DAT_005f43a0);\n  }" ({ "{") (expression_statement "pthread_mutex_lock((pthread_mutex_t *)&DAT_005f43a0);" (call_expression "pthread_mutex_lock((pthread_mutex_t *)&DAT_005f43a0)" (identifier "pthread_mutex_lock") (argument_list "((pthread_mutex_t *)&DAT_005f43a0)" (( "(") (cast_expression "(pthread_mutex_t *)&DAT_005f43a0" (( "(") (type_descriptor "pthread_mutex_t *" (type_identifier "pthread_mutex_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "&DAT_005f43a0" (& "&") (identifier "DAT_005f43a0"))) () ")"))) (; ";")) (} "}"))) (expression_statement "puVar2 = param_2;" (assignment_expression "puVar2 = param_2" (identifier "puVar2") (= "=") (identifier "param_2")) (; ";")) (expression_statement "param_2[5] = DAT_005f43c0;" (assignment_expression "param_2[5] = DAT_005f43c0" (subscript_expression "param_2[5]" (identifier "param_2") ([ "[") (number_literal "5") (] "]")) (= "=") (identifier "DAT_005f43c0")) (; ";")) (expression_statement "DAT_005f43c0 = puVar2;" (assignment_expression "DAT_005f43c0 = puVar2" (identifier "DAT_005f43c0") (= "=") (identifier "puVar2")) (; ";")) (if_statement "if (DAT_005f43b8 == 0) {\n    DAT_005f43b8 = 1;\n  }" (if "if") (parenthesized_expression "(DAT_005f43b8 == 0)" (( "(") (binary_expression "DAT_005f43b8 == 0" (identifier "DAT_005f43b8") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    DAT_005f43b8 = 1;\n  }" ({ "{") (expression_statement "DAT_005f43b8 = 1;" (assignment_expression "DAT_005f43b8 = 1" (identifier "DAT_005f43b8") (= "=") (number_literal "1")) (; ";")) (} "}"))) (if_statement "if (puVar1 != (undefined *)0x0) {\n    pthread_mutex_unlock((pthread_mutex_t *)&DAT_005f43a0);\n  }" (if "if") (parenthesized_expression "(puVar1 != (undefined *)0x0)" (( "(") (binary_expression "puVar1 != (undefined *)0x0" (identifier "puVar1") (!= "!=") (cast_expression "(undefined *)0x0" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    pthread_mutex_unlock((pthread_mutex_t *)&DAT_005f43a0);\n  }" ({ "{") (expression_statement "pthread_mutex_unlock((pthread_mutex_t *)&DAT_005f43a0);" (call_expression "pthread_mutex_unlock((pthread_mutex_t *)&DAT_005f43a0)" (identifier "pthread_mutex_unlock") (argument_list "((pthread_mutex_t *)&DAT_005f43a0)" (( "(") (cast_expression "(pthread_mutex_t *)&DAT_005f43a0" (( "(") (type_descriptor "pthread_mutex_t *" (type_identifier "pthread_mutex_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "&DAT_005f43a0" (& "&") (identifier "DAT_005f43a0"))) () ")"))) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void function_1(void)

{
}


(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: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier)))))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier)))))))) (return_statement))))

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

void __regparm3
MASKED(undefined4 param_1,undefined4 *param_2,undefined4 param_3,undefined4 param_4)

{
  undefined *puVar1;
  undefined4 *puVar2;
  
  *param_2 = 0xffffffff;
  param_2[1] = param_3;
  param_2[3] = param_1;
  param_2[2] = param_4;
  param_2[4] = 0x7f8;
  puVar1 = PTR___pthread_key_create_005e9ff8;
  if (PTR___pthread_key_create_005e9ff8 != (undefined *)0x0) {
    pthread_mutex_lock((pthread_mutex_t *)&DAT_005f43a0);
  }
  puVar2 = param_2;
  param_2[5] = DAT_005f43c0;
  DAT_005f43c0 = puVar2;
  if (DAT_005f43b8 == 0) {
    DAT_005f43b8 = 1;
  }
  if (puVar1 != (undefined *)0x0) {
    pthread_mutex_unlock((pthread_mutex_t *)&DAT_005f43a0);
  }
  return;
}

