
Mem * columnMem(sqlite3_stmt *pStmt,int i)

{
  sqlite3 *db;
  int *piVar1;
  uint uVar2;
  int unaff_EDI;
  undefined8 uVar3;
  
  uVar3 = __x86_get_pc_thunk_di();
  uVar2 = (uint)((ulonglong)uVar3 >> 0x20);
  piVar1 = (int *)uVar3;
  if (piVar1 == (int *)0x0) {
    return (Mem *)(unaff_EDI + 0xdbc6a);
  }
  if (*(int *)(*piVar1 + 0xc) != 0) {
    (**(code **)((int)&fde_table_entry_00132484.initial_loc + unaff_EDI + 2))
              (*(int *)(*piVar1 + 0xc));
  }
  if ((piVar1[0x1d] != 0) && (uVar2 < *(ushort *)(piVar1 + 0x22))) {
    return (Mem *)(piVar1[0x1d] + uVar2 * 0x28);
  }
  db = (sqlite3 *)*piVar1;
  db->errCode = 0x19;
  sqlite3ErrorFinish(db,0x19);
  return (Mem *)(unaff_EDI + 0xdbc6a);
}



undefined * FUN_00049fb0(void)

{
  int *piVar1;
  uint uVar2;
  int unaff_EDI;
  undefined8 uVar3;
  
  uVar3 = FUN_00036ac5();
  uVar2 = (uint)((ulonglong)uVar3 >> 0x20);
  piVar1 = (int *)uVar3;
  if (piVar1 == (int *)0x0) {
    return &UNK_000dbc6a + unaff_EDI;
  }
  if (*(int *)(*piVar1 + 0xc) != 0) {
    (**(code **)((int)&fde_table_entry_00132484.initial_loc + unaff_EDI + 2))
              (*(int *)(*piVar1 + 0xc));
  }
  if ((piVar1[0x1d] != 0) && (uVar2 < *(ushort *)(piVar1 + 0x22))) {
    return (undefined *)(piVar1[0x1d] + uVar2 * 0x28);
  }
  *(undefined4 *)(*piVar1 + 0x3c) = 0x19;
  FUN_00045400();
  return &UNK_000dbc6a + unaff_EDI;
}


