
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */
/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

void * dh_setup_group(ssh_kex *kex)

{
  undefined4 *puVar1;
  undefined4 *puVar2;
  Bignum_conflict pBVar3;
  
  puVar1 = (undefined4 *)kex->extra;
  puVar2 = (undefined4 *)safemalloc(1,0x18);
  pBVar3 = bignum_from_bytes((uchar *)*puVar1,puVar1[2]);
  puVar2[2] = pBVar3;
  pBVar3 = bignum_from_bytes((uchar *)puVar1[1],puVar1[3]);
  puVar2[5] = pBVar3;
  pBVar3 = bignum_rshift((Bignum_conflict)puVar2[2],1);
  puVar2[3] = pBVar3;
  pBVar3 = bignum_bitmask(pBVar3);
  puVar2[1] = 0;
  puVar2[4] = pBVar3;
  *puVar2 = 0;
  return puVar2;
}



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

undefined4 * FUN_0005e820(int param_1)

{
  undefined4 *puVar1;
  undefined4 *puVar2;
  undefined4 uVar3;
  
  puVar1 = *(undefined4 **)(param_1 + 0x10);
  puVar2 = (undefined4 *)FUN_0001db90(1,0x18);
  uVar3 = FUN_00056330(*puVar1,puVar1[2]);
  puVar2[2] = uVar3;
  uVar3 = FUN_00056330(puVar1[1],puVar1[3]);
  puVar2[5] = uVar3;
  uVar3 = FUN_00056e50(puVar2[2],1);
  puVar2[3] = uVar3;
  uVar3 = FUN_000579e0(uVar3);
  puVar2[1] = 0;
  puVar2[4] = uVar3;
  *puVar2 = 0;
  return puVar2;
}


