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

void ldisc_configure(void *handle,Conf *conf)

{
  int iVar1;
  
  iVar1 = conf_get_int(conf,0x4f);
  *(int *)((int)handle + 0x10) = iVar1;
  iVar1 = conf_get_int(conf,0x50);
  *(int *)((int)handle + 0x14) = iVar1;
  iVar1 = conf_get_int(conf,2);
  *(int *)((int)handle + 0x18) = iVar1;
  iVar1 = conf_get_int(conf,0x54);
  *(int *)((int)handle + 0x1c) = iVar1;
  iVar1 = conf_get_int(conf,0x55);
  *(int *)((int)handle + 0x20) = iVar1;
  return;
}



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

void FUN_0001a180(int param_1,undefined4 param_2)

{
  undefined4 uVar1;
  
  uVar1 = FUN_000189a0(param_2,0x4f);
  *(undefined4 *)(param_1 + 0x10) = uVar1;
  uVar1 = FUN_000189a0(param_2,0x50);
  *(undefined4 *)(param_1 + 0x14) = uVar1;
  uVar1 = FUN_000189a0(param_2,2);
  *(undefined4 *)(param_1 + 0x18) = uVar1;
  uVar1 = FUN_000189a0(param_2,0x54);
  *(undefined4 *)(param_1 + 0x1c) = uVar1;
  uVar1 = FUN_000189a0(param_2,0x55);
  *(undefined4 *)(param_1 + 0x20) = uVar1;
  return;
}