PUSH EDI
CALL 0x00036ac5
ADD EDI,0x131e72
PUSH ESI
PUSH EBX
TEST EAX,EAX
JZ 0x0004a020
MOV EBX,EAX
MOV EAX,dword ptr [EAX]
MOV ESI,EDX
MOV EAX,dword ptr [EAX + 0xc]
TEST EAX,EAX
JZ 0x00049fdc
SUB ESP,0xc
PUSH EAX
CALL dword ptr [EDI + 0x614]
ADD ESP,0x10
MOV EAX,dword ptr [EBX + 0x74]
TEST EAX,EAX
JZ 0x00049fee
MOVZX EDX,word ptr [EBX + 0x88]
CMP ESI,EDX
JC 0x0004a010
MOV EAX,dword ptr [EBX]
MOV EDX,0x19
MOV dword ptr [EAX + 0x3c],0x19
CALL 0x00045400
LEA EAX,[EDI + 0xfffa9df8]
POP EBX
POP ESI
POP EDI
RET
LEA EDX,[ESI + ESI*0x4]
POP EBX
POP ESI
LEA EAX,[EAX + EDX*0x8]
POP EDI
RET
LEA EAX,[EDI + 0xfffa9df8]
POP EBX
POP ESI
POP EDI
RET
(translation_unit "undefined * FUN_00049fb0(void)\n\n{\n  int *piVar1;\n  uint uVar2;\n  int unaff_EDI;\n  undefined8 uVar3;\n  \n  uVar3 = FUN_00036ac5();\n  uVar2 = (uint)((ulonglong)uVar3 >> 0x20);\n  piVar1 = (int *)uVar3;\n  if (piVar1 == (int *)0x0) {\n    return &UNK_000dbc6a + unaff_EDI;\n  }\n  if (*(int *)(*piVar1 + 0xc) != 0) {\n    (**(code **)((int)&fde_table_entry_00132484.initial_loc + unaff_EDI + 2))\n              (*(int *)(*piVar1 + 0xc));\n  }\n  if ((piVar1[0x1d] != 0) && (uVar2 < *(ushort *)(piVar1 + 0x22))) {\n    return (undefined *)(piVar1[0x1d] + uVar2 * 0x28);\n  }\n  *(undefined4 *)(*piVar1 + 0x3c) = 0x19;\n  FUN_00045400();\n  return &UNK_000dbc6a + unaff_EDI;\n}\n\n" (function_definition "undefined * FUN_00049fb0(void)\n\n{\n  int *piVar1;\n  uint uVar2;\n  int unaff_EDI;\n  undefined8 uVar3;\n  \n  uVar3 = FUN_00036ac5();\n  uVar2 = (uint)((ulonglong)uVar3 >> 0x20);\n  piVar1 = (int *)uVar3;\n  if (piVar1 == (int *)0x0) {\n    return &UNK_000dbc6a + unaff_EDI;\n  }\n  if (*(int *)(*piVar1 + 0xc) != 0) {\n    (**(code **)((int)&fde_table_entry_00132484.initial_loc + unaff_EDI + 2))\n              (*(int *)(*piVar1 + 0xc));\n  }\n  if ((piVar1[0x1d] != 0) && (uVar2 < *(ushort *)(piVar1 + 0x22))) {\n    return (undefined *)(piVar1[0x1d] + uVar2 * 0x28);\n  }\n  *(undefined4 *)(*piVar1 + 0x3c) = 0x19;\n  FUN_00045400();\n  return &UNK_000dbc6a + unaff_EDI;\n}" type_identifier (pointer_declarator "* FUN_00049fb0(void)" * (function_declarator "FUN_00049fb0(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) )))) (compound_statement "{\n  int *piVar1;\n  uint uVar2;\n  int unaff_EDI;\n  undefined8 uVar3;\n  \n  uVar3 = FUN_00036ac5();\n  uVar2 = (uint)((ulonglong)uVar3 >> 0x20);\n  piVar1 = (int *)uVar3;\n  if (piVar1 == (int *)0x0) {\n    return &UNK_000dbc6a + unaff_EDI;\n  }\n  if (*(int *)(*piVar1 + 0xc) != 0) {\n    (**(code **)((int)&fde_table_entry_00132484.initial_loc + unaff_EDI + 2))\n              (*(int *)(*piVar1 + 0xc));\n  }\n  if ((piVar1[0x1d] != 0) && (uVar2 < *(ushort *)(piVar1 + 0x22))) {\n    return (undefined *)(piVar1[0x1d] + uVar2 * 0x28);\n  }\n  *(undefined4 *)(*piVar1 + 0x3c) = 0x19;\n  FUN_00045400();\n  return &UNK_000dbc6a + unaff_EDI;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (declaration "undefined8 uVar3;" type_identifier identifier ;) (expression_statement "uVar3 = FUN_00036ac5();" (assignment_expression "uVar3 = FUN_00036ac5()" identifier = (call_expression "FUN_00036ac5()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar2 = (uint)((ulonglong)uVar3 >> 0x20);" (assignment_expression "uVar2 = (uint)((ulonglong)uVar3 >> 0x20)" identifier = (call_expression "(uint)((ulonglong)uVar3 >> 0x20)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((ulonglong)uVar3 >> 0x20)" ( (binary_expression "(ulonglong)uVar3 >> 0x20" (cast_expression "(ulonglong)uVar3" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "piVar1 = (int *)uVar3;" (assignment_expression "piVar1 = (int *)uVar3" identifier = (cast_expression "(int *)uVar3" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) (if_statement "if (piVar1 == (int *)0x0) {\n    return &UNK_000dbc6a + unaff_EDI;\n  }" if (parenthesized_expression "(piVar1 == (int *)0x0)" ( (binary_expression "piVar1 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return &UNK_000dbc6a + unaff_EDI;\n  }" { (return_statement "return &UNK_000dbc6a + unaff_EDI;" return (binary_expression "&UNK_000dbc6a + unaff_EDI" (pointer_expression "&UNK_000dbc6a" & identifier) + identifier) ;) })) (if_statement "if (*(int *)(*piVar1 + 0xc) != 0) {\n    (**(code **)((int)&fde_table_entry_00132484.initial_loc + unaff_EDI + 2))\n              (*(int *)(*piVar1 + 0xc));\n  }" if (parenthesized_expression "(*(int *)(*piVar1 + 0xc) != 0)" ( (binary_expression "*(int *)(*piVar1 + 0xc) != 0" (pointer_expression "*(int *)(*piVar1 + 0xc)" * (cast_expression "(int *)(*piVar1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar1 + 0xc)" ( (binary_expression "*piVar1 + 0xc" (pointer_expression "*piVar1" * identifier) + number_literal) )))) != number_literal) )) (compound_statement "{\n    (**(code **)((int)&fde_table_entry_00132484.initial_loc + unaff_EDI + 2))\n              (*(int *)(*piVar1 + 0xc));\n  }" { (expression_statement "(**(code **)((int)&fde_table_entry_00132484.initial_loc + unaff_EDI + 2))\n              (*(int *)(*piVar1 + 0xc));" (call_expression "(**(code **)((int)&fde_table_entry_00132484.initial_loc + unaff_EDI + 2))\n              (*(int *)(*piVar1 + 0xc))" (parenthesized_expression "(**(code **)((int)&fde_table_entry_00132484.initial_loc + unaff_EDI + 2))" ( (pointer_expression "**(code **)((int)&fde_table_entry_00132484.initial_loc + unaff_EDI + 2)" * (pointer_expression "*(code **)((int)&fde_table_entry_00132484.initial_loc + unaff_EDI + 2)" * (cast_expression "(code **)((int)&fde_table_entry_00132484.initial_loc + unaff_EDI + 2)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)&fde_table_entry_00132484.initial_loc + unaff_EDI + 2)" ( (binary_expression "(int)&fde_table_entry_00132484.initial_loc + unaff_EDI + 2" (binary_expression "(int)&fde_table_entry_00132484.initial_loc + unaff_EDI" (cast_expression "(int)&fde_table_entry_00132484.initial_loc" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&fde_table_entry_00132484.initial_loc" & (field_expression "fde_table_entry_00132484.initial_loc" identifier . field_identifier))) + identifier) + number_literal) ))))) )) (argument_list "(*(int *)(*piVar1 + 0xc))" ( (pointer_expression "*(int *)(*piVar1 + 0xc)" * (cast_expression "(int *)(*piVar1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar1 + 0xc)" ( (binary_expression "*piVar1 + 0xc" (pointer_expression "*piVar1" * identifier) + number_literal) )))) ))) ;) })) (if_statement "if ((piVar1[0x1d] != 0) && (uVar2 < *(ushort *)(piVar1 + 0x22))) {\n    return (undefined *)(piVar1[0x1d] + uVar2 * 0x28);\n  }" if (parenthesized_expression "((piVar1[0x1d] != 0) && (uVar2 < *(ushort *)(piVar1 + 0x22)))" ( (binary_expression "(piVar1[0x1d] != 0) && (uVar2 < *(ushort *)(piVar1 + 0x22))" (parenthesized_expression "(piVar1[0x1d] != 0)" ( (binary_expression "piVar1[0x1d] != 0" (subscript_expression "piVar1[0x1d]" identifier [ number_literal ]) != number_literal) )) && (parenthesized_expression "(uVar2 < *(ushort *)(piVar1 + 0x22))" ( (binary_expression "uVar2 < *(ushort *)(piVar1 + 0x22)" identifier < (pointer_expression "*(ushort *)(piVar1 + 0x22)" * (cast_expression "(ushort *)(piVar1 + 0x22)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar1 + 0x22)" ( (binary_expression "piVar1 + 0x22" identifier + number_literal) ))))) ))) )) (compound_statement "{\n    return (undefined *)(piVar1[0x1d] + uVar2 * 0x28);\n  }" { (return_statement "return (undefined *)(piVar1[0x1d] + uVar2 * 0x28);" return (cast_expression "(undefined *)(piVar1[0x1d] + uVar2 * 0x28)" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar1[0x1d] + uVar2 * 0x28)" ( (binary_expression "piVar1[0x1d] + uVar2 * 0x28" (subscript_expression "piVar1[0x1d]" identifier [ number_literal ]) + (binary_expression "uVar2 * 0x28" identifier * number_literal)) ))) ;) })) (expression_statement "*(undefined4 *)(*piVar1 + 0x3c) = 0x19;" (assignment_expression "*(undefined4 *)(*piVar1 + 0x3c) = 0x19" (pointer_expression "*(undefined4 *)(*piVar1 + 0x3c)" * (cast_expression "(undefined4 *)(*piVar1 + 0x3c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar1 + 0x3c)" ( (binary_expression "*piVar1 + 0x3c" (pointer_expression "*piVar1" * identifier) + number_literal) )))) = number_literal) ;) (expression_statement "FUN_00045400();" (call_expression "FUN_00045400()" identifier (argument_list "()" ( ))) ;) (return_statement "return &UNK_000dbc6a + unaff_EDI;" return (binary_expression "&UNK_000dbc6a + unaff_EDI" (pointer_expression "&UNK_000dbc6a" & identifier) + identifier) ;) })))
(translation_unit "Mem * columnMem(sqlite3_stmt *pStmt,int i)\n\n{\n  sqlite3 *db;\n  int *piVar1;\n  uint uVar2;\n  int unaff_EDI;\n  undefined8 uVar3;\n  \n  uVar3 = __x86_get_pc_thunk_di();\n  uVar2 = (uint)((ulonglong)uVar3 >> 0x20);\n  piVar1 = (int *)uVar3;\n  if (piVar1 == (int *)0x0) {\n    return (Mem *)(unaff_EDI + 0xdbc6a);\n  }\n  if (*(int *)(*piVar1 + 0xc) != 0) {\n    (**(code **)((int)&fde_table_entry_00132484.initial_loc + unaff_EDI + 2))\n              (*(int *)(*piVar1 + 0xc));\n  }\n  if ((piVar1[0x1d] != 0) && (uVar2 < *(ushort *)(piVar1 + 0x22))) {\n    return (Mem *)(piVar1[0x1d] + uVar2 * 0x28);\n  }\n  db = (sqlite3 *)*piVar1;\n  db->errCode = 0x19;\n  sqlite3ErrorFinish(db,0x19);\n  return (Mem *)(unaff_EDI + 0xdbc6a);\n}\n\n" (function_definition "Mem * columnMem(sqlite3_stmt *pStmt,int i)\n\n{\n  sqlite3 *db;\n  int *piVar1;\n  uint uVar2;\n  int unaff_EDI;\n  undefined8 uVar3;\n  \n  uVar3 = __x86_get_pc_thunk_di();\n  uVar2 = (uint)((ulonglong)uVar3 >> 0x20);\n  piVar1 = (int *)uVar3;\n  if (piVar1 == (int *)0x0) {\n    return (Mem *)(unaff_EDI + 0xdbc6a);\n  }\n  if (*(int *)(*piVar1 + 0xc) != 0) {\n    (**(code **)((int)&fde_table_entry_00132484.initial_loc + unaff_EDI + 2))\n              (*(int *)(*piVar1 + 0xc));\n  }\n  if ((piVar1[0x1d] != 0) && (uVar2 < *(ushort *)(piVar1 + 0x22))) {\n    return (Mem *)(piVar1[0x1d] + uVar2 * 0x28);\n  }\n  db = (sqlite3 *)*piVar1;\n  db->errCode = 0x19;\n  sqlite3ErrorFinish(db,0x19);\n  return (Mem *)(unaff_EDI + 0xdbc6a);\n}" type_identifier (pointer_declarator "* columnMem(sqlite3_stmt *pStmt,int i)" * (function_declarator "columnMem(sqlite3_stmt *pStmt,int i)" identifier (parameter_list "(sqlite3_stmt *pStmt,int i)" ( (parameter_declaration "sqlite3_stmt *pStmt" type_identifier (pointer_declarator "*pStmt" * identifier)) , (parameter_declaration "int i" primitive_type identifier) )))) (compound_statement "{\n  sqlite3 *db;\n  int *piVar1;\n  uint uVar2;\n  int unaff_EDI;\n  undefined8 uVar3;\n  \n  uVar3 = __x86_get_pc_thunk_di();\n  uVar2 = (uint)((ulonglong)uVar3 >> 0x20);\n  piVar1 = (int *)uVar3;\n  if (piVar1 == (int *)0x0) {\n    return (Mem *)(unaff_EDI + 0xdbc6a);\n  }\n  if (*(int *)(*piVar1 + 0xc) != 0) {\n    (**(code **)((int)&fde_table_entry_00132484.initial_loc + unaff_EDI + 2))\n              (*(int *)(*piVar1 + 0xc));\n  }\n  if ((piVar1[0x1d] != 0) && (uVar2 < *(ushort *)(piVar1 + 0x22))) {\n    return (Mem *)(piVar1[0x1d] + uVar2 * 0x28);\n  }\n  db = (sqlite3 *)*piVar1;\n  db->errCode = 0x19;\n  sqlite3ErrorFinish(db,0x19);\n  return (Mem *)(unaff_EDI + 0xdbc6a);\n}" { (declaration "sqlite3 *db;" type_identifier (pointer_declarator "*db" * identifier) ;) (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (declaration "undefined8 uVar3;" type_identifier identifier ;) (expression_statement "uVar3 = __x86_get_pc_thunk_di();" (assignment_expression "uVar3 = __x86_get_pc_thunk_di()" identifier = (call_expression "__x86_get_pc_thunk_di()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar2 = (uint)((ulonglong)uVar3 >> 0x20);" (assignment_expression "uVar2 = (uint)((ulonglong)uVar3 >> 0x20)" identifier = (call_expression "(uint)((ulonglong)uVar3 >> 0x20)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((ulonglong)uVar3 >> 0x20)" ( (binary_expression "(ulonglong)uVar3 >> 0x20" (cast_expression "(ulonglong)uVar3" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "piVar1 = (int *)uVar3;" (assignment_expression "piVar1 = (int *)uVar3" identifier = (cast_expression "(int *)uVar3" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) (if_statement "if (piVar1 == (int *)0x0) {\n    return (Mem *)(unaff_EDI + 0xdbc6a);\n  }" if (parenthesized_expression "(piVar1 == (int *)0x0)" ( (binary_expression "piVar1 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return (Mem *)(unaff_EDI + 0xdbc6a);\n  }" { (return_statement "return (Mem *)(unaff_EDI + 0xdbc6a);" return (cast_expression "(Mem *)(unaff_EDI + 0xdbc6a)" ( (type_descriptor "Mem *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0xdbc6a)" ( (binary_expression "unaff_EDI + 0xdbc6a" identifier + number_literal) ))) ;) })) (if_statement "if (*(int *)(*piVar1 + 0xc) != 0) {\n    (**(code **)((int)&fde_table_entry_00132484.initial_loc + unaff_EDI + 2))\n              (*(int *)(*piVar1 + 0xc));\n  }" if (parenthesized_expression "(*(int *)(*piVar1 + 0xc) != 0)" ( (binary_expression "*(int *)(*piVar1 + 0xc) != 0" (pointer_expression "*(int *)(*piVar1 + 0xc)" * (cast_expression "(int *)(*piVar1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar1 + 0xc)" ( (binary_expression "*piVar1 + 0xc" (pointer_expression "*piVar1" * identifier) + number_literal) )))) != number_literal) )) (compound_statement "{\n    (**(code **)((int)&fde_table_entry_00132484.initial_loc + unaff_EDI + 2))\n              (*(int *)(*piVar1 + 0xc));\n  }" { (expression_statement "(**(code **)((int)&fde_table_entry_00132484.initial_loc + unaff_EDI + 2))\n              (*(int *)(*piVar1 + 0xc));" (call_expression "(**(code **)((int)&fde_table_entry_00132484.initial_loc + unaff_EDI + 2))\n              (*(int *)(*piVar1 + 0xc))" (parenthesized_expression "(**(code **)((int)&fde_table_entry_00132484.initial_loc + unaff_EDI + 2))" ( (pointer_expression "**(code **)((int)&fde_table_entry_00132484.initial_loc + unaff_EDI + 2)" * (pointer_expression "*(code **)((int)&fde_table_entry_00132484.initial_loc + unaff_EDI + 2)" * (cast_expression "(code **)((int)&fde_table_entry_00132484.initial_loc + unaff_EDI + 2)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)&fde_table_entry_00132484.initial_loc + unaff_EDI + 2)" ( (binary_expression "(int)&fde_table_entry_00132484.initial_loc + unaff_EDI + 2" (binary_expression "(int)&fde_table_entry_00132484.initial_loc + unaff_EDI" (cast_expression "(int)&fde_table_entry_00132484.initial_loc" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&fde_table_entry_00132484.initial_loc" & (field_expression "fde_table_entry_00132484.initial_loc" identifier . field_identifier))) + identifier) + number_literal) ))))) )) (argument_list "(*(int *)(*piVar1 + 0xc))" ( (pointer_expression "*(int *)(*piVar1 + 0xc)" * (cast_expression "(int *)(*piVar1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar1 + 0xc)" ( (binary_expression "*piVar1 + 0xc" (pointer_expression "*piVar1" * identifier) + number_literal) )))) ))) ;) })) (if_statement "if ((piVar1[0x1d] != 0) && (uVar2 < *(ushort *)(piVar1 + 0x22))) {\n    return (Mem *)(piVar1[0x1d] + uVar2 * 0x28);\n  }" if (parenthesized_expression "((piVar1[0x1d] != 0) && (uVar2 < *(ushort *)(piVar1 + 0x22)))" ( (binary_expression "(piVar1[0x1d] != 0) && (uVar2 < *(ushort *)(piVar1 + 0x22))" (parenthesized_expression "(piVar1[0x1d] != 0)" ( (binary_expression "piVar1[0x1d] != 0" (subscript_expression "piVar1[0x1d]" identifier [ number_literal ]) != number_literal) )) && (parenthesized_expression "(uVar2 < *(ushort *)(piVar1 + 0x22))" ( (binary_expression "uVar2 < *(ushort *)(piVar1 + 0x22)" identifier < (pointer_expression "*(ushort *)(piVar1 + 0x22)" * (cast_expression "(ushort *)(piVar1 + 0x22)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar1 + 0x22)" ( (binary_expression "piVar1 + 0x22" identifier + number_literal) ))))) ))) )) (compound_statement "{\n    return (Mem *)(piVar1[0x1d] + uVar2 * 0x28);\n  }" { (return_statement "return (Mem *)(piVar1[0x1d] + uVar2 * 0x28);" return (cast_expression "(Mem *)(piVar1[0x1d] + uVar2 * 0x28)" ( (type_descriptor "Mem *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar1[0x1d] + uVar2 * 0x28)" ( (binary_expression "piVar1[0x1d] + uVar2 * 0x28" (subscript_expression "piVar1[0x1d]" identifier [ number_literal ]) + (binary_expression "uVar2 * 0x28" identifier * number_literal)) ))) ;) })) (expression_statement "db = (sqlite3 *)*piVar1;" (assignment_expression "db = (sqlite3 *)*piVar1" identifier = (cast_expression "(sqlite3 *)*piVar1" ( (type_descriptor "sqlite3 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar1" * identifier))) ;) (expression_statement "db->errCode = 0x19;" (assignment_expression "db->errCode = 0x19" (field_expression "db->errCode" identifier -> field_identifier) = number_literal) ;) (expression_statement "sqlite3ErrorFinish(db,0x19);" (call_expression "sqlite3ErrorFinish(db,0x19)" identifier (argument_list "(db,0x19)" ( identifier , number_literal ))) ;) (return_statement "return (Mem *)(unaff_EDI + 0xdbc6a);" return (cast_expression "(Mem *)(unaff_EDI + 0xdbc6a)" ( (type_descriptor "Mem *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0xdbc6a)" ( (binary_expression "unaff_EDI + 0xdbc6a" identifier + number_literal) ))) ;) })))
(translation_unit "undefined * FUN_00049fb0(void)\n\n{\n  int *piVar1;\n  uint uVar2;\n  int unaff_EDI;\n  undefined8 uVar3;\n  \n  uVar3 = FUN_00036ac5();\n  uVar2 = (uint)((ulonglong)uVar3 >> 0x20);\n  piVar1 = (int *)uVar3;\n  if (piVar1 == (int *)0x0) {\n    return &UNK_000dbc6a + unaff_EDI;\n  }\n  if (*(int *)(*piVar1 + 0xc) != 0) {\n    (**(code **)((int)&fde_table_entry_00132484.initial_loc + unaff_EDI + 2))\n              (*(int *)(*piVar1 + 0xc));\n  }\n  if ((piVar1[0x1d] != 0) && (uVar2 < *(ushort *)(piVar1 + 0x22))) {\n    return (undefined *)(piVar1[0x1d] + uVar2 * 0x28);\n  }\n  *(undefined4 *)(*piVar1 + 0x3c) = 0x19;\n  FUN_00045400();\n  return &UNK_000dbc6a + unaff_EDI;\n}\n\n" (function_definition "undefined * FUN_00049fb0(void)\n\n{\n  int *piVar1;\n  uint uVar2;\n  int unaff_EDI;\n  undefined8 uVar3;\n  \n  uVar3 = FUN_00036ac5();\n  uVar2 = (uint)((ulonglong)uVar3 >> 0x20);\n  piVar1 = (int *)uVar3;\n  if (piVar1 == (int *)0x0) {\n    return &UNK_000dbc6a + unaff_EDI;\n  }\n  if (*(int *)(*piVar1 + 0xc) != 0) {\n    (**(code **)((int)&fde_table_entry_00132484.initial_loc + unaff_EDI + 2))\n              (*(int *)(*piVar1 + 0xc));\n  }\n  if ((piVar1[0x1d] != 0) && (uVar2 < *(ushort *)(piVar1 + 0x22))) {\n    return (undefined *)(piVar1[0x1d] + uVar2 * 0x28);\n  }\n  *(undefined4 *)(*piVar1 + 0x3c) = 0x19;\n  FUN_00045400();\n  return &UNK_000dbc6a + unaff_EDI;\n}" type_identifier (pointer_declarator "* FUN_00049fb0(void)" * (function_declarator "FUN_00049fb0(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) )))) (compound_statement "{\n  int *piVar1;\n  uint uVar2;\n  int unaff_EDI;\n  undefined8 uVar3;\n  \n  uVar3 = FUN_00036ac5();\n  uVar2 = (uint)((ulonglong)uVar3 >> 0x20);\n  piVar1 = (int *)uVar3;\n  if (piVar1 == (int *)0x0) {\n    return &UNK_000dbc6a + unaff_EDI;\n  }\n  if (*(int *)(*piVar1 + 0xc) != 0) {\n    (**(code **)((int)&fde_table_entry_00132484.initial_loc + unaff_EDI + 2))\n              (*(int *)(*piVar1 + 0xc));\n  }\n  if ((piVar1[0x1d] != 0) && (uVar2 < *(ushort *)(piVar1 + 0x22))) {\n    return (undefined *)(piVar1[0x1d] + uVar2 * 0x28);\n  }\n  *(undefined4 *)(*piVar1 + 0x3c) = 0x19;\n  FUN_00045400();\n  return &UNK_000dbc6a + unaff_EDI;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (declaration "undefined8 uVar3;" type_identifier identifier ;) (expression_statement "uVar3 = FUN_00036ac5();" (assignment_expression "uVar3 = FUN_00036ac5()" identifier = (call_expression "FUN_00036ac5()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar2 = (uint)((ulonglong)uVar3 >> 0x20);" (assignment_expression "uVar2 = (uint)((ulonglong)uVar3 >> 0x20)" identifier = (call_expression "(uint)((ulonglong)uVar3 >> 0x20)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((ulonglong)uVar3 >> 0x20)" ( (binary_expression "(ulonglong)uVar3 >> 0x20" (cast_expression "(ulonglong)uVar3" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "piVar1 = (int *)uVar3;" (assignment_expression "piVar1 = (int *)uVar3" identifier = (cast_expression "(int *)uVar3" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) (if_statement "if (piVar1 == (int *)0x0) {\n    return &UNK_000dbc6a + unaff_EDI;\n  }" if (parenthesized_expression "(piVar1 == (int *)0x0)" ( (binary_expression "piVar1 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return &UNK_000dbc6a + unaff_EDI;\n  }" { (return_statement "return &UNK_000dbc6a + unaff_EDI;" return (binary_expression "&UNK_000dbc6a + unaff_EDI" (pointer_expression "&UNK_000dbc6a" & identifier) + identifier) ;) })) (if_statement "if (*(int *)(*piVar1 + 0xc) != 0) {\n    (**(code **)((int)&fde_table_entry_00132484.initial_loc + unaff_EDI + 2))\n              (*(int *)(*piVar1 + 0xc));\n  }" if (parenthesized_expression "(*(int *)(*piVar1 + 0xc) != 0)" ( (binary_expression "*(int *)(*piVar1 + 0xc) != 0" (pointer_expression "*(int *)(*piVar1 + 0xc)" * (cast_expression "(int *)(*piVar1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar1 + 0xc)" ( (binary_expression "*piVar1 + 0xc" (pointer_expression "*piVar1" * identifier) + number_literal) )))) != number_literal) )) (compound_statement "{\n    (**(code **)((int)&fde_table_entry_00132484.initial_loc + unaff_EDI + 2))\n              (*(int *)(*piVar1 + 0xc));\n  }" { (expression_statement "(**(code **)((int)&fde_table_entry_00132484.initial_loc + unaff_EDI + 2))\n              (*(int *)(*piVar1 + 0xc));" (call_expression "(**(code **)((int)&fde_table_entry_00132484.initial_loc + unaff_EDI + 2))\n              (*(int *)(*piVar1 + 0xc))" (parenthesized_expression "(**(code **)((int)&fde_table_entry_00132484.initial_loc + unaff_EDI + 2))" ( (pointer_expression "**(code **)((int)&fde_table_entry_00132484.initial_loc + unaff_EDI + 2)" * (pointer_expression "*(code **)((int)&fde_table_entry_00132484.initial_loc + unaff_EDI + 2)" * (cast_expression "(code **)((int)&fde_table_entry_00132484.initial_loc + unaff_EDI + 2)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)&fde_table_entry_00132484.initial_loc + unaff_EDI + 2)" ( (binary_expression "(int)&fde_table_entry_00132484.initial_loc + unaff_EDI + 2" (binary_expression "(int)&fde_table_entry_00132484.initial_loc + unaff_EDI" (cast_expression "(int)&fde_table_entry_00132484.initial_loc" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&fde_table_entry_00132484.initial_loc" & (field_expression "fde_table_entry_00132484.initial_loc" identifier . field_identifier))) + identifier) + number_literal) ))))) )) (argument_list "(*(int *)(*piVar1 + 0xc))" ( (pointer_expression "*(int *)(*piVar1 + 0xc)" * (cast_expression "(int *)(*piVar1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar1 + 0xc)" ( (binary_expression "*piVar1 + 0xc" (pointer_expression "*piVar1" * identifier) + number_literal) )))) ))) ;) })) (if_statement "if ((piVar1[0x1d] != 0) && (uVar2 < *(ushort *)(piVar1 + 0x22))) {\n    return (undefined *)(piVar1[0x1d] + uVar2 * 0x28);\n  }" if (parenthesized_expression "((piVar1[0x1d] != 0) && (uVar2 < *(ushort *)(piVar1 + 0x22)))" ( (binary_expression "(piVar1[0x1d] != 0) && (uVar2 < *(ushort *)(piVar1 + 0x22))" (parenthesized_expression "(piVar1[0x1d] != 0)" ( (binary_expression "piVar1[0x1d] != 0" (subscript_expression "piVar1[0x1d]" identifier [ number_literal ]) != number_literal) )) && (parenthesized_expression "(uVar2 < *(ushort *)(piVar1 + 0x22))" ( (binary_expression "uVar2 < *(ushort *)(piVar1 + 0x22)" identifier < (pointer_expression "*(ushort *)(piVar1 + 0x22)" * (cast_expression "(ushort *)(piVar1 + 0x22)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar1 + 0x22)" ( (binary_expression "piVar1 + 0x22" identifier + number_literal) ))))) ))) )) (compound_statement "{\n    return (undefined *)(piVar1[0x1d] + uVar2 * 0x28);\n  }" { (return_statement "return (undefined *)(piVar1[0x1d] + uVar2 * 0x28);" return (cast_expression "(undefined *)(piVar1[0x1d] + uVar2 * 0x28)" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar1[0x1d] + uVar2 * 0x28)" ( (binary_expression "piVar1[0x1d] + uVar2 * 0x28" (subscript_expression "piVar1[0x1d]" identifier [ number_literal ]) + (binary_expression "uVar2 * 0x28" identifier * number_literal)) ))) ;) })) (expression_statement "*(undefined4 *)(*piVar1 + 0x3c) = 0x19;" (assignment_expression "*(undefined4 *)(*piVar1 + 0x3c) = 0x19" (pointer_expression "*(undefined4 *)(*piVar1 + 0x3c)" * (cast_expression "(undefined4 *)(*piVar1 + 0x3c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar1 + 0x3c)" ( (binary_expression "*piVar1 + 0x3c" (pointer_expression "*piVar1" * identifier) + number_literal) )))) = number_literal) ;) (expression_statement "FUN_00045400();" (call_expression "FUN_00045400()" identifier (argument_list "()" ( ))) ;) (return_statement "return &UNK_000dbc6a + unaff_EDI;" return (binary_expression "&UNK_000dbc6a + unaff_EDI" (pointer_expression "&UNK_000dbc6a" & identifier) + identifier) ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (return_statement return (binary_expression (pointer_expression & IDENT) + IDENT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) != LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) (pointer_expression & (field_expression IDENT . field_identifier))) + IDENT) + LIT) ))))) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) && (parenthesized_expression ( (binary_expression IDENT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ))) )) (compound_statement { (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + (binary_expression IDENT * LIT)) ))) ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (return_statement return (binary_expression (pointer_expression & IDENT) + IDENT) ;) })))
(function_definition "undefined * FUN_00049fb0(void)\n\n{\n  int *piVar1;\n  uint uVar2;\n  int unaff_EDI;\n  undefined8 uVar3;\n  \n  uVar3 = FUN_00036ac5();\n  uVar2 = (uint)((ulonglong)uVar3 >> 0x20);\n  piVar1 = (int *)uVar3;\n  if (piVar1 == (int *)0x0) {\n    return &UNK_000dbc6a + unaff_EDI;\n  }\n  if (*(int *)(*piVar1 + 0xc) != 0) {\n    (**(code **)((int)&fde_table_entry_00132484.initial_loc + unaff_EDI + 2))\n              (*(int *)(*piVar1 + 0xc));\n  }\n  if ((piVar1[0x1d] != 0) && (uVar2 < *(ushort *)(piVar1 + 0x22))) {\n    return (undefined *)(piVar1[0x1d] + uVar2 * 0x28);\n  }\n  *(undefined4 *)(*piVar1 + 0x3c) = 0x19;\n  FUN_00045400();\n  return &UNK_000dbc6a + unaff_EDI;\n}" (type_identifier "undefined") (pointer_declarator "* FUN_00049fb0(void)" (* "*") (function_declarator "FUN_00049fb0(void)" (identifier "FUN_00049fb0") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")")))) (compound_statement "{\n  int *piVar1;\n  uint uVar2;\n  int unaff_EDI;\n  undefined8 uVar3;\n  \n  uVar3 = FUN_00036ac5();\n  uVar2 = (uint)((ulonglong)uVar3 >> 0x20);\n  piVar1 = (int *)uVar3;\n  if (piVar1 == (int *)0x0) {\n    return &UNK_000dbc6a + unaff_EDI;\n  }\n  if (*(int *)(*piVar1 + 0xc) != 0) {\n    (**(code **)((int)&fde_table_entry_00132484.initial_loc + unaff_EDI + 2))\n              (*(int *)(*piVar1 + 0xc));\n  }\n  if ((piVar1[0x1d] != 0) && (uVar2 < *(ushort *)(piVar1 + 0x22))) {\n    return (undefined *)(piVar1[0x1d] + uVar2 * 0x28);\n  }\n  *(undefined4 *)(*piVar1 + 0x3c) = 0x19;\n  FUN_00045400();\n  return &UNK_000dbc6a + unaff_EDI;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "int unaff_EDI;" (primitive_type "int") (identifier "unaff_EDI") (; ";")) (declaration "undefined8 uVar3;" (type_identifier "undefined8") (identifier "uVar3") (; ";")) (expression_statement "uVar3 = FUN_00036ac5();" (assignment_expression "uVar3 = FUN_00036ac5()" (identifier "uVar3") (= "=") (call_expression "FUN_00036ac5()" (identifier "FUN_00036ac5") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "uVar2 = (uint)((ulonglong)uVar3 >> 0x20);" (assignment_expression "uVar2 = (uint)((ulonglong)uVar3 >> 0x20)" (identifier "uVar2") (= "=") (call_expression "(uint)((ulonglong)uVar3 >> 0x20)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "((ulonglong)uVar3 >> 0x20)" (( "(") (binary_expression "(ulonglong)uVar3 >> 0x20" (cast_expression "(ulonglong)uVar3" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (identifier "uVar3")) (>> ">>") (number_literal "0x20")) () ")")))) (; ";")) (expression_statement "piVar1 = (int *)uVar3;" (assignment_expression "piVar1 = (int *)uVar3" (identifier "piVar1") (= "=") (cast_expression "(int *)uVar3" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "uVar3"))) (; ";")) (if_statement "if (piVar1 == (int *)0x0) {\n    return &UNK_000dbc6a + unaff_EDI;\n  }" (if "if") (parenthesized_expression "(piVar1 == (int *)0x0)" (( "(") (binary_expression "piVar1 == (int *)0x0" (identifier "piVar1") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    return &UNK_000dbc6a + unaff_EDI;\n  }" ({ "{") (return_statement "return &UNK_000dbc6a + unaff_EDI;" (return "return") (binary_expression "&UNK_000dbc6a + unaff_EDI" (pointer_expression "&UNK_000dbc6a" (& "&") (identifier "UNK_000dbc6a")) (+ "+") (identifier "unaff_EDI")) (; ";")) (} "}"))) (if_statement "if (*(int *)(*piVar1 + 0xc) != 0) {\n    (**(code **)((int)&fde_table_entry_00132484.initial_loc + unaff_EDI + 2))\n              (*(int *)(*piVar1 + 0xc));\n  }" (if "if") (parenthesized_expression "(*(int *)(*piVar1 + 0xc) != 0)" (( "(") (binary_expression "*(int *)(*piVar1 + 0xc) != 0" (pointer_expression "*(int *)(*piVar1 + 0xc)" (* "*") (cast_expression "(int *)(*piVar1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*piVar1 + 0xc)" (( "(") (binary_expression "*piVar1 + 0xc" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (+ "+") (number_literal "0xc")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    (**(code **)((int)&fde_table_entry_00132484.initial_loc + unaff_EDI + 2))\n              (*(int *)(*piVar1 + 0xc));\n  }" ({ "{") (expression_statement "(**(code **)((int)&fde_table_entry_00132484.initial_loc + unaff_EDI + 2))\n              (*(int *)(*piVar1 + 0xc));" (call_expression "(**(code **)((int)&fde_table_entry_00132484.initial_loc + unaff_EDI + 2))\n              (*(int *)(*piVar1 + 0xc))" (parenthesized_expression "(**(code **)((int)&fde_table_entry_00132484.initial_loc + unaff_EDI + 2))" (( "(") (pointer_expression "**(code **)((int)&fde_table_entry_00132484.initial_loc + unaff_EDI + 2)" (* "*") (pointer_expression "*(code **)((int)&fde_table_entry_00132484.initial_loc + unaff_EDI + 2)" (* "*") (cast_expression "(code **)((int)&fde_table_entry_00132484.initial_loc + unaff_EDI + 2)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "((int)&fde_table_entry_00132484.initial_loc + unaff_EDI + 2)" (( "(") (binary_expression "(int)&fde_table_entry_00132484.initial_loc + unaff_EDI + 2" (binary_expression "(int)&fde_table_entry_00132484.initial_loc + unaff_EDI" (cast_expression "(int)&fde_table_entry_00132484.initial_loc" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (pointer_expression "&fde_table_entry_00132484.initial_loc" (& "&") (field_expression "fde_table_entry_00132484.initial_loc" (identifier "fde_table_entry_00132484") (. ".") (field_identifier "initial_loc")))) (+ "+") (identifier "unaff_EDI")) (+ "+") (number_literal "2")) () ")"))))) () ")")) (argument_list "(*(int *)(*piVar1 + 0xc))" (( "(") (pointer_expression "*(int *)(*piVar1 + 0xc)" (* "*") (cast_expression "(int *)(*piVar1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*piVar1 + 0xc)" (( "(") (binary_expression "*piVar1 + 0xc" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (+ "+") (number_literal "0xc")) () ")")))) () ")"))) (; ";")) (} "}"))) (if_statement "if ((piVar1[0x1d] != 0) && (uVar2 < *(ushort *)(piVar1 + 0x22))) {\n    return (undefined *)(piVar1[0x1d] + uVar2 * 0x28);\n  }" (if "if") (parenthesized_expression "((piVar1[0x1d] != 0) && (uVar2 < *(ushort *)(piVar1 + 0x22)))" (( "(") (binary_expression "(piVar1[0x1d] != 0) && (uVar2 < *(ushort *)(piVar1 + 0x22))" (parenthesized_expression "(piVar1[0x1d] != 0)" (( "(") (binary_expression "piVar1[0x1d] != 0" (subscript_expression "piVar1[0x1d]" (identifier "piVar1") ([ "[") (number_literal "0x1d") (] "]")) (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(uVar2 < *(ushort *)(piVar1 + 0x22))" (( "(") (binary_expression "uVar2 < *(ushort *)(piVar1 + 0x22)" (identifier "uVar2") (< "<") (pointer_expression "*(ushort *)(piVar1 + 0x22)" (* "*") (cast_expression "(ushort *)(piVar1 + 0x22)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(piVar1 + 0x22)" (( "(") (binary_expression "piVar1 + 0x22" (identifier "piVar1") (+ "+") (number_literal "0x22")) () ")"))))) () ")"))) () ")")) (compound_statement "{\n    return (undefined *)(piVar1[0x1d] + uVar2 * 0x28);\n  }" ({ "{") (return_statement "return (undefined *)(piVar1[0x1d] + uVar2 * 0x28);" (return "return") (cast_expression "(undefined *)(piVar1[0x1d] + uVar2 * 0x28)" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(piVar1[0x1d] + uVar2 * 0x28)" (( "(") (binary_expression "piVar1[0x1d] + uVar2 * 0x28" (subscript_expression "piVar1[0x1d]" (identifier "piVar1") ([ "[") (number_literal "0x1d") (] "]")) (+ "+") (binary_expression "uVar2 * 0x28" (identifier "uVar2") (* "*") (number_literal "0x28"))) () ")"))) (; ";")) (} "}"))) (expression_statement "*(undefined4 *)(*piVar1 + 0x3c) = 0x19;" (assignment_expression "*(undefined4 *)(*piVar1 + 0x3c) = 0x19" (pointer_expression "*(undefined4 *)(*piVar1 + 0x3c)" (* "*") (cast_expression "(undefined4 *)(*piVar1 + 0x3c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*piVar1 + 0x3c)" (( "(") (binary_expression "*piVar1 + 0x3c" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (+ "+") (number_literal "0x3c")) () ")")))) (= "=") (number_literal "0x19")) (; ";")) (expression_statement "FUN_00045400();" (call_expression "FUN_00045400()" (identifier "FUN_00045400") (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return &UNK_000dbc6a + unaff_EDI;" (return "return") (binary_expression "&UNK_000dbc6a + unaff_EDI" (pointer_expression "&UNK_000dbc6a" (& "&") (identifier "UNK_000dbc6a")) (+ "+") (identifier "unaff_EDI")) (; ";")) (} "}")))

type_1 * function_1(type_2 *pStmt,int i)

{
  type_3 *db;
  int *var_2;
  type_4 var_4;
  int var_3;
  type_5 uVar3;
  
  uVar3 = var_1();
  var_4 = (type_4)((type_6)uVar3 >> 0x20);
  var_2 = (int *)uVar3;
  if (var_2 == (int *)0x0) {
    return (type_1 *)(var_3 + 0xdbc6a);
  }
  if (*(int *)(*var_2 + 0xc) != 0) {
    (**(type_7 **)((int)&fde_table_entry_00132484.initial_loc + var_3 + 2))
              (*(int *)(*var_2 + 0xc));
  }
  if ((var_2[0x1d] != 0) && (var_4 < *(type_8 *)(var_2 + 0x22))) {
    return (type_1 *)(var_2[0x1d] + var_4 * 0x28);
  }
  db = (type_3 *)*var_2;
  db->errCode = 0x19;
  var_5(db,0x19);
  return (type_1 *)(var_3 + 0xdbc6a);
}


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

undefined * MASKED(void)

{
  int *piVar1;
  uint uVar2;
  int unaff_EDI;
  undefined8 uVar3;
  
  uVar3 = FUN_00036ac5();
  uVar2 = (uint)((ulonglong)uVar3 >> 0x20);
  piVar1 = (int *)uVar3;
  if (piVar1 == (int *)0x0) {
    return &UNK_000dbc6a + unaff_EDI;
  }
  if (*(int *)(*piVar1 + 0xc) != 0) {
    (**(code **)((int)&fde_table_entry_00132484.initial_loc + unaff_EDI + 2))
              (*(int *)(*piVar1 + 0xc));
  }
  if ((piVar1[0x1d] != 0) && (uVar2 < *(ushort *)(piVar1 + 0x22))) {
    return (undefined *)(piVar1[0x1d] + uVar2 * 0x28);
  }
  *(undefined4 *)(*piVar1 + 0x3c) = 0x19;
  FUN_00045400();
  return &UNK_000dbc6a + unaff_EDI;
}

