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

void lang_leave_overlay_section(fill_type *fill,lang_output_section_phdr_list *phdrs)

{
  byte bVar1;
  byte *__s;
  undefined *puVar2;
  size_t sVar3;
  byte *__s_00;
  char *pcVar4;
  etree_type *peVar5;
  etree_type *lhs;
  byte *pbVar6;
  byte *pbVar7;
  
  __s = (byte *)current_section->name;
  lang_leave_output_section_statement(fill,"*default*",phdrs,(char *)0x0);
  sVar3 = strlen((char *)__s);
  __s_00 = (byte *)xmalloc(sVar3 + 1);
  puVar2 = PTR__sch_istable_0008bfb8;
  bVar1 = *__s;
  pbVar7 = __s;
  pbVar6 = __s_00;
  while (bVar1 != 0) {
    if (((puVar2[(uint)bVar1 * 2] & 0x8c) != 0) || (bVar1 == 0x5f)) {
      *pbVar6 = bVar1;
      pbVar6 = pbVar6 + 1;
    }
    pbVar7 = pbVar7 + 1;
    bVar1 = *pbVar7;
  }
  *pbVar6 = 0;
  sVar3 = strlen((char *)__s_00);
  pcVar4 = (char *)xmalloc(sVar3 + 0xe);
  sprintf(pcVar4,"__load_start_%s",__s_00);
  peVar5 = exp_nameop(0x144,(char *)__s);
  peVar5 = exp_provide(pcVar4,peVar5,0);
  lang_add_assignment(peVar5);
  sVar3 = strlen((char *)__s_00);
  pcVar4 = (char *)xmalloc(sVar3 + 0xd);
  sprintf(pcVar4,"__load_stop_%s",__s_00);
  peVar5 = exp_nameop(0x141,(char *)__s);
  lhs = exp_nameop(0x144,(char *)__s);
  peVar5 = exp_binop(0x2b,lhs,peVar5);
  peVar5 = exp_provide(pcVar4,peVar5,0);
  lang_add_assignment(peVar5);
  free(__s_00);
  return;
}



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

void FUN_000273d0(undefined4 param_1,undefined4 param_2)

