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

int randint_all_free(randint_source *s)

{
  int iVar1;
  int iVar2;
  int *piVar3;
  
  iVar2 = randread_free(s->source);
  piVar3 = __errno_location();
  iVar1 = *piVar3;
  randint_free(s);
  *piVar3 = iVar1;
  return iVar2;
}



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

undefined4 FUN_000153e0(undefined4 *param_1)

{
  int iVar1;
  undefined4 uVar2;
  int *piVar3;
  
  uVar2 = FUN_00015d90(*param_1);
  piVar3 = __errno_location();
  iVar1 = *piVar3;
  FUN_000153b0(param_1);
  *piVar3 = iVar1;
  return uVar2;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x000125c0
ADD EBX,0xbc17
SUB ESP,0x18
MOV EAX,dword ptr [ESP + 0x2c]
PUSH dword ptr [EAX]
CALL 0x00015d90
MOV EDI,EAX
CALL 0x00011340
MOV ESI,dword ptr [EAX]
MOV EBP,EAX
POP EAX
PUSH dword ptr [ESP + 0x2c]
CALL 0x000153b0
MOV dword ptr [EBP],ESI
ADD ESP,0x1c
MOV EAX,EDI
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 FUN_000153e0(undefined4 *param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  \n  uVar2 = FUN_00015d90(*param_1);\n  piVar3 = __errno_location();\n  iVar1 = *piVar3;\n  FUN_000153b0(param_1);\n  *piVar3 = iVar1;\n  return uVar2;\n}\n\n" comment (function_definition "undefined4 FUN_000153e0(undefined4 *param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  \n  uVar2 = FUN_00015d90(*param_1);\n  piVar3 = __errno_location();\n  iVar1 = *piVar3;\n  FUN_000153b0(param_1);\n  *piVar3 = iVar1;\n  return uVar2;\n}" type_identifier (function_declarator "FUN_000153e0(undefined4 *param_1)" identifier (parameter_list "(undefined4 *param_1)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  \n  uVar2 = FUN_00015d90(*param_1);\n  piVar3 = __errno_location();\n  iVar1 = *piVar3;\n  FUN_000153b0(param_1);\n  *piVar3 = iVar1;\n  return uVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (expression_statement "uVar2 = FUN_00015d90(*param_1);" (assignment_expression "uVar2 = FUN_00015d90(*param_1)" identifier = (call_expression "FUN_00015d90(*param_1)" identifier (argument_list "(*param_1)" ( (pointer_expression "*param_1" * identifier) )))) ;) (expression_statement "piVar3 = __errno_location();" (assignment_expression "piVar3 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar1 = *piVar3;" (assignment_expression "iVar1 = *piVar3" identifier = (pointer_expression "*piVar3" * identifier)) ;) (expression_statement "FUN_000153b0(param_1);" (call_expression "FUN_000153b0(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (expression_statement "*piVar3 = iVar1;" (assignment_expression "*piVar3 = iVar1" (pointer_expression "*piVar3" * identifier) = identifier) ;) (return_statement "return uVar2;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nint randint_all_free(randint_source *s)\n\n{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  \n  iVar2 = randread_free(s->source);\n  piVar3 = __errno_location();\n  iVar1 = *piVar3;\n  randint_free(s);\n  *piVar3 = iVar1;\n  return iVar2;\n}\n\n" comment comment (function_definition "int randint_all_free(randint_source *s)\n\n{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  \n  iVar2 = randread_free(s->source);\n  piVar3 = __errno_location();\n  iVar1 = *piVar3;\n  randint_free(s);\n  *piVar3 = iVar1;\n  return iVar2;\n}" primitive_type (function_declarator "randint_all_free(randint_source *s)" identifier (parameter_list "(randint_source *s)" ( (parameter_declaration "randint_source *s" type_identifier (pointer_declarator "*s" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  \n  iVar2 = randread_free(s->source);\n  piVar3 = __errno_location();\n  iVar1 = *piVar3;\n  randint_free(s);\n  *piVar3 = iVar1;\n  return iVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (expression_statement "iVar2 = randread_free(s->source);" (assignment_expression "iVar2 = randread_free(s->source)" identifier = (call_expression "randread_free(s->source)" identifier (argument_list "(s->source)" ( (field_expression "s->source" identifier -> field_identifier) )))) ;) (expression_statement "piVar3 = __errno_location();" (assignment_expression "piVar3 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar1 = *piVar3;" (assignment_expression "iVar1 = *piVar3" identifier = (pointer_expression "*piVar3" * identifier)) ;) (expression_statement "randint_free(s);" (call_expression "randint_free(s)" identifier (argument_list "(s)" ( identifier ))) ;) (expression_statement "*piVar3 = iVar1;" (assignment_expression "*piVar3 = iVar1" (pointer_expression "*piVar3" * identifier) = identifier) ;) (return_statement "return iVar2;" return identifier ;) })))
(translation_unit "undefined4 FUN_000153e0(undefined4 *param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  \n  uVar2 = FUN_00015d90(*param_1);\n  piVar3 = __errno_location();\n  iVar1 = *piVar3;\n  FUN_000153b0(param_1);\n  *piVar3 = iVar1;\n  return uVar2;\n}\n\n" (function_definition "undefined4 FUN_000153e0(undefined4 *param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  \n  uVar2 = FUN_00015d90(*param_1);\n  piVar3 = __errno_location();\n  iVar1 = *piVar3;\n  FUN_000153b0(param_1);\n  *piVar3 = iVar1;\n  return uVar2;\n}" type_identifier (function_declarator "FUN_000153e0(undefined4 *param_1)" identifier (parameter_list "(undefined4 *param_1)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  \n  uVar2 = FUN_00015d90(*param_1);\n  piVar3 = __errno_location();\n  iVar1 = *piVar3;\n  FUN_000153b0(param_1);\n  *piVar3 = iVar1;\n  return uVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (expression_statement "uVar2 = FUN_00015d90(*param_1);" (assignment_expression "uVar2 = FUN_00015d90(*param_1)" identifier = (call_expression "FUN_00015d90(*param_1)" identifier (argument_list "(*param_1)" ( (pointer_expression "*param_1" * identifier) )))) ;) (expression_statement "piVar3 = __errno_location();" (assignment_expression "piVar3 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar1 = *piVar3;" (assignment_expression "iVar1 = *piVar3" identifier = (pointer_expression "*piVar3" * identifier)) ;) (expression_statement "FUN_000153b0(param_1);" (call_expression "FUN_000153b0(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (expression_statement "*piVar3 = iVar1;" (assignment_expression "*piVar3 = iVar1" (pointer_expression "*piVar3" * identifier) = identifier) ;) (return_statement "return uVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (return_statement return IDENT ;) })))
(function_definition "undefined4 FUN_000153e0(undefined4 *param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  \n  uVar2 = FUN_00015d90(*param_1);\n  piVar3 = __errno_location();\n  iVar1 = *piVar3;\n  FUN_000153b0(param_1);\n  *piVar3 = iVar1;\n  return uVar2;\n}" (type_identifier "undefined4") (function_declarator "FUN_000153e0(undefined4 *param_1)" (identifier "FUN_000153e0") (parameter_list "(undefined4 *param_1)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  \n  uVar2 = FUN_00015d90(*param_1);\n  piVar3 = __errno_location();\n  iVar1 = *piVar3;\n  FUN_000153b0(param_1);\n  *piVar3 = iVar1;\n  return uVar2;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "int *piVar3;" (primitive_type "int") (pointer_declarator "*piVar3" (* "*") (identifier "piVar3")) (; ";")) (expression_statement "uVar2 = FUN_00015d90(*param_1);" (assignment_expression "uVar2 = FUN_00015d90(*param_1)" (identifier "uVar2") (= "=") (call_expression "FUN_00015d90(*param_1)" (identifier "FUN_00015d90") (argument_list "(*param_1)" (( "(") (pointer_expression "*param_1" (* "*") (identifier "param_1")) () ")")))) (; ";")) (expression_statement "piVar3 = __errno_location();" (assignment_expression "piVar3 = __errno_location()" (identifier "piVar3") (= "=") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "iVar1 = *piVar3;" (assignment_expression "iVar1 = *piVar3" (identifier "iVar1") (= "=") (pointer_expression "*piVar3" (* "*") (identifier "piVar3"))) (; ";")) (expression_statement "FUN_000153b0(param_1);" (call_expression "FUN_000153b0(param_1)" (identifier "FUN_000153b0") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (expression_statement "*piVar3 = iVar1;" (assignment_expression "*piVar3 = iVar1" (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) (= "=") (identifier "iVar1")) (; ";")) (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}")))

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

int function_1(type_1 *s)

{
  int iVar1;
  int iVar2;
  int *piVar3;
  
  iVar2 = var_1(s->source);
  piVar3 = var_2();
  iVar1 = *piVar3;
  var_3(s);
  *piVar3 = iVar1;
  return iVar2;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (return_statement (identifier)))))

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

undefined4 MASKED(undefined4 *param_1)

{
  int iVar1;
  undefined4 uVar2;
  int *piVar3;
  
  uVar2 = FUN_00015d90(*param_1);
  piVar3 = __errno_location();
  iVar1 = *piVar3;
  FUN_000153b0(param_1);
  *piVar3 = iVar1;
  return uVar2;
}