PUSH EDI
PUSH ESI
PUSH EBX
MOV EAX,dword ptr [ESP + 0x10]
CALL 0x000149a0
ADD EBX,0x6e544
MOV EDI,dword ptr [EAX + 0x10]
SUB ESP,0x8
PUSH 0x18
PUSH 0x1
CALL 0x0001db90
MOV ESI,EAX
POP EAX
POP EDX
PUSH dword ptr [EDI + 0x8]
PUSH dword ptr [EDI]
CALL 0x00056330
MOV dword ptr [ESI + 0x8],EAX
POP ECX
POP EAX
PUSH dword ptr [EDI + 0xc]
PUSH dword ptr [EDI + 0x4]
CALL 0x00056330
MOV dword ptr [ESI + 0x14],EAX
POP EAX
POP EDX
PUSH 0x1
PUSH dword ptr [ESI + 0x8]
CALL 0x00056e50
MOV dword ptr [ESI + 0xc],EAX
MOV dword ptr [ESP],EAX
CALL 0x000579e0
ADD ESP,0x10
MOV dword ptr [ESI + 0x4],0x0
MOV dword ptr [ESI + 0x10],EAX
MOV EAX,ESI
MOV dword ptr [ESI],0x0
POP EBX
POP ESI
POP EDI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 * FUN_0005e820(int param_1)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  \n  puVar1 = *(undefined4 **)(param_1 + 0x10);\n  puVar2 = (undefined4 *)FUN_0001db90(1,0x18);\n  uVar3 = FUN_00056330(*puVar1,puVar1[2]);\n  puVar2[2] = uVar3;\n  uVar3 = FUN_00056330(puVar1[1],puVar1[3]);\n  puVar2[5] = uVar3;\n  uVar3 = FUN_00056e50(puVar2[2],1);\n  puVar2[3] = uVar3;\n  uVar3 = FUN_000579e0(uVar3);\n  puVar2[1] = 0;\n  puVar2[4] = uVar3;\n  *puVar2 = 0;\n  return puVar2;\n}\n\n" comment (function_definition "undefined4 * FUN_0005e820(int param_1)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  \n  puVar1 = *(undefined4 **)(param_1 + 0x10);\n  puVar2 = (undefined4 *)FUN_0001db90(1,0x18);\n  uVar3 = FUN_00056330(*puVar1,puVar1[2]);\n  puVar2[2] = uVar3;\n  uVar3 = FUN_00056330(puVar1[1],puVar1[3]);\n  puVar2[5] = uVar3;\n  uVar3 = FUN_00056e50(puVar2[2],1);\n  puVar2[3] = uVar3;\n  uVar3 = FUN_000579e0(uVar3);\n  puVar2[1] = 0;\n  puVar2[4] = uVar3;\n  *puVar2 = 0;\n  return puVar2;\n}" type_identifier (pointer_declarator "* FUN_0005e820(int param_1)" * (function_declarator "FUN_0005e820(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) )))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  \n  puVar1 = *(undefined4 **)(param_1 + 0x10);\n  puVar2 = (undefined4 *)FUN_0001db90(1,0x18);\n  uVar3 = FUN_00056330(*puVar1,puVar1[2]);\n  puVar2[2] = uVar3;\n  uVar3 = FUN_00056330(puVar1[1],puVar1[3]);\n  puVar2[5] = uVar3;\n  uVar3 = FUN_00056e50(puVar2[2],1);\n  puVar2[3] = uVar3;\n  uVar3 = FUN_000579e0(uVar3);\n  puVar2[1] = 0;\n  puVar2[4] = uVar3;\n  *puVar2 = 0;\n  return puVar2;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (expression_statement "puVar1 = *(undefined4 **)(param_1 + 0x10);" (assignment_expression "puVar1 = *(undefined4 **)(param_1 + 0x10)" identifier = (pointer_expression "*(undefined4 **)(param_1 + 0x10)" * (cast_expression "(undefined4 **)(param_1 + 0x10)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) ;) (expression_statement "puVar2 = (undefined4 *)FUN_0001db90(1,0x18);" (assignment_expression "puVar2 = (undefined4 *)FUN_0001db90(1,0x18)" identifier = (cast_expression "(undefined4 *)FUN_0001db90(1,0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0001db90(1,0x18)" identifier (argument_list "(1,0x18)" ( number_literal , number_literal ))))) ;) (expression_statement "uVar3 = FUN_00056330(*puVar1,puVar1[2]);" (assignment_expression "uVar3 = FUN_00056330(*puVar1,puVar1[2])" identifier = (call_expression "FUN_00056330(*puVar1,puVar1[2])" identifier (argument_list "(*puVar1,puVar1[2])" ( (pointer_expression "*puVar1" * identifier) , (subscript_expression "puVar1[2]" identifier [ number_literal ]) )))) ;) (expression_statement "puVar2[2] = uVar3;" (assignment_expression "puVar2[2] = uVar3" (subscript_expression "puVar2[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar3 = FUN_00056330(puVar1[1],puVar1[3]);" (assignment_expression "uVar3 = FUN_00056330(puVar1[1],puVar1[3])" identifier = (call_expression "FUN_00056330(puVar1[1],puVar1[3])" identifier (argument_list "(puVar1[1],puVar1[3])" ( (subscript_expression "puVar1[1]" identifier [ number_literal ]) , (subscript_expression "puVar1[3]" identifier [ number_literal ]) )))) ;) (expression_statement "puVar2[5] = uVar3;" (assignment_expression "puVar2[5] = uVar3" (subscript_expression "puVar2[5]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar3 = FUN_00056e50(puVar2[2],1);" (assignment_expression "uVar3 = FUN_00056e50(puVar2[2],1)" identifier = (call_expression "FUN_00056e50(puVar2[2],1)" identifier (argument_list "(puVar2[2],1)" ( (subscript_expression "puVar2[2]" identifier [ number_literal ]) , number_literal )))) ;) (expression_statement "puVar2[3] = uVar3;" (assignment_expression "puVar2[3] = uVar3" (subscript_expression "puVar2[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar3 = FUN_000579e0(uVar3);" (assignment_expression "uVar3 = FUN_000579e0(uVar3)" identifier = (call_expression "FUN_000579e0(uVar3)" identifier (argument_list "(uVar3)" ( identifier )))) ;) (expression_statement "puVar2[1] = 0;" (assignment_expression "puVar2[1] = 0" (subscript_expression "puVar2[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar2[4] = uVar3;" (assignment_expression "puVar2[4] = uVar3" (subscript_expression "puVar2[4]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*puVar2 = 0;" (assignment_expression "*puVar2 = 0" (pointer_expression "*puVar2" * identifier) = number_literal) ;) (return_statement "return puVar2;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nvoid * dh_setup_group(ssh_kex *kex)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  Bignum_conflict pBVar3;\n  \n  puVar1 = (undefined4 *)kex->extra;\n  puVar2 = (undefined4 *)safemalloc(1,0x18);\n  pBVar3 = bignum_from_bytes((uchar *)*puVar1,puVar1[2]);\n  puVar2[2] = pBVar3;\n  pBVar3 = bignum_from_bytes((uchar *)puVar1[1],puVar1[3]);\n  puVar2[5] = pBVar3;\n  pBVar3 = bignum_rshift((Bignum_conflict)puVar2[2],1);\n  puVar2[3] = pBVar3;\n  pBVar3 = bignum_bitmask(pBVar3);\n  puVar2[1] = 0;\n  puVar2[4] = pBVar3;\n  *puVar2 = 0;\n  return puVar2;\n}\n\n" comment comment comment (function_definition "void * dh_setup_group(ssh_kex *kex)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  Bignum_conflict pBVar3;\n  \n  puVar1 = (undefined4 *)kex->extra;\n  puVar2 = (undefined4 *)safemalloc(1,0x18);\n  pBVar3 = bignum_from_bytes((uchar *)*puVar1,puVar1[2]);\n  puVar2[2] = pBVar3;\n  pBVar3 = bignum_from_bytes((uchar *)puVar1[1],puVar1[3]);\n  puVar2[5] = pBVar3;\n  pBVar3 = bignum_rshift((Bignum_conflict)puVar2[2],1);\n  puVar2[3] = pBVar3;\n  pBVar3 = bignum_bitmask(pBVar3);\n  puVar2[1] = 0;\n  puVar2[4] = pBVar3;\n  *puVar2 = 0;\n  return puVar2;\n}" primitive_type (pointer_declarator "* dh_setup_group(ssh_kex *kex)" * (function_declarator "dh_setup_group(ssh_kex *kex)" identifier (parameter_list "(ssh_kex *kex)" ( (parameter_declaration "ssh_kex *kex" type_identifier (pointer_declarator "*kex" * identifier)) )))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  Bignum_conflict pBVar3;\n  \n  puVar1 = (undefined4 *)kex->extra;\n  puVar2 = (undefined4 *)safemalloc(1,0x18);\n  pBVar3 = bignum_from_bytes((uchar *)*puVar1,puVar1[2]);\n  puVar2[2] = pBVar3;\n  pBVar3 = bignum_from_bytes((uchar *)puVar1[1],puVar1[3]);\n  puVar2[5] = pBVar3;\n  pBVar3 = bignum_rshift((Bignum_conflict)puVar2[2],1);\n  puVar2[3] = pBVar3;\n  pBVar3 = bignum_bitmask(pBVar3);\n  puVar2[1] = 0;\n  puVar2[4] = pBVar3;\n  *puVar2 = 0;\n  return puVar2;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "Bignum_conflict pBVar3;" type_identifier identifier ;) (expression_statement "puVar1 = (undefined4 *)kex->extra;" (assignment_expression "puVar1 = (undefined4 *)kex->extra" identifier = (cast_expression "(undefined4 *)kex->extra" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "kex->extra" identifier -> field_identifier))) ;) (expression_statement "puVar2 = (undefined4 *)safemalloc(1,0x18);" (assignment_expression "puVar2 = (undefined4 *)safemalloc(1,0x18)" identifier = (cast_expression "(undefined4 *)safemalloc(1,0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "safemalloc(1,0x18)" identifier (argument_list "(1,0x18)" ( number_literal , number_literal ))))) ;) (expression_statement "pBVar3 = bignum_from_bytes((uchar *)*puVar1,puVar1[2]);" (assignment_expression "pBVar3 = bignum_from_bytes((uchar *)*puVar1,puVar1[2])" identifier = (call_expression "bignum_from_bytes((uchar *)*puVar1,puVar1[2])" identifier (argument_list "((uchar *)*puVar1,puVar1[2])" ( (cast_expression "(uchar *)*puVar1" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar1" * identifier)) , (subscript_expression "puVar1[2]" identifier [ number_literal ]) )))) ;) (expression_statement "puVar2[2] = pBVar3;" (assignment_expression "puVar2[2] = pBVar3" (subscript_expression "puVar2[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "pBVar3 = bignum_from_bytes((uchar *)puVar1[1],puVar1[3]);" (assignment_expression "pBVar3 = bignum_from_bytes((uchar *)puVar1[1],puVar1[3])" identifier = (call_expression "bignum_from_bytes((uchar *)puVar1[1],puVar1[3])" identifier (argument_list "((uchar *)puVar1[1],puVar1[3])" ( (cast_expression "(uchar *)puVar1[1]" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar1[1]" identifier [ number_literal ])) , (subscript_expression "puVar1[3]" identifier [ number_literal ]) )))) ;) (expression_statement "puVar2[5] = pBVar3;" (assignment_expression "puVar2[5] = pBVar3" (subscript_expression "puVar2[5]" identifier [ number_literal ]) = identifier) ;) (expression_statement "pBVar3 = bignum_rshift((Bignum_conflict)puVar2[2],1);" (assignment_expression "pBVar3 = bignum_rshift((Bignum_conflict)puVar2[2],1)" identifier = (call_expression "bignum_rshift((Bignum_conflict)puVar2[2],1)" identifier (argument_list "((Bignum_conflict)puVar2[2],1)" ( (cast_expression "(Bignum_conflict)puVar2[2]" ( (type_descriptor "Bignum_conflict" type_identifier) ) (subscript_expression "puVar2[2]" identifier [ number_literal ])) , number_literal )))) ;) (expression_statement "puVar2[3] = pBVar3;" (assignment_expression "puVar2[3] = pBVar3" (subscript_expression "puVar2[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "pBVar3 = bignum_bitmask(pBVar3);" (assignment_expression "pBVar3 = bignum_bitmask(pBVar3)" identifier = (call_expression "bignum_bitmask(pBVar3)" identifier (argument_list "(pBVar3)" ( identifier )))) ;) (expression_statement "puVar2[1] = 0;" (assignment_expression "puVar2[1] = 0" (subscript_expression "puVar2[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar2[4] = pBVar3;" (assignment_expression "puVar2[4] = pBVar3" (subscript_expression "puVar2[4]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*puVar2 = 0;" (assignment_expression "*puVar2 = 0" (pointer_expression "*puVar2" * identifier) = number_literal) ;) (return_statement "return puVar2;" return identifier ;) })))
(translation_unit "undefined4 * FUN_0005e820(int param_1)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  \n  puVar1 = *(undefined4 **)(param_1 + 0x10);\n  puVar2 = (undefined4 *)FUN_0001db90(1,0x18);\n  uVar3 = FUN_00056330(*puVar1,puVar1[2]);\n  puVar2[2] = uVar3;\n  uVar3 = FUN_00056330(puVar1[1],puVar1[3]);\n  puVar2[5] = uVar3;\n  uVar3 = FUN_00056e50(puVar2[2],1);\n  puVar2[3] = uVar3;\n  uVar3 = FUN_000579e0(uVar3);\n  puVar2[1] = 0;\n  puVar2[4] = uVar3;\n  *puVar2 = 0;\n  return puVar2;\n}\n\n" (function_definition "undefined4 * FUN_0005e820(int param_1)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  \n  puVar1 = *(undefined4 **)(param_1 + 0x10);\n  puVar2 = (undefined4 *)FUN_0001db90(1,0x18);\n  uVar3 = FUN_00056330(*puVar1,puVar1[2]);\n  puVar2[2] = uVar3;\n  uVar3 = FUN_00056330(puVar1[1],puVar1[3]);\n  puVar2[5] = uVar3;\n  uVar3 = FUN_00056e50(puVar2[2],1);\n  puVar2[3] = uVar3;\n  uVar3 = FUN_000579e0(uVar3);\n  puVar2[1] = 0;\n  puVar2[4] = uVar3;\n  *puVar2 = 0;\n  return puVar2;\n}" type_identifier (pointer_declarator "* FUN_0005e820(int param_1)" * (function_declarator "FUN_0005e820(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) )))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  \n  puVar1 = *(undefined4 **)(param_1 + 0x10);\n  puVar2 = (undefined4 *)FUN_0001db90(1,0x18);\n  uVar3 = FUN_00056330(*puVar1,puVar1[2]);\n  puVar2[2] = uVar3;\n  uVar3 = FUN_00056330(puVar1[1],puVar1[3]);\n  puVar2[5] = uVar3;\n  uVar3 = FUN_00056e50(puVar2[2],1);\n  puVar2[3] = uVar3;\n  uVar3 = FUN_000579e0(uVar3);\n  puVar2[1] = 0;\n  puVar2[4] = uVar3;\n  *puVar2 = 0;\n  return puVar2;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (expression_statement "puVar1 = *(undefined4 **)(param_1 + 0x10);" (assignment_expression "puVar1 = *(undefined4 **)(param_1 + 0x10)" identifier = (pointer_expression "*(undefined4 **)(param_1 + 0x10)" * (cast_expression "(undefined4 **)(param_1 + 0x10)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) ;) (expression_statement "puVar2 = (undefined4 *)FUN_0001db90(1,0x18);" (assignment_expression "puVar2 = (undefined4 *)FUN_0001db90(1,0x18)" identifier = (cast_expression "(undefined4 *)FUN_0001db90(1,0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0001db90(1,0x18)" identifier (argument_list "(1,0x18)" ( number_literal , number_literal ))))) ;) (expression_statement "uVar3 = FUN_00056330(*puVar1,puVar1[2]);" (assignment_expression "uVar3 = FUN_00056330(*puVar1,puVar1[2])" identifier = (call_expression "FUN_00056330(*puVar1,puVar1[2])" identifier (argument_list "(*puVar1,puVar1[2])" ( (pointer_expression "*puVar1" * identifier) , (subscript_expression "puVar1[2]" identifier [ number_literal ]) )))) ;) (expression_statement "puVar2[2] = uVar3;" (assignment_expression "puVar2[2] = uVar3" (subscript_expression "puVar2[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar3 = FUN_00056330(puVar1[1],puVar1[3]);" (assignment_expression "uVar3 = FUN_00056330(puVar1[1],puVar1[3])" identifier = (call_expression "FUN_00056330(puVar1[1],puVar1[3])" identifier (argument_list "(puVar1[1],puVar1[3])" ( (subscript_expression "puVar1[1]" identifier [ number_literal ]) , (subscript_expression "puVar1[3]" identifier [ number_literal ]) )))) ;) (expression_statement "puVar2[5] = uVar3;" (assignment_expression "puVar2[5] = uVar3" (subscript_expression "puVar2[5]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar3 = FUN_00056e50(puVar2[2],1);" (assignment_expression "uVar3 = FUN_00056e50(puVar2[2],1)" identifier = (call_expression "FUN_00056e50(puVar2[2],1)" identifier (argument_list "(puVar2[2],1)" ( (subscript_expression "puVar2[2]" identifier [ number_literal ]) , number_literal )))) ;) (expression_statement "puVar2[3] = uVar3;" (assignment_expression "puVar2[3] = uVar3" (subscript_expression "puVar2[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar3 = FUN_000579e0(uVar3);" (assignment_expression "uVar3 = FUN_000579e0(uVar3)" identifier = (call_expression "FUN_000579e0(uVar3)" identifier (argument_list "(uVar3)" ( identifier )))) ;) (expression_statement "puVar2[1] = 0;" (assignment_expression "puVar2[1] = 0" (subscript_expression "puVar2[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar2[4] = uVar3;" (assignment_expression "puVar2[4] = uVar3" (subscript_expression "puVar2[4]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*puVar2 = 0;" (assignment_expression "*puVar2 = 0" (pointer_expression "*puVar2" * identifier) = number_literal) ;) (return_statement "return puVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT , LIT ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , (subscript_expression IDENT [ LIT ]) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) , (subscript_expression IDENT [ LIT ]) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) , LIT )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (return_statement return IDENT ;) })))
(function_definition "undefined4 * FUN_0005e820(int param_1)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  \n  puVar1 = *(undefined4 **)(param_1 + 0x10);\n  puVar2 = (undefined4 *)FUN_0001db90(1,0x18);\n  uVar3 = FUN_00056330(*puVar1,puVar1[2]);\n  puVar2[2] = uVar3;\n  uVar3 = FUN_00056330(puVar1[1],puVar1[3]);\n  puVar2[5] = uVar3;\n  uVar3 = FUN_00056e50(puVar2[2],1);\n  puVar2[3] = uVar3;\n  uVar3 = FUN_000579e0(uVar3);\n  puVar2[1] = 0;\n  puVar2[4] = uVar3;\n  *puVar2 = 0;\n  return puVar2;\n}" (type_identifier "undefined4") (pointer_declarator "* FUN_0005e820(int param_1)" (* "*") (function_declarator "FUN_0005e820(int param_1)" (identifier "FUN_0005e820") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")")))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  \n  puVar1 = *(undefined4 **)(param_1 + 0x10);\n  puVar2 = (undefined4 *)FUN_0001db90(1,0x18);\n  uVar3 = FUN_00056330(*puVar1,puVar1[2]);\n  puVar2[2] = uVar3;\n  uVar3 = FUN_00056330(puVar1[1],puVar1[3]);\n  puVar2[5] = uVar3;\n  uVar3 = FUN_00056e50(puVar2[2],1);\n  puVar2[3] = uVar3;\n  uVar3 = FUN_000579e0(uVar3);\n  puVar2[1] = 0;\n  puVar2[4] = uVar3;\n  *puVar2 = 0;\n  return puVar2;\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined4 *puVar2;" (type_identifier "undefined4") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (expression_statement "puVar1 = *(undefined4 **)(param_1 + 0x10);" (assignment_expression "puVar1 = *(undefined4 **)(param_1 + 0x10)" (identifier "puVar1") (= "=") (pointer_expression "*(undefined4 **)(param_1 + 0x10)" (* "*") (cast_expression "(undefined4 **)(param_1 + 0x10)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")"))))) (; ";")) (expression_statement "puVar2 = (undefined4 *)FUN_0001db90(1,0x18);" (assignment_expression "puVar2 = (undefined4 *)FUN_0001db90(1,0x18)" (identifier "puVar2") (= "=") (cast_expression "(undefined4 *)FUN_0001db90(1,0x18)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0001db90(1,0x18)" (identifier "FUN_0001db90") (argument_list "(1,0x18)" (( "(") (number_literal "1") (, ",") (number_literal "0x18") () ")"))))) (; ";")) (expression_statement "uVar3 = FUN_00056330(*puVar1,puVar1[2]);" (assignment_expression "uVar3 = FUN_00056330(*puVar1,puVar1[2])" (identifier "uVar3") (= "=") (call_expression "FUN_00056330(*puVar1,puVar1[2])" (identifier "FUN_00056330") (argument_list "(*puVar1,puVar1[2])" (( "(") (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (, ",") (subscript_expression "puVar1[2]" (identifier "puVar1") ([ "[") (number_literal "2") (] "]")) () ")")))) (; ";")) (expression_statement "puVar2[2] = uVar3;" (assignment_expression "puVar2[2] = uVar3" (subscript_expression "puVar2[2]" (identifier "puVar2") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "uVar3")) (; ";")) (expression_statement "uVar3 = FUN_00056330(puVar1[1],puVar1[3]);" (assignment_expression "uVar3 = FUN_00056330(puVar1[1],puVar1[3])" (identifier "uVar3") (= "=") (call_expression "FUN_00056330(puVar1[1],puVar1[3])" (identifier "FUN_00056330") (argument_list "(puVar1[1],puVar1[3])" (( "(") (subscript_expression "puVar1[1]" (identifier "puVar1") ([ "[") (number_literal "1") (] "]")) (, ",") (subscript_expression "puVar1[3]" (identifier "puVar1") ([ "[") (number_literal "3") (] "]")) () ")")))) (; ";")) (expression_statement "puVar2[5] = uVar3;" (assignment_expression "puVar2[5] = uVar3" (subscript_expression "puVar2[5]" (identifier "puVar2") ([ "[") (number_literal "5") (] "]")) (= "=") (identifier "uVar3")) (; ";")) (expression_statement "uVar3 = FUN_00056e50(puVar2[2],1);" (assignment_expression "uVar3 = FUN_00056e50(puVar2[2],1)" (identifier "uVar3") (= "=") (call_expression "FUN_00056e50(puVar2[2],1)" (identifier "FUN_00056e50") (argument_list "(puVar2[2],1)" (( "(") (subscript_expression "puVar2[2]" (identifier "puVar2") ([ "[") (number_literal "2") (] "]")) (, ",") (number_literal "1") () ")")))) (; ";")) (expression_statement "puVar2[3] = uVar3;" (assignment_expression "puVar2[3] = uVar3" (subscript_expression "puVar2[3]" (identifier "puVar2") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "uVar3")) (; ";")) (expression_statement "uVar3 = FUN_000579e0(uVar3);" (assignment_expression "uVar3 = FUN_000579e0(uVar3)" (identifier "uVar3") (= "=") (call_expression "FUN_000579e0(uVar3)" (identifier "FUN_000579e0") (argument_list "(uVar3)" (( "(") (identifier "uVar3") () ")")))) (; ";")) (expression_statement "puVar2[1] = 0;" (assignment_expression "puVar2[1] = 0" (subscript_expression "puVar2[1]" (identifier "puVar2") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar2[4] = uVar3;" (assignment_expression "puVar2[4] = uVar3" (subscript_expression "puVar2[4]" (identifier "puVar2") ([ "[") (number_literal "4") (] "]")) (= "=") (identifier "uVar3")) (; ";")) (expression_statement "*puVar2 = 0;" (assignment_expression "*puVar2 = 0" (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (= "=") (number_literal "0")) (; ";")) (return_statement "return puVar2;" (return "return") (identifier "puVar2") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */
/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

void * function_1(type_1 *kex)

{
  type_2 *puVar1;
  type_2 *puVar2;
  type_3 pBVar3;
  
  puVar1 = (type_2 *)kex->extra;
  puVar2 = (type_2 *)var_1(1,0x18);
  pBVar3 = var_2((type_4 *)*puVar1,puVar1[2]);
  puVar2[2] = pBVar3;
  pBVar3 = var_2((type_4 *)puVar1[1],puVar1[3]);
  puVar2[5] = pBVar3;
  pBVar3 = var_3((type_3)puVar2[2],1);
  puVar2[3] = pBVar3;
  pBVar3 = var_4(pBVar3);
  puVar2[1] = 0;
  puVar2[4] = pBVar3;
  *puVar2 = 0;
  return puVar2;
}


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

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

undefined4 * MASKED(int param_1)

{
  undefined4 *puVar1;
  undefined4 *puVar2;
  undefined4 uVar3;
  
  puVar1 = *(undefined4 **)(param_1 + 0x10);
  puVar2 = (undefined4 *)FUN_0001db90(1,0x18);
  uVar3 = FUN_00056330(*puVar1,puVar1[2]);
  puVar2[2] = uVar3;
  uVar3 = FUN_00056330(puVar1[1],puVar1[3]);
  puVar2[5] = uVar3;
  uVar3 = FUN_00056e50(puVar2[2],1);
  puVar2[3] = uVar3;
  uVar3 = FUN_000579e0(uVar3);
  puVar2[1] = 0;
  puVar2[4] = uVar3;
  *puVar2 = 0;
  return puVar2;
}

