
/* WARNING: Unknown calling convention */

int fts3RenameMethod(sqlite3_vtab *pVtab,char *zName)

{
  char cVar1;
  sqlite3 *db;
  int iVar2;
  char *pcVar3;
  int iVar4;
  int unaff_EDI;
  int in_GS_OFFSET;
  int rc;
  int local_20;
  
  __x86_get_pc_thunk_di();
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  db = (sqlite3 *)pVtab[1].pModule;
  if (*(char *)((int)&pVtab[0x13].nRef + 1) == '\x02') {
    rc = fts3SetHasStat((Fts3Table *)pVtab);
    if (rc != 0) {
      iVar2 = pVtab[3].nRef;
      pcVar3 = pVtab[1].zErrMsg;
      iVar4 = pVtab[1].nRef;
      goto joined_r0x00103a91;
    }
  }
  else {
    rc = 0;
  }
  rc = sqlite3Fts3PendingTermsFlush((Fts3Table *)pVtab);
  iVar2 = pVtab[3].nRef;
  pcVar3 = pVtab[1].zErrMsg;
  iVar4 = pVtab[1].nRef;
joined_r0x00103a91:
  if (iVar2 == 0) {
    fts3DbExec(&rc,db,(char *)(unaff_EDI + 0x2d631),iVar4,pcVar3,zName);
    pcVar3 = pVtab[1].zErrMsg;
    iVar4 = pVtab[1].nRef;
  }
  if (*(char *)((int)&pVtab[0x13].nRef + 2) == '\0') {
    cVar1 = *(char *)((int)&pVtab[0x13].nRef + 1);
  }
  else {
    fts3DbExec(&rc,db,(char *)(unaff_EDI + 0x2d669),iVar4,pcVar3,zName);
    pcVar3 = pVtab[1].zErrMsg;
    iVar4 = pVtab[1].nRef;
    cVar1 = *(char *)((int)&pVtab[0x13].nRef + 1);
  }
  if (cVar1 != '\0') {
    fts3DbExec(&rc,db,(char *)(unaff_EDI + 0x2d6a1),iVar4,pcVar3,zName);
    pcVar3 = pVtab[1].zErrMsg;
    iVar4 = pVtab[1].nRef;
  }
  fts3DbExec(&rc,db,(char *)(unaff_EDI + 0x2d6d1),iVar4,pcVar3,zName);
  fts3DbExec(&rc,db,(char *)(unaff_EDI + 0x2d709),pVtab[1].nRef,pVtab[1].zErrMsg,zName);
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail_local();
  }
  return rc;
}



int FUN_00103940(int param_1,undefined4 param_2)

{
  char cVar1;
  undefined4 uVar2;
  int iVar3;
  undefined4 uVar4;
  undefined4 uVar5;
  int unaff_EDI;
  int in_GS_OFFSET;
  int local_24;
  int local_20;
  
  FUN_00036ac5();
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  uVar2 = *(undefined4 *)(param_1 + 0xc);
  if (*(char *)(param_1 + 0xe9) == '\x02') {
    local_24 = FUN_000e98a0();
    if (local_24 != 0) {
      iVar3 = *(int *)(param_1 + 0x28);
      uVar4 = *(undefined4 *)(param_1 + 0x14);
      uVar5 = *(undefined4 *)(param_1 + 0x10);
      goto joined_r0x00103a91;
    }
  }
  else {
    local_24 = 0;
  }
  local_24 = FUN_00103810();
  iVar3 = *(int *)(param_1 + 0x28);
  uVar4 = *(undefined4 *)(param_1 + 0x14);
  uVar5 = *(undefined4 *)(param_1 + 0x10);
joined_r0x00103a91:
  if (iVar3 == 0) {
    FUN_000e9b50(&local_24,uVar2,unaff_EDI + 0x2d631,uVar5,uVar4,param_2);
    uVar4 = *(undefined4 *)(param_1 + 0x14);
    uVar5 = *(undefined4 *)(param_1 + 0x10);
  }
  if (*(char *)(param_1 + 0xea) == '\0') {
    cVar1 = *(char *)(param_1 + 0xe9);
  }
  else {
    FUN_000e9b50(&local_24,uVar2,unaff_EDI + 0x2d669,uVar5,uVar4,param_2);
    uVar4 = *(undefined4 *)(param_1 + 0x14);
    uVar5 = *(undefined4 *)(param_1 + 0x10);
    cVar1 = *(char *)(param_1 + 0xe9);
  }
  if (cVar1 != '\0') {
    FUN_000e9b50(&local_24,uVar2,unaff_EDI + 0x2d6a1,uVar5,uVar4,param_2);
    uVar4 = *(undefined4 *)(param_1 + 0x14);
    uVar5 = *(undefined4 *)(param_1 + 0x10);
  }
  FUN_000e9b50(&local_24,uVar2,unaff_EDI + 0x2d6d1,uVar5,uVar4,param_2);
  FUN_000e9b50(&local_24,uVar2,unaff_EDI + 0x2d709,*(undefined4 *)(param_1 + 0x10),
               *(undefined4 *)(param_1 + 0x14),param_2);
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_00116110();
  }
  return local_24;
}