{
  byte bVar1;
  byte *__s;
  undefined *puVar2;
  size_t sVar3;
  byte *__s_00;
  char *pcVar4;
  undefined4 uVar5;
  undefined4 uVar6;
  byte *pbVar7;
  byte *pbVar8;
  
  __s = *(byte **)(DAT_0008c7b8 + 0x18);
  FUN_00026ac0(param_1,"*default*",param_2,0);
  sVar3 = strlen((char *)__s);
  __s_00 = (byte *)xmalloc(sVar3 + 1);
  puVar2 = PTR__sch_istable_0008bfb8;
  bVar1 = *__s;
  pbVar8 = __s;
  pbVar7 = __s_00;
  while (bVar1 != 0) {
    if (((puVar2[(uint)bVar1 * 2] & 0x8c) != 0) || (bVar1 == 0x5f)) {
      *pbVar7 = bVar1;
      pbVar7 = pbVar7 + 1;
    }
    pbVar8 = pbVar8 + 1;
    bVar1 = *pbVar8;
  }
  *pbVar7 = 0;
  sVar3 = strlen((char *)__s_00);
  pcVar4 = (char *)xmalloc(sVar3 + 0xe);
  sprintf(pcVar4,"__load_start_%s",__s_00);
  uVar5 = FUN_0002f650(0x144,__s);
  uVar5 = FUN_0002f740(pcVar4,uVar5,0);
  FUN_000269c0(uVar5);
  sVar3 = strlen((char *)__s_00);
  pcVar4 = (char *)xmalloc(sVar3 + 0xd);
  sprintf(pcVar4,"__load_stop_%s",__s_00);
  uVar5 = FUN_0002f650(0x141,__s);
  uVar6 = FUN_0002f650(0x144,__s);
  uVar5 = FUN_0002f4d0(0x2b,uVar6,uVar5);
  uVar5 = FUN_0002f740(pcVar4,uVar5,0);
  FUN_000269c0(uVar5);
  free(__s_00);
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00015a20
ADD EBX,0x64c27
SUB ESP,0x1c
MOV EAX,dword ptr [EBX + 0x7b8]
MOV EDI,dword ptr [EAX + 0x18]
LEA EAX,[EBX + 0xfffb10f5]
MOV dword ptr [ESP + 0xc],EDI
PUSH 0x0
PUSH dword ptr [ESP + 0x38]
PUSH EAX
PUSH dword ptr [ESP + 0x3c]
CALL 0x00026ac0
MOV dword ptr [ESP],EDI
CALL 0x000146f0
ADD EAX,0x1
MOV dword ptr [ESP],EAX
CALL 0x00014c68
ADD ESP,0x10
MOV ESI,EAX
MOVZX EAX,byte ptr [EDI]
TEST AL,AL
JZ 0x00027520
MOV EBP,dword ptr [EBX + 0xffffffb8]
MOV EDX,EDI
MOV ECX,ESI
LEA ESI,[ESI]
MOVZX EDI,AL
TEST byte ptr [EBP + EDI*0x2],0x8c
JNZ 0x00027446
CMP AL,0x5f
JNZ 0x0002744b
MOV byte ptr [ECX],AL
ADD ECX,0x1
ADD EDX,0x1
MOVZX EAX,byte ptr [EDX]
TEST AL,AL
JNZ 0x00027438
SUB ESP,0xc
MOV byte ptr [ECX],0x0
PUSH ESI
CALL 0x000146f0
ADD EAX,0xe
MOV dword ptr [ESP],EAX
CALL 0x00014c68
ADD ESP,0xc
MOV EDI,EAX
LEA EAX,[EBX + 0xfffc00ec]
PUSH ESI
PUSH EAX
PUSH EDI
CALL 0x000149c0
POP EAX
POP EDX
MOV EBP,dword ptr [ESP + 0x14]
PUSH EBP
PUSH 0x144
CALL 0x0002f650
ADD ESP,0xc
PUSH 0x0
PUSH EAX
PUSH EDI
CALL 0x0002f740
MOV dword ptr [ESP],EAX
CALL 0x000269c0
MOV dword ptr [ESP],ESI
CALL 0x000146f0
ADD EAX,0xd
MOV dword ptr [ESP],EAX
CALL 0x00014c68
ADD ESP,0xc
MOV EDI,EAX
LEA EAX,[EBX + 0xfffc00fc]
PUSH ESI
PUSH EAX
PUSH EDI
CALL 0x000149c0
POP ECX
POP EAX
MOV dword ptr [ESP + 0x14],EBP
PUSH EBP
PUSH 0x141
CALL 0x0002f650
MOV EBP,EAX
POP EAX
POP EDX
PUSH dword ptr [ESP + 0x14]
PUSH 0x144
CALL 0x0002f650
ADD ESP,0xc
PUSH EBP
PUSH EAX
PUSH 0x2b
CALL 0x0002f4d0
ADD ESP,0xc
PUSH 0x0
PUSH EAX
PUSH EDI
CALL 0x0002f740
MOV dword ptr [ESP],EAX
CALL 0x000269c0
MOV dword ptr [ESP],ESI
CALL 0x00014c50
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV ECX,ESI
JMP 0x00027455
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_000273d0(undefined4 param_1,undefined4 param_2)\n\n{\n  byte bVar1;\n  byte *__s;\n  undefined *puVar2;\n  size_t sVar3;\n  byte *__s_00;\n  char *pcVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  byte *pbVar7;\n  byte *pbVar8;\n  \n  __s = *(byte **)(DAT_0008c7b8 + 0x18);\n  FUN_00026ac0(param_1,"*default*",param_2,0);\n  sVar3 = strlen((char *)__s);\n  __s_00 = (byte *)xmalloc(sVar3 + 1);\n  puVar2 = PTR__sch_istable_0008bfb8;\n  bVar1 = *__s;\n  pbVar8 = __s;\n  pbVar7 = __s_00;\n  while (bVar1 != 0) {\n    if (((puVar2[(uint)bVar1 * 2] & 0x8c) != 0) || (bVar1 == 0x5f)) {\n      *pbVar7 = bVar1;\n      pbVar7 = pbVar7 + 1;\n    }\n    pbVar8 = pbVar8 + 1;\n    bVar1 = *pbVar8;\n  }\n  *pbVar7 = 0;\n  sVar3 = strlen((char *)__s_00);\n  pcVar4 = (char *)xmalloc(sVar3 + 0xe);\n  sprintf(pcVar4,"__load_start_%s",__s_00);\n  uVar5 = FUN_0002f650(0x144,__s);\n  uVar5 = FUN_0002f740(pcVar4,uVar5,0);\n  FUN_000269c0(uVar5);\n  sVar3 = strlen((char *)__s_00);\n  pcVar4 = (char *)xmalloc(sVar3 + 0xd);\n  sprintf(pcVar4,"__load_stop_%s",__s_00);\n  uVar5 = FUN_0002f650(0x141,__s);\n  uVar6 = FUN_0002f650(0x144,__s);\n  uVar5 = FUN_0002f4d0(0x2b,uVar6,uVar5);\n  uVar5 = FUN_0002f740(pcVar4,uVar5,0);\n  FUN_000269c0(uVar5);\n  free(__s_00);\n  return;\n}\n\n" comment (function_definition "void FUN_000273d0(undefined4 param_1,undefined4 param_2)\n\n{\n  byte bVar1;\n  byte *__s;\n  undefined *puVar2;\n  size_t sVar3;\n  byte *__s_00;\n  char *pcVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  byte *pbVar7;\n  byte *pbVar8;\n  \n  __s = *(byte **)(DAT_0008c7b8 + 0x18);\n  FUN_00026ac0(param_1,"*default*",param_2,0);\n  sVar3 = strlen((char *)__s);\n  __s_00 = (byte *)xmalloc(sVar3 + 1);\n  puVar2 = PTR__sch_istable_0008bfb8;\n  bVar1 = *__s;\n  pbVar8 = __s;\n  pbVar7 = __s_00;\n  while (bVar1 != 0) {\n    if (((puVar2[(uint)bVar1 * 2] & 0x8c) != 0) || (bVar1 == 0x5f)) {\n      *pbVar7 = bVar1;\n      pbVar7 = pbVar7 + 1;\n    }\n    pbVar8 = pbVar8 + 1;\n    bVar1 = *pbVar8;\n  }\n  *pbVar7 = 0;\n  sVar3 = strlen((char *)__s_00);\n  pcVar4 = (char *)xmalloc(sVar3 + 0xe);\n  sprintf(pcVar4,"__load_start_%s",__s_00);\n  uVar5 = FUN_0002f650(0x144,__s);\n  uVar5 = FUN_0002f740(pcVar4,uVar5,0);\n  FUN_000269c0(uVar5);\n  sVar3 = strlen((char *)__s_00);\n  pcVar4 = (char *)xmalloc(sVar3 + 0xd);\n  sprintf(pcVar4,"__load_stop_%s",__s_00);\n  uVar5 = FUN_0002f650(0x141,__s);\n  uVar6 = FUN_0002f650(0x144,__s);\n  uVar5 = FUN_0002f4d0(0x2b,uVar6,uVar5);\n  uVar5 = FUN_0002f740(pcVar4,uVar5,0);\n  FUN_000269c0(uVar5);\n  free(__s_00);\n  return;\n}" primitive_type (function_declarator "FUN_000273d0(undefined4 param_1,undefined4 param_2)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  byte bVar1;\n  byte *__s;\n  undefined *puVar2;\n  size_t sVar3;\n  byte *__s_00;\n  char *pcVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  byte *pbVar7;\n  byte *pbVar8;\n  \n  __s = *(byte **)(DAT_0008c7b8 + 0x18);\n  FUN_00026ac0(param_1,"*default*",param_2,0);\n  sVar3 = strlen((char *)__s);\n  __s_00 = (byte *)xmalloc(sVar3 + 1);\n  puVar2 = PTR__sch_istable_0008bfb8;\n  bVar1 = *__s;\n  pbVar8 = __s;\n  pbVar7 = __s_00;\n  while (bVar1 != 0) {\n    if (((puVar2[(uint)bVar1 * 2] & 0x8c) != 0) || (bVar1 == 0x5f)) {\n      *pbVar7 = bVar1;\n      pbVar7 = pbVar7 + 1;\n    }\n    pbVar8 = pbVar8 + 1;\n    bVar1 = *pbVar8;\n  }\n  *pbVar7 = 0;\n  sVar3 = strlen((char *)__s_00);\n  pcVar4 = (char *)xmalloc(sVar3 + 0xe);\n  sprintf(pcVar4,"__load_start_%s",__s_00);\n  uVar5 = FUN_0002f650(0x144,__s);\n  uVar5 = FUN_0002f740(pcVar4,uVar5,0);\n  FUN_000269c0(uVar5);\n  sVar3 = strlen((char *)__s_00);\n  pcVar4 = (char *)xmalloc(sVar3 + 0xd);\n  sprintf(pcVar4,"__load_stop_%s",__s_00);\n  uVar5 = FUN_0002f650(0x141,__s);\n  uVar6 = FUN_0002f650(0x144,__s);\n  uVar5 = FUN_0002f4d0(0x2b,uVar6,uVar5);\n  uVar5 = FUN_0002f740(pcVar4,uVar5,0);\n  FUN_000269c0(uVar5);\n  free(__s_00);\n  return;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "byte *__s;" type_identifier (pointer_declarator "*__s" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "size_t sVar3;" primitive_type identifier ;) (declaration "byte *__s_00;" type_identifier (pointer_declarator "*__s_00" * identifier) ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (declaration "byte *pbVar7;" type_identifier (pointer_declarator "*pbVar7" * identifier) ;) (declaration "byte *pbVar8;" type_identifier (pointer_declarator "*pbVar8" * identifier) ;) (expression_statement "__s = *(byte **)(DAT_0008c7b8 + 0x18);" (assignment_expression "__s = *(byte **)(DAT_0008c7b8 + 0x18)" identifier = (pointer_expression "*(byte **)(DAT_0008c7b8 + 0x18)" * (cast_expression "(byte **)(DAT_0008c7b8 + 0x18)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(DAT_0008c7b8 + 0x18)" ( (binary_expression "DAT_0008c7b8 + 0x18" identifier + number_literal) ))))) ;) (expression_statement "FUN_00026ac0(param_1,"*default*",param_2,0);" (call_expression "FUN_00026ac0(param_1,"*default*",param_2,0)" identifier (argument_list "(param_1,"*default*",param_2,0)" ( identifier , (string_literal ""*default*"" " string_content ") , identifier , number_literal ))) ;) (expression_statement "sVar3 = strlen((char *)__s);" (assignment_expression "sVar3 = strlen((char *)__s)" identifier = (call_expression "strlen((char *)__s)" identifier (argument_list "((char *)__s)" ( (cast_expression "(char *)__s" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) (expression_statement "__s_00 = (byte *)xmalloc(sVar3 + 1);" (assignment_expression "__s_00 = (byte *)xmalloc(sVar3 + 1)" identifier = (cast_expression "(byte *)xmalloc(sVar3 + 1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(sVar3 + 1)" identifier (argument_list "(sVar3 + 1)" ( (binary_expression "sVar3 + 1" identifier + number_literal) ))))) ;) (expression_statement "puVar2 = PTR__sch_istable_0008bfb8;" (assignment_expression "puVar2 = PTR__sch_istable_0008bfb8" identifier = identifier) ;) (expression_statement "bVar1 = *__s;" (assignment_expression "bVar1 = *__s" identifier = (pointer_expression "*__s" * identifier)) ;) (expression_statement "pbVar8 = __s;" (assignment_expression "pbVar8 = __s" identifier = identifier) ;) (expression_statement "pbVar7 = __s_00;" (assignment_expression "pbVar7 = __s_00" identifier = identifier) ;) (while_statement "while (bVar1 != 0) {\n    if (((puVar2[(uint)bVar1 * 2] & 0x8c) != 0) || (bVar1 == 0x5f)) {\n      *pbVar7 = bVar1;\n      pbVar7 = pbVar7 + 1;\n    }\n    pbVar8 = pbVar8 + 1;\n    bVar1 = *pbVar8;\n  }" while (parenthesized_expression "(bVar1 != 0)" ( (binary_expression "bVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    if (((puVar2[(uint)bVar1 * 2] & 0x8c) != 0) || (bVar1 == 0x5f)) {\n      *pbVar7 = bVar1;\n      pbVar7 = pbVar7 + 1;\n    }\n    pbVar8 = pbVar8 + 1;\n    bVar1 = *pbVar8;\n  }" { (if_statement "if (((puVar2[(uint)bVar1 * 2] & 0x8c) != 0) || (bVar1 == 0x5f)) {\n      *pbVar7 = bVar1;\n      pbVar7 = pbVar7 + 1;\n    }" if (parenthesized_expression "(((puVar2[(uint)bVar1 * 2] & 0x8c) != 0) || (bVar1 == 0x5f))" ( (binary_expression "((puVar2[(uint)bVar1 * 2] & 0x8c) != 0) || (bVar1 == 0x5f)" (parenthesized_expression "((puVar2[(uint)bVar1 * 2] & 0x8c) != 0)" ( (binary_expression "(puVar2[(uint)bVar1 * 2] & 0x8c) != 0" (parenthesized_expression "(puVar2[(uint)bVar1 * 2] & 0x8c)" ( (binary_expression "puVar2[(uint)bVar1 * 2] & 0x8c" (subscript_expression "puVar2[(uint)bVar1 * 2]" identifier [ (binary_expression "(uint)bVar1 * 2" (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal) ]) & number_literal) )) != number_literal) )) || (parenthesized_expression "(bVar1 == 0x5f)" ( (binary_expression "bVar1 == 0x5f" identifier == number_literal) ))) )) (compound_statement "{\n      *pbVar7 = bVar1;\n      pbVar7 = pbVar7 + 1;\n    }" { (expression_statement "*pbVar7 = bVar1;" (assignment_expression "*pbVar7 = bVar1" (pointer_expression "*pbVar7" * identifier) = identifier) ;) (expression_statement "pbVar7 = pbVar7 + 1;" (assignment_expression "pbVar7 = pbVar7 + 1" identifier = (binary_expression "pbVar7 + 1" identifier + number_literal)) ;) })) (expression_statement "pbVar8 = pbVar8 + 1;" (assignment_expression "pbVar8 = pbVar8 + 1" identifier = (binary_expression "pbVar8 + 1" identifier + number_literal)) ;) (expression_statement "bVar1 = *pbVar8;" (assignment_expression "bVar1 = *pbVar8" identifier = (pointer_expression "*pbVar8" * identifier)) ;) })) (expression_statement "*pbVar7 = 0;" (assignment_expression "*pbVar7 = 0" (pointer_expression "*pbVar7" * identifier) = number_literal) ;) (expression_statement "sVar3 = strlen((char *)__s_00);" (assignment_expression "sVar3 = strlen((char *)__s_00)" identifier = (call_expression "strlen((char *)__s_00)" identifier (argument_list "((char *)__s_00)" ( (cast_expression "(char *)__s_00" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) (expression_statement "pcVar4 = (char *)xmalloc(sVar3 + 0xe);" (assignment_expression "pcVar4 = (char *)xmalloc(sVar3 + 0xe)" identifier = (cast_expression "(char *)xmalloc(sVar3 + 0xe)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(sVar3 + 0xe)" identifier (argument_list "(sVar3 + 0xe)" ( (binary_expression "sVar3 + 0xe" identifier + number_literal) ))))) ;) (expression_statement "sprintf(pcVar4,"__load_start_%s",__s_00);" (call_expression "sprintf(pcVar4,"__load_start_%s",__s_00)" identifier (argument_list "(pcVar4,"__load_start_%s",__s_00)" ( identifier , (string_literal ""__load_start_%s"" " string_content ") , identifier ))) ;) (expression_statement "uVar5 = FUN_0002f650(0x144,__s);" (assignment_expression "uVar5 = FUN_0002f650(0x144,__s)" identifier = (call_expression "FUN_0002f650(0x144,__s)" identifier (argument_list "(0x144,__s)" ( number_literal , identifier )))) ;) (expression_statement "uVar5 = FUN_0002f740(pcVar4,uVar5,0);" (assignment_expression "uVar5 = FUN_0002f740(pcVar4,uVar5,0)" identifier = (call_expression "FUN_0002f740(pcVar4,uVar5,0)" identifier (argument_list "(pcVar4,uVar5,0)" ( identifier , identifier , number_literal )))) ;) (expression_statement "FUN_000269c0(uVar5);" (call_expression "FUN_000269c0(uVar5)" identifier (argument_list "(uVar5)" ( identifier ))) ;) (expression_statement "sVar3 = strlen((char *)__s_00);" (assignment_expression "sVar3 = strlen((char *)__s_00)" identifier = (call_expression "strlen((char *)__s_00)" identifier (argument_list "((char *)__s_00)" ( (cast_expression "(char *)__s_00" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) (expression_statement "pcVar4 = (char *)xmalloc(sVar3 + 0xd);" (assignment_expression "pcVar4 = (char *)xmalloc(sVar3 + 0xd)" identifier = (cast_expression "(char *)xmalloc(sVar3 + 0xd)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(sVar3 + 0xd)" identifier (argument_list "(sVar3 + 0xd)" ( (binary_expression "sVar3 + 0xd" identifier + number_literal) ))))) ;) (expression_statement "sprintf(pcVar4,"__load_stop_%s",__s_00);" (call_expression "sprintf(pcVar4,"__load_stop_%s",__s_00)" identifier (argument_list "(pcVar4,"__load_stop_%s",__s_00)" ( identifier , (string_literal ""__load_stop_%s"" " string_content ") , identifier ))) ;) (expression_statement "uVar5 = FUN_0002f650(0x141,__s);" (assignment_expression "uVar5 = FUN_0002f650(0x141,__s)" identifier = (call_expression "FUN_0002f650(0x141,__s)" identifier (argument_list "(0x141,__s)" ( number_literal , identifier )))) ;) (expression_statement "uVar6 = FUN_0002f650(0x144,__s);" (assignment_expression "uVar6 = FUN_0002f650(0x144,__s)" identifier = (call_expression "FUN_0002f650(0x144,__s)" identifier (argument_list "(0x144,__s)" ( number_literal , identifier )))) ;) (expression_statement "uVar5 = FUN_0002f4d0(0x2b,uVar6,uVar5);" (assignment_expression "uVar5 = FUN_0002f4d0(0x2b,uVar6,uVar5)" identifier = (call_expression "FUN_0002f4d0(0x2b,uVar6,uVar5)" identifier (argument_list "(0x2b,uVar6,uVar5)" ( number_literal , identifier , identifier )))) ;) (expression_statement "uVar5 = FUN_0002f740(pcVar4,uVar5,0);" (assignment_expression "uVar5 = FUN_0002f740(pcVar4,uVar5,0)" identifier = (call_expression "FUN_0002f740(pcVar4,uVar5,0)" identifier (argument_list "(pcVar4,uVar5,0)" ( identifier , identifier , number_literal )))) ;) (expression_statement "FUN_000269c0(uVar5);" (call_expression "FUN_000269c0(uVar5)" identifier (argument_list "(uVar5)" ( identifier ))) ;) (expression_statement "free(__s_00);" (call_expression "free(__s_00)" identifier (argument_list "(__s_00)" ( 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 lang_leave_overlay_section(fill_type *fill,lang_output_section_phdr_list *phdrs)\n\n{\n  byte bVar1;\n  byte *__s;\n  undefined *puVar2;\n  size_t sVar3;\n  byte *__s_00;\n  char *pcVar4;\n  etree_type *peVar5;\n  etree_type *lhs;\n  byte *pbVar6;\n  byte *pbVar7;\n  \n  __s = (byte *)current_section->name;\n  lang_leave_output_section_statement(fill,"*default*",phdrs,(char *)0x0);\n  sVar3 = strlen((char *)__s);\n  __s_00 = (byte *)xmalloc(sVar3 + 1);\n  puVar2 = PTR__sch_istable_0008bfb8;\n  bVar1 = *__s;\n  pbVar7 = __s;\n  pbVar6 = __s_00;\n  while (bVar1 != 0) {\n    if (((puVar2[(uint)bVar1 * 2] & 0x8c) != 0) || (bVar1 == 0x5f)) {\n      *pbVar6 = bVar1;\n      pbVar6 = pbVar6 + 1;\n    }\n    pbVar7 = pbVar7 + 1;\n    bVar1 = *pbVar7;\n  }\n  *pbVar6 = 0;\n  sVar3 = strlen((char *)__s_00);\n  pcVar4 = (char *)xmalloc(sVar3 + 0xe);\n  sprintf(pcVar4,"__load_start_%s",__s_00);\n  peVar5 = exp_nameop(0x144,(char *)__s);\n  peVar5 = exp_provide(pcVar4,peVar5,0);\n  lang_add_assignment(peVar5);\n  sVar3 = strlen((char *)__s_00);\n  pcVar4 = (char *)xmalloc(sVar3 + 0xd);\n  sprintf(pcVar4,"__load_stop_%s",__s_00);\n  peVar5 = exp_nameop(0x141,(char *)__s);\n  lhs = exp_nameop(0x144,(char *)__s);\n  peVar5 = exp_binop(0x2b,lhs,peVar5);\n  peVar5 = exp_provide(pcVar4,peVar5,0);\n  lang_add_assignment(peVar5);\n  free(__s_00);\n  return;\n}\n\n" comment comment (function_definition "void lang_leave_overlay_section(fill_type *fill,lang_output_section_phdr_list *phdrs)\n\n{\n  byte bVar1;\n  byte *__s;\n  undefined *puVar2;\n  size_t sVar3;\n  byte *__s_00;\n  char *pcVar4;\n  etree_type *peVar5;\n  etree_type *lhs;\n  byte *pbVar6;\n  byte *pbVar7;\n  \n  __s = (byte *)current_section->name;\n  lang_leave_output_section_statement(fill,"*default*",phdrs,(char *)0x0);\n  sVar3 = strlen((char *)__s);\n  __s_00 = (byte *)xmalloc(sVar3 + 1);\n  puVar2 = PTR__sch_istable_0008bfb8;\n  bVar1 = *__s;\n  pbVar7 = __s;\n  pbVar6 = __s_00;\n  while (bVar1 != 0) {\n    if (((puVar2[(uint)bVar1 * 2] & 0x8c) != 0) || (bVar1 == 0x5f)) {\n      *pbVar6 = bVar1;\n      pbVar6 = pbVar6 + 1;\n    }\n    pbVar7 = pbVar7 + 1;\n    bVar1 = *pbVar7;\n  }\n  *pbVar6 = 0;\n  sVar3 = strlen((char *)__s_00);\n  pcVar4 = (char *)xmalloc(sVar3 + 0xe);\n  sprintf(pcVar4,"__load_start_%s",__s_00);\n  peVar5 = exp_nameop(0x144,(char *)__s);\n  peVar5 = exp_provide(pcVar4,peVar5,0);\n  lang_add_assignment(peVar5);\n  sVar3 = strlen((char *)__s_00);\n  pcVar4 = (char *)xmalloc(sVar3 + 0xd);\n  sprintf(pcVar4,"__load_stop_%s",__s_00);\n  peVar5 = exp_nameop(0x141,(char *)__s);\n  lhs = exp_nameop(0x144,(char *)__s);\n  peVar5 = exp_binop(0x2b,lhs,peVar5);\n  peVar5 = exp_provide(pcVar4,peVar5,0);\n  lang_add_assignment(peVar5);\n  free(__s_00);\n  return;\n}" primitive_type (function_declarator "lang_leave_overlay_section(fill_type *fill,lang_output_section_phdr_list *phdrs)" identifier (parameter_list "(fill_type *fill,lang_output_section_phdr_list *phdrs)" ( (parameter_declaration "fill_type *fill" type_identifier (pointer_declarator "*fill" * identifier)) , (parameter_declaration "lang_output_section_phdr_list *phdrs" type_identifier (pointer_declarator "*phdrs" * identifier)) ))) (compound_statement "{\n  byte bVar1;\n  byte *__s;\n  undefined *puVar2;\n  size_t sVar3;\n  byte *__s_00;\n  char *pcVar4;\n  etree_type *peVar5;\n  etree_type *lhs;\n  byte *pbVar6;\n  byte *pbVar7;\n  \n  __s = (byte *)current_section->name;\n  lang_leave_output_section_statement(fill,"*default*",phdrs,(char *)0x0);\n  sVar3 = strlen((char *)__s);\n  __s_00 = (byte *)xmalloc(sVar3 + 1);\n  puVar2 = PTR__sch_istable_0008bfb8;\n  bVar1 = *__s;\n  pbVar7 = __s;\n  pbVar6 = __s_00;\n  while (bVar1 != 0) {\n    if (((puVar2[(uint)bVar1 * 2] & 0x8c) != 0) || (bVar1 == 0x5f)) {\n      *pbVar6 = bVar1;\n      pbVar6 = pbVar6 + 1;\n    }\n    pbVar7 = pbVar7 + 1;\n    bVar1 = *pbVar7;\n  }\n  *pbVar6 = 0;\n  sVar3 = strlen((char *)__s_00);\n  pcVar4 = (char *)xmalloc(sVar3 + 0xe);\n  sprintf(pcVar4,"__load_start_%s",__s_00);\n  peVar5 = exp_nameop(0x144,(char *)__s);\n  peVar5 = exp_provide(pcVar4,peVar5,0);\n  lang_add_assignment(peVar5);\n  sVar3 = strlen((char *)__s_00);\n  pcVar4 = (char *)xmalloc(sVar3 + 0xd);\n  sprintf(pcVar4,"__load_stop_%s",__s_00);\n  peVar5 = exp_nameop(0x141,(char *)__s);\n  lhs = exp_nameop(0x144,(char *)__s);\n  peVar5 = exp_binop(0x2b,lhs,peVar5);\n  peVar5 = exp_provide(pcVar4,peVar5,0);\n  lang_add_assignment(peVar5);\n  free(__s_00);\n  return;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "byte *__s;" type_identifier (pointer_declarator "*__s" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "size_t sVar3;" primitive_type identifier ;) (declaration "byte *__s_00;" type_identifier (pointer_declarator "*__s_00" * identifier) ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "etree_type *peVar5;" type_identifier (pointer_declarator "*peVar5" * identifier) ;) (declaration "etree_type *lhs;" type_identifier (pointer_declarator "*lhs" * identifier) ;) (declaration "byte *pbVar6;" type_identifier (pointer_declarator "*pbVar6" * identifier) ;) (declaration "byte *pbVar7;" type_identifier (pointer_declarator "*pbVar7" * identifier) ;) (expression_statement "__s = (byte *)current_section->name;" (assignment_expression "__s = (byte *)current_section->name" identifier = (cast_expression "(byte *)current_section->name" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "current_section->name" identifier -> field_identifier))) ;) (expression_statement "lang_leave_output_section_statement(fill,"*default*",phdrs,(char *)0x0);" (call_expression "lang_leave_output_section_statement(fill,"*default*",phdrs,(char *)0x0)" identifier (argument_list "(fill,"*default*",phdrs,(char *)0x0)" ( identifier , (string_literal ""*default*"" " string_content ") , identifier , (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ))) ;) (expression_statement "sVar3 = strlen((char *)__s);" (assignment_expression "sVar3 = strlen((char *)__s)" identifier = (call_expression "strlen((char *)__s)" identifier (argument_list "((char *)__s)" ( (cast_expression "(char *)__s" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) (expression_statement "__s_00 = (byte *)xmalloc(sVar3 + 1);" (assignment_expression "__s_00 = (byte *)xmalloc(sVar3 + 1)" identifier = (cast_expression "(byte *)xmalloc(sVar3 + 1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(sVar3 + 1)" identifier (argument_list "(sVar3 + 1)" ( (binary_expression "sVar3 + 1" identifier + number_literal) ))))) ;) (expression_statement "puVar2 = PTR__sch_istable_0008bfb8;" (assignment_expression "puVar2 = PTR__sch_istable_0008bfb8" identifier = identifier) ;) (expression_statement "bVar1 = *__s;" (assignment_expression "bVar1 = *__s" identifier = (pointer_expression "*__s" * identifier)) ;) (expression_statement "pbVar7 = __s;" (assignment_expression "pbVar7 = __s" identifier = identifier) ;) (expression_statement "pbVar6 = __s_00;" (assignment_expression "pbVar6 = __s_00" identifier = identifier) ;) (while_statement "while (bVar1 != 0) {\n    if (((puVar2[(uint)bVar1 * 2] & 0x8c) != 0) || (bVar1 == 0x5f)) {\n      *pbVar6 = bVar1;\n      pbVar6 = pbVar6 + 1;\n    }\n    pbVar7 = pbVar7 + 1;\n    bVar1 = *pbVar7;\n  }" while (parenthesized_expression "(bVar1 != 0)" ( (binary_expression "bVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    if (((puVar2[(uint)bVar1 * 2] & 0x8c) != 0) || (bVar1 == 0x5f)) {\n      *pbVar6 = bVar1;\n      pbVar6 = pbVar6 + 1;\n    }\n    pbVar7 = pbVar7 + 1;\n    bVar1 = *pbVar7;\n  }" { (if_statement "if (((puVar2[(uint)bVar1 * 2] & 0x8c) != 0) || (bVar1 == 0x5f)) {\n      *pbVar6 = bVar1;\n      pbVar6 = pbVar6 + 1;\n    }" if (parenthesized_expression "(((puVar2[(uint)bVar1 * 2] & 0x8c) != 0) || (bVar1 == 0x5f))" ( (binary_expression "((puVar2[(uint)bVar1 * 2] & 0x8c) != 0) || (bVar1 == 0x5f)" (parenthesized_expression "((puVar2[(uint)bVar1 * 2] & 0x8c) != 0)" ( (binary_expression "(puVar2[(uint)bVar1 * 2] & 0x8c) != 0" (parenthesized_expression "(puVar2[(uint)bVar1 * 2] & 0x8c)" ( (binary_expression "puVar2[(uint)bVar1 * 2] & 0x8c" (subscript_expression "puVar2[(uint)bVar1 * 2]" identifier [ (binary_expression "(uint)bVar1 * 2" (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal) ]) & number_literal) )) != number_literal) )) || (parenthesized_expression "(bVar1 == 0x5f)" ( (binary_expression "bVar1 == 0x5f" identifier == number_literal) ))) )) (compound_statement "{\n      *pbVar6 = bVar1;\n      pbVar6 = pbVar6 + 1;\n    }" { (expression_statement "*pbVar6 = bVar1;" (assignment_expression "*pbVar6 = bVar1" (pointer_expression "*pbVar6" * identifier) = identifier) ;) (expression_statement "pbVar6 = pbVar6 + 1;" (assignment_expression "pbVar6 = pbVar6 + 1" identifier = (binary_expression "pbVar6 + 1" identifier + number_literal)) ;) })) (expression_statement "pbVar7 = pbVar7 + 1;" (assignment_expression "pbVar7 = pbVar7 + 1" identifier = (binary_expression "pbVar7 + 1" identifier + number_literal)) ;) (expression_statement "bVar1 = *pbVar7;" (assignment_expression "bVar1 = *pbVar7" identifier = (pointer_expression "*pbVar7" * identifier)) ;) })) (expression_statement "*pbVar6 = 0;" (assignment_expression "*pbVar6 = 0" (pointer_expression "*pbVar6" * identifier) = number_literal) ;) (expression_statement "sVar3 = strlen((char *)__s_00);" (assignment_expression "sVar3 = strlen((char *)__s_00)" identifier = (call_expression "strlen((char *)__s_00)" identifier (argument_list "((char *)__s_00)" ( (cast_expression "(char *)__s_00" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) (expression_statement "pcVar4 = (char *)xmalloc(sVar3 + 0xe);" (assignment_expression "pcVar4 = (char *)xmalloc(sVar3 + 0xe)" identifier = (cast_expression "(char *)xmalloc(sVar3 + 0xe)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(sVar3 + 0xe)" identifier (argument_list "(sVar3 + 0xe)" ( (binary_expression "sVar3 + 0xe" identifier + number_literal) ))))) ;) (expression_statement "sprintf(pcVar4,"__load_start_%s",__s_00);" (call_expression "sprintf(pcVar4,"__load_start_%s",__s_00)" identifier (argument_list "(pcVar4,"__load_start_%s",__s_00)" ( identifier , (string_literal ""__load_start_%s"" " string_content ") , identifier ))) ;) (expression_statement "peVar5 = exp_nameop(0x144,(char *)__s);" (assignment_expression "peVar5 = exp_nameop(0x144,(char *)__s)" identifier = (call_expression "exp_nameop(0x144,(char *)__s)" identifier (argument_list "(0x144,(char *)__s)" ( number_literal , (cast_expression "(char *)__s" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) (expression_statement "peVar5 = exp_provide(pcVar4,peVar5,0);" (assignment_expression "peVar5 = exp_provide(pcVar4,peVar5,0)" identifier = (call_expression "exp_provide(pcVar4,peVar5,0)" identifier (argument_list "(pcVar4,peVar5,0)" ( identifier , identifier , number_literal )))) ;) (expression_statement "lang_add_assignment(peVar5);" (call_expression "lang_add_assignment(peVar5)" identifier (argument_list "(peVar5)" ( identifier ))) ;) (expression_statement "sVar3 = strlen((char *)__s_00);" (assignment_expression "sVar3 = strlen((char *)__s_00)" identifier = (call_expression "strlen((char *)__s_00)" identifier (argument_list "((char *)__s_00)" ( (cast_expression "(char *)__s_00" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) (expression_statement "pcVar4 = (char *)xmalloc(sVar3 + 0xd);" (assignment_expression "pcVar4 = (char *)xmalloc(sVar3 + 0xd)" identifier = (cast_expression "(char *)xmalloc(sVar3 + 0xd)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(sVar3 + 0xd)" identifier (argument_list "(sVar3 + 0xd)" ( (binary_expression "sVar3 + 0xd" identifier + number_literal) ))))) ;) (expression_statement "sprintf(pcVar4,"__load_stop_%s",__s_00);" (call_expression "sprintf(pcVar4,"__load_stop_%s",__s_00)" identifier (argument_list "(pcVar4,"__load_stop_%s",__s_00)" ( identifier , (string_literal ""__load_stop_%s"" " string_content ") , identifier ))) ;) (expression_statement "peVar5 = exp_nameop(0x141,(char *)__s);" (assignment_expression "peVar5 = exp_nameop(0x141,(char *)__s)" identifier = (call_expression "exp_nameop(0x141,(char *)__s)" identifier (argument_list "(0x141,(char *)__s)" ( number_literal , (cast_expression "(char *)__s" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) (expression_statement "lhs = exp_nameop(0x144,(char *)__s);" (assignment_expression "lhs = exp_nameop(0x144,(char *)__s)" identifier = (call_expression "exp_nameop(0x144,(char *)__s)" identifier (argument_list "(0x144,(char *)__s)" ( number_literal , (cast_expression "(char *)__s" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) (expression_statement "peVar5 = exp_binop(0x2b,lhs,peVar5);" (assignment_expression "peVar5 = exp_binop(0x2b,lhs,peVar5)" identifier = (call_expression "exp_binop(0x2b,lhs,peVar5)" identifier (argument_list "(0x2b,lhs,peVar5)" ( number_literal , identifier , identifier )))) ;) (expression_statement "peVar5 = exp_provide(pcVar4,peVar5,0);" (assignment_expression "peVar5 = exp_provide(pcVar4,peVar5,0)" identifier = (call_expression "exp_provide(pcVar4,peVar5,0)" identifier (argument_list "(pcVar4,peVar5,0)" ( identifier , identifier , number_literal )))) ;) (expression_statement "lang_add_assignment(peVar5);" (call_expression "lang_add_assignment(peVar5)" identifier (argument_list "(peVar5)" ( identifier ))) ;) (expression_statement "free(__s_00);" (call_expression "free(__s_00)" identifier (argument_list "(__s_00)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_000273d0(undefined4 param_1,undefined4 param_2)\n\n{\n  byte bVar1;\n  byte *__s;\n  undefined *puVar2;\n  size_t sVar3;\n  byte *__s_00;\n  char *pcVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  byte *pbVar7;\n  byte *pbVar8;\n  \n  __s = *(byte **)(DAT_0008c7b8 + 0x18);\n  FUN_00026ac0(param_1,"*default*",param_2,0);\n  sVar3 = strlen((char *)__s);\n  __s_00 = (byte *)xmalloc(sVar3 + 1);\n  puVar2 = PTR__sch_istable_0008bfb8;\n  bVar1 = *__s;\n  pbVar8 = __s;\n  pbVar7 = __s_00;\n  while (bVar1 != 0) {\n    if (((puVar2[(uint)bVar1 * 2] & 0x8c) != 0) || (bVar1 == 0x5f)) {\n      *pbVar7 = bVar1;\n      pbVar7 = pbVar7 + 1;\n    }\n    pbVar8 = pbVar8 + 1;\n    bVar1 = *pbVar8;\n  }\n  *pbVar7 = 0;\n  sVar3 = strlen((char *)__s_00);\n  pcVar4 = (char *)xmalloc(sVar3 + 0xe);\n  sprintf(pcVar4,"__load_start_%s",__s_00);\n  uVar5 = FUN_0002f650(0x144,__s);\n  uVar5 = FUN_0002f740(pcVar4,uVar5,0);\n  FUN_000269c0(uVar5);\n  sVar3 = strlen((char *)__s_00);\n  pcVar4 = (char *)xmalloc(sVar3 + 0xd);\n  sprintf(pcVar4,"__load_stop_%s",__s_00);\n  uVar5 = FUN_0002f650(0x141,__s);\n  uVar6 = FUN_0002f650(0x144,__s);\n  uVar5 = FUN_0002f4d0(0x2b,uVar6,uVar5);\n  uVar5 = FUN_0002f740(pcVar4,uVar5,0);\n  FUN_000269c0(uVar5);\n  free(__s_00);\n  return;\n}\n\n" (function_definition "void FUN_000273d0(undefined4 param_1,undefined4 param_2)\n\n{\n  byte bVar1;\n  byte *__s;\n  undefined *puVar2;\n  size_t sVar3;\n  byte *__s_00;\n  char *pcVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  byte *pbVar7;\n  byte *pbVar8;\n  \n  __s = *(byte **)(DAT_0008c7b8 + 0x18);\n  FUN_00026ac0(param_1,"*default*",param_2,0);\n  sVar3 = strlen((char *)__s);\n  __s_00 = (byte *)xmalloc(sVar3 + 1);\n  puVar2 = PTR__sch_istable_0008bfb8;\n  bVar1 = *__s;\n  pbVar8 = __s;\n  pbVar7 = __s_00;\n  while (bVar1 != 0) {\n    if (((puVar2[(uint)bVar1 * 2] & 0x8c) != 0) || (bVar1 == 0x5f)) {\n      *pbVar7 = bVar1;\n      pbVar7 = pbVar7 + 1;\n    }\n    pbVar8 = pbVar8 + 1;\n    bVar1 = *pbVar8;\n  }\n  *pbVar7 = 0;\n  sVar3 = strlen((char *)__s_00);\n  pcVar4 = (char *)xmalloc(sVar3 + 0xe);\n  sprintf(pcVar4,"__load_start_%s",__s_00);\n  uVar5 = FUN_0002f650(0x144,__s);\n  uVar5 = FUN_0002f740(pcVar4,uVar5,0);\n  FUN_000269c0(uVar5);\n  sVar3 = strlen((char *)__s_00);\n  pcVar4 = (char *)xmalloc(sVar3 + 0xd);\n  sprintf(pcVar4,"__load_stop_%s",__s_00);\n  uVar5 = FUN_0002f650(0x141,__s);\n  uVar6 = FUN_0002f650(0x144,__s);\n  uVar5 = FUN_0002f4d0(0x2b,uVar6,uVar5);\n  uVar5 = FUN_0002f740(pcVar4,uVar5,0);\n  FUN_000269c0(uVar5);\n  free(__s_00);\n  return;\n}" primitive_type (function_declarator "FUN_000273d0(undefined4 param_1,undefined4 param_2)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  byte bVar1;\n  byte *__s;\n  undefined *puVar2;\n  size_t sVar3;\n  byte *__s_00;\n  char *pcVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  byte *pbVar7;\n  byte *pbVar8;\n  \n  __s = *(byte **)(DAT_0008c7b8 + 0x18);\n  FUN_00026ac0(param_1,"*default*",param_2,0);\n  sVar3 = strlen((char *)__s);\n  __s_00 = (byte *)xmalloc(sVar3 + 1);\n  puVar2 = PTR__sch_istable_0008bfb8;\n  bVar1 = *__s;\n  pbVar8 = __s;\n  pbVar7 = __s_00;\n  while (bVar1 != 0) {\n    if (((puVar2[(uint)bVar1 * 2] & 0x8c) != 0) || (bVar1 == 0x5f)) {\n      *pbVar7 = bVar1;\n      pbVar7 = pbVar7 + 1;\n    }\n    pbVar8 = pbVar8 + 1;\n    bVar1 = *pbVar8;\n  }\n  *pbVar7 = 0;\n  sVar3 = strlen((char *)__s_00);\n  pcVar4 = (char *)xmalloc(sVar3 + 0xe);\n  sprintf(pcVar4,"__load_start_%s",__s_00);\n  uVar5 = FUN_0002f650(0x144,__s);\n  uVar5 = FUN_0002f740(pcVar4,uVar5,0);\n  FUN_000269c0(uVar5);\n  sVar3 = strlen((char *)__s_00);\n  pcVar4 = (char *)xmalloc(sVar3 + 0xd);\n  sprintf(pcVar4,"__load_stop_%s",__s_00);\n  uVar5 = FUN_0002f650(0x141,__s);\n  uVar6 = FUN_0002f650(0x144,__s);\n  uVar5 = FUN_0002f4d0(0x2b,uVar6,uVar5);\n  uVar5 = FUN_0002f740(pcVar4,uVar5,0);\n  FUN_000269c0(uVar5);\n  free(__s_00);\n  return;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "byte *__s;" type_identifier (pointer_declarator "*__s" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "size_t sVar3;" primitive_type identifier ;) (declaration "byte *__s_00;" type_identifier (pointer_declarator "*__s_00" * identifier) ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (declaration "byte *pbVar7;" type_identifier (pointer_declarator "*pbVar7" * identifier) ;) (declaration "byte *pbVar8;" type_identifier (pointer_declarator "*pbVar8" * identifier) ;) (expression_statement "__s = *(byte **)(DAT_0008c7b8 + 0x18);" (assignment_expression "__s = *(byte **)(DAT_0008c7b8 + 0x18)" identifier = (pointer_expression "*(byte **)(DAT_0008c7b8 + 0x18)" * (cast_expression "(byte **)(DAT_0008c7b8 + 0x18)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(DAT_0008c7b8 + 0x18)" ( (binary_expression "DAT_0008c7b8 + 0x18" identifier + number_literal) ))))) ;) (expression_statement "FUN_00026ac0(param_1,"*default*",param_2,0);" (call_expression "FUN_00026ac0(param_1,"*default*",param_2,0)" identifier (argument_list "(param_1,"*default*",param_2,0)" ( identifier , (string_literal ""*default*"" " string_content ") , identifier , number_literal ))) ;) (expression_statement "sVar3 = strlen((char *)__s);" (assignment_expression "sVar3 = strlen((char *)__s)" identifier = (call_expression "strlen((char *)__s)" identifier (argument_list "((char *)__s)" ( (cast_expression "(char *)__s" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) (expression_statement "__s_00 = (byte *)xmalloc(sVar3 + 1);" (assignment_expression "__s_00 = (byte *)xmalloc(sVar3 + 1)" identifier = (cast_expression "(byte *)xmalloc(sVar3 + 1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(sVar3 + 1)" identifier (argument_list "(sVar3 + 1)" ( (binary_expression "sVar3 + 1" identifier + number_literal) ))))) ;) (expression_statement "puVar2 = PTR__sch_istable_0008bfb8;" (assignment_expression "puVar2 = PTR__sch_istable_0008bfb8" identifier = identifier) ;) (expression_statement "bVar1 = *__s;" (assignment_expression "bVar1 = *__s" identifier = (pointer_expression "*__s" * identifier)) ;) (expression_statement "pbVar8 = __s;" (assignment_expression "pbVar8 = __s" identifier = identifier) ;) (expression_statement "pbVar7 = __s_00;" (assignment_expression "pbVar7 = __s_00" identifier = identifier) ;) (while_statement "while (bVar1 != 0) {\n    if (((puVar2[(uint)bVar1 * 2] & 0x8c) != 0) || (bVar1 == 0x5f)) {\n      *pbVar7 = bVar1;\n      pbVar7 = pbVar7 + 1;\n    }\n    pbVar8 = pbVar8 + 1;\n    bVar1 = *pbVar8;\n  }" while (parenthesized_expression "(bVar1 != 0)" ( (binary_expression "bVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    if (((puVar2[(uint)bVar1 * 2] & 0x8c) != 0) || (bVar1 == 0x5f)) {\n      *pbVar7 = bVar1;\n      pbVar7 = pbVar7 + 1;\n    }\n    pbVar8 = pbVar8 + 1;\n    bVar1 = *pbVar8;\n  }" { (if_statement "if (((puVar2[(uint)bVar1 * 2] & 0x8c) != 0) || (bVar1 == 0x5f)) {\n      *pbVar7 = bVar1;\n      pbVar7 = pbVar7 + 1;\n    }" if (parenthesized_expression "(((puVar2[(uint)bVar1 * 2] & 0x8c) != 0) || (bVar1 == 0x5f))" ( (binary_expression "((puVar2[(uint)bVar1 * 2] & 0x8c) != 0) || (bVar1 == 0x5f)" (parenthesized_expression "((puVar2[(uint)bVar1 * 2] & 0x8c) != 0)" ( (binary_expression "(puVar2[(uint)bVar1 * 2] & 0x8c) != 0" (parenthesized_expression "(puVar2[(uint)bVar1 * 2] & 0x8c)" ( (binary_expression "puVar2[(uint)bVar1 * 2] & 0x8c" (subscript_expression "puVar2[(uint)bVar1 * 2]" identifier [ (binary_expression "(uint)bVar1 * 2" (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal) ]) & number_literal) )) != number_literal) )) || (parenthesized_expression "(bVar1 == 0x5f)" ( (binary_expression "bVar1 == 0x5f" identifier == number_literal) ))) )) (compound_statement "{\n      *pbVar7 = bVar1;\n      pbVar7 = pbVar7 + 1;\n    }" { (expression_statement "*pbVar7 = bVar1;" (assignment_expression "*pbVar7 = bVar1" (pointer_expression "*pbVar7" * identifier) = identifier) ;) (expression_statement "pbVar7 = pbVar7 + 1;" (assignment_expression "pbVar7 = pbVar7 + 1" identifier = (binary_expression "pbVar7 + 1" identifier + number_literal)) ;) })) (expression_statement "pbVar8 = pbVar8 + 1;" (assignment_expression "pbVar8 = pbVar8 + 1" identifier = (binary_expression "pbVar8 + 1" identifier + number_literal)) ;) (expression_statement "bVar1 = *pbVar8;" (assignment_expression "bVar1 = *pbVar8" identifier = (pointer_expression "*pbVar8" * identifier)) ;) })) (expression_statement "*pbVar7 = 0;" (assignment_expression "*pbVar7 = 0" (pointer_expression "*pbVar7" * identifier) = number_literal) ;) (expression_statement "sVar3 = strlen((char *)__s_00);" (assignment_expression "sVar3 = strlen((char *)__s_00)" identifier = (call_expression "strlen((char *)__s_00)" identifier (argument_list "((char *)__s_00)" ( (cast_expression "(char *)__s_00" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) (expression_statement "pcVar4 = (char *)xmalloc(sVar3 + 0xe);" (assignment_expression "pcVar4 = (char *)xmalloc(sVar3 + 0xe)" identifier = (cast_expression "(char *)xmalloc(sVar3 + 0xe)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(sVar3 + 0xe)" identifier (argument_list "(sVar3 + 0xe)" ( (binary_expression "sVar3 + 0xe" identifier + number_literal) ))))) ;) (expression_statement "sprintf(pcVar4,"__load_start_%s",__s_00);" (call_expression "sprintf(pcVar4,"__load_start_%s",__s_00)" identifier (argument_list "(pcVar4,"__load_start_%s",__s_00)" ( identifier , (string_literal ""__load_start_%s"" " string_content ") , identifier ))) ;) (expression_statement "uVar5 = FUN_0002f650(0x144,__s);" (assignment_expression "uVar5 = FUN_0002f650(0x144,__s)" identifier = (call_expression "FUN_0002f650(0x144,__s)" identifier (argument_list "(0x144,__s)" ( number_literal , identifier )))) ;) (expression_statement "uVar5 = FUN_0002f740(pcVar4,uVar5,0);" (assignment_expression "uVar5 = FUN_0002f740(pcVar4,uVar5,0)" identifier = (call_expression "FUN_0002f740(pcVar4,uVar5,0)" identifier (argument_list "(pcVar4,uVar5,0)" ( identifier , identifier , number_literal )))) ;) (expression_statement "FUN_000269c0(uVar5);" (call_expression "FUN_000269c0(uVar5)" identifier (argument_list "(uVar5)" ( identifier ))) ;) (expression_statement "sVar3 = strlen((char *)__s_00);" (assignment_expression "sVar3 = strlen((char *)__s_00)" identifier = (call_expression "strlen((char *)__s_00)" identifier (argument_list "((char *)__s_00)" ( (cast_expression "(char *)__s_00" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) (expression_statement "pcVar4 = (char *)xmalloc(sVar3 + 0xd);" (assignment_expression "pcVar4 = (char *)xmalloc(sVar3 + 0xd)" identifier = (cast_expression "(char *)xmalloc(sVar3 + 0xd)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(sVar3 + 0xd)" identifier (argument_list "(sVar3 + 0xd)" ( (binary_expression "sVar3 + 0xd" identifier + number_literal) ))))) ;) (expression_statement "sprintf(pcVar4,"__load_stop_%s",__s_00);" (call_expression "sprintf(pcVar4,"__load_stop_%s",__s_00)" identifier (argument_list "(pcVar4,"__load_stop_%s",__s_00)" ( identifier , (string_literal ""__load_stop_%s"" " string_content ") , identifier ))) ;) (expression_statement "uVar5 = FUN_0002f650(0x141,__s);" (assignment_expression "uVar5 = FUN_0002f650(0x141,__s)" identifier = (call_expression "FUN_0002f650(0x141,__s)" identifier (argument_list "(0x141,__s)" ( number_literal , identifier )))) ;) (expression_statement "uVar6 = FUN_0002f650(0x144,__s);" (assignment_expression "uVar6 = FUN_0002f650(0x144,__s)" identifier = (call_expression "FUN_0002f650(0x144,__s)" identifier (argument_list "(0x144,__s)" ( number_literal , identifier )))) ;) (expression_statement "uVar5 = FUN_0002f4d0(0x2b,uVar6,uVar5);" (assignment_expression "uVar5 = FUN_0002f4d0(0x2b,uVar6,uVar5)" identifier = (call_expression "FUN_0002f4d0(0x2b,uVar6,uVar5)" identifier (argument_list "(0x2b,uVar6,uVar5)" ( number_literal , identifier , identifier )))) ;) (expression_statement "uVar5 = FUN_0002f740(pcVar4,uVar5,0);" (assignment_expression "uVar5 = FUN_0002f740(pcVar4,uVar5,0)" identifier = (call_expression "FUN_0002f740(pcVar4,uVar5,0)" identifier (argument_list "(pcVar4,uVar5,0)" ( identifier , identifier , number_literal )))) ;) (expression_statement "FUN_000269c0(uVar5);" (call_expression "FUN_000269c0(uVar5)" identifier (argument_list "(uVar5)" ( identifier ))) ;) (expression_statement "free(__s_00);" (call_expression "free(__s_00)" identifier (argument_list "(__s_00)" ( 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 ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * 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 (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") , IDENT , LIT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (while_statement while (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT) ]) & LIT) )) != LIT) )) || (parenthesized_expression ( (binary_expression IDENT == LIT) ))) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return ;) })))
(function_definition "void FUN_000273d0(undefined4 param_1,undefined4 param_2)\n\n{\n  byte bVar1;\n  byte *__s;\n  undefined *puVar2;\n  size_t sVar3;\n  byte *__s_00;\n  char *pcVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  byte *pbVar7;\n  byte *pbVar8;\n  \n  __s = *(byte **)(DAT_0008c7b8 + 0x18);\n  FUN_00026ac0(param_1,"*default*",param_2,0);\n  sVar3 = strlen((char *)__s);\n  __s_00 = (byte *)xmalloc(sVar3 + 1);\n  puVar2 = PTR__sch_istable_0008bfb8;\n  bVar1 = *__s;\n  pbVar8 = __s;\n  pbVar7 = __s_00;\n  while (bVar1 != 0) {\n    if (((puVar2[(uint)bVar1 * 2] & 0x8c) != 0) || (bVar1 == 0x5f)) {\n      *pbVar7 = bVar1;\n      pbVar7 = pbVar7 + 1;\n    }\n    pbVar8 = pbVar8 + 1;\n    bVar1 = *pbVar8;\n  }\n  *pbVar7 = 0;\n  sVar3 = strlen((char *)__s_00);\n  pcVar4 = (char *)xmalloc(sVar3 + 0xe);\n  sprintf(pcVar4,"__load_start_%s",__s_00);\n  uVar5 = FUN_0002f650(0x144,__s);\n  uVar5 = FUN_0002f740(pcVar4,uVar5,0);\n  FUN_000269c0(uVar5);\n  sVar3 = strlen((char *)__s_00);\n  pcVar4 = (char *)xmalloc(sVar3 + 0xd);\n  sprintf(pcVar4,"__load_stop_%s",__s_00);\n  uVar5 = FUN_0002f650(0x141,__s);\n  uVar6 = FUN_0002f650(0x144,__s);\n  uVar5 = FUN_0002f4d0(0x2b,uVar6,uVar5);\n  uVar5 = FUN_0002f740(pcVar4,uVar5,0);\n  FUN_000269c0(uVar5);\n  free(__s_00);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_000273d0(undefined4 param_1,undefined4 param_2)" (identifier "FUN_000273d0") (parameter_list "(undefined4 param_1,undefined4 param_2)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")"))) (compound_statement "{\n  byte bVar1;\n  byte *__s;\n  undefined *puVar2;\n  size_t sVar3;\n  byte *__s_00;\n  char *pcVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  byte *pbVar7;\n  byte *pbVar8;\n  \n  __s = *(byte **)(DAT_0008c7b8 + 0x18);\n  FUN_00026ac0(param_1,"*default*",param_2,0);\n  sVar3 = strlen((char *)__s);\n  __s_00 = (byte *)xmalloc(sVar3 + 1);\n  puVar2 = PTR__sch_istable_0008bfb8;\n  bVar1 = *__s;\n  pbVar8 = __s;\n  pbVar7 = __s_00;\n  while (bVar1 != 0) {\n    if (((puVar2[(uint)bVar1 * 2] & 0x8c) != 0) || (bVar1 == 0x5f)) {\n      *pbVar7 = bVar1;\n      pbVar7 = pbVar7 + 1;\n    }\n    pbVar8 = pbVar8 + 1;\n    bVar1 = *pbVar8;\n  }\n  *pbVar7 = 0;\n  sVar3 = strlen((char *)__s_00);\n  pcVar4 = (char *)xmalloc(sVar3 + 0xe);\n  sprintf(pcVar4,"__load_start_%s",__s_00);\n  uVar5 = FUN_0002f650(0x144,__s);\n  uVar5 = FUN_0002f740(pcVar4,uVar5,0);\n  FUN_000269c0(uVar5);\n  sVar3 = strlen((char *)__s_00);\n  pcVar4 = (char *)xmalloc(sVar3 + 0xd);\n  sprintf(pcVar4,"__load_stop_%s",__s_00);\n  uVar5 = FUN_0002f650(0x141,__s);\n  uVar6 = FUN_0002f650(0x144,__s);\n  uVar5 = FUN_0002f4d0(0x2b,uVar6,uVar5);\n  uVar5 = FUN_0002f740(pcVar4,uVar5,0);\n  FUN_000269c0(uVar5);\n  free(__s_00);\n  return;\n}" ({ "{") (declaration "byte bVar1;" (type_identifier "byte") (identifier "bVar1") (; ";")) (declaration "byte *__s;" (type_identifier "byte") (pointer_declarator "*__s" (* "*") (identifier "__s")) (; ";")) (declaration "undefined *puVar2;" (type_identifier "undefined") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "size_t sVar3;" (primitive_type "size_t") (identifier "sVar3") (; ";")) (declaration "byte *__s_00;" (type_identifier "byte") (pointer_declarator "*__s_00" (* "*") (identifier "__s_00")) (; ";")) (declaration "char *pcVar4;" (primitive_type "char") (pointer_declarator "*pcVar4" (* "*") (identifier "pcVar4")) (; ";")) (declaration "undefined4 uVar5;" (type_identifier "undefined4") (identifier "uVar5") (; ";")) (declaration "undefined4 uVar6;" (type_identifier "undefined4") (identifier "uVar6") (; ";")) (declaration "byte *pbVar7;" (type_identifier "byte") (pointer_declarator "*pbVar7" (* "*") (identifier "pbVar7")) (; ";")) (declaration "byte *pbVar8;" (type_identifier "byte") (pointer_declarator "*pbVar8" (* "*") (identifier "pbVar8")) (; ";")) (expression_statement "__s = *(byte **)(DAT_0008c7b8 + 0x18);" (assignment_expression "__s = *(byte **)(DAT_0008c7b8 + 0x18)" (identifier "__s") (= "=") (pointer_expression "*(byte **)(DAT_0008c7b8 + 0x18)" (* "*") (cast_expression "(byte **)(DAT_0008c7b8 + 0x18)" (( "(") (type_descriptor "byte **" (type_identifier "byte") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(DAT_0008c7b8 + 0x18)" (( "(") (binary_expression "DAT_0008c7b8 + 0x18" (identifier "DAT_0008c7b8") (+ "+") (number_literal "0x18")) () ")"))))) (; ";")) (expression_statement "FUN_00026ac0(param_1,"*default*",param_2,0);" (call_expression "FUN_00026ac0(param_1,"*default*",param_2,0)" (identifier "FUN_00026ac0") (argument_list "(param_1,"*default*",param_2,0)" (( "(") (identifier "param_1") (, ",") (string_literal ""*default*"" (" """) (string_content "*default*") (" """)) (, ",") (identifier "param_2") (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "sVar3 = strlen((char *)__s);" (assignment_expression "sVar3 = strlen((char *)__s)" (identifier "sVar3") (= "=") (call_expression "strlen((char *)__s)" (identifier "strlen") (argument_list "((char *)__s)" (( "(") (cast_expression "(char *)__s" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "__s")) () ")")))) (; ";")) (expression_statement "__s_00 = (byte *)xmalloc(sVar3 + 1);" (assignment_expression "__s_00 = (byte *)xmalloc(sVar3 + 1)" (identifier "__s_00") (= "=") (cast_expression "(byte *)xmalloc(sVar3 + 1)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(sVar3 + 1)" (identifier "xmalloc") (argument_list "(sVar3 + 1)" (( "(") (binary_expression "sVar3 + 1" (identifier "sVar3") (+ "+") (number_literal "1")) () ")"))))) (; ";")) (expression_statement "puVar2 = PTR__sch_istable_0008bfb8;" (assignment_expression "puVar2 = PTR__sch_istable_0008bfb8" (identifier "puVar2") (= "=") (identifier "PTR__sch_istable_0008bfb8")) (; ";")) (expression_statement "bVar1 = *__s;" (assignment_expression "bVar1 = *__s" (identifier "bVar1") (= "=") (pointer_expression "*__s" (* "*") (identifier "__s"))) (; ";")) (expression_statement "pbVar8 = __s;" (assignment_expression "pbVar8 = __s" (identifier "pbVar8") (= "=") (identifier "__s")) (; ";")) (expression_statement "pbVar7 = __s_00;" (assignment_expression "pbVar7 = __s_00" (identifier "pbVar7") (= "=") (identifier "__s_00")) (; ";")) (while_statement "while (bVar1 != 0) {\n    if (((puVar2[(uint)bVar1 * 2] & 0x8c) != 0) || (bVar1 == 0x5f)) {\n      *pbVar7 = bVar1;\n      pbVar7 = pbVar7 + 1;\n    }\n    pbVar8 = pbVar8 + 1;\n    bVar1 = *pbVar8;\n  }" (while "while") (parenthesized_expression "(bVar1 != 0)" (( "(") (binary_expression "bVar1 != 0" (identifier "bVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    if (((puVar2[(uint)bVar1 * 2] & 0x8c) != 0) || (bVar1 == 0x5f)) {\n      *pbVar7 = bVar1;\n      pbVar7 = pbVar7 + 1;\n    }\n    pbVar8 = pbVar8 + 1;\n    bVar1 = *pbVar8;\n  }" ({ "{") (if_statement "if (((puVar2[(uint)bVar1 * 2] & 0x8c) != 0) || (bVar1 == 0x5f)) {\n      *pbVar7 = bVar1;\n      pbVar7 = pbVar7 + 1;\n    }" (if "if") (parenthesized_expression "(((puVar2[(uint)bVar1 * 2] & 0x8c) != 0) || (bVar1 == 0x5f))" (( "(") (binary_expression "((puVar2[(uint)bVar1 * 2] & 0x8c) != 0) || (bVar1 == 0x5f)" (parenthesized_expression "((puVar2[(uint)bVar1 * 2] & 0x8c) != 0)" (( "(") (binary_expression "(puVar2[(uint)bVar1 * 2] & 0x8c) != 0" (parenthesized_expression "(puVar2[(uint)bVar1 * 2] & 0x8c)" (( "(") (binary_expression "puVar2[(uint)bVar1 * 2] & 0x8c" (subscript_expression "puVar2[(uint)bVar1 * 2]" (identifier "puVar2") ([ "[") (binary_expression "(uint)bVar1 * 2" (cast_expression "(uint)bVar1" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar1")) (* "*") (number_literal "2")) (] "]")) (& "&") (number_literal "0x8c")) () ")")) (!= "!=") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(bVar1 == 0x5f)" (( "(") (binary_expression "bVar1 == 0x5f" (identifier "bVar1") (== "==") (number_literal "0x5f")) () ")"))) () ")")) (compound_statement "{\n      *pbVar7 = bVar1;\n      pbVar7 = pbVar7 + 1;\n    }" ({ "{") (expression_statement "*pbVar7 = bVar1;" (assignment_expression "*pbVar7 = bVar1" (pointer_expression "*pbVar7" (* "*") (identifier "pbVar7")) (= "=") (identifier "bVar1")) (; ";")) (expression_statement "pbVar7 = pbVar7 + 1;" (assignment_expression "pbVar7 = pbVar7 + 1" (identifier "pbVar7") (= "=") (binary_expression "pbVar7 + 1" (identifier "pbVar7") (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (expression_statement "pbVar8 = pbVar8 + 1;" (assignment_expression "pbVar8 = pbVar8 + 1" (identifier "pbVar8") (= "=") (binary_expression "pbVar8 + 1" (identifier "pbVar8") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "bVar1 = *pbVar8;" (assignment_expression "bVar1 = *pbVar8" (identifier "bVar1") (= "=") (pointer_expression "*pbVar8" (* "*") (identifier "pbVar8"))) (; ";")) (} "}"))) (expression_statement "*pbVar7 = 0;" (assignment_expression "*pbVar7 = 0" (pointer_expression "*pbVar7" (* "*") (identifier "pbVar7")) (= "=") (number_literal "0")) (; ";")) (expression_statement "sVar3 = strlen((char *)__s_00);" (assignment_expression "sVar3 = strlen((char *)__s_00)" (identifier "sVar3") (= "=") (call_expression "strlen((char *)__s_00)" (identifier "strlen") (argument_list "((char *)__s_00)" (( "(") (cast_expression "(char *)__s_00" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "__s_00")) () ")")))) (; ";")) (expression_statement "pcVar4 = (char *)xmalloc(sVar3 + 0xe);" (assignment_expression "pcVar4 = (char *)xmalloc(sVar3 + 0xe)" (identifier "pcVar4") (= "=") (cast_expression "(char *)xmalloc(sVar3 + 0xe)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(sVar3 + 0xe)" (identifier "xmalloc") (argument_list "(sVar3 + 0xe)" (( "(") (binary_expression "sVar3 + 0xe" (identifier "sVar3") (+ "+") (number_literal "0xe")) () ")"))))) (; ";")) (expression_statement "sprintf(pcVar4,"__load_start_%s",__s_00);" (call_expression "sprintf(pcVar4,"__load_start_%s",__s_00)" (identifier "sprintf") (argument_list "(pcVar4,"__load_start_%s",__s_00)" (( "(") (identifier "pcVar4") (, ",") (string_literal ""__load_start_%s"" (" """) (string_content "__load_start_%s") (" """)) (, ",") (identifier "__s_00") () ")"))) (; ";")) (expression_statement "uVar5 = FUN_0002f650(0x144,__s);" (assignment_expression "uVar5 = FUN_0002f650(0x144,__s)" (identifier "uVar5") (= "=") (call_expression "FUN_0002f650(0x144,__s)" (identifier "FUN_0002f650") (argument_list "(0x144,__s)" (( "(") (number_literal "0x144") (, ",") (identifier "__s") () ")")))) (; ";")) (expression_statement "uVar5 = FUN_0002f740(pcVar4,uVar5,0);" (assignment_expression "uVar5 = FUN_0002f740(pcVar4,uVar5,0)" (identifier "uVar5") (= "=") (call_expression "FUN_0002f740(pcVar4,uVar5,0)" (identifier "FUN_0002f740") (argument_list "(pcVar4,uVar5,0)" (( "(") (identifier "pcVar4") (, ",") (identifier "uVar5") (, ",") (number_literal "0") () ")")))) (; ";")) (expression_statement "FUN_000269c0(uVar5);" (call_expression "FUN_000269c0(uVar5)" (identifier "FUN_000269c0") (argument_list "(uVar5)" (( "(") (identifier "uVar5") () ")"))) (; ";")) (expression_statement "sVar3 = strlen((char *)__s_00);" (assignment_expression "sVar3 = strlen((char *)__s_00)" (identifier "sVar3") (= "=") (call_expression "strlen((char *)__s_00)" (identifier "strlen") (argument_list "((char *)__s_00)" (( "(") (cast_expression "(char *)__s_00" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "__s_00")) () ")")))) (; ";")) (expression_statement "pcVar4 = (char *)xmalloc(sVar3 + 0xd);" (assignment_expression "pcVar4 = (char *)xmalloc(sVar3 + 0xd)" (identifier "pcVar4") (= "=") (cast_expression "(char *)xmalloc(sVar3 + 0xd)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(sVar3 + 0xd)" (identifier "xmalloc") (argument_list "(sVar3 + 0xd)" (( "(") (binary_expression "sVar3 + 0xd" (identifier "sVar3") (+ "+") (number_literal "0xd")) () ")"))))) (; ";")) (expression_statement "sprintf(pcVar4,"__load_stop_%s",__s_00);" (call_expression "sprintf(pcVar4,"__load_stop_%s",__s_00)" (identifier "sprintf") (argument_list "(pcVar4,"__load_stop_%s",__s_00)" (( "(") (identifier "pcVar4") (, ",") (string_literal ""__load_stop_%s"" (" """) (string_content "__load_stop_%s") (" """)) (, ",") (identifier "__s_00") () ")"))) (; ";")) (expression_statement "uVar5 = FUN_0002f650(0x141,__s);" (assignment_expression "uVar5 = FUN_0002f650(0x141,__s)" (identifier "uVar5") (= "=") (call_expression "FUN_0002f650(0x141,__s)" (identifier "FUN_0002f650") (argument_list "(0x141,__s)" (( "(") (number_literal "0x141") (, ",") (identifier "__s") () ")")))) (; ";")) (expression_statement "uVar6 = FUN_0002f650(0x144,__s);" (assignment_expression "uVar6 = FUN_0002f650(0x144,__s)" (identifier "uVar6") (= "=") (call_expression "FUN_0002f650(0x144,__s)" (identifier "FUN_0002f650") (argument_list "(0x144,__s)" (( "(") (number_literal "0x144") (, ",") (identifier "__s") () ")")))) (; ";")) (expression_statement "uVar5 = FUN_0002f4d0(0x2b,uVar6,uVar5);" (assignment_expression "uVar5 = FUN_0002f4d0(0x2b,uVar6,uVar5)" (identifier "uVar5") (= "=") (call_expression "FUN_0002f4d0(0x2b,uVar6,uVar5)" (identifier "FUN_0002f4d0") (argument_list "(0x2b,uVar6,uVar5)" (( "(") (number_literal "0x2b") (, ",") (identifier "uVar6") (, ",") (identifier "uVar5") () ")")))) (; ";")) (expression_statement "uVar5 = FUN_0002f740(pcVar4,uVar5,0);" (assignment_expression "uVar5 = FUN_0002f740(pcVar4,uVar5,0)" (identifier "uVar5") (= "=") (call_expression "FUN_0002f740(pcVar4,uVar5,0)" (identifier "FUN_0002f740") (argument_list "(pcVar4,uVar5,0)" (( "(") (identifier "pcVar4") (, ",") (identifier "uVar5") (, ",") (number_literal "0") () ")")))) (; ";")) (expression_statement "FUN_000269c0(uVar5);" (call_expression "FUN_000269c0(uVar5)" (identifier "FUN_000269c0") (argument_list "(uVar5)" (( "(") (identifier "uVar5") () ")"))) (; ";")) (expression_statement "free(__s_00);" (call_expression "free(__s_00)" (identifier "free") (argument_list "(__s_00)" (( "(") (identifier "__s_00") () ")"))) (; ";")) (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 *fill,type_2 *phdrs)

{
  type_3 var_5;
  type_3 *__s;
  type_4 *puVar2;
  size_t var_4;
  type_3 *__s_00;
  char *pcVar4;
  type_5 *peVar5;
  type_5 *lhs;
  type_3 *var_6;
  type_3 *var_7;
  
  __s = (type_3 *)current_section->name;
  var_1(fill,"*default*",phdrs,(char *)0x0);
  var_4 = var_2((char *)__s);
  __s_00 = (type_3 *)var_3(var_4 + 1);
  puVar2 = PTR__sch_istable_0008bfb8;
  var_5 = *__s;
  var_7 = __s;
  var_6 = __s_00;
  while (var_5 != 0) {
    if (((puVar2[(type_6)var_5 * 2] & 0x8c) != 0) || (var_5 == 0x5f)) {
      *var_6 = var_5;
      var_6 = var_6 + 1;
    }
    var_7 = var_7 + 1;
    var_5 = *var_7;
  }
  *var_6 = 0;
  var_4 = var_2((char *)__s_00);
  pcVar4 = (char *)var_3(var_4 + 0xe);
  var_8(pcVar4,"__load_start_%s",__s_00);
  peVar5 = var_9(0x144,(char *)__s);
  peVar5 = var_10(pcVar4,peVar5,0);
  var_11(peVar5);
  var_4 = var_2((char *)__s_00);
  pcVar4 = (char *)var_3(var_4 + 0xd);
  var_8(pcVar4,"__load_stop_%s",__s_00);
  peVar5 = var_9(0x141,(char *)__s);
  lhs = var_9(0x144,(char *)__s);
  peVar5 = var_12(0x2b,lhs,peVar5);
  peVar5 = var_10(pcVar4,peVar5,0);
  var_11(peVar5);
  var_13(__s_00);
  return;
}


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

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

void MASKED(undefined4 param_1,undefined4 param_2)

{
  byte bVar1;
  byte *__s;
  undefined *puVar2;
  size_t sVar3;
  byte *__s_00;
  char *pcVar4;
  undefined4 uVar5;
  undefined4 uVar6;
  byte *pbVar7;
  byte *pbVar8;
  
  __s = *(byte **)(DAT_0008c7b8 + 0x18);
  FUN_00026ac0(param_1,"*default*",param_2,0);
  sVar3 = strlen((char *)__s);
  __s_00 = (byte *)xmalloc(sVar3 + 1);
  puVar2 = PTR__sch_istable_0008bfb8;
  bVar1 = *__s;
  pbVar8 = __s;
  pbVar7 = __s_00;
  while (bVar1 != 0) {
    if (((puVar2[(uint)bVar1 * 2] & 0x8c) != 0) || (bVar1 == 0x5f)) {
      *pbVar7 = bVar1;
      pbVar7 = pbVar7 + 1;
    }
    pbVar8 = pbVar8 + 1;
    bVar1 = *pbVar8;
  }
  *pbVar7 = 0;
  sVar3 = strlen((char *)__s_00);
  pcVar4 = (char *)xmalloc(sVar3 + 0xe);
  sprintf(pcVar4,"__load_start_%s",__s_00);
  uVar5 = FUN_0002f650(0x144,__s);
  uVar5 = FUN_0002f740(pcVar4,uVar5,0);
  FUN_000269c0(uVar5);
  sVar3 = strlen((char *)__s_00);
  pcVar4 = (char *)xmalloc(sVar3 + 0xd);
  sprintf(pcVar4,"__load_stop_%s",__s_00);
  uVar5 = FUN_0002f650(0x141,__s);
  uVar6 = FUN_0002f650(0x144,__s);
  uVar5 = FUN_0002f4d0(0x2b,uVar6,uVar5);
  uVar5 = FUN_0002f740(pcVar4,uVar5,0);
  FUN_000269c0(uVar5);
  free(__s_00);
  return;
}

