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

void sb_scrub_and_add_sb(sb *ptr,sb *s)

{
  size_t sVar1;
  
  scrub_position = s->ptr;
  sb_to_scrub = s;
  sb_check(ptr,s->len);
  sVar1 = do_scrub_chars(scrub_from_sb,ptr->ptr + ptr->len,s->len);
  ptr->len = ptr->len + sVar1;
  sb_to_scrub = (sb *)0x0;
  scrub_position = (char *)0x0;
  return;
}



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

void FUN_00035830(int *param_1,undefined4 *param_2)

{
  int iVar1;
  
  DAT_00088c70 = *param_2;
  DAT_00088c74 = param_2;
  FUN_000356e0();
  iVar1 = FUN_00016450(FUN_00035690,param_1[1] + *param_1,param_2[1]);
  param_1[1] = param_1[1] + iVar1;
  DAT_00088c74 = (undefined4 *)0x0;
  DAT_00088c70 = 0;
  return;
}


PUSH EDI
PUSH ESI
PUSH EBX
MOV EDI,dword ptr [ESP + 0x14]
CALL 0x00016000
ADD EBX,0x4a7c4
MOV ESI,dword ptr [ESP + 0x10]
MOV EAX,dword ptr [EDI]
MOV EDX,dword ptr [EDI + 0x4]
MOV dword ptr [EBX + 0x8c70],EAX
MOV EAX,ESI
MOV dword ptr [EBX + 0x8c74],EDI
CALL 0x000356e0
SUB ESP,0x4
PUSH dword ptr [EDI + 0x4]
MOV EAX,dword ptr [ESI + 0x4]
ADD EAX,dword ptr [ESI]
PUSH EAX
LEA EAX,[EBX + 0xfffb5690]
PUSH EAX
CALL 0x00016450
ADD ESP,0x10
ADD dword ptr [ESI + 0x4],EAX
MOV dword ptr [EBX + 0x8c74],0x0
MOV dword ptr [EBX + 0x8c70],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\nvoid FUN_00035830(int *param_1,undefined4 *param_2)\n\n{\n  int iVar1;\n  \n  DAT_00088c70 = *param_2;\n  DAT_00088c74 = param_2;\n  FUN_000356e0();\n  iVar1 = FUN_00016450(FUN_00035690,param_1[1] + *param_1,param_2[1]);\n  param_1[1] = param_1[1] + iVar1;\n  DAT_00088c74 = (undefined4 *)0x0;\n  DAT_00088c70 = 0;\n  return;\n}\n\n" comment (function_definition "void FUN_00035830(int *param_1,undefined4 *param_2)\n\n{\n  int iVar1;\n  \n  DAT_00088c70 = *param_2;\n  DAT_00088c74 = param_2;\n  FUN_000356e0();\n  iVar1 = FUN_00016450(FUN_00035690,param_1[1] + *param_1,param_2[1]);\n  param_1[1] = param_1[1] + iVar1;\n  DAT_00088c74 = (undefined4 *)0x0;\n  DAT_00088c70 = 0;\n  return;\n}" primitive_type (function_declarator "FUN_00035830(int *param_1,undefined4 *param_2)" identifier (parameter_list "(int *param_1,undefined4 *param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  DAT_00088c70 = *param_2;\n  DAT_00088c74 = param_2;\n  FUN_000356e0();\n  iVar1 = FUN_00016450(FUN_00035690,param_1[1] + *param_1,param_2[1]);\n  param_1[1] = param_1[1] + iVar1;\n  DAT_00088c74 = (undefined4 *)0x0;\n  DAT_00088c70 = 0;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "DAT_00088c70 = *param_2;" (assignment_expression "DAT_00088c70 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "DAT_00088c74 = param_2;" (assignment_expression "DAT_00088c74 = param_2" identifier = identifier) ;) (expression_statement "FUN_000356e0();" (call_expression "FUN_000356e0()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar1 = FUN_00016450(FUN_00035690,param_1[1] + *param_1,param_2[1]);" (assignment_expression "iVar1 = FUN_00016450(FUN_00035690,param_1[1] + *param_1,param_2[1])" identifier = (call_expression "FUN_00016450(FUN_00035690,param_1[1] + *param_1,param_2[1])" identifier (argument_list "(FUN_00035690,param_1[1] + *param_1,param_2[1])" ( identifier , (binary_expression "param_1[1] + *param_1" (subscript_expression "param_1[1]" identifier [ number_literal ]) + (pointer_expression "*param_1" * identifier)) , (subscript_expression "param_2[1]" identifier [ number_literal ]) )))) ;) (expression_statement "param_1[1] = param_1[1] + iVar1;" (assignment_expression "param_1[1] = param_1[1] + iVar1" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "param_1[1] + iVar1" (subscript_expression "param_1[1]" identifier [ number_literal ]) + identifier)) ;) (expression_statement "DAT_00088c74 = (undefined4 *)0x0;" (assignment_expression "DAT_00088c74 = (undefined4 *)0x0" identifier = (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "DAT_00088c70 = 0;" (assignment_expression "DAT_00088c70 = 0" identifier = number_literal) ;) (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 sb_scrub_and_add_sb(sb *ptr,sb *s)\n\n{\n  size_t sVar1;\n  \n  scrub_position = s->ptr;\n  sb_to_scrub = s;\n  sb_check(ptr,s->len);\n  sVar1 = do_scrub_chars(scrub_from_sb,ptr->ptr + ptr->len,s->len);\n  ptr->len = ptr->len + sVar1;\n  sb_to_scrub = (sb *)0x0;\n  scrub_position = (char *)0x0;\n  return;\n}\n\n" comment comment (function_definition "void sb_scrub_and_add_sb(sb *ptr,sb *s)\n\n{\n  size_t sVar1;\n  \n  scrub_position = s->ptr;\n  sb_to_scrub = s;\n  sb_check(ptr,s->len);\n  sVar1 = do_scrub_chars(scrub_from_sb,ptr->ptr + ptr->len,s->len);\n  ptr->len = ptr->len + sVar1;\n  sb_to_scrub = (sb *)0x0;\n  scrub_position = (char *)0x0;\n  return;\n}" primitive_type (function_declarator "sb_scrub_and_add_sb(sb *ptr,sb *s)" identifier (parameter_list "(sb *ptr,sb *s)" ( (parameter_declaration "sb *ptr" type_identifier (pointer_declarator "*ptr" * identifier)) , (parameter_declaration "sb *s" type_identifier (pointer_declarator "*s" * identifier)) ))) (compound_statement "{\n  size_t sVar1;\n  \n  scrub_position = s->ptr;\n  sb_to_scrub = s;\n  sb_check(ptr,s->len);\n  sVar1 = do_scrub_chars(scrub_from_sb,ptr->ptr + ptr->len,s->len);\n  ptr->len = ptr->len + sVar1;\n  sb_to_scrub = (sb *)0x0;\n  scrub_position = (char *)0x0;\n  return;\n}" { (declaration "size_t sVar1;" primitive_type identifier ;) (expression_statement "scrub_position = s->ptr;" (assignment_expression "scrub_position = s->ptr" identifier = (field_expression "s->ptr" identifier -> field_identifier)) ;) (expression_statement "sb_to_scrub = s;" (assignment_expression "sb_to_scrub = s" identifier = identifier) ;) (expression_statement "sb_check(ptr,s->len);" (call_expression "sb_check(ptr,s->len)" identifier (argument_list "(ptr,s->len)" ( identifier , (field_expression "s->len" identifier -> field_identifier) ))) ;) (expression_statement "sVar1 = do_scrub_chars(scrub_from_sb,ptr->ptr + ptr->len,s->len);" (assignment_expression "sVar1 = do_scrub_chars(scrub_from_sb,ptr->ptr + ptr->len,s->len)" identifier = (call_expression "do_scrub_chars(scrub_from_sb,ptr->ptr + ptr->len,s->len)" identifier (argument_list "(scrub_from_sb,ptr->ptr + ptr->len,s->len)" ( identifier , (binary_expression "ptr->ptr + ptr->len" (field_expression "ptr->ptr" identifier -> field_identifier) + (field_expression "ptr->len" identifier -> field_identifier)) , (field_expression "s->len" identifier -> field_identifier) )))) ;) (expression_statement "ptr->len = ptr->len + sVar1;" (assignment_expression "ptr->len = ptr->len + sVar1" (field_expression "ptr->len" identifier -> field_identifier) = (binary_expression "ptr->len + sVar1" (field_expression "ptr->len" identifier -> field_identifier) + identifier)) ;) (expression_statement "sb_to_scrub = (sb *)0x0;" (assignment_expression "sb_to_scrub = (sb *)0x0" identifier = (cast_expression "(sb *)0x0" ( (type_descriptor "sb *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "scrub_position = (char *)0x0;" (assignment_expression "scrub_position = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00035830(int *param_1,undefined4 *param_2)\n\n{\n  int iVar1;\n  \n  DAT_00088c70 = *param_2;\n  DAT_00088c74 = param_2;\n  FUN_000356e0();\n  iVar1 = FUN_00016450(FUN_00035690,param_1[1] + *param_1,param_2[1]);\n  param_1[1] = param_1[1] + iVar1;\n  DAT_00088c74 = (undefined4 *)0x0;\n  DAT_00088c70 = 0;\n  return;\n}\n\n" (function_definition "void FUN_00035830(int *param_1,undefined4 *param_2)\n\n{\n  int iVar1;\n  \n  DAT_00088c70 = *param_2;\n  DAT_00088c74 = param_2;\n  FUN_000356e0();\n  iVar1 = FUN_00016450(FUN_00035690,param_1[1] + *param_1,param_2[1]);\n  param_1[1] = param_1[1] + iVar1;\n  DAT_00088c74 = (undefined4 *)0x0;\n  DAT_00088c70 = 0;\n  return;\n}" primitive_type (function_declarator "FUN_00035830(int *param_1,undefined4 *param_2)" identifier (parameter_list "(int *param_1,undefined4 *param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  DAT_00088c70 = *param_2;\n  DAT_00088c74 = param_2;\n  FUN_000356e0();\n  iVar1 = FUN_00016450(FUN_00035690,param_1[1] + *param_1,param_2[1]);\n  param_1[1] = param_1[1] + iVar1;\n  DAT_00088c74 = (undefined4 *)0x0;\n  DAT_00088c70 = 0;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "DAT_00088c70 = *param_2;" (assignment_expression "DAT_00088c70 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "DAT_00088c74 = param_2;" (assignment_expression "DAT_00088c74 = param_2" identifier = identifier) ;) (expression_statement "FUN_000356e0();" (call_expression "FUN_000356e0()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar1 = FUN_00016450(FUN_00035690,param_1[1] + *param_1,param_2[1]);" (assignment_expression "iVar1 = FUN_00016450(FUN_00035690,param_1[1] + *param_1,param_2[1])" identifier = (call_expression "FUN_00016450(FUN_00035690,param_1[1] + *param_1,param_2[1])" identifier (argument_list "(FUN_00035690,param_1[1] + *param_1,param_2[1])" ( identifier , (binary_expression "param_1[1] + *param_1" (subscript_expression "param_1[1]" identifier [ number_literal ]) + (pointer_expression "*param_1" * identifier)) , (subscript_expression "param_2[1]" identifier [ number_literal ]) )))) ;) (expression_statement "param_1[1] = param_1[1] + iVar1;" (assignment_expression "param_1[1] = param_1[1] + iVar1" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "param_1[1] + iVar1" (subscript_expression "param_1[1]" identifier [ number_literal ]) + identifier)) ;) (expression_statement "DAT_00088c74 = (undefined4 *)0x0;" (assignment_expression "DAT_00088c74 = (undefined4 *)0x0" identifier = (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "DAT_00088c70 = 0;" (assignment_expression "DAT_00088c70 = 0" identifier = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (binary_expression (subscript_expression IDENT [ LIT ]) + (pointer_expression * IDENT)) , (subscript_expression IDENT [ LIT ]) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (subscript_expression IDENT [ LIT ]) + IDENT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (return_statement return ;) })))
(function_definition "void FUN_00035830(int *param_1,undefined4 *param_2)\n\n{\n  int iVar1;\n  \n  DAT_00088c70 = *param_2;\n  DAT_00088c74 = param_2;\n  FUN_000356e0();\n  iVar1 = FUN_00016450(FUN_00035690,param_1[1] + *param_1,param_2[1]);\n  param_1[1] = param_1[1] + iVar1;\n  DAT_00088c74 = (undefined4 *)0x0;\n  DAT_00088c70 = 0;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00035830(int *param_1,undefined4 *param_2)" (identifier "FUN_00035830") (parameter_list "(int *param_1,undefined4 *param_2)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined4 *param_2" (type_identifier "undefined4") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  DAT_00088c70 = *param_2;\n  DAT_00088c74 = param_2;\n  FUN_000356e0();\n  iVar1 = FUN_00016450(FUN_00035690,param_1[1] + *param_1,param_2[1]);\n  param_1[1] = param_1[1] + iVar1;\n  DAT_00088c74 = (undefined4 *)0x0;\n  DAT_00088c70 = 0;\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (expression_statement "DAT_00088c70 = *param_2;" (assignment_expression "DAT_00088c70 = *param_2" (identifier "DAT_00088c70") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (expression_statement "DAT_00088c74 = param_2;" (assignment_expression "DAT_00088c74 = param_2" (identifier "DAT_00088c74") (= "=") (identifier "param_2")) (; ";")) (expression_statement "FUN_000356e0();" (call_expression "FUN_000356e0()" (identifier "FUN_000356e0") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "iVar1 = FUN_00016450(FUN_00035690,param_1[1] + *param_1,param_2[1]);" (assignment_expression "iVar1 = FUN_00016450(FUN_00035690,param_1[1] + *param_1,param_2[1])" (identifier "iVar1") (= "=") (call_expression "FUN_00016450(FUN_00035690,param_1[1] + *param_1,param_2[1])" (identifier "FUN_00016450") (argument_list "(FUN_00035690,param_1[1] + *param_1,param_2[1])" (( "(") (identifier "FUN_00035690") (, ",") (binary_expression "param_1[1] + *param_1" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (+ "+") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (, ",") (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) () ")")))) (; ";")) (expression_statement "param_1[1] = param_1[1] + iVar1;" (assignment_expression "param_1[1] = param_1[1] + iVar1" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "param_1[1] + iVar1" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (+ "+") (identifier "iVar1"))) (; ";")) (expression_statement "DAT_00088c74 = (undefined4 *)0x0;" (assignment_expression "DAT_00088c74 = (undefined4 *)0x0" (identifier "DAT_00088c74") (= "=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (expression_statement "DAT_00088c70 = 0;" (assignment_expression "DAT_00088c70 = 0" (identifier "DAT_00088c70") (= "=") (number_literal "0")) (; ";")) (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(type_1 *ptr,type_1 *s)

{
  size_t var_3;
  
  scrub_position = s->ptr;
  sb_to_scrub = s;
  var_1(ptr,s->len);
  var_3 = var_2(scrub_from_sb,ptr->ptr + ptr->len,s->len);
  ptr->len = ptr->len + var_3;
  sb_to_scrub = (type_1 *)0x0;
  scrub_position = (char *)0x0;
  return;
}


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

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

void MASKED(int *param_1,undefined4 *param_2)

{
  int iVar1;
  
  DAT_00088c70 = *param_2;
  DAT_00088c74 = param_2;
  FUN_000356e0();
  iVar1 = FUN_00016450(FUN_00035690,param_1[1] + *param_1,param_2[1]);
  param_1[1] = param_1[1] + iVar1;
  DAT_00088c74 = (undefined4 *)0x0;
  DAT_00088c70 = 0;
  return;
}