PUSH EBP
PUSH EDI
CALL 0x00036ac5
ADD EDI,0x784e1
PUSH ESI
PUSH EBX
SUB ESP,0x2c
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x1c],EAX
XOR EAX,EAX
MOV EBX,dword ptr [ESP + 0x40]
MOV EBP,dword ptr [ESP + 0x44]
CMP byte ptr [EBX + 0xe9],0x2
MOV ESI,dword ptr [EBX + 0xc]
JZ 0x00103a70
MOV dword ptr [ESP + 0x18],0x0
MOV EAX,EBX
CALL 0x00103810
CMP dword ptr [EBX + 0x28],0x0
MOV ECX,dword ptr [EBX + 0x14]
MOV dword ptr [ESP + 0x18],EAX
MOV EDX,dword ptr [EBX + 0x10]
LEA EAX,[ESP + 0x18]
JZ 0x00103a97
CMP byte ptr [EBX + 0xea],0x0
JNZ 0x00103a10
CMP byte ptr [EBX + 0xe9],0x0
JNZ 0x00103a42
SUB ESP,0x8
PUSH EBP
PUSH ECX
PUSH EDX
LEA EDX,[EDI + 0xfffb51f0]
PUSH EDX
PUSH ESI
PUSH EAX
MOV dword ptr [ESP + 0x2c],EAX
CALL 0x000e9b50
ADD ESP,0x18
LEA EDX,[EDI + 0xfffb5228]
PUSH EBP
PUSH dword ptr [EBX + 0x14]
PUSH dword ptr [EBX + 0x10]
PUSH EDX
PUSH ESI
MOV EAX,dword ptr [ESP + 0x28]
PUSH EAX
CALL 0x000e9b50
ADD ESP,0x20
MOV EAX,dword ptr [ESP + 0x18]
MOV ECX,dword ptr [ESP + 0x1c]
XOR ECX,dword ptr GS:[0x14]
JNZ 0x00103ac1
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x8
PUSH EBP
PUSH ECX
PUSH EDX
LEA EDX,[EDI + 0xfffb5188]
PUSH EDX
PUSH ESI
PUSH EAX
MOV dword ptr [ESP + 0x2c],EAX
CALL 0x000e9b50
ADD ESP,0x20
MOV ECX,dword ptr [EBX + 0x14]
MOV EDX,dword ptr [EBX + 0x10]
CMP byte ptr [EBX + 0xe9],0x0
MOV EAX,dword ptr [ESP + 0xc]
JZ 0x001039b3
SUB ESP,0x8
PUSH EBP
PUSH ECX
PUSH EDX
LEA EDX,[EDI + 0xfffb51c0]
PUSH EDX
PUSH ESI
PUSH EAX
MOV dword ptr [ESP + 0x2c],EAX
CALL 0x000e9b50
ADD ESP,0x20
MOV ECX,dword ptr [EBX + 0x14]
MOV EDX,dword ptr [EBX + 0x10]
MOV EAX,dword ptr [ESP + 0xc]
JMP 0x001039b3
MOV EAX,EBX
CALL 0x000e98a0
MOV dword ptr [ESP + 0x18],EAX
TEST EAX,EAX
JZ 0x0010397e
CMP dword ptr [EBX + 0x28],0x0
MOV ECX,dword ptr [EBX + 0x14]
LEA EAX,[ESP + 0x18]
MOV EDX,dword ptr [EBX + 0x10]
JNZ 0x0010399d
SUB ESP,0x8
PUSH EBP
PUSH ECX
PUSH EDX
LEA EDX,[EDI + 0xfffb5150]
PUSH EDX
PUSH ESI
PUSH EAX
MOV dword ptr [ESP + 0x2c],EAX
CALL 0x000e9b50
ADD ESP,0x20
MOV ECX,dword ptr [EBX + 0x14]
MOV EDX,dword ptr [EBX + 0x10]
MOV EAX,dword ptr [ESP + 0xc]
JMP 0x0010399d
CALL 0x00116110
(translation_unit "int FUN_00103940(int param_1,undefined4 param_2)\n\n{\n  char cVar1;\n  undefined4 uVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  int unaff_EDI;\n  int in_GS_OFFSET;\n  int local_24;\n  int local_20;\n  \n  FUN_00036ac5();\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar2 = *(undefined4 *)(param_1 + 0xc);\n  if (*(char *)(param_1 + 0xe9) == '\x02') {\n    local_24 = FUN_000e98a0();\n    if (local_24 != 0) {\n      iVar3 = *(int *)(param_1 + 0x28);\n      uVar4 = *(undefined4 *)(param_1 + 0x14);\n      uVar5 = *(undefined4 *)(param_1 + 0x10);\n      goto joined_r0x00103a91;\n    }\n  }\n  else {\n    local_24 = 0;\n  }\n  local_24 = FUN_00103810();\n  iVar3 = *(int *)(param_1 + 0x28);\n  uVar4 = *(undefined4 *)(param_1 + 0x14);\n  uVar5 = *(undefined4 *)(param_1 + 0x10);\njoined_r0x00103a91:\n  if (iVar3 == 0) {\n    FUN_000e9b50(&local_24,uVar2,unaff_EDI + 0x2d631,uVar5,uVar4,param_2);\n    uVar4 = *(undefined4 *)(param_1 + 0x14);\n    uVar5 = *(undefined4 *)(param_1 + 0x10);\n  }\n  if (*(char *)(param_1 + 0xea) == '\0') {\n    cVar1 = *(char *)(param_1 + 0xe9);\n  }\n  else {\n    FUN_000e9b50(&local_24,uVar2,unaff_EDI + 0x2d669,uVar5,uVar4,param_2);\n    uVar4 = *(undefined4 *)(param_1 + 0x14);\n    uVar5 = *(undefined4 *)(param_1 + 0x10);\n    cVar1 = *(char *)(param_1 + 0xe9);\n  }\n  if (cVar1 != '\0') {\n    FUN_000e9b50(&local_24,uVar2,unaff_EDI + 0x2d6a1,uVar5,uVar4,param_2);\n    uVar4 = *(undefined4 *)(param_1 + 0x14);\n    uVar5 = *(undefined4 *)(param_1 + 0x10);\n  }\n  FUN_000e9b50(&local_24,uVar2,unaff_EDI + 0x2d6d1,uVar5,uVar4,param_2);\n  FUN_000e9b50(&local_24,uVar2,unaff_EDI + 0x2d709,*(undefined4 *)(param_1 + 0x10),\n               *(undefined4 *)(param_1 + 0x14),param_2);\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00116110();\n  }\n  return local_24;\n}\n\n" (function_definition "int FUN_00103940(int param_1,undefined4 param_2)\n\n{\n  char cVar1;\n  undefined4 uVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  int unaff_EDI;\n  int in_GS_OFFSET;\n  int local_24;\n  int local_20;\n  \n  FUN_00036ac5();\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar2 = *(undefined4 *)(param_1 + 0xc);\n  if (*(char *)(param_1 + 0xe9) == '\x02') {\n    local_24 = FUN_000e98a0();\n    if (local_24 != 0) {\n      iVar3 = *(int *)(param_1 + 0x28);\n      uVar4 = *(undefined4 *)(param_1 + 0x14);\n      uVar5 = *(undefined4 *)(param_1 + 0x10);\n      goto joined_r0x00103a91;\n    }\n  }\n  else {\n    local_24 = 0;\n  }\n  local_24 = FUN_00103810();\n  iVar3 = *(int *)(param_1 + 0x28);\n  uVar4 = *(undefined4 *)(param_1 + 0x14);\n  uVar5 = *(undefined4 *)(param_1 + 0x10);\njoined_r0x00103a91:\n  if (iVar3 == 0) {\n    FUN_000e9b50(&local_24,uVar2,unaff_EDI + 0x2d631,uVar5,uVar4,param_2);\n    uVar4 = *(undefined4 *)(param_1 + 0x14);\n    uVar5 = *(undefined4 *)(param_1 + 0x10);\n  }\n  if (*(char *)(param_1 + 0xea) == '\0') {\n    cVar1 = *(char *)(param_1 + 0xe9);\n  }\n  else {\n    FUN_000e9b50(&local_24,uVar2,unaff_EDI + 0x2d669,uVar5,uVar4,param_2);\n    uVar4 = *(undefined4 *)(param_1 + 0x14);\n    uVar5 = *(undefined4 *)(param_1 + 0x10);\n    cVar1 = *(char *)(param_1 + 0xe9);\n  }\n  if (cVar1 != '\0') {\n    FUN_000e9b50(&local_24,uVar2,unaff_EDI + 0x2d6a1,uVar5,uVar4,param_2);\n    uVar4 = *(undefined4 *)(param_1 + 0x14);\n    uVar5 = *(undefined4 *)(param_1 + 0x10);\n  }\n  FUN_000e9b50(&local_24,uVar2,unaff_EDI + 0x2d6d1,uVar5,uVar4,param_2);\n  FUN_000e9b50(&local_24,uVar2,unaff_EDI + 0x2d709,*(undefined4 *)(param_1 + 0x10),\n               *(undefined4 *)(param_1 + 0x14),param_2);\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00116110();\n  }\n  return local_24;\n}" primitive_type (function_declarator "FUN_00103940(int param_1,undefined4 param_2)" identifier (parameter_list "(int param_1,undefined4 param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  char cVar1;\n  undefined4 uVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  int unaff_EDI;\n  int in_GS_OFFSET;\n  int local_24;\n  int local_20;\n  \n  FUN_00036ac5();\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar2 = *(undefined4 *)(param_1 + 0xc);\n  if (*(char *)(param_1 + 0xe9) == '\x02') {\n    local_24 = FUN_000e98a0();\n    if (local_24 != 0) {\n      iVar3 = *(int *)(param_1 + 0x28);\n      uVar4 = *(undefined4 *)(param_1 + 0x14);\n      uVar5 = *(undefined4 *)(param_1 + 0x10);\n      goto joined_r0x00103a91;\n    }\n  }\n  else {\n    local_24 = 0;\n  }\n  local_24 = FUN_00103810();\n  iVar3 = *(int *)(param_1 + 0x28);\n  uVar4 = *(undefined4 *)(param_1 + 0x14);\n  uVar5 = *(undefined4 *)(param_1 + 0x10);\njoined_r0x00103a91:\n  if (iVar3 == 0) {\n    FUN_000e9b50(&local_24,uVar2,unaff_EDI + 0x2d631,uVar5,uVar4,param_2);\n    uVar4 = *(undefined4 *)(param_1 + 0x14);\n    uVar5 = *(undefined4 *)(param_1 + 0x10);\n  }\n  if (*(char *)(param_1 + 0xea) == '\0') {\n    cVar1 = *(char *)(param_1 + 0xe9);\n  }\n  else {\n    FUN_000e9b50(&local_24,uVar2,unaff_EDI + 0x2d669,uVar5,uVar4,param_2);\n    uVar4 = *(undefined4 *)(param_1 + 0x14);\n    uVar5 = *(undefined4 *)(param_1 + 0x10);\n    cVar1 = *(char *)(param_1 + 0xe9);\n  }\n  if (cVar1 != '\0') {\n    FUN_000e9b50(&local_24,uVar2,unaff_EDI + 0x2d6a1,uVar5,uVar4,param_2);\n    uVar4 = *(undefined4 *)(param_1 + 0x14);\n    uVar5 = *(undefined4 *)(param_1 + 0x10);\n  }\n  FUN_000e9b50(&local_24,uVar2,unaff_EDI + 0x2d6d1,uVar5,uVar4,param_2);\n  FUN_000e9b50(&local_24,uVar2,unaff_EDI + 0x2d709,*(undefined4 *)(param_1 + 0x10),\n               *(undefined4 *)(param_1 + 0x14),param_2);\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00116110();\n  }\n  return local_24;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "int local_24;" primitive_type identifier ;) (declaration "int local_20;" primitive_type identifier ;) (expression_statement "FUN_00036ac5();" (call_expression "FUN_00036ac5()" identifier (argument_list "()" ( ))) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "uVar2 = *(undefined4 *)(param_1 + 0xc);" (assignment_expression "uVar2 = *(undefined4 *)(param_1 + 0xc)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 0xc)" * (cast_expression "(undefined4 *)(param_1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) (if_statement "if (*(char *)(param_1 + 0xe9) == '\x02') {\n    local_24 = FUN_000e98a0();\n    if (local_24 != 0) {\n      iVar3 = *(int *)(param_1 + 0x28);\n      uVar4 = *(undefined4 *)(param_1 + 0x14);\n      uVar5 = *(undefined4 *)(param_1 + 0x10);\n      goto joined_r0x00103a91;\n    }\n  }\n  else {\n    local_24 = 0;\n  }" if (parenthesized_expression "(*(char *)(param_1 + 0xe9) == '\x02')" ( (binary_expression "*(char *)(param_1 + 0xe9) == '\x02'" (pointer_expression "*(char *)(param_1 + 0xe9)" * (cast_expression "(char *)(param_1 + 0xe9)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xe9)" ( (binary_expression "param_1 + 0xe9" identifier + number_literal) )))) == (char_literal "'\x02'" ' escape_sequence ')) )) (compound_statement "{\n    local_24 = FUN_000e98a0();\n    if (local_24 != 0) {\n      iVar3 = *(int *)(param_1 + 0x28);\n      uVar4 = *(undefined4 *)(param_1 + 0x14);\n      uVar5 = *(undefined4 *)(param_1 + 0x10);\n      goto joined_r0x00103a91;\n    }\n  }" { (expression_statement "local_24 = FUN_000e98a0();" (assignment_expression "local_24 = FUN_000e98a0()" identifier = (call_expression "FUN_000e98a0()" identifier (argument_list "()" ( )))) ;) (if_statement "if (local_24 != 0) {\n      iVar3 = *(int *)(param_1 + 0x28);\n      uVar4 = *(undefined4 *)(param_1 + 0x14);\n      uVar5 = *(undefined4 *)(param_1 + 0x10);\n      goto joined_r0x00103a91;\n    }" if (parenthesized_expression "(local_24 != 0)" ( (binary_expression "local_24 != 0" identifier != number_literal) )) (compound_statement "{\n      iVar3 = *(int *)(param_1 + 0x28);\n      uVar4 = *(undefined4 *)(param_1 + 0x14);\n      uVar5 = *(undefined4 *)(param_1 + 0x10);\n      goto joined_r0x00103a91;\n    }" { (expression_statement "iVar3 = *(int *)(param_1 + 0x28);" (assignment_expression "iVar3 = *(int *)(param_1 + 0x28)" identifier = (pointer_expression "*(int *)(param_1 + 0x28)" * (cast_expression "(int *)(param_1 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) ))))) ;) (expression_statement "uVar4 = *(undefined4 *)(param_1 + 0x14);" (assignment_expression "uVar4 = *(undefined4 *)(param_1 + 0x14)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 0x14)" * (cast_expression "(undefined4 *)(param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) ;) (expression_statement "uVar5 = *(undefined4 *)(param_1 + 0x10);" (assignment_expression "uVar5 = *(undefined4 *)(param_1 + 0x10)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 0x10)" * (cast_expression "(undefined4 *)(param_1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) ;) (goto_statement "goto joined_r0x00103a91;" goto statement_identifier ;) })) }) (else_clause "else {\n    local_24 = 0;\n  }" else (compound_statement "{\n    local_24 = 0;\n  }" { (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" identifier = number_literal) ;) }))) (expression_statement "local_24 = FUN_00103810();" (assignment_expression "local_24 = FUN_00103810()" identifier = (call_expression "FUN_00103810()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar3 = *(int *)(param_1 + 0x28);" (assignment_expression "iVar3 = *(int *)(param_1 + 0x28)" identifier = (pointer_expression "*(int *)(param_1 + 0x28)" * (cast_expression "(int *)(param_1 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) ))))) ;) (expression_statement "uVar4 = *(undefined4 *)(param_1 + 0x14);" (assignment_expression "uVar4 = *(undefined4 *)(param_1 + 0x14)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 0x14)" * (cast_expression "(undefined4 *)(param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) ;) (expression_statement "uVar5 = *(undefined4 *)(param_1 + 0x10);" (assignment_expression "uVar5 = *(undefined4 *)(param_1 + 0x10)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 0x10)" * (cast_expression "(undefined4 *)(param_1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) ;) (labeled_statement "joined_r0x00103a91:\n  if (iVar3 == 0) {\n    FUN_000e9b50(&local_24,uVar2,unaff_EDI + 0x2d631,uVar5,uVar4,param_2);\n    uVar4 = *(undefined4 *)(param_1 + 0x14);\n    uVar5 = *(undefined4 *)(param_1 + 0x10);\n  }" statement_identifier : (if_statement "if (iVar3 == 0) {\n    FUN_000e9b50(&local_24,uVar2,unaff_EDI + 0x2d631,uVar5,uVar4,param_2);\n    uVar4 = *(undefined4 *)(param_1 + 0x14);\n    uVar5 = *(undefined4 *)(param_1 + 0x10);\n  }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n    FUN_000e9b50(&local_24,uVar2,unaff_EDI + 0x2d631,uVar5,uVar4,param_2);\n    uVar4 = *(undefined4 *)(param_1 + 0x14);\n    uVar5 = *(undefined4 *)(param_1 + 0x10);\n  }" { (expression_statement "FUN_000e9b50(&local_24,uVar2,unaff_EDI + 0x2d631,uVar5,uVar4,param_2);" (call_expression "FUN_000e9b50(&local_24,uVar2,unaff_EDI + 0x2d631,uVar5,uVar4,param_2)" identifier (argument_list "(&local_24,uVar2,unaff_EDI + 0x2d631,uVar5,uVar4,param_2)" ( (pointer_expression "&local_24" & identifier) , identifier , (binary_expression "unaff_EDI + 0x2d631" identifier + number_literal) , identifier , identifier , identifier ))) ;) (expression_statement "uVar4 = *(undefined4 *)(param_1 + 0x14);" (assignment_expression "uVar4 = *(undefined4 *)(param_1 + 0x14)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 0x14)" * (cast_expression "(undefined4 *)(param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) ;) (expression_statement "uVar5 = *(undefined4 *)(param_1 + 0x10);" (assignment_expression "uVar5 = *(undefined4 *)(param_1 + 0x10)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 0x10)" * (cast_expression "(undefined4 *)(param_1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) ;) }))) (if_statement "if (*(char *)(param_1 + 0xea) == '\0') {\n    cVar1 = *(char *)(param_1 + 0xe9);\n  }\n  else {\n    FUN_000e9b50(&local_24,uVar2,unaff_EDI + 0x2d669,uVar5,uVar4,param_2);\n    uVar4 = *(undefined4 *)(param_1 + 0x14);\n    uVar5 = *(undefined4 *)(param_1 + 0x10);\n    cVar1 = *(char *)(param_1 + 0xe9);\n  }" if (parenthesized_expression "(*(char *)(param_1 + 0xea) == '\0')" ( (binary_expression "*(char *)(param_1 + 0xea) == '\0'" (pointer_expression "*(char *)(param_1 + 0xea)" * (cast_expression "(char *)(param_1 + 0xea)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xea)" ( (binary_expression "param_1 + 0xea" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    cVar1 = *(char *)(param_1 + 0xe9);\n  }" { (expression_statement "cVar1 = *(char *)(param_1 + 0xe9);" (assignment_expression "cVar1 = *(char *)(param_1 + 0xe9)" identifier = (pointer_expression "*(char *)(param_1 + 0xe9)" * (cast_expression "(char *)(param_1 + 0xe9)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xe9)" ( (binary_expression "param_1 + 0xe9" identifier + number_literal) ))))) ;) }) (else_clause "else {\n    FUN_000e9b50(&local_24,uVar2,unaff_EDI + 0x2d669,uVar5,uVar4,param_2);\n    uVar4 = *(undefined4 *)(param_1 + 0x14);\n    uVar5 = *(undefined4 *)(param_1 + 0x10);\n    cVar1 = *(char *)(param_1 + 0xe9);\n  }" else (compound_statement "{\n    FUN_000e9b50(&local_24,uVar2,unaff_EDI + 0x2d669,uVar5,uVar4,param_2);\n    uVar4 = *(undefined4 *)(param_1 + 0x14);\n    uVar5 = *(undefined4 *)(param_1 + 0x10);\n    cVar1 = *(char *)(param_1 + 0xe9);\n  }" { (expression_statement "FUN_000e9b50(&local_24,uVar2,unaff_EDI + 0x2d669,uVar5,uVar4,param_2);" (call_expression "FUN_000e9b50(&local_24,uVar2,unaff_EDI + 0x2d669,uVar5,uVar4,param_2)" identifier (argument_list "(&local_24,uVar2,unaff_EDI + 0x2d669,uVar5,uVar4,param_2)" ( (pointer_expression "&local_24" & identifier) , identifier , (binary_expression "unaff_EDI + 0x2d669" identifier + number_literal) , identifier , identifier , identifier ))) ;) (expression_statement "uVar4 = *(undefined4 *)(param_1 + 0x14);" (assignment_expression "uVar4 = *(undefined4 *)(param_1 + 0x14)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 0x14)" * (cast_expression "(undefined4 *)(param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) ;) (expression_statement "uVar5 = *(undefined4 *)(param_1 + 0x10);" (assignment_expression "uVar5 = *(undefined4 *)(param_1 + 0x10)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 0x10)" * (cast_expression "(undefined4 *)(param_1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) ;) (expression_statement "cVar1 = *(char *)(param_1 + 0xe9);" (assignment_expression "cVar1 = *(char *)(param_1 + 0xe9)" identifier = (pointer_expression "*(char *)(param_1 + 0xe9)" * (cast_expression "(char *)(param_1 + 0xe9)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xe9)" ( (binary_expression "param_1 + 0xe9" identifier + number_literal) ))))) ;) }))) (if_statement "if (cVar1 != '\0') {\n    FUN_000e9b50(&local_24,uVar2,unaff_EDI + 0x2d6a1,uVar5,uVar4,param_2);\n    uVar4 = *(undefined4 *)(param_1 + 0x14);\n    uVar5 = *(undefined4 *)(param_1 + 0x10);\n  }" if (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    FUN_000e9b50(&local_24,uVar2,unaff_EDI + 0x2d6a1,uVar5,uVar4,param_2);\n    uVar4 = *(undefined4 *)(param_1 + 0x14);\n    uVar5 = *(undefined4 *)(param_1 + 0x10);\n  }" { (expression_statement "FUN_000e9b50(&local_24,uVar2,unaff_EDI + 0x2d6a1,uVar5,uVar4,param_2);" (call_expression "FUN_000e9b50(&local_24,uVar2,unaff_EDI + 0x2d6a1,uVar5,uVar4,param_2)" identifier (argument_list "(&local_24,uVar2,unaff_EDI + 0x2d6a1,uVar5,uVar4,param_2)" ( (pointer_expression "&local_24" & identifier) , identifier , (binary_expression "unaff_EDI + 0x2d6a1" identifier + number_literal) , identifier , identifier , identifier ))) ;) (expression_statement "uVar4 = *(undefined4 *)(param_1 + 0x14);" (assignment_expression "uVar4 = *(undefined4 *)(param_1 + 0x14)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 0x14)" * (cast_expression "(undefined4 *)(param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) ;) (expression_statement "uVar5 = *(undefined4 *)(param_1 + 0x10);" (assignment_expression "uVar5 = *(undefined4 *)(param_1 + 0x10)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 0x10)" * (cast_expression "(undefined4 *)(param_1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) ;) })) (expression_statement "FUN_000e9b50(&local_24,uVar2,unaff_EDI + 0x2d6d1,uVar5,uVar4,param_2);" (call_expression "FUN_000e9b50(&local_24,uVar2,unaff_EDI + 0x2d6d1,uVar5,uVar4,param_2)" identifier (argument_list "(&local_24,uVar2,unaff_EDI + 0x2d6d1,uVar5,uVar4,param_2)" ( (pointer_expression "&local_24" & identifier) , identifier , (binary_expression "unaff_EDI + 0x2d6d1" identifier + number_literal) , identifier , identifier , identifier ))) ;) (expression_statement "FUN_000e9b50(&local_24,uVar2,unaff_EDI + 0x2d709,*(undefined4 *)(param_1 + 0x10),\n               *(undefined4 *)(param_1 + 0x14),param_2);" (call_expression "FUN_000e9b50(&local_24,uVar2,unaff_EDI + 0x2d709,*(undefined4 *)(param_1 + 0x10),\n               *(undefined4 *)(param_1 + 0x14),param_2)" identifier (argument_list "(&local_24,uVar2,unaff_EDI + 0x2d709,*(undefined4 *)(param_1 + 0x10),\n               *(undefined4 *)(param_1 + 0x14),param_2)" ( (pointer_expression "&local_24" & identifier) , identifier , (binary_expression "unaff_EDI + 0x2d709" identifier + number_literal) , (pointer_expression "*(undefined4 *)(param_1 + 0x10)" * (cast_expression "(undefined4 *)(param_1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(param_1 + 0x14)" * (cast_expression "(undefined4 *)(param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) , identifier ))) ;) (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00116110();\n  }" if (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    FUN_00116110();\n  }" { comment (expression_statement "FUN_00116110();" (call_expression "FUN_00116110()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return local_24;" return identifier ;) })))
(translation_unit "/* WARNING: Unknown calling convention */\n\nint fts3RenameMethod(sqlite3_vtab *pVtab,char *zName)\n\n{\n  char cVar1;\n  sqlite3 *db;\n  int iVar2;\n  char *pcVar3;\n  int iVar4;\n  int unaff_EDI;\n  int in_GS_OFFSET;\n  int rc;\n  int local_20;\n  \n  __x86_get_pc_thunk_di();\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  db = (sqlite3 *)pVtab[1].pModule;\n  if (*(char *)((int)&pVtab[0x13].nRef + 1) == '\x02') {\n    rc = fts3SetHasStat((Fts3Table *)pVtab);\n    if (rc != 0) {\n      iVar2 = pVtab[3].nRef;\n      pcVar3 = pVtab[1].zErrMsg;\n      iVar4 = pVtab[1].nRef;\n      goto joined_r0x00103a91;\n    }\n  }\n  else {\n    rc = 0;\n  }\n  rc = sqlite3Fts3PendingTermsFlush((Fts3Table *)pVtab);\n  iVar2 = pVtab[3].nRef;\n  pcVar3 = pVtab[1].zErrMsg;\n  iVar4 = pVtab[1].nRef;\njoined_r0x00103a91:\n  if (iVar2 == 0) {\n    fts3DbExec(&rc,db,(char *)(unaff_EDI + 0x2d631),iVar4,pcVar3,zName);\n    pcVar3 = pVtab[1].zErrMsg;\n    iVar4 = pVtab[1].nRef;\n  }\n  if (*(char *)((int)&pVtab[0x13].nRef + 2) == '\0') {\n    cVar1 = *(char *)((int)&pVtab[0x13].nRef + 1);\n  }\n  else {\n    fts3DbExec(&rc,db,(char *)(unaff_EDI + 0x2d669),iVar4,pcVar3,zName);\n    pcVar3 = pVtab[1].zErrMsg;\n    iVar4 = pVtab[1].nRef;\n    cVar1 = *(char *)((int)&pVtab[0x13].nRef + 1);\n  }\n  if (cVar1 != '\0') {\n    fts3DbExec(&rc,db,(char *)(unaff_EDI + 0x2d6a1),iVar4,pcVar3,zName);\n    pcVar3 = pVtab[1].zErrMsg;\n    iVar4 = pVtab[1].nRef;\n  }\n  fts3DbExec(&rc,db,(char *)(unaff_EDI + 0x2d6d1),iVar4,pcVar3,zName);\n  fts3DbExec(&rc,db,(char *)(unaff_EDI + 0x2d709),pVtab[1].nRef,pVtab[1].zErrMsg,zName);\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return rc;\n}\n\n" comment (function_definition "int fts3RenameMethod(sqlite3_vtab *pVtab,char *zName)\n\n{\n  char cVar1;\n  sqlite3 *db;\n  int iVar2;\n  char *pcVar3;\n  int iVar4;\n  int unaff_EDI;\n  int in_GS_OFFSET;\n  int rc;\n  int local_20;\n  \n  __x86_get_pc_thunk_di();\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  db = (sqlite3 *)pVtab[1].pModule;\n  if (*(char *)((int)&pVtab[0x13].nRef + 1) == '\x02') {\n    rc = fts3SetHasStat((Fts3Table *)pVtab);\n    if (rc != 0) {\n      iVar2 = pVtab[3].nRef;\n      pcVar3 = pVtab[1].zErrMsg;\n      iVar4 = pVtab[1].nRef;\n      goto joined_r0x00103a91;\n    }\n  }\n  else {\n    rc = 0;\n  }\n  rc = sqlite3Fts3PendingTermsFlush((Fts3Table *)pVtab);\n  iVar2 = pVtab[3].nRef;\n  pcVar3 = pVtab[1].zErrMsg;\n  iVar4 = pVtab[1].nRef;\njoined_r0x00103a91:\n  if (iVar2 == 0) {\n    fts3DbExec(&rc,db,(char *)(unaff_EDI + 0x2d631),iVar4,pcVar3,zName);\n    pcVar3 = pVtab[1].zErrMsg;\n    iVar4 = pVtab[1].nRef;\n  }\n  if (*(char *)((int)&pVtab[0x13].nRef + 2) == '\0') {\n    cVar1 = *(char *)((int)&pVtab[0x13].nRef + 1);\n  }\n  else {\n    fts3DbExec(&rc,db,(char *)(unaff_EDI + 0x2d669),iVar4,pcVar3,zName);\n    pcVar3 = pVtab[1].zErrMsg;\n    iVar4 = pVtab[1].nRef;\n    cVar1 = *(char *)((int)&pVtab[0x13].nRef + 1);\n  }\n  if (cVar1 != '\0') {\n    fts3DbExec(&rc,db,(char *)(unaff_EDI + 0x2d6a1),iVar4,pcVar3,zName);\n    pcVar3 = pVtab[1].zErrMsg;\n    iVar4 = pVtab[1].nRef;\n  }\n  fts3DbExec(&rc,db,(char *)(unaff_EDI + 0x2d6d1),iVar4,pcVar3,zName);\n  fts3DbExec(&rc,db,(char *)(unaff_EDI + 0x2d709),pVtab[1].nRef,pVtab[1].zErrMsg,zName);\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return rc;\n}" primitive_type (function_declarator "fts3RenameMethod(sqlite3_vtab *pVtab,char *zName)" identifier (parameter_list "(sqlite3_vtab *pVtab,char *zName)" ( (parameter_declaration "sqlite3_vtab *pVtab" type_identifier (pointer_declarator "*pVtab" * identifier)) , (parameter_declaration "char *zName" primitive_type (pointer_declarator "*zName" * identifier)) ))) (compound_statement "{\n  char cVar1;\n  sqlite3 *db;\n  int iVar2;\n  char *pcVar3;\n  int iVar4;\n  int unaff_EDI;\n  int in_GS_OFFSET;\n  int rc;\n  int local_20;\n  \n  __x86_get_pc_thunk_di();\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  db = (sqlite3 *)pVtab[1].pModule;\n  if (*(char *)((int)&pVtab[0x13].nRef + 1) == '\x02') {\n    rc = fts3SetHasStat((Fts3Table *)pVtab);\n    if (rc != 0) {\n      iVar2 = pVtab[3].nRef;\n      pcVar3 = pVtab[1].zErrMsg;\n      iVar4 = pVtab[1].nRef;\n      goto joined_r0x00103a91;\n    }\n  }\n  else {\n    rc = 0;\n  }\n  rc = sqlite3Fts3PendingTermsFlush((Fts3Table *)pVtab);\n  iVar2 = pVtab[3].nRef;\n  pcVar3 = pVtab[1].zErrMsg;\n  iVar4 = pVtab[1].nRef;\njoined_r0x00103a91:\n  if (iVar2 == 0) {\n    fts3DbExec(&rc,db,(char *)(unaff_EDI + 0x2d631),iVar4,pcVar3,zName);\n    pcVar3 = pVtab[1].zErrMsg;\n    iVar4 = pVtab[1].nRef;\n  }\n  if (*(char *)((int)&pVtab[0x13].nRef + 2) == '\0') {\n    cVar1 = *(char *)((int)&pVtab[0x13].nRef + 1);\n  }\n  else {\n    fts3DbExec(&rc,db,(char *)(unaff_EDI + 0x2d669),iVar4,pcVar3,zName);\n    pcVar3 = pVtab[1].zErrMsg;\n    iVar4 = pVtab[1].nRef;\n    cVar1 = *(char *)((int)&pVtab[0x13].nRef + 1);\n  }\n  if (cVar1 != '\0') {\n    fts3DbExec(&rc,db,(char *)(unaff_EDI + 0x2d6a1),iVar4,pcVar3,zName);\n    pcVar3 = pVtab[1].zErrMsg;\n    iVar4 = pVtab[1].nRef;\n  }\n  fts3DbExec(&rc,db,(char *)(unaff_EDI + 0x2d6d1),iVar4,pcVar3,zName);\n  fts3DbExec(&rc,db,(char *)(unaff_EDI + 0x2d709),pVtab[1].nRef,pVtab[1].zErrMsg,zName);\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return rc;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "sqlite3 *db;" type_identifier (pointer_declarator "*db" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "int rc;" primitive_type identifier ;) (declaration "int local_20;" primitive_type identifier ;) (expression_statement "__x86_get_pc_thunk_di();" (call_expression "__x86_get_pc_thunk_di()" identifier (argument_list "()" ( ))) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "db = (sqlite3 *)pVtab[1].pModule;" (assignment_expression "db = (sqlite3 *)pVtab[1].pModule" identifier = (cast_expression "(sqlite3 *)pVtab[1].pModule" ( (type_descriptor "sqlite3 *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "pVtab[1].pModule" (subscript_expression "pVtab[1]" identifier [ number_literal ]) . field_identifier))) ;) (if_statement "if (*(char *)((int)&pVtab[0x13].nRef + 1) == '\x02') {\n    rc = fts3SetHasStat((Fts3Table *)pVtab);\n    if (rc != 0) {\n      iVar2 = pVtab[3].nRef;\n      pcVar3 = pVtab[1].zErrMsg;\n      iVar4 = pVtab[1].nRef;\n      goto joined_r0x00103a91;\n    }\n  }\n  else {\n    rc = 0;\n  }" if (parenthesized_expression "(*(char *)((int)&pVtab[0x13].nRef + 1) == '\x02')" ( (binary_expression "*(char *)((int)&pVtab[0x13].nRef + 1) == '\x02'" (pointer_expression "*(char *)((int)&pVtab[0x13].nRef + 1)" * (cast_expression "(char *)((int)&pVtab[0x13].nRef + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&pVtab[0x13].nRef + 1)" ( (binary_expression "(int)&pVtab[0x13].nRef + 1" (cast_expression "(int)&pVtab[0x13].nRef" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&pVtab[0x13].nRef" & (field_expression "pVtab[0x13].nRef" (subscript_expression "pVtab[0x13]" identifier [ number_literal ]) . field_identifier))) + number_literal) )))) == (char_literal "'\x02'" ' escape_sequence ')) )) (compound_statement "{\n    rc = fts3SetHasStat((Fts3Table *)pVtab);\n    if (rc != 0) {\n      iVar2 = pVtab[3].nRef;\n      pcVar3 = pVtab[1].zErrMsg;\n      iVar4 = pVtab[1].nRef;\n      goto joined_r0x00103a91;\n    }\n  }" { (expression_statement "rc = fts3SetHasStat((Fts3Table *)pVtab);" (assignment_expression "rc = fts3SetHasStat((Fts3Table *)pVtab)" identifier = (call_expression "fts3SetHasStat((Fts3Table *)pVtab)" identifier (argument_list "((Fts3Table *)pVtab)" ( (cast_expression "(Fts3Table *)pVtab" ( (type_descriptor "Fts3Table *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) (if_statement "if (rc != 0) {\n      iVar2 = pVtab[3].nRef;\n      pcVar3 = pVtab[1].zErrMsg;\n      iVar4 = pVtab[1].nRef;\n      goto joined_r0x00103a91;\n    }" if (parenthesized_expression "(rc != 0)" ( (binary_expression "rc != 0" identifier != number_literal) )) (compound_statement "{\n      iVar2 = pVtab[3].nRef;\n      pcVar3 = pVtab[1].zErrMsg;\n      iVar4 = pVtab[1].nRef;\n      goto joined_r0x00103a91;\n    }" { (expression_statement "iVar2 = pVtab[3].nRef;" (assignment_expression "iVar2 = pVtab[3].nRef" identifier = (field_expression "pVtab[3].nRef" (subscript_expression "pVtab[3]" identifier [ number_literal ]) . field_identifier)) ;) (expression_statement "pcVar3 = pVtab[1].zErrMsg;" (assignment_expression "pcVar3 = pVtab[1].zErrMsg" identifier = (field_expression "pVtab[1].zErrMsg" (subscript_expression "pVtab[1]" identifier [ number_literal ]) . field_identifier)) ;) (expression_statement "iVar4 = pVtab[1].nRef;" (assignment_expression "iVar4 = pVtab[1].nRef" identifier = (field_expression "pVtab[1].nRef" (subscript_expression "pVtab[1]" identifier [ number_literal ]) . field_identifier)) ;) (goto_statement "goto joined_r0x00103a91;" goto statement_identifier ;) })) }) (else_clause "else {\n    rc = 0;\n  }" else (compound_statement "{\n    rc = 0;\n  }" { (expression_statement "rc = 0;" (assignment_expression "rc = 0" identifier = number_literal) ;) }))) (expression_statement "rc = sqlite3Fts3PendingTermsFlush((Fts3Table *)pVtab);" (assignment_expression "rc = sqlite3Fts3PendingTermsFlush((Fts3Table *)pVtab)" identifier = (call_expression "sqlite3Fts3PendingTermsFlush((Fts3Table *)pVtab)" identifier (argument_list "((Fts3Table *)pVtab)" ( (cast_expression "(Fts3Table *)pVtab" ( (type_descriptor "Fts3Table *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) (expression_statement "iVar2 = pVtab[3].nRef;" (assignment_expression "iVar2 = pVtab[3].nRef" identifier = (field_expression "pVtab[3].nRef" (subscript_expression "pVtab[3]" identifier [ number_literal ]) . field_identifier)) ;) (expression_statement "pcVar3 = pVtab[1].zErrMsg;" (assignment_expression "pcVar3 = pVtab[1].zErrMsg" identifier = (field_expression "pVtab[1].zErrMsg" (subscript_expression "pVtab[1]" identifier [ number_literal ]) . field_identifier)) ;) (expression_statement "iVar4 = pVtab[1].nRef;" (assignment_expression "iVar4 = pVtab[1].nRef" identifier = (field_expression "pVtab[1].nRef" (subscript_expression "pVtab[1]" identifier [ number_literal ]) . field_identifier)) ;) (labeled_statement "joined_r0x00103a91:\n  if (iVar2 == 0) {\n    fts3DbExec(&rc,db,(char *)(unaff_EDI + 0x2d631),iVar4,pcVar3,zName);\n    pcVar3 = pVtab[1].zErrMsg;\n    iVar4 = pVtab[1].nRef;\n  }" statement_identifier : (if_statement "if (iVar2 == 0) {\n    fts3DbExec(&rc,db,(char *)(unaff_EDI + 0x2d631),iVar4,pcVar3,zName);\n    pcVar3 = pVtab[1].zErrMsg;\n    iVar4 = pVtab[1].nRef;\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    fts3DbExec(&rc,db,(char *)(unaff_EDI + 0x2d631),iVar4,pcVar3,zName);\n    pcVar3 = pVtab[1].zErrMsg;\n    iVar4 = pVtab[1].nRef;\n  }" { (expression_statement "fts3DbExec(&rc,db,(char *)(unaff_EDI + 0x2d631),iVar4,pcVar3,zName);" (call_expression "fts3DbExec(&rc,db,(char *)(unaff_EDI + 0x2d631),iVar4,pcVar3,zName)" identifier (argument_list "(&rc,db,(char *)(unaff_EDI + 0x2d631),iVar4,pcVar3,zName)" ( (pointer_expression "&rc" & identifier) , identifier , (cast_expression "(char *)(unaff_EDI + 0x2d631)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x2d631)" ( (binary_expression "unaff_EDI + 0x2d631" identifier + number_literal) ))) , identifier , identifier , identifier ))) ;) (expression_statement "pcVar3 = pVtab[1].zErrMsg;" (assignment_expression "pcVar3 = pVtab[1].zErrMsg" identifier = (field_expression "pVtab[1].zErrMsg" (subscript_expression "pVtab[1]" identifier [ number_literal ]) . field_identifier)) ;) (expression_statement "iVar4 = pVtab[1].nRef;" (assignment_expression "iVar4 = pVtab[1].nRef" identifier = (field_expression "pVtab[1].nRef" (subscript_expression "pVtab[1]" identifier [ number_literal ]) . field_identifier)) ;) }))) (if_statement "if (*(char *)((int)&pVtab[0x13].nRef + 2) == '\0') {\n    cVar1 = *(char *)((int)&pVtab[0x13].nRef + 1);\n  }\n  else {\n    fts3DbExec(&rc,db,(char *)(unaff_EDI + 0x2d669),iVar4,pcVar3,zName);\n    pcVar3 = pVtab[1].zErrMsg;\n    iVar4 = pVtab[1].nRef;\n    cVar1 = *(char *)((int)&pVtab[0x13].nRef + 1);\n  }" if (parenthesized_expression "(*(char *)((int)&pVtab[0x13].nRef + 2) == '\0')" ( (binary_expression "*(char *)((int)&pVtab[0x13].nRef + 2) == '\0'" (pointer_expression "*(char *)((int)&pVtab[0x13].nRef + 2)" * (cast_expression "(char *)((int)&pVtab[0x13].nRef + 2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&pVtab[0x13].nRef + 2)" ( (binary_expression "(int)&pVtab[0x13].nRef + 2" (cast_expression "(int)&pVtab[0x13].nRef" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&pVtab[0x13].nRef" & (field_expression "pVtab[0x13].nRef" (subscript_expression "pVtab[0x13]" identifier [ number_literal ]) . field_identifier))) + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    cVar1 = *(char *)((int)&pVtab[0x13].nRef + 1);\n  }" { (expression_statement "cVar1 = *(char *)((int)&pVtab[0x13].nRef + 1);" (assignment_expression "cVar1 = *(char *)((int)&pVtab[0x13].nRef + 1)" identifier = (pointer_expression "*(char *)((int)&pVtab[0x13].nRef + 1)" * (cast_expression "(char *)((int)&pVtab[0x13].nRef + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&pVtab[0x13].nRef + 1)" ( (binary_expression "(int)&pVtab[0x13].nRef + 1" (cast_expression "(int)&pVtab[0x13].nRef" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&pVtab[0x13].nRef" & (field_expression "pVtab[0x13].nRef" (subscript_expression "pVtab[0x13]" identifier [ number_literal ]) . field_identifier))) + number_literal) ))))) ;) }) (else_clause "else {\n    fts3DbExec(&rc,db,(char *)(unaff_EDI + 0x2d669),iVar4,pcVar3,zName);\n    pcVar3 = pVtab[1].zErrMsg;\n    iVar4 = pVtab[1].nRef;\n    cVar1 = *(char *)((int)&pVtab[0x13].nRef + 1);\n  }" else (compound_statement "{\n    fts3DbExec(&rc,db,(char *)(unaff_EDI + 0x2d669),iVar4,pcVar3,zName);\n    pcVar3 = pVtab[1].zErrMsg;\n    iVar4 = pVtab[1].nRef;\n    cVar1 = *(char *)((int)&pVtab[0x13].nRef + 1);\n  }" { (expression_statement "fts3DbExec(&rc,db,(char *)(unaff_EDI + 0x2d669),iVar4,pcVar3,zName);" (call_expression "fts3DbExec(&rc,db,(char *)(unaff_EDI + 0x2d669),iVar4,pcVar3,zName)" identifier (argument_list "(&rc,db,(char *)(unaff_EDI + 0x2d669),iVar4,pcVar3,zName)" ( (pointer_expression "&rc" & identifier) , identifier , (cast_expression "(char *)(unaff_EDI + 0x2d669)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x2d669)" ( (binary_expression "unaff_EDI + 0x2d669" identifier + number_literal) ))) , identifier , identifier , identifier ))) ;) (expression_statement "pcVar3 = pVtab[1].zErrMsg;" (assignment_expression "pcVar3 = pVtab[1].zErrMsg" identifier = (field_expression "pVtab[1].zErrMsg" (subscript_expression "pVtab[1]" identifier [ number_literal ]) . field_identifier)) ;) (expression_statement "iVar4 = pVtab[1].nRef;" (assignment_expression "iVar4 = pVtab[1].nRef" identifier = (field_expression "pVtab[1].nRef" (subscript_expression "pVtab[1]" identifier [ number_literal ]) . field_identifier)) ;) (expression_statement "cVar1 = *(char *)((int)&pVtab[0x13].nRef + 1);" (assignment_expression "cVar1 = *(char *)((int)&pVtab[0x13].nRef + 1)" identifier = (pointer_expression "*(char *)((int)&pVtab[0x13].nRef + 1)" * (cast_expression "(char *)((int)&pVtab[0x13].nRef + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&pVtab[0x13].nRef + 1)" ( (binary_expression "(int)&pVtab[0x13].nRef + 1" (cast_expression "(int)&pVtab[0x13].nRef" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&pVtab[0x13].nRef" & (field_expression "pVtab[0x13].nRef" (subscript_expression "pVtab[0x13]" identifier [ number_literal ]) . field_identifier))) + number_literal) ))))) ;) }))) (if_statement "if (cVar1 != '\0') {\n    fts3DbExec(&rc,db,(char *)(unaff_EDI + 0x2d6a1),iVar4,pcVar3,zName);\n    pcVar3 = pVtab[1].zErrMsg;\n    iVar4 = pVtab[1].nRef;\n  }" if (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    fts3DbExec(&rc,db,(char *)(unaff_EDI + 0x2d6a1),iVar4,pcVar3,zName);\n    pcVar3 = pVtab[1].zErrMsg;\n    iVar4 = pVtab[1].nRef;\n  }" { (expression_statement "fts3DbExec(&rc,db,(char *)(unaff_EDI + 0x2d6a1),iVar4,pcVar3,zName);" (call_expression "fts3DbExec(&rc,db,(char *)(unaff_EDI + 0x2d6a1),iVar4,pcVar3,zName)" identifier (argument_list "(&rc,db,(char *)(unaff_EDI + 0x2d6a1),iVar4,pcVar3,zName)" ( (pointer_expression "&rc" & identifier) , identifier , (cast_expression "(char *)(unaff_EDI + 0x2d6a1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x2d6a1)" ( (binary_expression "unaff_EDI + 0x2d6a1" identifier + number_literal) ))) , identifier , identifier , identifier ))) ;) (expression_statement "pcVar3 = pVtab[1].zErrMsg;" (assignment_expression "pcVar3 = pVtab[1].zErrMsg" identifier = (field_expression "pVtab[1].zErrMsg" (subscript_expression "pVtab[1]" identifier [ number_literal ]) . field_identifier)) ;) (expression_statement "iVar4 = pVtab[1].nRef;" (assignment_expression "iVar4 = pVtab[1].nRef" identifier = (field_expression "pVtab[1].nRef" (subscript_expression "pVtab[1]" identifier [ number_literal ]) . field_identifier)) ;) })) (expression_statement "fts3DbExec(&rc,db,(char *)(unaff_EDI + 0x2d6d1),iVar4,pcVar3,zName);" (call_expression "fts3DbExec(&rc,db,(char *)(unaff_EDI + 0x2d6d1),iVar4,pcVar3,zName)" identifier (argument_list "(&rc,db,(char *)(unaff_EDI + 0x2d6d1),iVar4,pcVar3,zName)" ( (pointer_expression "&rc" & identifier) , identifier , (cast_expression "(char *)(unaff_EDI + 0x2d6d1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x2d6d1)" ( (binary_expression "unaff_EDI + 0x2d6d1" identifier + number_literal) ))) , identifier , identifier , identifier ))) ;) (expression_statement "fts3DbExec(&rc,db,(char *)(unaff_EDI + 0x2d709),pVtab[1].nRef,pVtab[1].zErrMsg,zName);" (call_expression "fts3DbExec(&rc,db,(char *)(unaff_EDI + 0x2d709),pVtab[1].nRef,pVtab[1].zErrMsg,zName)" identifier (argument_list "(&rc,db,(char *)(unaff_EDI + 0x2d709),pVtab[1].nRef,pVtab[1].zErrMsg,zName)" ( (pointer_expression "&rc" & identifier) , identifier , (cast_expression "(char *)(unaff_EDI + 0x2d709)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x2d709)" ( (binary_expression "unaff_EDI + 0x2d709" identifier + number_literal) ))) , (field_expression "pVtab[1].nRef" (subscript_expression "pVtab[1]" identifier [ number_literal ]) . field_identifier) , (field_expression "pVtab[1].zErrMsg" (subscript_expression "pVtab[1]" identifier [ number_literal ]) . field_identifier) , identifier ))) ;) (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" if (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" { comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return rc;" return identifier ;) })))
(translation_unit "int FUN_00103940(int param_1,undefined4 param_2)\n\n{\n  char cVar1;\n  undefined4 uVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  int unaff_EDI;\n  int in_GS_OFFSET;\n  int local_24;\n  int local_20;\n  \n  FUN_00036ac5();\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar2 = *(undefined4 *)(param_1 + 0xc);\n  if (*(char *)(param_1 + 0xe9) == '\x02') {\n    local_24 = FUN_000e98a0();\n    if (local_24 != 0) {\n      iVar3 = *(int *)(param_1 + 0x28);\n      uVar4 = *(undefined4 *)(param_1 + 0x14);\n      uVar5 = *(undefined4 *)(param_1 + 0x10);\n      goto joined_r0x00103a91;\n    }\n  }\n  else {\n    local_24 = 0;\n  }\n  local_24 = FUN_00103810();\n  iVar3 = *(int *)(param_1 + 0x28);\n  uVar4 = *(undefined4 *)(param_1 + 0x14);\n  uVar5 = *(undefined4 *)(param_1 + 0x10);\njoined_r0x00103a91:\n  if (iVar3 == 0) {\n    FUN_000e9b50(&local_24,uVar2,unaff_EDI + 0x2d631,uVar5,uVar4,param_2);\n    uVar4 = *(undefined4 *)(param_1 + 0x14);\n    uVar5 = *(undefined4 *)(param_1 + 0x10);\n  }\n  if (*(char *)(param_1 + 0xea) == '\0') {\n    cVar1 = *(char *)(param_1 + 0xe9);\n  }\n  else {\n    FUN_000e9b50(&local_24,uVar2,unaff_EDI + 0x2d669,uVar5,uVar4,param_2);\n    uVar4 = *(undefined4 *)(param_1 + 0x14);\n    uVar5 = *(undefined4 *)(param_1 + 0x10);\n    cVar1 = *(char *)(param_1 + 0xe9);\n  }\n  if (cVar1 != '\0') {\n    FUN_000e9b50(&local_24,uVar2,unaff_EDI + 0x2d6a1,uVar5,uVar4,param_2);\n    uVar4 = *(undefined4 *)(param_1 + 0x14);\n    uVar5 = *(undefined4 *)(param_1 + 0x10);\n  }\n  FUN_000e9b50(&local_24,uVar2,unaff_EDI + 0x2d6d1,uVar5,uVar4,param_2);\n  FUN_000e9b50(&local_24,uVar2,unaff_EDI + 0x2d709,*(undefined4 *)(param_1 + 0x10),\n               *(undefined4 *)(param_1 + 0x14),param_2);\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00116110();\n  }\n  return local_24;\n}\n\n" (function_definition "int FUN_00103940(int param_1,undefined4 param_2)\n\n{\n  char cVar1;\n  undefined4 uVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  int unaff_EDI;\n  int in_GS_OFFSET;\n  int local_24;\n  int local_20;\n  \n  FUN_00036ac5();\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar2 = *(undefined4 *)(param_1 + 0xc);\n  if (*(char *)(param_1 + 0xe9) == '\x02') {\n    local_24 = FUN_000e98a0();\n    if (local_24 != 0) {\n      iVar3 = *(int *)(param_1 + 0x28);\n      uVar4 = *(undefined4 *)(param_1 + 0x14);\n      uVar5 = *(undefined4 *)(param_1 + 0x10);\n      goto joined_r0x00103a91;\n    }\n  }\n  else {\n    local_24 = 0;\n  }\n  local_24 = FUN_00103810();\n  iVar3 = *(int *)(param_1 + 0x28);\n  uVar4 = *(undefined4 *)(param_1 + 0x14);\n  uVar5 = *(undefined4 *)(param_1 + 0x10);\njoined_r0x00103a91:\n  if (iVar3 == 0) {\n    FUN_000e9b50(&local_24,uVar2,unaff_EDI + 0x2d631,uVar5,uVar4,param_2);\n    uVar4 = *(undefined4 *)(param_1 + 0x14);\n    uVar5 = *(undefined4 *)(param_1 + 0x10);\n  }\n  if (*(char *)(param_1 + 0xea) == '\0') {\n    cVar1 = *(char *)(param_1 + 0xe9);\n  }\n  else {\n    FUN_000e9b50(&local_24,uVar2,unaff_EDI + 0x2d669,uVar5,uVar4,param_2);\n    uVar4 = *(undefined4 *)(param_1 + 0x14);\n    uVar5 = *(undefined4 *)(param_1 + 0x10);\n    cVar1 = *(char *)(param_1 + 0xe9);\n  }\n  if (cVar1 != '\0') {\n    FUN_000e9b50(&local_24,uVar2,unaff_EDI + 0x2d6a1,uVar5,uVar4,param_2);\n    uVar4 = *(undefined4 *)(param_1 + 0x14);\n    uVar5 = *(undefined4 *)(param_1 + 0x10);\n  }\n  FUN_000e9b50(&local_24,uVar2,unaff_EDI + 0x2d6d1,uVar5,uVar4,param_2);\n  FUN_000e9b50(&local_24,uVar2,unaff_EDI + 0x2d709,*(undefined4 *)(param_1 + 0x10),\n               *(undefined4 *)(param_1 + 0x14),param_2);\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00116110();\n  }\n  return local_24;\n}" primitive_type (function_declarator "FUN_00103940(int param_1,undefined4 param_2)" identifier (parameter_list "(int param_1,undefined4 param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  char cVar1;\n  undefined4 uVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  int unaff_EDI;\n  int in_GS_OFFSET;\n  int local_24;\n  int local_20;\n  \n  FUN_00036ac5();\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar2 = *(undefined4 *)(param_1 + 0xc);\n  if (*(char *)(param_1 + 0xe9) == '\x02') {\n    local_24 = FUN_000e98a0();\n    if (local_24 != 0) {\n      iVar3 = *(int *)(param_1 + 0x28);\n      uVar4 = *(undefined4 *)(param_1 + 0x14);\n      uVar5 = *(undefined4 *)(param_1 + 0x10);\n      goto joined_r0x00103a91;\n    }\n  }\n  else {\n    local_24 = 0;\n  }\n  local_24 = FUN_00103810();\n  iVar3 = *(int *)(param_1 + 0x28);\n  uVar4 = *(undefined4 *)(param_1 + 0x14);\n  uVar5 = *(undefined4 *)(param_1 + 0x10);\njoined_r0x00103a91:\n  if (iVar3 == 0) {\n    FUN_000e9b50(&local_24,uVar2,unaff_EDI + 0x2d631,uVar5,uVar4,param_2);\n    uVar4 = *(undefined4 *)(param_1 + 0x14);\n    uVar5 = *(undefined4 *)(param_1 + 0x10);\n  }\n  if (*(char *)(param_1 + 0xea) == '\0') {\n    cVar1 = *(char *)(param_1 + 0xe9);\n  }\n  else {\n    FUN_000e9b50(&local_24,uVar2,unaff_EDI + 0x2d669,uVar5,uVar4,param_2);\n    uVar4 = *(undefined4 *)(param_1 + 0x14);\n    uVar5 = *(undefined4 *)(param_1 + 0x10);\n    cVar1 = *(char *)(param_1 + 0xe9);\n  }\n  if (cVar1 != '\0') {\n    FUN_000e9b50(&local_24,uVar2,unaff_EDI + 0x2d6a1,uVar5,uVar4,param_2);\n    uVar4 = *(undefined4 *)(param_1 + 0x14);\n    uVar5 = *(undefined4 *)(param_1 + 0x10);\n  }\n  FUN_000e9b50(&local_24,uVar2,unaff_EDI + 0x2d6d1,uVar5,uVar4,param_2);\n  FUN_000e9b50(&local_24,uVar2,unaff_EDI + 0x2d709,*(undefined4 *)(param_1 + 0x10),\n               *(undefined4 *)(param_1 + 0x14),param_2);\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00116110();\n  }\n  return local_24;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "int local_24;" primitive_type identifier ;) (declaration "int local_20;" primitive_type identifier ;) (expression_statement "FUN_00036ac5();" (call_expression "FUN_00036ac5()" identifier (argument_list "()" ( ))) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "uVar2 = *(undefined4 *)(param_1 + 0xc);" (assignment_expression "uVar2 = *(undefined4 *)(param_1 + 0xc)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 0xc)" * (cast_expression "(undefined4 *)(param_1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) (if_statement "if (*(char *)(param_1 + 0xe9) == '\x02') {\n    local_24 = FUN_000e98a0();\n    if (local_24 != 0) {\n      iVar3 = *(int *)(param_1 + 0x28);\n      uVar4 = *(undefined4 *)(param_1 + 0x14);\n      uVar5 = *(undefined4 *)(param_1 + 0x10);\n      goto joined_r0x00103a91;\n    }\n  }\n  else {\n    local_24 = 0;\n  }" if (parenthesized_expression "(*(char *)(param_1 + 0xe9) == '\x02')" ( (binary_expression "*(char *)(param_1 + 0xe9) == '\x02'" (pointer_expression "*(char *)(param_1 + 0xe9)" * (cast_expression "(char *)(param_1 + 0xe9)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xe9)" ( (binary_expression "param_1 + 0xe9" identifier + number_literal) )))) == (char_literal "'\x02'" ' escape_sequence ')) )) (compound_statement "{\n    local_24 = FUN_000e98a0();\n    if (local_24 != 0) {\n      iVar3 = *(int *)(param_1 + 0x28);\n      uVar4 = *(undefined4 *)(param_1 + 0x14);\n      uVar5 = *(undefined4 *)(param_1 + 0x10);\n      goto joined_r0x00103a91;\n    }\n  }" { (expression_statement "local_24 = FUN_000e98a0();" (assignment_expression "local_24 = FUN_000e98a0()" identifier = (call_expression "FUN_000e98a0()" identifier (argument_list "()" ( )))) ;) (if_statement "if (local_24 != 0) {\n      iVar3 = *(int *)(param_1 + 0x28);\n      uVar4 = *(undefined4 *)(param_1 + 0x14);\n      uVar5 = *(undefined4 *)(param_1 + 0x10);\n      goto joined_r0x00103a91;\n    }" if (parenthesized_expression "(local_24 != 0)" ( (binary_expression "local_24 != 0" identifier != number_literal) )) (compound_statement "{\n      iVar3 = *(int *)(param_1 + 0x28);\n      uVar4 = *(undefined4 *)(param_1 + 0x14);\n      uVar5 = *(undefined4 *)(param_1 + 0x10);\n      goto joined_r0x00103a91;\n    }" { (expression_statement "iVar3 = *(int *)(param_1 + 0x28);" (assignment_expression "iVar3 = *(int *)(param_1 + 0x28)" identifier = (pointer_expression "*(int *)(param_1 + 0x28)" * (cast_expression "(int *)(param_1 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) ))))) ;) (expression_statement "uVar4 = *(undefined4 *)(param_1 + 0x14);" (assignment_expression "uVar4 = *(undefined4 *)(param_1 + 0x14)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 0x14)" * (cast_expression "(undefined4 *)(param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) ;) (expression_statement "uVar5 = *(undefined4 *)(param_1 + 0x10);" (assignment_expression "uVar5 = *(undefined4 *)(param_1 + 0x10)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 0x10)" * (cast_expression "(undefined4 *)(param_1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) ;) (goto_statement "goto joined_r0x00103a91;" goto statement_identifier ;) })) }) (else_clause "else {\n    local_24 = 0;\n  }" else (compound_statement "{\n    local_24 = 0;\n  }" { (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" identifier = number_literal) ;) }))) (expression_statement "local_24 = FUN_00103810();" (assignment_expression "local_24 = FUN_00103810()" identifier = (call_expression "FUN_00103810()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar3 = *(int *)(param_1 + 0x28);" (assignment_expression "iVar3 = *(int *)(param_1 + 0x28)" identifier = (pointer_expression "*(int *)(param_1 + 0x28)" * (cast_expression "(int *)(param_1 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) ))))) ;) (expression_statement "uVar4 = *(undefined4 *)(param_1 + 0x14);" (assignment_expression "uVar4 = *(undefined4 *)(param_1 + 0x14)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 0x14)" * (cast_expression "(undefined4 *)(param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) ;) (expression_statement "uVar5 = *(undefined4 *)(param_1 + 0x10);" (assignment_expression "uVar5 = *(undefined4 *)(param_1 + 0x10)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 0x10)" * (cast_expression "(undefined4 *)(param_1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) ;) (labeled_statement "joined_r0x00103a91:\n  if (iVar3 == 0) {\n    FUN_000e9b50(&local_24,uVar2,unaff_EDI + 0x2d631,uVar5,uVar4,param_2);\n    uVar4 = *(undefined4 *)(param_1 + 0x14);\n    uVar5 = *(undefined4 *)(param_1 + 0x10);\n  }" statement_identifier : (if_statement "if (iVar3 == 0) {\n    FUN_000e9b50(&local_24,uVar2,unaff_EDI + 0x2d631,uVar5,uVar4,param_2);\n    uVar4 = *(undefined4 *)(param_1 + 0x14);\n    uVar5 = *(undefined4 *)(param_1 + 0x10);\n  }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n    FUN_000e9b50(&local_24,uVar2,unaff_EDI + 0x2d631,uVar5,uVar4,param_2);\n    uVar4 = *(undefined4 *)(param_1 + 0x14);\n    uVar5 = *(undefined4 *)(param_1 + 0x10);\n  }" { (expression_statement "FUN_000e9b50(&local_24,uVar2,unaff_EDI + 0x2d631,uVar5,uVar4,param_2);" (call_expression "FUN_000e9b50(&local_24,uVar2,unaff_EDI + 0x2d631,uVar5,uVar4,param_2)" identifier (argument_list "(&local_24,uVar2,unaff_EDI + 0x2d631,uVar5,uVar4,param_2)" ( (pointer_expression "&local_24" & identifier) , identifier , (binary_expression "unaff_EDI + 0x2d631" identifier + number_literal) , identifier , identifier , identifier ))) ;) (expression_statement "uVar4 = *(undefined4 *)(param_1 + 0x14);" (assignment_expression "uVar4 = *(undefined4 *)(param_1 + 0x14)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 0x14)" * (cast_expression "(undefined4 *)(param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) ;) (expression_statement "uVar5 = *(undefined4 *)(param_1 + 0x10);" (assignment_expression "uVar5 = *(undefined4 *)(param_1 + 0x10)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 0x10)" * (cast_expression "(undefined4 *)(param_1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) ;) }))) (if_statement "if (*(char *)(param_1 + 0xea) == '\0') {\n    cVar1 = *(char *)(param_1 + 0xe9);\n  }\n  else {\n    FUN_000e9b50(&local_24,uVar2,unaff_EDI + 0x2d669,uVar5,uVar4,param_2);\n    uVar4 = *(undefined4 *)(param_1 + 0x14);\n    uVar5 = *(undefined4 *)(param_1 + 0x10);\n    cVar1 = *(char *)(param_1 + 0xe9);\n  }" if (parenthesized_expression "(*(char *)(param_1 + 0xea) == '\0')" ( (binary_expression "*(char *)(param_1 + 0xea) == '\0'" (pointer_expression "*(char *)(param_1 + 0xea)" * (cast_expression "(char *)(param_1 + 0xea)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xea)" ( (binary_expression "param_1 + 0xea" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    cVar1 = *(char *)(param_1 + 0xe9);\n  }" { (expression_statement "cVar1 = *(char *)(param_1 + 0xe9);" (assignment_expression "cVar1 = *(char *)(param_1 + 0xe9)" identifier = (pointer_expression "*(char *)(param_1 + 0xe9)" * (cast_expression "(char *)(param_1 + 0xe9)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xe9)" ( (binary_expression "param_1 + 0xe9" identifier + number_literal) ))))) ;) }) (else_clause "else {\n    FUN_000e9b50(&local_24,uVar2,unaff_EDI + 0x2d669,uVar5,uVar4,param_2);\n    uVar4 = *(undefined4 *)(param_1 + 0x14);\n    uVar5 = *(undefined4 *)(param_1 + 0x10);\n    cVar1 = *(char *)(param_1 + 0xe9);\n  }" else (compound_statement "{\n    FUN_000e9b50(&local_24,uVar2,unaff_EDI + 0x2d669,uVar5,uVar4,param_2);\n    uVar4 = *(undefined4 *)(param_1 + 0x14);\n    uVar5 = *(undefined4 *)(param_1 + 0x10);\n    cVar1 = *(char *)(param_1 + 0xe9);\n  }" { (expression_statement "FUN_000e9b50(&local_24,uVar2,unaff_EDI + 0x2d669,uVar5,uVar4,param_2);" (call_expression "FUN_000e9b50(&local_24,uVar2,unaff_EDI + 0x2d669,uVar5,uVar4,param_2)" identifier (argument_list "(&local_24,uVar2,unaff_EDI + 0x2d669,uVar5,uVar4,param_2)" ( (pointer_expression "&local_24" & identifier) , identifier , (binary_expression "unaff_EDI + 0x2d669" identifier + number_literal) , identifier , identifier , identifier ))) ;) (expression_statement "uVar4 = *(undefined4 *)(param_1 + 0x14);" (assignment_expression "uVar4 = *(undefined4 *)(param_1 + 0x14)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 0x14)" * (cast_expression "(undefined4 *)(param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) ;) (expression_statement "uVar5 = *(undefined4 *)(param_1 + 0x10);" (assignment_expression "uVar5 = *(undefined4 *)(param_1 + 0x10)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 0x10)" * (cast_expression "(undefined4 *)(param_1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) ;) (expression_statement "cVar1 = *(char *)(param_1 + 0xe9);" (assignment_expression "cVar1 = *(char *)(param_1 + 0xe9)" identifier = (pointer_expression "*(char *)(param_1 + 0xe9)" * (cast_expression "(char *)(param_1 + 0xe9)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xe9)" ( (binary_expression "param_1 + 0xe9" identifier + number_literal) ))))) ;) }))) (if_statement "if (cVar1 != '\0') {\n    FUN_000e9b50(&local_24,uVar2,unaff_EDI + 0x2d6a1,uVar5,uVar4,param_2);\n    uVar4 = *(undefined4 *)(param_1 + 0x14);\n    uVar5 = *(undefined4 *)(param_1 + 0x10);\n  }" if (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    FUN_000e9b50(&local_24,uVar2,unaff_EDI + 0x2d6a1,uVar5,uVar4,param_2);\n    uVar4 = *(undefined4 *)(param_1 + 0x14);\n    uVar5 = *(undefined4 *)(param_1 + 0x10);\n  }" { (expression_statement "FUN_000e9b50(&local_24,uVar2,unaff_EDI + 0x2d6a1,uVar5,uVar4,param_2);" (call_expression "FUN_000e9b50(&local_24,uVar2,unaff_EDI + 0x2d6a1,uVar5,uVar4,param_2)" identifier (argument_list "(&local_24,uVar2,unaff_EDI + 0x2d6a1,uVar5,uVar4,param_2)" ( (pointer_expression "&local_24" & identifier) , identifier , (binary_expression "unaff_EDI + 0x2d6a1" identifier + number_literal) , identifier , identifier , identifier ))) ;) (expression_statement "uVar4 = *(undefined4 *)(param_1 + 0x14);" (assignment_expression "uVar4 = *(undefined4 *)(param_1 + 0x14)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 0x14)" * (cast_expression "(undefined4 *)(param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) ;) (expression_statement "uVar5 = *(undefined4 *)(param_1 + 0x10);" (assignment_expression "uVar5 = *(undefined4 *)(param_1 + 0x10)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 0x10)" * (cast_expression "(undefined4 *)(param_1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) ;) })) (expression_statement "FUN_000e9b50(&local_24,uVar2,unaff_EDI + 0x2d6d1,uVar5,uVar4,param_2);" (call_expression "FUN_000e9b50(&local_24,uVar2,unaff_EDI + 0x2d6d1,uVar5,uVar4,param_2)" identifier (argument_list "(&local_24,uVar2,unaff_EDI + 0x2d6d1,uVar5,uVar4,param_2)" ( (pointer_expression "&local_24" & identifier) , identifier , (binary_expression "unaff_EDI + 0x2d6d1" identifier + number_literal) , identifier , identifier , identifier ))) ;) (expression_statement "FUN_000e9b50(&local_24,uVar2,unaff_EDI + 0x2d709,*(undefined4 *)(param_1 + 0x10),\n               *(undefined4 *)(param_1 + 0x14),param_2);" (call_expression "FUN_000e9b50(&local_24,uVar2,unaff_EDI + 0x2d709,*(undefined4 *)(param_1 + 0x10),\n               *(undefined4 *)(param_1 + 0x14),param_2)" identifier (argument_list "(&local_24,uVar2,unaff_EDI + 0x2d709,*(undefined4 *)(param_1 + 0x10),\n               *(undefined4 *)(param_1 + 0x14),param_2)" ( (pointer_expression "&local_24" & identifier) , identifier , (binary_expression "unaff_EDI + 0x2d709" identifier + number_literal) , (pointer_expression "*(undefined4 *)(param_1 + 0x10)" * (cast_expression "(undefined4 *)(param_1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(param_1 + 0x14)" * (cast_expression "(undefined4 *)(param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) , identifier ))) ;) (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00116110();\n  }" if (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    \n    FUN_00116110();\n  }" { (expression_statement "FUN_00116110();" (call_expression "FUN_00116110()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return local_24;" return identifier ;) })))
(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 IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (goto_statement goto statement_identifier ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }))) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , IDENT , (binary_expression IDENT + LIT) , IDENT , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , IDENT , (binary_expression IDENT + LIT) , IDENT , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , IDENT , (binary_expression IDENT + LIT) , IDENT , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) })) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , IDENT , (binary_expression IDENT + LIT) , IDENT , IDENT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , IDENT , (binary_expression IDENT + LIT) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (return_statement return IDENT ;) })))
(function_definition "int FUN_00103940(int param_1,undefined4 param_2)\n\n{\n  char cVar1;\n  undefined4 uVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  int unaff_EDI;\n  int in_GS_OFFSET;\n  int local_24;\n  int local_20;\n  \n  FUN_00036ac5();\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar2 = *(undefined4 *)(param_1 + 0xc);\n  if (*(char *)(param_1 + 0xe9) == '\x02') {\n    local_24 = FUN_000e98a0();\n    if (local_24 != 0) {\n      iVar3 = *(int *)(param_1 + 0x28);\n      uVar4 = *(undefined4 *)(param_1 + 0x14);\n      uVar5 = *(undefined4 *)(param_1 + 0x10);\n      goto joined_r0x00103a91;\n    }\n  }\n  else {\n    local_24 = 0;\n  }\n  local_24 = FUN_00103810();\n  iVar3 = *(int *)(param_1 + 0x28);\n  uVar4 = *(undefined4 *)(param_1 + 0x14);\n  uVar5 = *(undefined4 *)(param_1 + 0x10);\njoined_r0x00103a91:\n  if (iVar3 == 0) {\n    FUN_000e9b50(&local_24,uVar2,unaff_EDI + 0x2d631,uVar5,uVar4,param_2);\n    uVar4 = *(undefined4 *)(param_1 + 0x14);\n    uVar5 = *(undefined4 *)(param_1 + 0x10);\n  }\n  if (*(char *)(param_1 + 0xea) == '\0') {\n    cVar1 = *(char *)(param_1 + 0xe9);\n  }\n  else {\n    FUN_000e9b50(&local_24,uVar2,unaff_EDI + 0x2d669,uVar5,uVar4,param_2);\n    uVar4 = *(undefined4 *)(param_1 + 0x14);\n    uVar5 = *(undefined4 *)(param_1 + 0x10);\n    cVar1 = *(char *)(param_1 + 0xe9);\n  }\n  if (cVar1 != '\0') {\n    FUN_000e9b50(&local_24,uVar2,unaff_EDI + 0x2d6a1,uVar5,uVar4,param_2);\n    uVar4 = *(undefined4 *)(param_1 + 0x14);\n    uVar5 = *(undefined4 *)(param_1 + 0x10);\n  }\n  FUN_000e9b50(&local_24,uVar2,unaff_EDI + 0x2d6d1,uVar5,uVar4,param_2);\n  FUN_000e9b50(&local_24,uVar2,unaff_EDI + 0x2d709,*(undefined4 *)(param_1 + 0x10),\n               *(undefined4 *)(param_1 + 0x14),param_2);\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00116110();\n  }\n  return local_24;\n}" (primitive_type "int") (function_declarator "FUN_00103940(int param_1,undefined4 param_2)" (identifier "FUN_00103940") (parameter_list "(int param_1,undefined4 param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")"))) (compound_statement "{\n  char cVar1;\n  undefined4 uVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  int unaff_EDI;\n  int in_GS_OFFSET;\n  int local_24;\n  int local_20;\n  \n  FUN_00036ac5();\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar2 = *(undefined4 *)(param_1 + 0xc);\n  if (*(char *)(param_1 + 0xe9) == '\x02') {\n    local_24 = FUN_000e98a0();\n    if (local_24 != 0) {\n      iVar3 = *(int *)(param_1 + 0x28);\n      uVar4 = *(undefined4 *)(param_1 + 0x14);\n      uVar5 = *(undefined4 *)(param_1 + 0x10);\n      goto joined_r0x00103a91;\n    }\n  }\n  else {\n    local_24 = 0;\n  }\n  local_24 = FUN_00103810();\n  iVar3 = *(int *)(param_1 + 0x28);\n  uVar4 = *(undefined4 *)(param_1 + 0x14);\n  uVar5 = *(undefined4 *)(param_1 + 0x10);\njoined_r0x00103a91:\n  if (iVar3 == 0) {\n    FUN_000e9b50(&local_24,uVar2,unaff_EDI + 0x2d631,uVar5,uVar4,param_2);\n    uVar4 = *(undefined4 *)(param_1 + 0x14);\n    uVar5 = *(undefined4 *)(param_1 + 0x10);\n  }\n  if (*(char *)(param_1 + 0xea) == '\0') {\n    cVar1 = *(char *)(param_1 + 0xe9);\n  }\n  else {\n    FUN_000e9b50(&local_24,uVar2,unaff_EDI + 0x2d669,uVar5,uVar4,param_2);\n    uVar4 = *(undefined4 *)(param_1 + 0x14);\n    uVar5 = *(undefined4 *)(param_1 + 0x10);\n    cVar1 = *(char *)(param_1 + 0xe9);\n  }\n  if (cVar1 != '\0') {\n    FUN_000e9b50(&local_24,uVar2,unaff_EDI + 0x2d6a1,uVar5,uVar4,param_2);\n    uVar4 = *(undefined4 *)(param_1 + 0x14);\n    uVar5 = *(undefined4 *)(param_1 + 0x10);\n  }\n  FUN_000e9b50(&local_24,uVar2,unaff_EDI + 0x2d6d1,uVar5,uVar4,param_2);\n  FUN_000e9b50(&local_24,uVar2,unaff_EDI + 0x2d709,*(undefined4 *)(param_1 + 0x10),\n               *(undefined4 *)(param_1 + 0x14),param_2);\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00116110();\n  }\n  return local_24;\n}" ({ "{") (declaration "char cVar1;" (primitive_type "char") (identifier "cVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (declaration "undefined4 uVar5;" (type_identifier "undefined4") (identifier "uVar5") (; ";")) (declaration "int unaff_EDI;" (primitive_type "int") (identifier "unaff_EDI") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "int local_24;" (primitive_type "int") (identifier "local_24") (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (expression_statement "FUN_00036ac5();" (call_expression "FUN_00036ac5()" (identifier "FUN_00036ac5") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "uVar2 = *(undefined4 *)(param_1 + 0xc);" (assignment_expression "uVar2 = *(undefined4 *)(param_1 + 0xc)" (identifier "uVar2") (= "=") (pointer_expression "*(undefined4 *)(param_1 + 0xc)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (if_statement "if (*(char *)(param_1 + 0xe9) == '\x02') {\n    local_24 = FUN_000e98a0();\n    if (local_24 != 0) {\n      iVar3 = *(int *)(param_1 + 0x28);\n      uVar4 = *(undefined4 *)(param_1 + 0x14);\n      uVar5 = *(undefined4 *)(param_1 + 0x10);\n      goto joined_r0x00103a91;\n    }\n  }\n  else {\n    local_24 = 0;\n  }" (if "if") (parenthesized_expression "(*(char *)(param_1 + 0xe9) == '\x02')" (( "(") (binary_expression "*(char *)(param_1 + 0xe9) == '\x02'" (pointer_expression "*(char *)(param_1 + 0xe9)" (* "*") (cast_expression "(char *)(param_1 + 0xe9)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xe9)" (( "(") (binary_expression "param_1 + 0xe9" (identifier "param_1") (+ "+") (number_literal "0xe9")) () ")")))) (== "==") (char_literal "'\x02'" (' "'") (escape_sequence "\x02") (' "'"))) () ")")) (compound_statement "{\n    local_24 = FUN_000e98a0();\n    if (local_24 != 0) {\n      iVar3 = *(int *)(param_1 + 0x28);\n      uVar4 = *(undefined4 *)(param_1 + 0x14);\n      uVar5 = *(undefined4 *)(param_1 + 0x10);\n      goto joined_r0x00103a91;\n    }\n  }" ({ "{") (expression_statement "local_24 = FUN_000e98a0();" (assignment_expression "local_24 = FUN_000e98a0()" (identifier "local_24") (= "=") (call_expression "FUN_000e98a0()" (identifier "FUN_000e98a0") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (local_24 != 0) {\n      iVar3 = *(int *)(param_1 + 0x28);\n      uVar4 = *(undefined4 *)(param_1 + 0x14);\n      uVar5 = *(undefined4 *)(param_1 + 0x10);\n      goto joined_r0x00103a91;\n    }" (if "if") (parenthesized_expression "(local_24 != 0)" (( "(") (binary_expression "local_24 != 0" (identifier "local_24") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      iVar3 = *(int *)(param_1 + 0x28);\n      uVar4 = *(undefined4 *)(param_1 + 0x14);\n      uVar5 = *(undefined4 *)(param_1 + 0x10);\n      goto joined_r0x00103a91;\n    }" ({ "{") (expression_statement "iVar3 = *(int *)(param_1 + 0x28);" (assignment_expression "iVar3 = *(int *)(param_1 + 0x28)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(param_1 + 0x28)" (* "*") (cast_expression "(int *)(param_1 + 0x28)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x28)" (( "(") (binary_expression "param_1 + 0x28" (identifier "param_1") (+ "+") (number_literal "0x28")) () ")"))))) (; ";")) (expression_statement "uVar4 = *(undefined4 *)(param_1 + 0x14);" (assignment_expression "uVar4 = *(undefined4 *)(param_1 + 0x14)" (identifier "uVar4") (= "=") (pointer_expression "*(undefined4 *)(param_1 + 0x14)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "uVar5 = *(undefined4 *)(param_1 + 0x10);" (assignment_expression "uVar5 = *(undefined4 *)(param_1 + 0x10)" (identifier "uVar5") (= "=") (pointer_expression "*(undefined4 *)(param_1 + 0x10)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")"))))) (; ";")) (goto_statement "goto joined_r0x00103a91;" (goto "goto") (statement_identifier "joined_r0x00103a91") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    local_24 = 0;\n  }" (else "else") (compound_statement "{\n    local_24 = 0;\n  }" ({ "{") (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" (identifier "local_24") (= "=") (number_literal "0")) (; ";")) (} "}")))) (expression_statement "local_24 = FUN_00103810();" (assignment_expression "local_24 = FUN_00103810()" (identifier "local_24") (= "=") (call_expression "FUN_00103810()" (identifier "FUN_00103810") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "iVar3 = *(int *)(param_1 + 0x28);" (assignment_expression "iVar3 = *(int *)(param_1 + 0x28)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(param_1 + 0x28)" (* "*") (cast_expression "(int *)(param_1 + 0x28)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x28)" (( "(") (binary_expression "param_1 + 0x28" (identifier "param_1") (+ "+") (number_literal "0x28")) () ")"))))) (; ";")) (expression_statement "uVar4 = *(undefined4 *)(param_1 + 0x14);" (assignment_expression "uVar4 = *(undefined4 *)(param_1 + 0x14)" (identifier "uVar4") (= "=") (pointer_expression "*(undefined4 *)(param_1 + 0x14)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "uVar5 = *(undefined4 *)(param_1 + 0x10);" (assignment_expression "uVar5 = *(undefined4 *)(param_1 + 0x10)" (identifier "uVar5") (= "=") (pointer_expression "*(undefined4 *)(param_1 + 0x10)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")"))))) (; ";")) (labeled_statement "joined_r0x00103a91:\n  if (iVar3 == 0) {\n    FUN_000e9b50(&local_24,uVar2,unaff_EDI + 0x2d631,uVar5,uVar4,param_2);\n    uVar4 = *(undefined4 *)(param_1 + 0x14);\n    uVar5 = *(undefined4 *)(param_1 + 0x10);\n  }" (statement_identifier "joined_r0x00103a91") (: ":") (if_statement "if (iVar3 == 0) {\n    FUN_000e9b50(&local_24,uVar2,unaff_EDI + 0x2d631,uVar5,uVar4,param_2);\n    uVar4 = *(undefined4 *)(param_1 + 0x14);\n    uVar5 = *(undefined4 *)(param_1 + 0x10);\n  }" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    FUN_000e9b50(&local_24,uVar2,unaff_EDI + 0x2d631,uVar5,uVar4,param_2);\n    uVar4 = *(undefined4 *)(param_1 + 0x14);\n    uVar5 = *(undefined4 *)(param_1 + 0x10);\n  }" ({ "{") (expression_statement "FUN_000e9b50(&local_24,uVar2,unaff_EDI + 0x2d631,uVar5,uVar4,param_2);" (call_expression "FUN_000e9b50(&local_24,uVar2,unaff_EDI + 0x2d631,uVar5,uVar4,param_2)" (identifier "FUN_000e9b50") (argument_list "(&local_24,uVar2,unaff_EDI + 0x2d631,uVar5,uVar4,param_2)" (( "(") (pointer_expression "&local_24" (& "&") (identifier "local_24")) (, ",") (identifier "uVar2") (, ",") (binary_expression "unaff_EDI + 0x2d631" (identifier "unaff_EDI") (+ "+") (number_literal "0x2d631")) (, ",") (identifier "uVar5") (, ",") (identifier "uVar4") (, ",") (identifier "param_2") () ")"))) (; ";")) (expression_statement "uVar4 = *(undefined4 *)(param_1 + 0x14);" (assignment_expression "uVar4 = *(undefined4 *)(param_1 + 0x14)" (identifier "uVar4") (= "=") (pointer_expression "*(undefined4 *)(param_1 + 0x14)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "uVar5 = *(undefined4 *)(param_1 + 0x10);" (assignment_expression "uVar5 = *(undefined4 *)(param_1 + 0x10)" (identifier "uVar5") (= "=") (pointer_expression "*(undefined4 *)(param_1 + 0x10)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")"))))) (; ";")) (} "}")))) (if_statement "if (*(char *)(param_1 + 0xea) == '\0') {\n    cVar1 = *(char *)(param_1 + 0xe9);\n  }\n  else {\n    FUN_000e9b50(&local_24,uVar2,unaff_EDI + 0x2d669,uVar5,uVar4,param_2);\n    uVar4 = *(undefined4 *)(param_1 + 0x14);\n    uVar5 = *(undefined4 *)(param_1 + 0x10);\n    cVar1 = *(char *)(param_1 + 0xe9);\n  }" (if "if") (parenthesized_expression "(*(char *)(param_1 + 0xea) == '\0')" (( "(") (binary_expression "*(char *)(param_1 + 0xea) == '\0'" (pointer_expression "*(char *)(param_1 + 0xea)" (* "*") (cast_expression "(char *)(param_1 + 0xea)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xea)" (( "(") (binary_expression "param_1 + 0xea" (identifier "param_1") (+ "+") (number_literal "0xea")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    cVar1 = *(char *)(param_1 + 0xe9);\n  }" ({ "{") (expression_statement "cVar1 = *(char *)(param_1 + 0xe9);" (assignment_expression "cVar1 = *(char *)(param_1 + 0xe9)" (identifier "cVar1") (= "=") (pointer_expression "*(char *)(param_1 + 0xe9)" (* "*") (cast_expression "(char *)(param_1 + 0xe9)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xe9)" (( "(") (binary_expression "param_1 + 0xe9" (identifier "param_1") (+ "+") (number_literal "0xe9")) () ")"))))) (; ";")) (} "}")) (else_clause "else {\n    FUN_000e9b50(&local_24,uVar2,unaff_EDI + 0x2d669,uVar5,uVar4,param_2);\n    uVar4 = *(undefined4 *)(param_1 + 0x14);\n    uVar5 = *(undefined4 *)(param_1 + 0x10);\n    cVar1 = *(char *)(param_1 + 0xe9);\n  }" (else "else") (compound_statement "{\n    FUN_000e9b50(&local_24,uVar2,unaff_EDI + 0x2d669,uVar5,uVar4,param_2);\n    uVar4 = *(undefined4 *)(param_1 + 0x14);\n    uVar5 = *(undefined4 *)(param_1 + 0x10);\n    cVar1 = *(char *)(param_1 + 0xe9);\n  }" ({ "{") (expression_statement "FUN_000e9b50(&local_24,uVar2,unaff_EDI + 0x2d669,uVar5,uVar4,param_2);" (call_expression "FUN_000e9b50(&local_24,uVar2,unaff_EDI + 0x2d669,uVar5,uVar4,param_2)" (identifier "FUN_000e9b50") (argument_list "(&local_24,uVar2,unaff_EDI + 0x2d669,uVar5,uVar4,param_2)" (( "(") (pointer_expression "&local_24" (& "&") (identifier "local_24")) (, ",") (identifier "uVar2") (, ",") (binary_expression "unaff_EDI + 0x2d669" (identifier "unaff_EDI") (+ "+") (number_literal "0x2d669")) (, ",") (identifier "uVar5") (, ",") (identifier "uVar4") (, ",") (identifier "param_2") () ")"))) (; ";")) (expression_statement "uVar4 = *(undefined4 *)(param_1 + 0x14);" (assignment_expression "uVar4 = *(undefined4 *)(param_1 + 0x14)" (identifier "uVar4") (= "=") (pointer_expression "*(undefined4 *)(param_1 + 0x14)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "uVar5 = *(undefined4 *)(param_1 + 0x10);" (assignment_expression "uVar5 = *(undefined4 *)(param_1 + 0x10)" (identifier "uVar5") (= "=") (pointer_expression "*(undefined4 *)(param_1 + 0x10)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")"))))) (; ";")) (expression_statement "cVar1 = *(char *)(param_1 + 0xe9);" (assignment_expression "cVar1 = *(char *)(param_1 + 0xe9)" (identifier "cVar1") (= "=") (pointer_expression "*(char *)(param_1 + 0xe9)" (* "*") (cast_expression "(char *)(param_1 + 0xe9)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xe9)" (( "(") (binary_expression "param_1 + 0xe9" (identifier "param_1") (+ "+") (number_literal "0xe9")) () ")"))))) (; ";")) (} "}")))) (if_statement "if (cVar1 != '\0') {\n    FUN_000e9b50(&local_24,uVar2,unaff_EDI + 0x2d6a1,uVar5,uVar4,param_2);\n    uVar4 = *(undefined4 *)(param_1 + 0x14);\n    uVar5 = *(undefined4 *)(param_1 + 0x10);\n  }" (if "if") (parenthesized_expression "(cVar1 != '\0')" (( "(") (binary_expression "cVar1 != '\0'" (identifier "cVar1") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    FUN_000e9b50(&local_24,uVar2,unaff_EDI + 0x2d6a1,uVar5,uVar4,param_2);\n    uVar4 = *(undefined4 *)(param_1 + 0x14);\n    uVar5 = *(undefined4 *)(param_1 + 0x10);\n  }" ({ "{") (expression_statement "FUN_000e9b50(&local_24,uVar2,unaff_EDI + 0x2d6a1,uVar5,uVar4,param_2);" (call_expression "FUN_000e9b50(&local_24,uVar2,unaff_EDI + 0x2d6a1,uVar5,uVar4,param_2)" (identifier "FUN_000e9b50") (argument_list "(&local_24,uVar2,unaff_EDI + 0x2d6a1,uVar5,uVar4,param_2)" (( "(") (pointer_expression "&local_24" (& "&") (identifier "local_24")) (, ",") (identifier "uVar2") (, ",") (binary_expression "unaff_EDI + 0x2d6a1" (identifier "unaff_EDI") (+ "+") (number_literal "0x2d6a1")) (, ",") (identifier "uVar5") (, ",") (identifier "uVar4") (, ",") (identifier "param_2") () ")"))) (; ";")) (expression_statement "uVar4 = *(undefined4 *)(param_1 + 0x14);" (assignment_expression "uVar4 = *(undefined4 *)(param_1 + 0x14)" (identifier "uVar4") (= "=") (pointer_expression "*(undefined4 *)(param_1 + 0x14)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "uVar5 = *(undefined4 *)(param_1 + 0x10);" (assignment_expression "uVar5 = *(undefined4 *)(param_1 + 0x10)" (identifier "uVar5") (= "=") (pointer_expression "*(undefined4 *)(param_1 + 0x10)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")"))))) (; ";")) (} "}"))) (expression_statement "FUN_000e9b50(&local_24,uVar2,unaff_EDI + 0x2d6d1,uVar5,uVar4,param_2);" (call_expression "FUN_000e9b50(&local_24,uVar2,unaff_EDI + 0x2d6d1,uVar5,uVar4,param_2)" (identifier "FUN_000e9b50") (argument_list "(&local_24,uVar2,unaff_EDI + 0x2d6d1,uVar5,uVar4,param_2)" (( "(") (pointer_expression "&local_24" (& "&") (identifier "local_24")) (, ",") (identifier "uVar2") (, ",") (binary_expression "unaff_EDI + 0x2d6d1" (identifier "unaff_EDI") (+ "+") (number_literal "0x2d6d1")) (, ",") (identifier "uVar5") (, ",") (identifier "uVar4") (, ",") (identifier "param_2") () ")"))) (; ";")) (expression_statement "FUN_000e9b50(&local_24,uVar2,unaff_EDI + 0x2d709,*(undefined4 *)(param_1 + 0x10),\n               *(undefined4 *)(param_1 + 0x14),param_2);" (call_expression "FUN_000e9b50(&local_24,uVar2,unaff_EDI + 0x2d709,*(undefined4 *)(param_1 + 0x10),\n               *(undefined4 *)(param_1 + 0x14),param_2)" (identifier "FUN_000e9b50") (argument_list "(&local_24,uVar2,unaff_EDI + 0x2d709,*(undefined4 *)(param_1 + 0x10),\n               *(undefined4 *)(param_1 + 0x14),param_2)" (( "(") (pointer_expression "&local_24" (& "&") (identifier "local_24")) (, ",") (identifier "uVar2") (, ",") (binary_expression "unaff_EDI + 0x2d709" (identifier "unaff_EDI") (+ "+") (number_literal "0x2d709")) (, ",") (pointer_expression "*(undefined4 *)(param_1 + 0x10)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (, ",") (pointer_expression "*(undefined4 *)(param_1 + 0x14)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) (, ",") (identifier "param_2") () ")"))) (; ";")) (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00116110();\n  }" (if "if") (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (!= "!=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n                    \n    FUN_00116110();\n  }" ({ "{") (expression_statement "FUN_00116110();" (call_expression "FUN_00116110()" (identifier "FUN_00116110") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (return_statement "return local_24;" (return "return") (identifier "local_24") (; ";")) (} "}")))

/* WARNING: Unknown calling convention */

int function_1(type_1 *pVtab,char *zName)

{
  char var_9;
  type_2 *db;
  int var_6;
  char *pcVar3;
  int iVar4;
  int var_8;
  int var_2;
  int var_4;
  int var_10;
  
  var_1();
  var_10 = *(int *)(var_2 + 0x14);
  db = (type_2 *)pVtab[1].pModule;
  if (*(char *)((int)&pVtab[0x13].nRef + 1) == '\x02') {
    var_4 = var_3((type_3 *)pVtab);
    if (var_4 != 0) {
      var_6 = pVtab[3].nRef;
      pcVar3 = pVtab[1].zErrMsg;
      iVar4 = pVtab[1].nRef;
      goto joined_r0x00103a91;
    }
  }
  else {
    var_4 = 0;
  }
  var_4 = var_5((type_3 *)pVtab);
  var_6 = pVtab[3].nRef;
  pcVar3 = pVtab[1].zErrMsg;
  iVar4 = pVtab[1].nRef;
joined_r0x00103a91:
  if (var_6 == 0) {
    var_7(&var_4,db,(char *)(var_8 + 0x2d631),iVar4,pcVar3,zName);
    pcVar3 = pVtab[1].zErrMsg;
    iVar4 = pVtab[1].nRef;
  }
  if (*(char *)((int)&pVtab[0x13].nRef + 2) == '\0') {
    var_9 = *(char *)((int)&pVtab[0x13].nRef + 1);
  }
  else {
    var_7(&var_4,db,(char *)(var_8 + 0x2d669),iVar4,pcVar3,zName);
    pcVar3 = pVtab[1].zErrMsg;
    iVar4 = pVtab[1].nRef;
    var_9 = *(char *)((int)&pVtab[0x13].nRef + 1);
  }
  if (var_9 != '\0') {
    var_7(&var_4,db,(char *)(var_8 + 0x2d6a1),iVar4,pcVar3,zName);
    pcVar3 = pVtab[1].zErrMsg;
    iVar4 = pVtab[1].nRef;
  }
  var_7(&var_4,db,(char *)(var_8 + 0x2d6d1),iVar4,pcVar3,zName);
  var_7(&var_4,db,(char *)(var_8 + 0x2d709),pVtab[1].nRef,pVtab[1].zErrMsg,zName);
  if (var_10 != *(int *)(var_2 + 0x14)) {
                    /* WARNING: Subroutine does not return */
    var_11();
  }
  return var_4;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (goto_statement label: (statement_identifier))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)) (identifier) (binary_expression left: (identifier) right: (number_literal)) (identifier) (identifier) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) alternative: (else_clause (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)) (identifier) (binary_expression left: (identifier) right: (number_literal)) (identifier) (identifier) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)) (identifier) (binary_expression left: (identifier) right: (number_literal)) (identifier) (identifier) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)) (identifier) (binary_expression left: (identifier) right: (number_literal)) (identifier) (identifier) (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)) (identifier) (binary_expression left: (identifier) right: (number_literal)) (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))))) (return_statement (identifier)))))