PUSH EDI
PUSH ESI
PUSH EBX
MOV EDI,dword ptr [ESP + 0x14]
CALL 0x00015fa0
ADD EBX,0x8abe4
MOV ESI,dword ptr [ESP + 0x10]
SUB ESP,0x8
PUSH 0x4f
PUSH EDI
CALL 0x000189a0
MOV dword ptr [ESI + 0x10],EAX
POP EAX
POP EDX
PUSH 0x50
PUSH EDI
CALL 0x000189a0
MOV dword ptr [ESI + 0x14],EAX
POP ECX
POP EAX
PUSH 0x2
PUSH EDI
CALL 0x000189a0
MOV dword ptr [ESI + 0x18],EAX
POP EAX
POP EDX
PUSH 0x54
PUSH EDI
CALL 0x000189a0
MOV dword ptr [ESI + 0x1c],EAX
POP ECX
POP EAX
PUSH 0x55
PUSH EDI
CALL 0x000189a0
ADD ESP,0x10
MOV dword ptr [ESI + 0x20],EAX
POP EBX
POP ESI
POP EDI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_0001a180(int param_1,undefined4 param_2)\n\n{\n  undefined4 uVar1;\n  \n  uVar1 = FUN_000189a0(param_2,0x4f);\n  *(undefined4 *)(param_1 + 0x10) = uVar1;\n  uVar1 = FUN_000189a0(param_2,0x50);\n  *(undefined4 *)(param_1 + 0x14) = uVar1;\n  uVar1 = FUN_000189a0(param_2,2);\n  *(undefined4 *)(param_1 + 0x18) = uVar1;\n  uVar1 = FUN_000189a0(param_2,0x54);\n  *(undefined4 *)(param_1 + 0x1c) = uVar1;\n  uVar1 = FUN_000189a0(param_2,0x55);\n  *(undefined4 *)(param_1 + 0x20) = uVar1;\n  return;\n}\n\n" comment (function_definition "void FUN_0001a180(int param_1,undefined4 param_2)\n\n{\n  undefined4 uVar1;\n  \n  uVar1 = FUN_000189a0(param_2,0x4f);\n  *(undefined4 *)(param_1 + 0x10) = uVar1;\n  uVar1 = FUN_000189a0(param_2,0x50);\n  *(undefined4 *)(param_1 + 0x14) = uVar1;\n  uVar1 = FUN_000189a0(param_2,2);\n  *(undefined4 *)(param_1 + 0x18) = uVar1;\n  uVar1 = FUN_000189a0(param_2,0x54);\n  *(undefined4 *)(param_1 + 0x1c) = uVar1;\n  uVar1 = FUN_000189a0(param_2,0x55);\n  *(undefined4 *)(param_1 + 0x20) = uVar1;\n  return;\n}" primitive_type (function_declarator "FUN_0001a180(int param_1,undefined4 param_2)" identifier (parameter_list "(int param_1,undefined4 param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  \n  uVar1 = FUN_000189a0(param_2,0x4f);\n  *(undefined4 *)(param_1 + 0x10) = uVar1;\n  uVar1 = FUN_000189a0(param_2,0x50);\n  *(undefined4 *)(param_1 + 0x14) = uVar1;\n  uVar1 = FUN_000189a0(param_2,2);\n  *(undefined4 *)(param_1 + 0x18) = uVar1;\n  uVar1 = FUN_000189a0(param_2,0x54);\n  *(undefined4 *)(param_1 + 0x1c) = uVar1;\n  uVar1 = FUN_000189a0(param_2,0x55);\n  *(undefined4 *)(param_1 + 0x20) = uVar1;\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (expression_statement "uVar1 = FUN_000189a0(param_2,0x4f);" (assignment_expression "uVar1 = FUN_000189a0(param_2,0x4f)" identifier = (call_expression "FUN_000189a0(param_2,0x4f)" identifier (argument_list "(param_2,0x4f)" ( identifier , number_literal )))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x10) = uVar1;" (assignment_expression "*(undefined4 *)(param_1 + 0x10) = uVar1" (pointer_expression "*(undefined4 *)(param_1 + 0x10)" * (cast_expression "(undefined4 *)(param_1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar1 = FUN_000189a0(param_2,0x50);" (assignment_expression "uVar1 = FUN_000189a0(param_2,0x50)" identifier = (call_expression "FUN_000189a0(param_2,0x50)" identifier (argument_list "(param_2,0x50)" ( identifier , number_literal )))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x14) = uVar1;" (assignment_expression "*(undefined4 *)(param_1 + 0x14) = uVar1" (pointer_expression "*(undefined4 *)(param_1 + 0x14)" * (cast_expression "(undefined4 *)(param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar1 = FUN_000189a0(param_2,2);" (assignment_expression "uVar1 = FUN_000189a0(param_2,2)" identifier = (call_expression "FUN_000189a0(param_2,2)" identifier (argument_list "(param_2,2)" ( identifier , number_literal )))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x18) = uVar1;" (assignment_expression "*(undefined4 *)(param_1 + 0x18) = uVar1" (pointer_expression "*(undefined4 *)(param_1 + 0x18)" * (cast_expression "(undefined4 *)(param_1 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar1 = FUN_000189a0(param_2,0x54);" (assignment_expression "uVar1 = FUN_000189a0(param_2,0x54)" identifier = (call_expression "FUN_000189a0(param_2,0x54)" identifier (argument_list "(param_2,0x54)" ( identifier , number_literal )))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x1c) = uVar1;" (assignment_expression "*(undefined4 *)(param_1 + 0x1c) = uVar1" (pointer_expression "*(undefined4 *)(param_1 + 0x1c)" * (cast_expression "(undefined4 *)(param_1 + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar1 = FUN_000189a0(param_2,0x55);" (assignment_expression "uVar1 = FUN_000189a0(param_2,0x55)" identifier = (call_expression "FUN_000189a0(param_2,0x55)" identifier (argument_list "(param_2,0x55)" ( identifier , number_literal )))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x20) = uVar1;" (assignment_expression "*(undefined4 *)(param_1 + 0x20) = uVar1" (pointer_expression "*(undefined4 *)(param_1 + 0x20)" * (cast_expression "(undefined4 *)(param_1 + 0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) )))) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nvoid ldisc_configure(void *handle,Conf *conf)\n\n{\n  int iVar1;\n  \n  iVar1 = conf_get_int(conf,0x4f);\n  *(int *)((int)handle + 0x10) = iVar1;\n  iVar1 = conf_get_int(conf,0x50);\n  *(int *)((int)handle + 0x14) = iVar1;\n  iVar1 = conf_get_int(conf,2);\n  *(int *)((int)handle + 0x18) = iVar1;\n  iVar1 = conf_get_int(conf,0x54);\n  *(int *)((int)handle + 0x1c) = iVar1;\n  iVar1 = conf_get_int(conf,0x55);\n  *(int *)((int)handle + 0x20) = iVar1;\n  return;\n}\n\n" comment comment (function_definition "void ldisc_configure(void *handle,Conf *conf)\n\n{\n  int iVar1;\n  \n  iVar1 = conf_get_int(conf,0x4f);\n  *(int *)((int)handle + 0x10) = iVar1;\n  iVar1 = conf_get_int(conf,0x50);\n  *(int *)((int)handle + 0x14) = iVar1;\n  iVar1 = conf_get_int(conf,2);\n  *(int *)((int)handle + 0x18) = iVar1;\n  iVar1 = conf_get_int(conf,0x54);\n  *(int *)((int)handle + 0x1c) = iVar1;\n  iVar1 = conf_get_int(conf,0x55);\n  *(int *)((int)handle + 0x20) = iVar1;\n  return;\n}" primitive_type (function_declarator "ldisc_configure(void *handle,Conf *conf)" identifier (parameter_list "(void *handle,Conf *conf)" ( (parameter_declaration "void *handle" primitive_type (pointer_declarator "*handle" * identifier)) , (parameter_declaration "Conf *conf" type_identifier (pointer_declarator "*conf" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = conf_get_int(conf,0x4f);\n  *(int *)((int)handle + 0x10) = iVar1;\n  iVar1 = conf_get_int(conf,0x50);\n  *(int *)((int)handle + 0x14) = iVar1;\n  iVar1 = conf_get_int(conf,2);\n  *(int *)((int)handle + 0x18) = iVar1;\n  iVar1 = conf_get_int(conf,0x54);\n  *(int *)((int)handle + 0x1c) = iVar1;\n  iVar1 = conf_get_int(conf,0x55);\n  *(int *)((int)handle + 0x20) = iVar1;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = conf_get_int(conf,0x4f);" (assignment_expression "iVar1 = conf_get_int(conf,0x4f)" identifier = (call_expression "conf_get_int(conf,0x4f)" identifier (argument_list "(conf,0x4f)" ( identifier , number_literal )))) ;) (expression_statement "*(int *)((int)handle + 0x10) = iVar1;" (assignment_expression "*(int *)((int)handle + 0x10) = iVar1" (pointer_expression "*(int *)((int)handle + 0x10)" * (cast_expression "(int *)((int)handle + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)handle + 0x10)" ( (binary_expression "(int)handle + 0x10" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "iVar1 = conf_get_int(conf,0x50);" (assignment_expression "iVar1 = conf_get_int(conf,0x50)" identifier = (call_expression "conf_get_int(conf,0x50)" identifier (argument_list "(conf,0x50)" ( identifier , number_literal )))) ;) (expression_statement "*(int *)((int)handle + 0x14) = iVar1;" (assignment_expression "*(int *)((int)handle + 0x14) = iVar1" (pointer_expression "*(int *)((int)handle + 0x14)" * (cast_expression "(int *)((int)handle + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)handle + 0x14)" ( (binary_expression "(int)handle + 0x14" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "iVar1 = conf_get_int(conf,2);" (assignment_expression "iVar1 = conf_get_int(conf,2)" identifier = (call_expression "conf_get_int(conf,2)" identifier (argument_list "(conf,2)" ( identifier , number_literal )))) ;) (expression_statement "*(int *)((int)handle + 0x18) = iVar1;" (assignment_expression "*(int *)((int)handle + 0x18) = iVar1" (pointer_expression "*(int *)((int)handle + 0x18)" * (cast_expression "(int *)((int)handle + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)handle + 0x18)" ( (binary_expression "(int)handle + 0x18" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "iVar1 = conf_get_int(conf,0x54);" (assignment_expression "iVar1 = conf_get_int(conf,0x54)" identifier = (call_expression "conf_get_int(conf,0x54)" identifier (argument_list "(conf,0x54)" ( identifier , number_literal )))) ;) (expression_statement "*(int *)((int)handle + 0x1c) = iVar1;" (assignment_expression "*(int *)((int)handle + 0x1c) = iVar1" (pointer_expression "*(int *)((int)handle + 0x1c)" * (cast_expression "(int *)((int)handle + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)handle + 0x1c)" ( (binary_expression "(int)handle + 0x1c" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "iVar1 = conf_get_int(conf,0x55);" (assignment_expression "iVar1 = conf_get_int(conf,0x55)" identifier = (call_expression "conf_get_int(conf,0x55)" identifier (argument_list "(conf,0x55)" ( identifier , number_literal )))) ;) (expression_statement "*(int *)((int)handle + 0x20) = iVar1;" (assignment_expression "*(int *)((int)handle + 0x20) = iVar1" (pointer_expression "*(int *)((int)handle + 0x20)" * (cast_expression "(int *)((int)handle + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)handle + 0x20)" ( (binary_expression "(int)handle + 0x20" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0001a180(int param_1,undefined4 param_2)\n\n{\n  undefined4 uVar1;\n  \n  uVar1 = FUN_000189a0(param_2,0x4f);\n  *(undefined4 *)(param_1 + 0x10) = uVar1;\n  uVar1 = FUN_000189a0(param_2,0x50);\n  *(undefined4 *)(param_1 + 0x14) = uVar1;\n  uVar1 = FUN_000189a0(param_2,2);\n  *(undefined4 *)(param_1 + 0x18) = uVar1;\n  uVar1 = FUN_000189a0(param_2,0x54);\n  *(undefined4 *)(param_1 + 0x1c) = uVar1;\n  uVar1 = FUN_000189a0(param_2,0x55);\n  *(undefined4 *)(param_1 + 0x20) = uVar1;\n  return;\n}\n\n" (function_definition "void FUN_0001a180(int param_1,undefined4 param_2)\n\n{\n  undefined4 uVar1;\n  \n  uVar1 = FUN_000189a0(param_2,0x4f);\n  *(undefined4 *)(param_1 + 0x10) = uVar1;\n  uVar1 = FUN_000189a0(param_2,0x50);\n  *(undefined4 *)(param_1 + 0x14) = uVar1;\n  uVar1 = FUN_000189a0(param_2,2);\n  *(undefined4 *)(param_1 + 0x18) = uVar1;\n  uVar1 = FUN_000189a0(param_2,0x54);\n  *(undefined4 *)(param_1 + 0x1c) = uVar1;\n  uVar1 = FUN_000189a0(param_2,0x55);\n  *(undefined4 *)(param_1 + 0x20) = uVar1;\n  return;\n}" primitive_type (function_declarator "FUN_0001a180(int param_1,undefined4 param_2)" identifier (parameter_list "(int param_1,undefined4 param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  \n  uVar1 = FUN_000189a0(param_2,0x4f);\n  *(undefined4 *)(param_1 + 0x10) = uVar1;\n  uVar1 = FUN_000189a0(param_2,0x50);\n  *(undefined4 *)(param_1 + 0x14) = uVar1;\n  uVar1 = FUN_000189a0(param_2,2);\n  *(undefined4 *)(param_1 + 0x18) = uVar1;\n  uVar1 = FUN_000189a0(param_2,0x54);\n  *(undefined4 *)(param_1 + 0x1c) = uVar1;\n  uVar1 = FUN_000189a0(param_2,0x55);\n  *(undefined4 *)(param_1 + 0x20) = uVar1;\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (expression_statement "uVar1 = FUN_000189a0(param_2,0x4f);" (assignment_expression "uVar1 = FUN_000189a0(param_2,0x4f)" identifier = (call_expression "FUN_000189a0(param_2,0x4f)" identifier (argument_list "(param_2,0x4f)" ( identifier , number_literal )))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x10) = uVar1;" (assignment_expression "*(undefined4 *)(param_1 + 0x10) = uVar1" (pointer_expression "*(undefined4 *)(param_1 + 0x10)" * (cast_expression "(undefined4 *)(param_1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar1 = FUN_000189a0(param_2,0x50);" (assignment_expression "uVar1 = FUN_000189a0(param_2,0x50)" identifier = (call_expression "FUN_000189a0(param_2,0x50)" identifier (argument_list "(param_2,0x50)" ( identifier , number_literal )))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x14) = uVar1;" (assignment_expression "*(undefined4 *)(param_1 + 0x14) = uVar1" (pointer_expression "*(undefined4 *)(param_1 + 0x14)" * (cast_expression "(undefined4 *)(param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar1 = FUN_000189a0(param_2,2);" (assignment_expression "uVar1 = FUN_000189a0(param_2,2)" identifier = (call_expression "FUN_000189a0(param_2,2)" identifier (argument_list "(param_2,2)" ( identifier , number_literal )))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x18) = uVar1;" (assignment_expression "*(undefined4 *)(param_1 + 0x18) = uVar1" (pointer_expression "*(undefined4 *)(param_1 + 0x18)" * (cast_expression "(undefined4 *)(param_1 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar1 = FUN_000189a0(param_2,0x54);" (assignment_expression "uVar1 = FUN_000189a0(param_2,0x54)" identifier = (call_expression "FUN_000189a0(param_2,0x54)" identifier (argument_list "(param_2,0x54)" ( identifier , number_literal )))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x1c) = uVar1;" (assignment_expression "*(undefined4 *)(param_1 + 0x1c) = uVar1" (pointer_expression "*(undefined4 *)(param_1 + 0x1c)" * (cast_expression "(undefined4 *)(param_1 + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar1 = FUN_000189a0(param_2,0x55);" (assignment_expression "uVar1 = FUN_000189a0(param_2,0x55)" identifier = (call_expression "FUN_000189a0(param_2,0x55)" identifier (argument_list "(param_2,0x55)" ( identifier , number_literal )))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x20) = uVar1;" (assignment_expression "*(undefined4 *)(param_1 + 0x20) = uVar1" (pointer_expression "*(undefined4 *)(param_1 + 0x20)" * (cast_expression "(undefined4 *)(param_1 + 0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) )))) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (return_statement return ;) })))
(function_definition "void FUN_0001a180(int param_1,undefined4 param_2)\n\n{\n  undefined4 uVar1;\n  \n  uVar1 = FUN_000189a0(param_2,0x4f);\n  *(undefined4 *)(param_1 + 0x10) = uVar1;\n  uVar1 = FUN_000189a0(param_2,0x50);\n  *(undefined4 *)(param_1 + 0x14) = uVar1;\n  uVar1 = FUN_000189a0(param_2,2);\n  *(undefined4 *)(param_1 + 0x18) = uVar1;\n  uVar1 = FUN_000189a0(param_2,0x54);\n  *(undefined4 *)(param_1 + 0x1c) = uVar1;\n  uVar1 = FUN_000189a0(param_2,0x55);\n  *(undefined4 *)(param_1 + 0x20) = uVar1;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0001a180(int param_1,undefined4 param_2)" (identifier "FUN_0001a180") (parameter_list "(int param_1,undefined4 param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  \n  uVar1 = FUN_000189a0(param_2,0x4f);\n  *(undefined4 *)(param_1 + 0x10) = uVar1;\n  uVar1 = FUN_000189a0(param_2,0x50);\n  *(undefined4 *)(param_1 + 0x14) = uVar1;\n  uVar1 = FUN_000189a0(param_2,2);\n  *(undefined4 *)(param_1 + 0x18) = uVar1;\n  uVar1 = FUN_000189a0(param_2,0x54);\n  *(undefined4 *)(param_1 + 0x1c) = uVar1;\n  uVar1 = FUN_000189a0(param_2,0x55);\n  *(undefined4 *)(param_1 + 0x20) = uVar1;\n  return;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (expression_statement "uVar1 = FUN_000189a0(param_2,0x4f);" (assignment_expression "uVar1 = FUN_000189a0(param_2,0x4f)" (identifier "uVar1") (= "=") (call_expression "FUN_000189a0(param_2,0x4f)" (identifier "FUN_000189a0") (argument_list "(param_2,0x4f)" (( "(") (identifier "param_2") (, ",") (number_literal "0x4f") () ")")))) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x10) = uVar1;" (assignment_expression "*(undefined4 *)(param_1 + 0x10) = uVar1" (pointer_expression "*(undefined4 *)(param_1 + 0x10)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (identifier "uVar1")) (; ";")) (expression_statement "uVar1 = FUN_000189a0(param_2,0x50);" (assignment_expression "uVar1 = FUN_000189a0(param_2,0x50)" (identifier "uVar1") (= "=") (call_expression "FUN_000189a0(param_2,0x50)" (identifier "FUN_000189a0") (argument_list "(param_2,0x50)" (( "(") (identifier "param_2") (, ",") (number_literal "0x50") () ")")))) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x14) = uVar1;" (assignment_expression "*(undefined4 *)(param_1 + 0x14) = uVar1" (pointer_expression "*(undefined4 *)(param_1 + 0x14)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (identifier "uVar1")) (; ";")) (expression_statement "uVar1 = FUN_000189a0(param_2,2);" (assignment_expression "uVar1 = FUN_000189a0(param_2,2)" (identifier "uVar1") (= "=") (call_expression "FUN_000189a0(param_2,2)" (identifier "FUN_000189a0") (argument_list "(param_2,2)" (( "(") (identifier "param_2") (, ",") (number_literal "2") () ")")))) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x18) = uVar1;" (assignment_expression "*(undefined4 *)(param_1 + 0x18) = uVar1" (pointer_expression "*(undefined4 *)(param_1 + 0x18)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x18)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")")))) (= "=") (identifier "uVar1")) (; ";")) (expression_statement "uVar1 = FUN_000189a0(param_2,0x54);" (assignment_expression "uVar1 = FUN_000189a0(param_2,0x54)" (identifier "uVar1") (= "=") (call_expression "FUN_000189a0(param_2,0x54)" (identifier "FUN_000189a0") (argument_list "(param_2,0x54)" (( "(") (identifier "param_2") (, ",") (number_literal "0x54") () ")")))) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x1c) = uVar1;" (assignment_expression "*(undefined4 *)(param_1 + 0x1c) = uVar1" (pointer_expression "*(undefined4 *)(param_1 + 0x1c)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x1c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1c)" (( "(") (binary_expression "param_1 + 0x1c" (identifier "param_1") (+ "+") (number_literal "0x1c")) () ")")))) (= "=") (identifier "uVar1")) (; ";")) (expression_statement "uVar1 = FUN_000189a0(param_2,0x55);" (assignment_expression "uVar1 = FUN_000189a0(param_2,0x55)" (identifier "uVar1") (= "=") (call_expression "FUN_000189a0(param_2,0x55)" (identifier "FUN_000189a0") (argument_list "(param_2,0x55)" (( "(") (identifier "param_2") (, ",") (number_literal "0x55") () ")")))) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x20) = uVar1;" (assignment_expression "*(undefined4 *)(param_1 + 0x20) = uVar1" (pointer_expression "*(undefined4 *)(param_1 + 0x20)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x20)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x20)" (( "(") (binary_expression "param_1 + 0x20" (identifier "param_1") (+ "+") (number_literal "0x20")) () ")")))) (= "=") (identifier "uVar1")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void function_1(void *handle,type_1 *conf)

{
  int iVar1;
  
  iVar1 = var_1(conf,0x4f);
  *(int *)((int)handle + 0x10) = iVar1;
  iVar1 = var_1(conf,0x50);
  *(int *)((int)handle + 0x14) = iVar1;
  iVar1 = var_1(conf,2);
  *(int *)((int)handle + 0x18) = iVar1;
  iVar1 = var_1(conf,0x54);
  *(int *)((int)handle + 0x1c) = iVar1;
  iVar1 = var_1(conf,0x55);
  *(int *)((int)handle + 0x20) = iVar1;
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal))))) (expression_statement (assignment_expression left: (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))))) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal))))) (expression_statement (assignment_expression left: (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))))) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal))))) (expression_statement (assignment_expression left: (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))))) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal))))) (expression_statement (assignment_expression left: (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))))) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal))))) (expression_statement (assignment_expression left: (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))))) right: (identifier))) (return_statement))))

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

void MASKED(int param_1,undefined4 param_2)

{
  undefined4 uVar1;
  
  uVar1 = FUN_000189a0(param_2,0x4f);
  *(undefined4 *)(param_1 + 0x10) = uVar1;
  uVar1 = FUN_000189a0(param_2,0x50);
  *(undefined4 *)(param_1 + 0x14) = uVar1;
  uVar1 = FUN_000189a0(param_2,2);
  *(undefined4 *)(param_1 + 0x18) = uVar1;
  uVar1 = FUN_000189a0(param_2,0x54);
  *(undefined4 *)(param_1 + 0x1c) = uVar1;
  uVar1 = FUN_000189a0(param_2,0x55);
  *(undefined4 *)(param_1 + 0x20) = uVar1;
  return;
}