int MASKED(int param_1,undefined4 param_2)

{
  char cVar1;
  undefined4 uVar2;
  int iVar3;
  undefined4 uVar4;
  undefined4 uVar5;
  int unaff_EDI;
  int in_GS_OFFSET;
  int local_24;
  int local_20;
  
  FUN_00036ac5();
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  uVar2 = *(undefined4 *)(param_1 + 0xc);
  if (*(char *)(param_1 + 0xe9) == '\x02') {
    local_24 = FUN_000e98a0();
    if (local_24 != 0) {
      iVar3 = *(int *)(param_1 + 0x28);
      uVar4 = *(undefined4 *)(param_1 + 0x14);
      uVar5 = *(undefined4 *)(param_1 + 0x10);
      goto joined_r0x00103a91;
    }
  }
  else {
    local_24 = 0;
  }
  local_24 = FUN_00103810();
  iVar3 = *(int *)(param_1 + 0x28);
  uVar4 = *(undefined4 *)(param_1 + 0x14);
  uVar5 = *(undefined4 *)(param_1 + 0x10);
joined_r0x00103a91:
  if (iVar3 == 0) {
    FUN_000e9b50(&local_24,uVar2,unaff_EDI + 0x2d631,uVar5,uVar4,param_2);
    uVar4 = *(undefined4 *)(param_1 + 0x14);
    uVar5 = *(undefined4 *)(param_1 + 0x10);
  }
  if (*(char *)(param_1 + 0xea) == '\0') {
    cVar1 = *(char *)(param_1 + 0xe9);
  }
  else {
    FUN_000e9b50(&local_24,uVar2,unaff_EDI + 0x2d669,uVar5,uVar4,param_2);
    uVar4 = *(undefined4 *)(param_1 + 0x14);
    uVar5 = *(undefined4 *)(param_1 + 0x10);
    cVar1 = *(char *)(param_1 + 0xe9);
  }
  if (cVar1 != '\0') {
    FUN_000e9b50(&local_24,uVar2,unaff_EDI + 0x2d6a1,uVar5,uVar4,param_2);
    uVar4 = *(undefined4 *)(param_1 + 0x14);
    uVar5 = *(undefined4 *)(param_1 + 0x10);
  }
  FUN_000e9b50(&local_24,uVar2,unaff_EDI + 0x2d6d1,uVar5,uVar4,param_2);
  FUN_000e9b50(&local_24,uVar2,unaff_EDI + 0x2d709,*(undefined4 *)(param_1 + 0x10),
               *(undefined4 *)(param_1 + 0x14),param_2);
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_00116110();
  }
  return local_24;
}

