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

int dotlockLock(sqlite3_file *id,int eFileLock)

{
  sqlite3_io_methods *psVar1;
  int iVar2;
  int *piVar3;
  
  if (*(char *)&id[4].pMethods != '\0') {
    *(undefined1 *)&id[4].pMethods = (undefined1)eFileLock;
    utime((char *)id[6].pMethods,(utimbuf *)0x0);
    return 0;
  }
  iVar2 = (*aSyscall[0x12].pCurrent)(id[6].pMethods,0x1ff);
  if (iVar2 < 0) {
    piVar3 = __errno_location();
    psVar1 = (sqlite3_io_methods *)*piVar3;
    iVar2 = 5;
    if ((psVar1 != (sqlite3_io_methods *)0x11) && (psVar1 != (sqlite3_io_methods *)0xd)) {
      if ((int)psVar1 < 0xe) {
        if (psVar1 == (sqlite3_io_methods *)&DAT_00000004) {
          return 5;
        }
        if (psVar1 == (sqlite3_io_methods *)0xb) {
          return 5;
        }
        iVar2 = 3;
        if (psVar1 != (sqlite3_io_methods *)0x1) {
          iVar2 = 0xf0a;
        }
      }
      else {
        if (psVar1 == (sqlite3_io_methods *)0x25) {
          return 5;
        }
        if (psVar1 == (sqlite3_io_methods *)0x6e) {
          return 5;
        }
        if (psVar1 == (sqlite3_io_methods *)0x10) {
          return 5;
        }
        iVar2 = 0xf0a;
      }
      id[5].pMethods = psVar1;
    }
  }
  else {
    *(undefined1 *)&id[4].pMethods = (undefined1)eFileLock;
  }
  return iVar2;
}



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

int FUN_000368e0(int param_1,undefined1 param_2)

{
  int iVar1;
  int iVar2;
  int *piVar3;
  
  if (*(char *)(param_1 + 0x10) != '\0') {
    *(undefined1 *)(param_1 + 0x10) = param_2;
    utime(*(char **)(param_1 + 0x18),(utimbuf *)0x0);
    return 0;
  }
  iVar2 = (*(code *)PTR_mkdir_0014a49c)(*(char **)(param_1 + 0x18),0x1ff);
  if (iVar2 < 0) {
    piVar3 = __errno_location();
    iVar1 = *piVar3;
    iVar2 = 5;
    if ((iVar1 != 0x11) && (iVar1 != 0xd)) {
      if (iVar1 < 0xe) {
        if (iVar1 == 4) {
          return 5;
        }
        if (iVar1 == 0xb) {
          return 5;
        }
        iVar2 = 3;
        if (iVar1 != 1) {
          iVar2 = 0xf0a;
        }
      }
      else {
        if (iVar1 == 0x25) {
          return 5;
        }
        if (iVar1 == 0x6e) {
          return 5;
        }
        if (iVar1 == 0x10) {
          return 5;
        }
        iVar2 = 0xf0a;
      }
      *(int *)(param_1 + 0x14) = iVar1;
    }
  }
  else {
    *(undefined1 *)(param_1 + 0x10) = param_2;
  }
  return iVar2;
}


PUSH ESI
PUSH EBX
CALL 0x00014cf0
ADD EBX,0x1125ed
SUB ESP,0x4
MOV ESI,dword ptr [ESP + 0x10]
CMP byte ptr [ESI + 0x10],0x0
MOV EAX,dword ptr [ESI + 0x18]
JNZ 0x00036960
SUB ESP,0x8
PUSH 0x1ff
PUSH EAX
CALL dword ptr [EBX + 0x15c8]
ADD ESP,0x10
TEST EAX,EAX
JS 0x00036928
MOVZX ECX,byte ptr [ESP + 0x14]
MOV byte ptr [ESI + 0x10],CL
ADD ESP,0x4
POP EBX
POP ESI
RET
CALL 0x000142b0
MOV EDX,dword ptr [EAX]
MOV EAX,0x5
CMP EDX,0x11
JZ 0x0003691b
CMP EDX,0xd
JZ 0x0003691b
JG 0x00036980
CMP EDX,0x4
JZ 0x0003691b
CMP EDX,0xb
JZ 0x0003691b
CMP EDX,0x1
MOV EAX,0x3
MOV ECX,0xf0a
CMOVNZ EAX,ECX
MOV dword ptr [ESI + 0x14],EDX
JMP 0x0003691b
MOVZX ECX,byte ptr [ESP + 0x14]
SUB ESP,0x8
MOV byte ptr [ESI + 0x10],CL
PUSH 0x0
PUSH EAX
CALL 0x000142e0
ADD ESP,0x10
XOR EAX,EAX
ADD ESP,0x4
POP EBX
POP ESI
RET
CMP EDX,0x25
JZ 0x0003691b
CMP EDX,0x6e
JZ 0x0003691b
CMP EDX,0x10
JZ 0x0003691b
MOV EAX,0xf0a
JMP 0x0003695a
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint FUN_000368e0(int param_1,undefined1 param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  \n  if (*(char *)(param_1 + 0x10) != '\0') {\n    *(undefined1 *)(param_1 + 0x10) = param_2;\n    utime(*(char **)(param_1 + 0x18),(utimbuf *)0x0);\n    return 0;\n  }\n  iVar2 = (*(code *)PTR_mkdir_0014a49c)(*(char **)(param_1 + 0x18),0x1ff);\n  if (iVar2 < 0) {\n    piVar3 = __errno_location();\n    iVar1 = *piVar3;\n    iVar2 = 5;\n    if ((iVar1 != 0x11) && (iVar1 != 0xd)) {\n      if (iVar1 < 0xe) {\n        if (iVar1 == 4) {\n          return 5;\n        }\n        if (iVar1 == 0xb) {\n          return 5;\n        }\n        iVar2 = 3;\n        if (iVar1 != 1) {\n          iVar2 = 0xf0a;\n        }\n      }\n      else {\n        if (iVar1 == 0x25) {\n          return 5;\n        }\n        if (iVar1 == 0x6e) {\n          return 5;\n        }\n        if (iVar1 == 0x10) {\n          return 5;\n        }\n        iVar2 = 0xf0a;\n      }\n      *(int *)(param_1 + 0x14) = iVar1;\n    }\n  }\n  else {\n    *(undefined1 *)(param_1 + 0x10) = param_2;\n  }\n  return iVar2;\n}\n\n" comment (function_definition "int FUN_000368e0(int param_1,undefined1 param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  \n  if (*(char *)(param_1 + 0x10) != '\0') {\n    *(undefined1 *)(param_1 + 0x10) = param_2;\n    utime(*(char **)(param_1 + 0x18),(utimbuf *)0x0);\n    return 0;\n  }\n  iVar2 = (*(code *)PTR_mkdir_0014a49c)(*(char **)(param_1 + 0x18),0x1ff);\n  if (iVar2 < 0) {\n    piVar3 = __errno_location();\n    iVar1 = *piVar3;\n    iVar2 = 5;\n    if ((iVar1 != 0x11) && (iVar1 != 0xd)) {\n      if (iVar1 < 0xe) {\n        if (iVar1 == 4) {\n          return 5;\n        }\n        if (iVar1 == 0xb) {\n          return 5;\n        }\n        iVar2 = 3;\n        if (iVar1 != 1) {\n          iVar2 = 0xf0a;\n        }\n      }\n      else {\n        if (iVar1 == 0x25) {\n          return 5;\n        }\n        if (iVar1 == 0x6e) {\n          return 5;\n        }\n        if (iVar1 == 0x10) {\n          return 5;\n        }\n        iVar2 = 0xf0a;\n      }\n      *(int *)(param_1 + 0x14) = iVar1;\n    }\n  }\n  else {\n    *(undefined1 *)(param_1 + 0x10) = param_2;\n  }\n  return iVar2;\n}" primitive_type (function_declarator "FUN_000368e0(int param_1,undefined1 param_2)" identifier (parameter_list "(int param_1,undefined1 param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined1 param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  \n  if (*(char *)(param_1 + 0x10) != '\0') {\n    *(undefined1 *)(param_1 + 0x10) = param_2;\n    utime(*(char **)(param_1 + 0x18),(utimbuf *)0x0);\n    return 0;\n  }\n  iVar2 = (*(code *)PTR_mkdir_0014a49c)(*(char **)(param_1 + 0x18),0x1ff);\n  if (iVar2 < 0) {\n    piVar3 = __errno_location();\n    iVar1 = *piVar3;\n    iVar2 = 5;\n    if ((iVar1 != 0x11) && (iVar1 != 0xd)) {\n      if (iVar1 < 0xe) {\n        if (iVar1 == 4) {\n          return 5;\n        }\n        if (iVar1 == 0xb) {\n          return 5;\n        }\n        iVar2 = 3;\n        if (iVar1 != 1) {\n          iVar2 = 0xf0a;\n        }\n      }\n      else {\n        if (iVar1 == 0x25) {\n          return 5;\n        }\n        if (iVar1 == 0x6e) {\n          return 5;\n        }\n        if (iVar1 == 0x10) {\n          return 5;\n        }\n        iVar2 = 0xf0a;\n      }\n      *(int *)(param_1 + 0x14) = iVar1;\n    }\n  }\n  else {\n    *(undefined1 *)(param_1 + 0x10) = param_2;\n  }\n  return iVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (if_statement "if (*(char *)(param_1 + 0x10) != '\0') {\n    *(undefined1 *)(param_1 + 0x10) = param_2;\n    utime(*(char **)(param_1 + 0x18),(utimbuf *)0x0);\n    return 0;\n  }" if (parenthesized_expression "(*(char *)(param_1 + 0x10) != '\0')" ( (binary_expression "*(char *)(param_1 + 0x10) != '\0'" (pointer_expression "*(char *)(param_1 + 0x10)" * (cast_expression "(char *)(param_1 + 0x10)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    *(undefined1 *)(param_1 + 0x10) = param_2;\n    utime(*(char **)(param_1 + 0x18),(utimbuf *)0x0);\n    return 0;\n  }" { (expression_statement "*(undefined1 *)(param_1 + 0x10) = param_2;" (assignment_expression "*(undefined1 *)(param_1 + 0x10) = param_2" (pointer_expression "*(undefined1 *)(param_1 + 0x10)" * (cast_expression "(undefined1 *)(param_1 + 0x10)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = identifier) ;) (expression_statement "utime(*(char **)(param_1 + 0x18),(utimbuf *)0x0);" (call_expression "utime(*(char **)(param_1 + 0x18),(utimbuf *)0x0)" identifier (argument_list "(*(char **)(param_1 + 0x18),(utimbuf *)0x0)" ( (pointer_expression "*(char **)(param_1 + 0x18)" * (cast_expression "(char **)(param_1 + 0x18)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) , (cast_expression "(utimbuf *)0x0" ( (type_descriptor "utimbuf *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ))) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar2 = (*(code *)PTR_mkdir_0014a49c)(*(char **)(param_1 + 0x18),0x1ff);" (assignment_expression "iVar2 = (*(code *)PTR_mkdir_0014a49c)(*(char **)(param_1 + 0x18),0x1ff)" identifier = (call_expression "(*(code *)PTR_mkdir_0014a49c)(*(char **)(param_1 + 0x18),0x1ff)" (parenthesized_expression "(*(code *)PTR_mkdir_0014a49c)" ( (pointer_expression "*(code *)PTR_mkdir_0014a49c" * (cast_expression "(code *)PTR_mkdir_0014a49c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(char **)(param_1 + 0x18),0x1ff)" ( (pointer_expression "*(char **)(param_1 + 0x18)" * (cast_expression "(char **)(param_1 + 0x18)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) , number_literal )))) ;) (if_statement "if (iVar2 < 0) {\n    piVar3 = __errno_location();\n    iVar1 = *piVar3;\n    iVar2 = 5;\n    if ((iVar1 != 0x11) && (iVar1 != 0xd)) {\n      if (iVar1 < 0xe) {\n        if (iVar1 == 4) {\n          return 5;\n        }\n        if (iVar1 == 0xb) {\n          return 5;\n        }\n        iVar2 = 3;\n        if (iVar1 != 1) {\n          iVar2 = 0xf0a;\n        }\n      }\n      else {\n        if (iVar1 == 0x25) {\n          return 5;\n        }\n        if (iVar1 == 0x6e) {\n          return 5;\n        }\n        if (iVar1 == 0x10) {\n          return 5;\n        }\n        iVar2 = 0xf0a;\n      }\n      *(int *)(param_1 + 0x14) = iVar1;\n    }\n  }\n  else {\n    *(undefined1 *)(param_1 + 0x10) = param_2;\n  }" if (parenthesized_expression "(iVar2 < 0)" ( (binary_expression "iVar2 < 0" identifier < number_literal) )) (compound_statement "{\n    piVar3 = __errno_location();\n    iVar1 = *piVar3;\n    iVar2 = 5;\n    if ((iVar1 != 0x11) && (iVar1 != 0xd)) {\n      if (iVar1 < 0xe) {\n        if (iVar1 == 4) {\n          return 5;\n        }\n        if (iVar1 == 0xb) {\n          return 5;\n        }\n        iVar2 = 3;\n        if (iVar1 != 1) {\n          iVar2 = 0xf0a;\n        }\n      }\n      else {\n        if (iVar1 == 0x25) {\n          return 5;\n        }\n        if (iVar1 == 0x6e) {\n          return 5;\n        }\n        if (iVar1 == 0x10) {\n          return 5;\n        }\n        iVar2 = 0xf0a;\n      }\n      *(int *)(param_1 + 0x14) = iVar1;\n    }\n  }" { (expression_statement "piVar3 = __errno_location();" (assignment_expression "piVar3 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar1 = *piVar3;" (assignment_expression "iVar1 = *piVar3" identifier = (pointer_expression "*piVar3" * identifier)) ;) (expression_statement "iVar2 = 5;" (assignment_expression "iVar2 = 5" identifier = number_literal) ;) (if_statement "if ((iVar1 != 0x11) && (iVar1 != 0xd)) {\n      if (iVar1 < 0xe) {\n        if (iVar1 == 4) {\n          return 5;\n        }\n        if (iVar1 == 0xb) {\n          return 5;\n        }\n        iVar2 = 3;\n        if (iVar1 != 1) {\n          iVar2 = 0xf0a;\n        }\n      }\n      else {\n        if (iVar1 == 0x25) {\n          return 5;\n        }\n        if (iVar1 == 0x6e) {\n          return 5;\n        }\n        if (iVar1 == 0x10) {\n          return 5;\n        }\n        iVar2 = 0xf0a;\n      }\n      *(int *)(param_1 + 0x14) = iVar1;\n    }" if (parenthesized_expression "((iVar1 != 0x11) && (iVar1 != 0xd))" ( (binary_expression "(iVar1 != 0x11) && (iVar1 != 0xd)" (parenthesized_expression "(iVar1 != 0x11)" ( (binary_expression "iVar1 != 0x11" identifier != number_literal) )) && (parenthesized_expression "(iVar1 != 0xd)" ( (binary_expression "iVar1 != 0xd" identifier != number_literal) ))) )) (compound_statement "{\n      if (iVar1 < 0xe) {\n        if (iVar1 == 4) {\n          return 5;\n        }\n        if (iVar1 == 0xb) {\n          return 5;\n        }\n        iVar2 = 3;\n        if (iVar1 != 1) {\n          iVar2 = 0xf0a;\n        }\n      }\n      else {\n        if (iVar1 == 0x25) {\n          return 5;\n        }\n        if (iVar1 == 0x6e) {\n          return 5;\n        }\n        if (iVar1 == 0x10) {\n          return 5;\n        }\n        iVar2 = 0xf0a;\n      }\n      *(int *)(param_1 + 0x14) = iVar1;\n    }" { (if_statement "if (iVar1 < 0xe) {\n        if (iVar1 == 4) {\n          return 5;\n        }\n        if (iVar1 == 0xb) {\n          return 5;\n        }\n        iVar2 = 3;\n        if (iVar1 != 1) {\n          iVar2 = 0xf0a;\n        }\n      }\n      else {\n        if (iVar1 == 0x25) {\n          return 5;\n        }\n        if (iVar1 == 0x6e) {\n          return 5;\n        }\n        if (iVar1 == 0x10) {\n          return 5;\n        }\n        iVar2 = 0xf0a;\n      }" if (parenthesized_expression "(iVar1 < 0xe)" ( (binary_expression "iVar1 < 0xe" identifier < number_literal) )) (compound_statement "{\n        if (iVar1 == 4) {\n          return 5;\n        }\n        if (iVar1 == 0xb) {\n          return 5;\n        }\n        iVar2 = 3;\n        if (iVar1 != 1) {\n          iVar2 = 0xf0a;\n        }\n      }" { (if_statement "if (iVar1 == 4) {\n          return 5;\n        }" if (parenthesized_expression "(iVar1 == 4)" ( (binary_expression "iVar1 == 4" identifier == number_literal) )) (compound_statement "{\n          return 5;\n        }" { (return_statement "return 5;" return number_literal ;) })) (if_statement "if (iVar1 == 0xb) {\n          return 5;\n        }" if (parenthesized_expression "(iVar1 == 0xb)" ( (binary_expression "iVar1 == 0xb" identifier == number_literal) )) (compound_statement "{\n          return 5;\n        }" { (return_statement "return 5;" return number_literal ;) })) (expression_statement "iVar2 = 3;" (assignment_expression "iVar2 = 3" identifier = number_literal) ;) (if_statement "if (iVar1 != 1) {\n          iVar2 = 0xf0a;\n        }" if (parenthesized_expression "(iVar1 != 1)" ( (binary_expression "iVar1 != 1" identifier != number_literal) )) (compound_statement "{\n          iVar2 = 0xf0a;\n        }" { (expression_statement "iVar2 = 0xf0a;" (assignment_expression "iVar2 = 0xf0a" identifier = number_literal) ;) })) }) (else_clause "else {\n        if (iVar1 == 0x25) {\n          return 5;\n        }\n        if (iVar1 == 0x6e) {\n          return 5;\n        }\n        if (iVar1 == 0x10) {\n          return 5;\n        }\n        iVar2 = 0xf0a;\n      }" else (compound_statement "{\n        if (iVar1 == 0x25) {\n          return 5;\n        }\n        if (iVar1 == 0x6e) {\n          return 5;\n        }\n        if (iVar1 == 0x10) {\n          return 5;\n        }\n        iVar2 = 0xf0a;\n      }" { (if_statement "if (iVar1 == 0x25) {\n          return 5;\n        }" if (parenthesized_expression "(iVar1 == 0x25)" ( (binary_expression "iVar1 == 0x25" identifier == number_literal) )) (compound_statement "{\n          return 5;\n        }" { (return_statement "return 5;" return number_literal ;) })) (if_statement "if (iVar1 == 0x6e) {\n          return 5;\n        }" if (parenthesized_expression "(iVar1 == 0x6e)" ( (binary_expression "iVar1 == 0x6e" identifier == number_literal) )) (compound_statement "{\n          return 5;\n        }" { (return_statement "return 5;" return number_literal ;) })) (if_statement "if (iVar1 == 0x10) {\n          return 5;\n        }" if (parenthesized_expression "(iVar1 == 0x10)" ( (binary_expression "iVar1 == 0x10" identifier == number_literal) )) (compound_statement "{\n          return 5;\n        }" { (return_statement "return 5;" return number_literal ;) })) (expression_statement "iVar2 = 0xf0a;" (assignment_expression "iVar2 = 0xf0a" identifier = number_literal) ;) }))) (expression_statement "*(int *)(param_1 + 0x14) = iVar1;" (assignment_expression "*(int *)(param_1 + 0x14) = iVar1" (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) = identifier) ;) })) }) (else_clause "else {\n    *(undefined1 *)(param_1 + 0x10) = param_2;\n  }" else (compound_statement "{\n    *(undefined1 *)(param_1 + 0x10) = param_2;\n  }" { (expression_statement "*(undefined1 *)(param_1 + 0x10) = param_2;" (assignment_expression "*(undefined1 *)(param_1 + 0x10) = param_2" (pointer_expression "*(undefined1 *)(param_1 + 0x10)" * (cast_expression "(undefined1 *)(param_1 + 0x10)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = identifier) ;) }))) (return_statement "return iVar2;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nint dotlockLock(sqlite3_file *id,int eFileLock)\n\n{\n  sqlite3_io_methods *psVar1;\n  int iVar2;\n  int *piVar3;\n  \n  if (*(char *)&id[4].pMethods != '\0') {\n    *(undefined1 *)&id[4].pMethods = (undefined1)eFileLock;\n    utime((char *)id[6].pMethods,(utimbuf *)0x0);\n    return 0;\n  }\n  iVar2 = (*aSyscall[0x12].pCurrent)(id[6].pMethods,0x1ff);\n  if (iVar2 < 0) {\n    piVar3 = __errno_location();\n    psVar1 = (sqlite3_io_methods *)*piVar3;\n    iVar2 = 5;\n    if ((psVar1 != (sqlite3_io_methods *)0x11) && (psVar1 != (sqlite3_io_methods *)0xd)) {\n      if ((int)psVar1 < 0xe) {\n        if (psVar1 == (sqlite3_io_methods *)&DAT_00000004) {\n          return 5;\n        }\n        if (psVar1 == (sqlite3_io_methods *)0xb) {\n          return 5;\n        }\n        iVar2 = 3;\n        if (psVar1 != (sqlite3_io_methods *)0x1) {\n          iVar2 = 0xf0a;\n        }\n      }\n      else {\n        if (psVar1 == (sqlite3_io_methods *)0x25) {\n          return 5;\n        }\n        if (psVar1 == (sqlite3_io_methods *)0x6e) {\n          return 5;\n        }\n        if (psVar1 == (sqlite3_io_methods *)0x10) {\n          return 5;\n        }\n        iVar2 = 0xf0a;\n      }\n      id[5].pMethods = psVar1;\n    }\n  }\n  else {\n    *(undefined1 *)&id[4].pMethods = (undefined1)eFileLock;\n  }\n  return iVar2;\n}\n\n" comment comment (function_definition "int dotlockLock(sqlite3_file *id,int eFileLock)\n\n{\n  sqlite3_io_methods *psVar1;\n  int iVar2;\n  int *piVar3;\n  \n  if (*(char *)&id[4].pMethods != '\0') {\n    *(undefined1 *)&id[4].pMethods = (undefined1)eFileLock;\n    utime((char *)id[6].pMethods,(utimbuf *)0x0);\n    return 0;\n  }\n  iVar2 = (*aSyscall[0x12].pCurrent)(id[6].pMethods,0x1ff);\n  if (iVar2 < 0) {\n    piVar3 = __errno_location();\n    psVar1 = (sqlite3_io_methods *)*piVar3;\n    iVar2 = 5;\n    if ((psVar1 != (sqlite3_io_methods *)0x11) && (psVar1 != (sqlite3_io_methods *)0xd)) {\n      if ((int)psVar1 < 0xe) {\n        if (psVar1 == (sqlite3_io_methods *)&DAT_00000004) {\n          return 5;\n        }\n        if (psVar1 == (sqlite3_io_methods *)0xb) {\n          return 5;\n        }\n        iVar2 = 3;\n        if (psVar1 != (sqlite3_io_methods *)0x1) {\n          iVar2 = 0xf0a;\n        }\n      }\n      else {\n        if (psVar1 == (sqlite3_io_methods *)0x25) {\n          return 5;\n        }\n        if (psVar1 == (sqlite3_io_methods *)0x6e) {\n          return 5;\n        }\n        if (psVar1 == (sqlite3_io_methods *)0x10) {\n          return 5;\n        }\n        iVar2 = 0xf0a;\n      }\n      id[5].pMethods = psVar1;\n    }\n  }\n  else {\n    *(undefined1 *)&id[4].pMethods = (undefined1)eFileLock;\n  }\n  return iVar2;\n}" primitive_type (function_declarator "dotlockLock(sqlite3_file *id,int eFileLock)" identifier (parameter_list "(sqlite3_file *id,int eFileLock)" ( (parameter_declaration "sqlite3_file *id" type_identifier (pointer_declarator "*id" * identifier)) , (parameter_declaration "int eFileLock" primitive_type identifier) ))) (compound_statement "{\n  sqlite3_io_methods *psVar1;\n  int iVar2;\n  int *piVar3;\n  \n  if (*(char *)&id[4].pMethods != '\0') {\n    *(undefined1 *)&id[4].pMethods = (undefined1)eFileLock;\n    utime((char *)id[6].pMethods,(utimbuf *)0x0);\n    return 0;\n  }\n  iVar2 = (*aSyscall[0x12].pCurrent)(id[6].pMethods,0x1ff);\n  if (iVar2 < 0) {\n    piVar3 = __errno_location();\n    psVar1 = (sqlite3_io_methods *)*piVar3;\n    iVar2 = 5;\n    if ((psVar1 != (sqlite3_io_methods *)0x11) && (psVar1 != (sqlite3_io_methods *)0xd)) {\n      if ((int)psVar1 < 0xe) {\n        if (psVar1 == (sqlite3_io_methods *)&DAT_00000004) {\n          return 5;\n        }\n        if (psVar1 == (sqlite3_io_methods *)0xb) {\n          return 5;\n        }\n        iVar2 = 3;\n        if (psVar1 != (sqlite3_io_methods *)0x1) {\n          iVar2 = 0xf0a;\n        }\n      }\n      else {\n        if (psVar1 == (sqlite3_io_methods *)0x25) {\n          return 5;\n        }\n        if (psVar1 == (sqlite3_io_methods *)0x6e) {\n          return 5;\n        }\n        if (psVar1 == (sqlite3_io_methods *)0x10) {\n          return 5;\n        }\n        iVar2 = 0xf0a;\n      }\n      id[5].pMethods = psVar1;\n    }\n  }\n  else {\n    *(undefined1 *)&id[4].pMethods = (undefined1)eFileLock;\n  }\n  return iVar2;\n}" { (declaration "sqlite3_io_methods *psVar1;" type_identifier (pointer_declarator "*psVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (if_statement "if (*(char *)&id[4].pMethods != '\0') {\n    *(undefined1 *)&id[4].pMethods = (undefined1)eFileLock;\n    utime((char *)id[6].pMethods,(utimbuf *)0x0);\n    return 0;\n  }" if (parenthesized_expression "(*(char *)&id[4].pMethods != '\0')" ( (binary_expression "*(char *)&id[4].pMethods != '\0'" (pointer_expression "*(char *)&id[4].pMethods" * (cast_expression "(char *)&id[4].pMethods" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&id[4].pMethods" & (field_expression "id[4].pMethods" (subscript_expression "id[4]" identifier [ number_literal ]) . field_identifier)))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    *(undefined1 *)&id[4].pMethods = (undefined1)eFileLock;\n    utime((char *)id[6].pMethods,(utimbuf *)0x0);\n    return 0;\n  }" { (expression_statement "*(undefined1 *)&id[4].pMethods = (undefined1)eFileLock;" (assignment_expression "*(undefined1 *)&id[4].pMethods = (undefined1)eFileLock" (pointer_expression "*(undefined1 *)&id[4].pMethods" * (cast_expression "(undefined1 *)&id[4].pMethods" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&id[4].pMethods" & (field_expression "id[4].pMethods" (subscript_expression "id[4]" identifier [ number_literal ]) . field_identifier)))) = (cast_expression "(undefined1)eFileLock" ( (type_descriptor "undefined1" type_identifier) ) identifier)) ;) (expression_statement "utime((char *)id[6].pMethods,(utimbuf *)0x0);" (call_expression "utime((char *)id[6].pMethods,(utimbuf *)0x0)" identifier (argument_list "((char *)id[6].pMethods,(utimbuf *)0x0)" ( (cast_expression "(char *)id[6].pMethods" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (field_expression "id[6].pMethods" (subscript_expression "id[6]" identifier [ number_literal ]) . field_identifier)) , (cast_expression "(utimbuf *)0x0" ( (type_descriptor "utimbuf *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ))) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar2 = (*aSyscall[0x12].pCurrent)(id[6].pMethods,0x1ff);" (assignment_expression "iVar2 = (*aSyscall[0x12].pCurrent)(id[6].pMethods,0x1ff)" identifier = (call_expression "(*aSyscall[0x12].pCurrent)(id[6].pMethods,0x1ff)" (parenthesized_expression "(*aSyscall[0x12].pCurrent)" ( (pointer_expression "*aSyscall[0x12].pCurrent" * (field_expression "aSyscall[0x12].pCurrent" (subscript_expression "aSyscall[0x12]" identifier [ number_literal ]) . field_identifier)) )) (argument_list "(id[6].pMethods,0x1ff)" ( (field_expression "id[6].pMethods" (subscript_expression "id[6]" identifier [ number_literal ]) . field_identifier) , number_literal )))) ;) (if_statement "if (iVar2 < 0) {\n    piVar3 = __errno_location();\n    psVar1 = (sqlite3_io_methods *)*piVar3;\n    iVar2 = 5;\n    if ((psVar1 != (sqlite3_io_methods *)0x11) && (psVar1 != (sqlite3_io_methods *)0xd)) {\n      if ((int)psVar1 < 0xe) {\n        if (psVar1 == (sqlite3_io_methods *)&DAT_00000004) {\n          return 5;\n        }\n        if (psVar1 == (sqlite3_io_methods *)0xb) {\n          return 5;\n        }\n        iVar2 = 3;\n        if (psVar1 != (sqlite3_io_methods *)0x1) {\n          iVar2 = 0xf0a;\n        }\n      }\n      else {\n        if (psVar1 == (sqlite3_io_methods *)0x25) {\n          return 5;\n        }\n        if (psVar1 == (sqlite3_io_methods *)0x6e) {\n          return 5;\n        }\n        if (psVar1 == (sqlite3_io_methods *)0x10) {\n          return 5;\n        }\n        iVar2 = 0xf0a;\n      }\n      id[5].pMethods = psVar1;\n    }\n  }\n  else {\n    *(undefined1 *)&id[4].pMethods = (undefined1)eFileLock;\n  }" if (parenthesized_expression "(iVar2 < 0)" ( (binary_expression "iVar2 < 0" identifier < number_literal) )) (compound_statement "{\n    piVar3 = __errno_location();\n    psVar1 = (sqlite3_io_methods *)*piVar3;\n    iVar2 = 5;\n    if ((psVar1 != (sqlite3_io_methods *)0x11) && (psVar1 != (sqlite3_io_methods *)0xd)) {\n      if ((int)psVar1 < 0xe) {\n        if (psVar1 == (sqlite3_io_methods *)&DAT_00000004) {\n          return 5;\n        }\n        if (psVar1 == (sqlite3_io_methods *)0xb) {\n          return 5;\n        }\n        iVar2 = 3;\n        if (psVar1 != (sqlite3_io_methods *)0x1) {\n          iVar2 = 0xf0a;\n        }\n      }\n      else {\n        if (psVar1 == (sqlite3_io_methods *)0x25) {\n          return 5;\n        }\n        if (psVar1 == (sqlite3_io_methods *)0x6e) {\n          return 5;\n        }\n        if (psVar1 == (sqlite3_io_methods *)0x10) {\n          return 5;\n        }\n        iVar2 = 0xf0a;\n      }\n      id[5].pMethods = psVar1;\n    }\n  }" { (expression_statement "piVar3 = __errno_location();" (assignment_expression "piVar3 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "psVar1 = (sqlite3_io_methods *)*piVar3;" (assignment_expression "psVar1 = (sqlite3_io_methods *)*piVar3" identifier = (cast_expression "(sqlite3_io_methods *)*piVar3" ( (type_descriptor "sqlite3_io_methods *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar3" * identifier))) ;) (expression_statement "iVar2 = 5;" (assignment_expression "iVar2 = 5" identifier = number_literal) ;) (if_statement "if ((psVar1 != (sqlite3_io_methods *)0x11) && (psVar1 != (sqlite3_io_methods *)0xd)) {\n      if ((int)psVar1 < 0xe) {\n        if (psVar1 == (sqlite3_io_methods *)&DAT_00000004) {\n          return 5;\n        }\n        if (psVar1 == (sqlite3_io_methods *)0xb) {\n          return 5;\n        }\n        iVar2 = 3;\n        if (psVar1 != (sqlite3_io_methods *)0x1) {\n          iVar2 = 0xf0a;\n        }\n      }\n      else {\n        if (psVar1 == (sqlite3_io_methods *)0x25) {\n          return 5;\n        }\n        if (psVar1 == (sqlite3_io_methods *)0x6e) {\n          return 5;\n        }\n        if (psVar1 == (sqlite3_io_methods *)0x10) {\n          return 5;\n        }\n        iVar2 = 0xf0a;\n      }\n      id[5].pMethods = psVar1;\n    }" if (parenthesized_expression "((psVar1 != (sqlite3_io_methods *)0x11) && (psVar1 != (sqlite3_io_methods *)0xd))" ( (binary_expression "(psVar1 != (sqlite3_io_methods *)0x11) && (psVar1 != (sqlite3_io_methods *)0xd)" (parenthesized_expression "(psVar1 != (sqlite3_io_methods *)0x11)" ( (binary_expression "psVar1 != (sqlite3_io_methods *)0x11" identifier != (cast_expression "(sqlite3_io_methods *)0x11" ( (type_descriptor "sqlite3_io_methods *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(psVar1 != (sqlite3_io_methods *)0xd)" ( (binary_expression "psVar1 != (sqlite3_io_methods *)0xd" identifier != (cast_expression "(sqlite3_io_methods *)0xd" ( (type_descriptor "sqlite3_io_methods *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n      if ((int)psVar1 < 0xe) {\n        if (psVar1 == (sqlite3_io_methods *)&DAT_00000004) {\n          return 5;\n        }\n        if (psVar1 == (sqlite3_io_methods *)0xb) {\n          return 5;\n        }\n        iVar2 = 3;\n        if (psVar1 != (sqlite3_io_methods *)0x1) {\n          iVar2 = 0xf0a;\n        }\n      }\n      else {\n        if (psVar1 == (sqlite3_io_methods *)0x25) {\n          return 5;\n        }\n        if (psVar1 == (sqlite3_io_methods *)0x6e) {\n          return 5;\n        }\n        if (psVar1 == (sqlite3_io_methods *)0x10) {\n          return 5;\n        }\n        iVar2 = 0xf0a;\n      }\n      id[5].pMethods = psVar1;\n    }" { (if_statement "if ((int)psVar1 < 0xe) {\n        if (psVar1 == (sqlite3_io_methods *)&DAT_00000004) {\n          return 5;\n        }\n        if (psVar1 == (sqlite3_io_methods *)0xb) {\n          return 5;\n        }\n        iVar2 = 3;\n        if (psVar1 != (sqlite3_io_methods *)0x1) {\n          iVar2 = 0xf0a;\n        }\n      }\n      else {\n        if (psVar1 == (sqlite3_io_methods *)0x25) {\n          return 5;\n        }\n        if (psVar1 == (sqlite3_io_methods *)0x6e) {\n          return 5;\n        }\n        if (psVar1 == (sqlite3_io_methods *)0x10) {\n          return 5;\n        }\n        iVar2 = 0xf0a;\n      }" if (parenthesized_expression "((int)psVar1 < 0xe)" ( (binary_expression "(int)psVar1 < 0xe" (cast_expression "(int)psVar1" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n        if (psVar1 == (sqlite3_io_methods *)&DAT_00000004) {\n          return 5;\n        }\n        if (psVar1 == (sqlite3_io_methods *)0xb) {\n          return 5;\n        }\n        iVar2 = 3;\n        if (psVar1 != (sqlite3_io_methods *)0x1) {\n          iVar2 = 0xf0a;\n        }\n      }" { (if_statement "if (psVar1 == (sqlite3_io_methods *)&DAT_00000004) {\n          return 5;\n        }" if (parenthesized_expression "(psVar1 == (sqlite3_io_methods *)&DAT_00000004)" ( (binary_expression "psVar1 == (sqlite3_io_methods *)&DAT_00000004" identifier == (cast_expression "(sqlite3_io_methods *)&DAT_00000004" ( (type_descriptor "sqlite3_io_methods *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&DAT_00000004" & identifier))) )) (compound_statement "{\n          return 5;\n        }" { (return_statement "return 5;" return number_literal ;) })) (if_statement "if (psVar1 == (sqlite3_io_methods *)0xb) {\n          return 5;\n        }" if (parenthesized_expression "(psVar1 == (sqlite3_io_methods *)0xb)" ( (binary_expression "psVar1 == (sqlite3_io_methods *)0xb" identifier == (cast_expression "(sqlite3_io_methods *)0xb" ( (type_descriptor "sqlite3_io_methods *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          return 5;\n        }" { (return_statement "return 5;" return number_literal ;) })) (expression_statement "iVar2 = 3;" (assignment_expression "iVar2 = 3" identifier = number_literal) ;) (if_statement "if (psVar1 != (sqlite3_io_methods *)0x1) {\n          iVar2 = 0xf0a;\n        }" if (parenthesized_expression "(psVar1 != (sqlite3_io_methods *)0x1)" ( (binary_expression "psVar1 != (sqlite3_io_methods *)0x1" identifier != (cast_expression "(sqlite3_io_methods *)0x1" ( (type_descriptor "sqlite3_io_methods *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          iVar2 = 0xf0a;\n        }" { (expression_statement "iVar2 = 0xf0a;" (assignment_expression "iVar2 = 0xf0a" identifier = number_literal) ;) })) }) (else_clause "else {\n        if (psVar1 == (sqlite3_io_methods *)0x25) {\n          return 5;\n        }\n        if (psVar1 == (sqlite3_io_methods *)0x6e) {\n          return 5;\n        }\n        if (psVar1 == (sqlite3_io_methods *)0x10) {\n          return 5;\n        }\n        iVar2 = 0xf0a;\n      }" else (compound_statement "{\n        if (psVar1 == (sqlite3_io_methods *)0x25) {\n          return 5;\n        }\n        if (psVar1 == (sqlite3_io_methods *)0x6e) {\n          return 5;\n        }\n        if (psVar1 == (sqlite3_io_methods *)0x10) {\n          return 5;\n        }\n        iVar2 = 0xf0a;\n      }" { (if_statement "if (psVar1 == (sqlite3_io_methods *)0x25) {\n          return 5;\n        }" if (parenthesized_expression "(psVar1 == (sqlite3_io_methods *)0x25)" ( (binary_expression "psVar1 == (sqlite3_io_methods *)0x25" identifier == (cast_expression "(sqlite3_io_methods *)0x25" ( (type_descriptor "sqlite3_io_methods *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          return 5;\n        }" { (return_statement "return 5;" return number_literal ;) })) (if_statement "if (psVar1 == (sqlite3_io_methods *)0x6e) {\n          return 5;\n        }" if (parenthesized_expression "(psVar1 == (sqlite3_io_methods *)0x6e)" ( (binary_expression "psVar1 == (sqlite3_io_methods *)0x6e" identifier == (cast_expression "(sqlite3_io_methods *)0x6e" ( (type_descriptor "sqlite3_io_methods *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          return 5;\n        }" { (return_statement "return 5;" return number_literal ;) })) (if_statement "if (psVar1 == (sqlite3_io_methods *)0x10) {\n          return 5;\n        }" if (parenthesized_expression "(psVar1 == (sqlite3_io_methods *)0x10)" ( (binary_expression "psVar1 == (sqlite3_io_methods *)0x10" identifier == (cast_expression "(sqlite3_io_methods *)0x10" ( (type_descriptor "sqlite3_io_methods *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          return 5;\n        }" { (return_statement "return 5;" return number_literal ;) })) (expression_statement "iVar2 = 0xf0a;" (assignment_expression "iVar2 = 0xf0a" identifier = number_literal) ;) }))) (expression_statement "id[5].pMethods = psVar1;" (assignment_expression "id[5].pMethods = psVar1" (field_expression "id[5].pMethods" (subscript_expression "id[5]" identifier [ number_literal ]) . field_identifier) = identifier) ;) })) }) (else_clause "else {\n    *(undefined1 *)&id[4].pMethods = (undefined1)eFileLock;\n  }" else (compound_statement "{\n    *(undefined1 *)&id[4].pMethods = (undefined1)eFileLock;\n  }" { (expression_statement "*(undefined1 *)&id[4].pMethods = (undefined1)eFileLock;" (assignment_expression "*(undefined1 *)&id[4].pMethods = (undefined1)eFileLock" (pointer_expression "*(undefined1 *)&id[4].pMethods" * (cast_expression "(undefined1 *)&id[4].pMethods" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&id[4].pMethods" & (field_expression "id[4].pMethods" (subscript_expression "id[4]" identifier [ number_literal ]) . field_identifier)))) = (cast_expression "(undefined1)eFileLock" ( (type_descriptor "undefined1" type_identifier) ) identifier)) ;) }))) (return_statement "return iVar2;" return identifier ;) })))
(translation_unit "int FUN_000368e0(int param_1,undefined1 param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  \n  if (*(char *)(param_1 + 0x10) != '\0') {\n    *(undefined1 *)(param_1 + 0x10) = param_2;\n    utime(*(char **)(param_1 + 0x18),(utimbuf *)0x0);\n    return 0;\n  }\n  iVar2 = (*(code *)PTR_mkdir_0014a49c)(*(char **)(param_1 + 0x18),0x1ff);\n  if (iVar2 < 0) {\n    piVar3 = __errno_location();\n    iVar1 = *piVar3;\n    iVar2 = 5;\n    if ((iVar1 != 0x11) && (iVar1 != 0xd)) {\n      if (iVar1 < 0xe) {\n        if (iVar1 == 4) {\n          return 5;\n        }\n        if (iVar1 == 0xb) {\n          return 5;\n        }\n        iVar2 = 3;\n        if (iVar1 != 1) {\n          iVar2 = 0xf0a;\n        }\n      }\n      else {\n        if (iVar1 == 0x25) {\n          return 5;\n        }\n        if (iVar1 == 0x6e) {\n          return 5;\n        }\n        if (iVar1 == 0x10) {\n          return 5;\n        }\n        iVar2 = 0xf0a;\n      }\n      *(int *)(param_1 + 0x14) = iVar1;\n    }\n  }\n  else {\n    *(undefined1 *)(param_1 + 0x10) = param_2;\n  }\n  return iVar2;\n}\n\n" (function_definition "int FUN_000368e0(int param_1,undefined1 param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  \n  if (*(char *)(param_1 + 0x10) != '\0') {\n    *(undefined1 *)(param_1 + 0x10) = param_2;\n    utime(*(char **)(param_1 + 0x18),(utimbuf *)0x0);\n    return 0;\n  }\n  iVar2 = (*(code *)PTR_mkdir_0014a49c)(*(char **)(param_1 + 0x18),0x1ff);\n  if (iVar2 < 0) {\n    piVar3 = __errno_location();\n    iVar1 = *piVar3;\n    iVar2 = 5;\n    if ((iVar1 != 0x11) && (iVar1 != 0xd)) {\n      if (iVar1 < 0xe) {\n        if (iVar1 == 4) {\n          return 5;\n        }\n        if (iVar1 == 0xb) {\n          return 5;\n        }\n        iVar2 = 3;\n        if (iVar1 != 1) {\n          iVar2 = 0xf0a;\n        }\n      }\n      else {\n        if (iVar1 == 0x25) {\n          return 5;\n        }\n        if (iVar1 == 0x6e) {\n          return 5;\n        }\n        if (iVar1 == 0x10) {\n          return 5;\n        }\n        iVar2 = 0xf0a;\n      }\n      *(int *)(param_1 + 0x14) = iVar1;\n    }\n  }\n  else {\n    *(undefined1 *)(param_1 + 0x10) = param_2;\n  }\n  return iVar2;\n}" primitive_type (function_declarator "FUN_000368e0(int param_1,undefined1 param_2)" identifier (parameter_list "(int param_1,undefined1 param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined1 param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  \n  if (*(char *)(param_1 + 0x10) != '\0') {\n    *(undefined1 *)(param_1 + 0x10) = param_2;\n    utime(*(char **)(param_1 + 0x18),(utimbuf *)0x0);\n    return 0;\n  }\n  iVar2 = (*(code *)PTR_mkdir_0014a49c)(*(char **)(param_1 + 0x18),0x1ff);\n  if (iVar2 < 0) {\n    piVar3 = __errno_location();\n    iVar1 = *piVar3;\n    iVar2 = 5;\n    if ((iVar1 != 0x11) && (iVar1 != 0xd)) {\n      if (iVar1 < 0xe) {\n        if (iVar1 == 4) {\n          return 5;\n        }\n        if (iVar1 == 0xb) {\n          return 5;\n        }\n        iVar2 = 3;\n        if (iVar1 != 1) {\n          iVar2 = 0xf0a;\n        }\n      }\n      else {\n        if (iVar1 == 0x25) {\n          return 5;\n        }\n        if (iVar1 == 0x6e) {\n          return 5;\n        }\n        if (iVar1 == 0x10) {\n          return 5;\n        }\n        iVar2 = 0xf0a;\n      }\n      *(int *)(param_1 + 0x14) = iVar1;\n    }\n  }\n  else {\n    *(undefined1 *)(param_1 + 0x10) = param_2;\n  }\n  return iVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (if_statement "if (*(char *)(param_1 + 0x10) != '\0') {\n    *(undefined1 *)(param_1 + 0x10) = param_2;\n    utime(*(char **)(param_1 + 0x18),(utimbuf *)0x0);\n    return 0;\n  }" if (parenthesized_expression "(*(char *)(param_1 + 0x10) != '\0')" ( (binary_expression "*(char *)(param_1 + 0x10) != '\0'" (pointer_expression "*(char *)(param_1 + 0x10)" * (cast_expression "(char *)(param_1 + 0x10)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    *(undefined1 *)(param_1 + 0x10) = param_2;\n    utime(*(char **)(param_1 + 0x18),(utimbuf *)0x0);\n    return 0;\n  }" { (expression_statement "*(undefined1 *)(param_1 + 0x10) = param_2;" (assignment_expression "*(undefined1 *)(param_1 + 0x10) = param_2" (pointer_expression "*(undefined1 *)(param_1 + 0x10)" * (cast_expression "(undefined1 *)(param_1 + 0x10)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = identifier) ;) (expression_statement "utime(*(char **)(param_1 + 0x18),(utimbuf *)0x0);" (call_expression "utime(*(char **)(param_1 + 0x18),(utimbuf *)0x0)" identifier (argument_list "(*(char **)(param_1 + 0x18),(utimbuf *)0x0)" ( (pointer_expression "*(char **)(param_1 + 0x18)" * (cast_expression "(char **)(param_1 + 0x18)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) , (cast_expression "(utimbuf *)0x0" ( (type_descriptor "utimbuf *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ))) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar2 = (*(code *)PTR_mkdir_0014a49c)(*(char **)(param_1 + 0x18),0x1ff);" (assignment_expression "iVar2 = (*(code *)PTR_mkdir_0014a49c)(*(char **)(param_1 + 0x18),0x1ff)" identifier = (call_expression "(*(code *)PTR_mkdir_0014a49c)(*(char **)(param_1 + 0x18),0x1ff)" (parenthesized_expression "(*(code *)PTR_mkdir_0014a49c)" ( (pointer_expression "*(code *)PTR_mkdir_0014a49c" * (cast_expression "(code *)PTR_mkdir_0014a49c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(char **)(param_1 + 0x18),0x1ff)" ( (pointer_expression "*(char **)(param_1 + 0x18)" * (cast_expression "(char **)(param_1 + 0x18)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) , number_literal )))) ;) (if_statement "if (iVar2 < 0) {\n    piVar3 = __errno_location();\n    iVar1 = *piVar3;\n    iVar2 = 5;\n    if ((iVar1 != 0x11) && (iVar1 != 0xd)) {\n      if (iVar1 < 0xe) {\n        if (iVar1 == 4) {\n          return 5;\n        }\n        if (iVar1 == 0xb) {\n          return 5;\n        }\n        iVar2 = 3;\n        if (iVar1 != 1) {\n          iVar2 = 0xf0a;\n        }\n      }\n      else {\n        if (iVar1 == 0x25) {\n          return 5;\n        }\n        if (iVar1 == 0x6e) {\n          return 5;\n        }\n        if (iVar1 == 0x10) {\n          return 5;\n        }\n        iVar2 = 0xf0a;\n      }\n      *(int *)(param_1 + 0x14) = iVar1;\n    }\n  }\n  else {\n    *(undefined1 *)(param_1 + 0x10) = param_2;\n  }" if (parenthesized_expression "(iVar2 < 0)" ( (binary_expression "iVar2 < 0" identifier < number_literal) )) (compound_statement "{\n    piVar3 = __errno_location();\n    iVar1 = *piVar3;\n    iVar2 = 5;\n    if ((iVar1 != 0x11) && (iVar1 != 0xd)) {\n      if (iVar1 < 0xe) {\n        if (iVar1 == 4) {\n          return 5;\n        }\n        if (iVar1 == 0xb) {\n          return 5;\n        }\n        iVar2 = 3;\n        if (iVar1 != 1) {\n          iVar2 = 0xf0a;\n        }\n      }\n      else {\n        if (iVar1 == 0x25) {\n          return 5;\n        }\n        if (iVar1 == 0x6e) {\n          return 5;\n        }\n        if (iVar1 == 0x10) {\n          return 5;\n        }\n        iVar2 = 0xf0a;\n      }\n      *(int *)(param_1 + 0x14) = iVar1;\n    }\n  }" { (expression_statement "piVar3 = __errno_location();" (assignment_expression "piVar3 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar1 = *piVar3;" (assignment_expression "iVar1 = *piVar3" identifier = (pointer_expression "*piVar3" * identifier)) ;) (expression_statement "iVar2 = 5;" (assignment_expression "iVar2 = 5" identifier = number_literal) ;) (if_statement "if ((iVar1 != 0x11) && (iVar1 != 0xd)) {\n      if (iVar1 < 0xe) {\n        if (iVar1 == 4) {\n          return 5;\n        }\n        if (iVar1 == 0xb) {\n          return 5;\n        }\n        iVar2 = 3;\n        if (iVar1 != 1) {\n          iVar2 = 0xf0a;\n        }\n      }\n      else {\n        if (iVar1 == 0x25) {\n          return 5;\n        }\n        if (iVar1 == 0x6e) {\n          return 5;\n        }\n        if (iVar1 == 0x10) {\n          return 5;\n        }\n        iVar2 = 0xf0a;\n      }\n      *(int *)(param_1 + 0x14) = iVar1;\n    }" if (parenthesized_expression "((iVar1 != 0x11) && (iVar1 != 0xd))" ( (binary_expression "(iVar1 != 0x11) && (iVar1 != 0xd)" (parenthesized_expression "(iVar1 != 0x11)" ( (binary_expression "iVar1 != 0x11" identifier != number_literal) )) && (parenthesized_expression "(iVar1 != 0xd)" ( (binary_expression "iVar1 != 0xd" identifier != number_literal) ))) )) (compound_statement "{\n      if (iVar1 < 0xe) {\n        if (iVar1 == 4) {\n          return 5;\n        }\n        if (iVar1 == 0xb) {\n          return 5;\n        }\n        iVar2 = 3;\n        if (iVar1 != 1) {\n          iVar2 = 0xf0a;\n        }\n      }\n      else {\n        if (iVar1 == 0x25) {\n          return 5;\n        }\n        if (iVar1 == 0x6e) {\n          return 5;\n        }\n        if (iVar1 == 0x10) {\n          return 5;\n        }\n        iVar2 = 0xf0a;\n      }\n      *(int *)(param_1 + 0x14) = iVar1;\n    }" { (if_statement "if (iVar1 < 0xe) {\n        if (iVar1 == 4) {\n          return 5;\n        }\n        if (iVar1 == 0xb) {\n          return 5;\n        }\n        iVar2 = 3;\n        if (iVar1 != 1) {\n          iVar2 = 0xf0a;\n        }\n      }\n      else {\n        if (iVar1 == 0x25) {\n          return 5;\n        }\n        if (iVar1 == 0x6e) {\n          return 5;\n        }\n        if (iVar1 == 0x10) {\n          return 5;\n        }\n        iVar2 = 0xf0a;\n      }" if (parenthesized_expression "(iVar1 < 0xe)" ( (binary_expression "iVar1 < 0xe" identifier < number_literal) )) (compound_statement "{\n        if (iVar1 == 4) {\n          return 5;\n        }\n        if (iVar1 == 0xb) {\n          return 5;\n        }\n        iVar2 = 3;\n        if (iVar1 != 1) {\n          iVar2 = 0xf0a;\n        }\n      }" { (if_statement "if (iVar1 == 4) {\n          return 5;\n        }" if (parenthesized_expression "(iVar1 == 4)" ( (binary_expression "iVar1 == 4" identifier == number_literal) )) (compound_statement "{\n          return 5;\n        }" { (return_statement "return 5;" return number_literal ;) })) (if_statement "if (iVar1 == 0xb) {\n          return 5;\n        }" if (parenthesized_expression "(iVar1 == 0xb)" ( (binary_expression "iVar1 == 0xb" identifier == number_literal) )) (compound_statement "{\n          return 5;\n        }" { (return_statement "return 5;" return number_literal ;) })) (expression_statement "iVar2 = 3;" (assignment_expression "iVar2 = 3" identifier = number_literal) ;) (if_statement "if (iVar1 != 1) {\n          iVar2 = 0xf0a;\n        }" if (parenthesized_expression "(iVar1 != 1)" ( (binary_expression "iVar1 != 1" identifier != number_literal) )) (compound_statement "{\n          iVar2 = 0xf0a;\n        }" { (expression_statement "iVar2 = 0xf0a;" (assignment_expression "iVar2 = 0xf0a" identifier = number_literal) ;) })) }) (else_clause "else {\n        if (iVar1 == 0x25) {\n          return 5;\n        }\n        if (iVar1 == 0x6e) {\n          return 5;\n        }\n        if (iVar1 == 0x10) {\n          return 5;\n        }\n        iVar2 = 0xf0a;\n      }" else (compound_statement "{\n        if (iVar1 == 0x25) {\n          return 5;\n        }\n        if (iVar1 == 0x6e) {\n          return 5;\n        }\n        if (iVar1 == 0x10) {\n          return 5;\n        }\n        iVar2 = 0xf0a;\n      }" { (if_statement "if (iVar1 == 0x25) {\n          return 5;\n        }" if (parenthesized_expression "(iVar1 == 0x25)" ( (binary_expression "iVar1 == 0x25" identifier == number_literal) )) (compound_statement "{\n          return 5;\n        }" { (return_statement "return 5;" return number_literal ;) })) (if_statement "if (iVar1 == 0x6e) {\n          return 5;\n        }" if (parenthesized_expression "(iVar1 == 0x6e)" ( (binary_expression "iVar1 == 0x6e" identifier == number_literal) )) (compound_statement "{\n          return 5;\n        }" { (return_statement "return 5;" return number_literal ;) })) (if_statement "if (iVar1 == 0x10) {\n          return 5;\n        }" if (parenthesized_expression "(iVar1 == 0x10)" ( (binary_expression "iVar1 == 0x10" identifier == number_literal) )) (compound_statement "{\n          return 5;\n        }" { (return_statement "return 5;" return number_literal ;) })) (expression_statement "iVar2 = 0xf0a;" (assignment_expression "iVar2 = 0xf0a" identifier = number_literal) ;) }))) (expression_statement "*(int *)(param_1 + 0x14) = iVar1;" (assignment_expression "*(int *)(param_1 + 0x14) = iVar1" (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) = identifier) ;) })) }) (else_clause "else {\n    *(undefined1 *)(param_1 + 0x10) = param_2;\n  }" else (compound_statement "{\n    *(undefined1 *)(param_1 + 0x10) = param_2;\n  }" { (expression_statement "*(undefined1 *)(param_1 + 0x10) = param_2;" (assignment_expression "*(undefined1 *)(param_1 + 0x10) = param_2" (pointer_expression "*(undefined1 *)(param_1 + 0x10)" * (cast_expression "(undefined1 *)(param_1 + 0x10)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = identifier) ;) }))) (return_statement "return iVar2;" 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 (pointer_declarator * IDENT) ;) (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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ))) ;) (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (binary_expression IDENT != LIT) ))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) }))) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) }))) (return_statement return IDENT ;) })))
(function_definition "int FUN_000368e0(int param_1,undefined1 param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  \n  if (*(char *)(param_1 + 0x10) != '\0') {\n    *(undefined1 *)(param_1 + 0x10) = param_2;\n    utime(*(char **)(param_1 + 0x18),(utimbuf *)0x0);\n    return 0;\n  }\n  iVar2 = (*(code *)PTR_mkdir_0014a49c)(*(char **)(param_1 + 0x18),0x1ff);\n  if (iVar2 < 0) {\n    piVar3 = __errno_location();\n    iVar1 = *piVar3;\n    iVar2 = 5;\n    if ((iVar1 != 0x11) && (iVar1 != 0xd)) {\n      if (iVar1 < 0xe) {\n        if (iVar1 == 4) {\n          return 5;\n        }\n        if (iVar1 == 0xb) {\n          return 5;\n        }\n        iVar2 = 3;\n        if (iVar1 != 1) {\n          iVar2 = 0xf0a;\n        }\n      }\n      else {\n        if (iVar1 == 0x25) {\n          return 5;\n        }\n        if (iVar1 == 0x6e) {\n          return 5;\n        }\n        if (iVar1 == 0x10) {\n          return 5;\n        }\n        iVar2 = 0xf0a;\n      }\n      *(int *)(param_1 + 0x14) = iVar1;\n    }\n  }\n  else {\n    *(undefined1 *)(param_1 + 0x10) = param_2;\n  }\n  return iVar2;\n}" (primitive_type "int") (function_declarator "FUN_000368e0(int param_1,undefined1 param_2)" (identifier "FUN_000368e0") (parameter_list "(int param_1,undefined1 param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined1 param_2" (type_identifier "undefined1") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  \n  if (*(char *)(param_1 + 0x10) != '\0') {\n    *(undefined1 *)(param_1 + 0x10) = param_2;\n    utime(*(char **)(param_1 + 0x18),(utimbuf *)0x0);\n    return 0;\n  }\n  iVar2 = (*(code *)PTR_mkdir_0014a49c)(*(char **)(param_1 + 0x18),0x1ff);\n  if (iVar2 < 0) {\n    piVar3 = __errno_location();\n    iVar1 = *piVar3;\n    iVar2 = 5;\n    if ((iVar1 != 0x11) && (iVar1 != 0xd)) {\n      if (iVar1 < 0xe) {\n        if (iVar1 == 4) {\n          return 5;\n        }\n        if (iVar1 == 0xb) {\n          return 5;\n        }\n        iVar2 = 3;\n        if (iVar1 != 1) {\n          iVar2 = 0xf0a;\n        }\n      }\n      else {\n        if (iVar1 == 0x25) {\n          return 5;\n        }\n        if (iVar1 == 0x6e) {\n          return 5;\n        }\n        if (iVar1 == 0x10) {\n          return 5;\n        }\n        iVar2 = 0xf0a;\n      }\n      *(int *)(param_1 + 0x14) = iVar1;\n    }\n  }\n  else {\n    *(undefined1 *)(param_1 + 0x10) = param_2;\n  }\n  return iVar2;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int *piVar3;" (primitive_type "int") (pointer_declarator "*piVar3" (* "*") (identifier "piVar3")) (; ";")) (if_statement "if (*(char *)(param_1 + 0x10) != '\0') {\n    *(undefined1 *)(param_1 + 0x10) = param_2;\n    utime(*(char **)(param_1 + 0x18),(utimbuf *)0x0);\n    return 0;\n  }" (if "if") (parenthesized_expression "(*(char *)(param_1 + 0x10) != '\0')" (( "(") (binary_expression "*(char *)(param_1 + 0x10) != '\0'" (pointer_expression "*(char *)(param_1 + 0x10)" (* "*") (cast_expression "(char *)(param_1 + 0x10)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    *(undefined1 *)(param_1 + 0x10) = param_2;\n    utime(*(char **)(param_1 + 0x18),(utimbuf *)0x0);\n    return 0;\n  }" ({ "{") (expression_statement "*(undefined1 *)(param_1 + 0x10) = param_2;" (assignment_expression "*(undefined1 *)(param_1 + 0x10) = param_2" (pointer_expression "*(undefined1 *)(param_1 + 0x10)" (* "*") (cast_expression "(undefined1 *)(param_1 + 0x10)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (identifier "param_2")) (; ";")) (expression_statement "utime(*(char **)(param_1 + 0x18),(utimbuf *)0x0);" (call_expression "utime(*(char **)(param_1 + 0x18),(utimbuf *)0x0)" (identifier "utime") (argument_list "(*(char **)(param_1 + 0x18),(utimbuf *)0x0)" (( "(") (pointer_expression "*(char **)(param_1 + 0x18)" (* "*") (cast_expression "(char **)(param_1 + 0x18)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")")))) (, ",") (cast_expression "(utimbuf *)0x0" (( "(") (type_descriptor "utimbuf *" (type_identifier "utimbuf") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) () ")"))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "iVar2 = (*(code *)PTR_mkdir_0014a49c)(*(char **)(param_1 + 0x18),0x1ff);" (assignment_expression "iVar2 = (*(code *)PTR_mkdir_0014a49c)(*(char **)(param_1 + 0x18),0x1ff)" (identifier "iVar2") (= "=") (call_expression "(*(code *)PTR_mkdir_0014a49c)(*(char **)(param_1 + 0x18),0x1ff)" (parenthesized_expression "(*(code *)PTR_mkdir_0014a49c)" (( "(") (pointer_expression "*(code *)PTR_mkdir_0014a49c" (* "*") (cast_expression "(code *)PTR_mkdir_0014a49c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_mkdir_0014a49c"))) () ")")) (argument_list "(*(char **)(param_1 + 0x18),0x1ff)" (( "(") (pointer_expression "*(char **)(param_1 + 0x18)" (* "*") (cast_expression "(char **)(param_1 + 0x18)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")")))) (, ",") (number_literal "0x1ff") () ")")))) (; ";")) (if_statement "if (iVar2 < 0) {\n    piVar3 = __errno_location();\n    iVar1 = *piVar3;\n    iVar2 = 5;\n    if ((iVar1 != 0x11) && (iVar1 != 0xd)) {\n      if (iVar1 < 0xe) {\n        if (iVar1 == 4) {\n          return 5;\n        }\n        if (iVar1 == 0xb) {\n          return 5;\n        }\n        iVar2 = 3;\n        if (iVar1 != 1) {\n          iVar2 = 0xf0a;\n        }\n      }\n      else {\n        if (iVar1 == 0x25) {\n          return 5;\n        }\n        if (iVar1 == 0x6e) {\n          return 5;\n        }\n        if (iVar1 == 0x10) {\n          return 5;\n        }\n        iVar2 = 0xf0a;\n      }\n      *(int *)(param_1 + 0x14) = iVar1;\n    }\n  }\n  else {\n    *(undefined1 *)(param_1 + 0x10) = param_2;\n  }" (if "if") (parenthesized_expression "(iVar2 < 0)" (( "(") (binary_expression "iVar2 < 0" (identifier "iVar2") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n    piVar3 = __errno_location();\n    iVar1 = *piVar3;\n    iVar2 = 5;\n    if ((iVar1 != 0x11) && (iVar1 != 0xd)) {\n      if (iVar1 < 0xe) {\n        if (iVar1 == 4) {\n          return 5;\n        }\n        if (iVar1 == 0xb) {\n          return 5;\n        }\n        iVar2 = 3;\n        if (iVar1 != 1) {\n          iVar2 = 0xf0a;\n        }\n      }\n      else {\n        if (iVar1 == 0x25) {\n          return 5;\n        }\n        if (iVar1 == 0x6e) {\n          return 5;\n        }\n        if (iVar1 == 0x10) {\n          return 5;\n        }\n        iVar2 = 0xf0a;\n      }\n      *(int *)(param_1 + 0x14) = iVar1;\n    }\n  }" ({ "{") (expression_statement "piVar3 = __errno_location();" (assignment_expression "piVar3 = __errno_location()" (identifier "piVar3") (= "=") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "iVar1 = *piVar3;" (assignment_expression "iVar1 = *piVar3" (identifier "iVar1") (= "=") (pointer_expression "*piVar3" (* "*") (identifier "piVar3"))) (; ";")) (expression_statement "iVar2 = 5;" (assignment_expression "iVar2 = 5" (identifier "iVar2") (= "=") (number_literal "5")) (; ";")) (if_statement "if ((iVar1 != 0x11) && (iVar1 != 0xd)) {\n      if (iVar1 < 0xe) {\n        if (iVar1 == 4) {\n          return 5;\n        }\n        if (iVar1 == 0xb) {\n          return 5;\n        }\n        iVar2 = 3;\n        if (iVar1 != 1) {\n          iVar2 = 0xf0a;\n        }\n      }\n      else {\n        if (iVar1 == 0x25) {\n          return 5;\n        }\n        if (iVar1 == 0x6e) {\n          return 5;\n        }\n        if (iVar1 == 0x10) {\n          return 5;\n        }\n        iVar2 = 0xf0a;\n      }\n      *(int *)(param_1 + 0x14) = iVar1;\n    }" (if "if") (parenthesized_expression "((iVar1 != 0x11) && (iVar1 != 0xd))" (( "(") (binary_expression "(iVar1 != 0x11) && (iVar1 != 0xd)" (parenthesized_expression "(iVar1 != 0x11)" (( "(") (binary_expression "iVar1 != 0x11" (identifier "iVar1") (!= "!=") (number_literal "0x11")) () ")")) (&& "&&") (parenthesized_expression "(iVar1 != 0xd)" (( "(") (binary_expression "iVar1 != 0xd" (identifier "iVar1") (!= "!=") (number_literal "0xd")) () ")"))) () ")")) (compound_statement "{\n      if (iVar1 < 0xe) {\n        if (iVar1 == 4) {\n          return 5;\n        }\n        if (iVar1 == 0xb) {\n          return 5;\n        }\n        iVar2 = 3;\n        if (iVar1 != 1) {\n          iVar2 = 0xf0a;\n        }\n      }\n      else {\n        if (iVar1 == 0x25) {\n          return 5;\n        }\n        if (iVar1 == 0x6e) {\n          return 5;\n        }\n        if (iVar1 == 0x10) {\n          return 5;\n        }\n        iVar2 = 0xf0a;\n      }\n      *(int *)(param_1 + 0x14) = iVar1;\n    }" ({ "{") (if_statement "if (iVar1 < 0xe) {\n        if (iVar1 == 4) {\n          return 5;\n        }\n        if (iVar1 == 0xb) {\n          return 5;\n        }\n        iVar2 = 3;\n        if (iVar1 != 1) {\n          iVar2 = 0xf0a;\n        }\n      }\n      else {\n        if (iVar1 == 0x25) {\n          return 5;\n        }\n        if (iVar1 == 0x6e) {\n          return 5;\n        }\n        if (iVar1 == 0x10) {\n          return 5;\n        }\n        iVar2 = 0xf0a;\n      }" (if "if") (parenthesized_expression "(iVar1 < 0xe)" (( "(") (binary_expression "iVar1 < 0xe" (identifier "iVar1") (< "<") (number_literal "0xe")) () ")")) (compound_statement "{\n        if (iVar1 == 4) {\n          return 5;\n        }\n        if (iVar1 == 0xb) {\n          return 5;\n        }\n        iVar2 = 3;\n        if (iVar1 != 1) {\n          iVar2 = 0xf0a;\n        }\n      }" ({ "{") (if_statement "if (iVar1 == 4) {\n          return 5;\n        }" (if "if") (parenthesized_expression "(iVar1 == 4)" (( "(") (binary_expression "iVar1 == 4" (identifier "iVar1") (== "==") (number_literal "4")) () ")")) (compound_statement "{\n          return 5;\n        }" ({ "{") (return_statement "return 5;" (return "return") (number_literal "5") (; ";")) (} "}"))) (if_statement "if (iVar1 == 0xb) {\n          return 5;\n        }" (if "if") (parenthesized_expression "(iVar1 == 0xb)" (( "(") (binary_expression "iVar1 == 0xb" (identifier "iVar1") (== "==") (number_literal "0xb")) () ")")) (compound_statement "{\n          return 5;\n        }" ({ "{") (return_statement "return 5;" (return "return") (number_literal "5") (; ";")) (} "}"))) (expression_statement "iVar2 = 3;" (assignment_expression "iVar2 = 3" (identifier "iVar2") (= "=") (number_literal "3")) (; ";")) (if_statement "if (iVar1 != 1) {\n          iVar2 = 0xf0a;\n        }" (if "if") (parenthesized_expression "(iVar1 != 1)" (( "(") (binary_expression "iVar1 != 1" (identifier "iVar1") (!= "!=") (number_literal "1")) () ")")) (compound_statement "{\n          iVar2 = 0xf0a;\n        }" ({ "{") (expression_statement "iVar2 = 0xf0a;" (assignment_expression "iVar2 = 0xf0a" (identifier "iVar2") (= "=") (number_literal "0xf0a")) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n        if (iVar1 == 0x25) {\n          return 5;\n        }\n        if (iVar1 == 0x6e) {\n          return 5;\n        }\n        if (iVar1 == 0x10) {\n          return 5;\n        }\n        iVar2 = 0xf0a;\n      }" (else "else") (compound_statement "{\n        if (iVar1 == 0x25) {\n          return 5;\n        }\n        if (iVar1 == 0x6e) {\n          return 5;\n        }\n        if (iVar1 == 0x10) {\n          return 5;\n        }\n        iVar2 = 0xf0a;\n      }" ({ "{") (if_statement "if (iVar1 == 0x25) {\n          return 5;\n        }" (if "if") (parenthesized_expression "(iVar1 == 0x25)" (( "(") (binary_expression "iVar1 == 0x25" (identifier "iVar1") (== "==") (number_literal "0x25")) () ")")) (compound_statement "{\n          return 5;\n        }" ({ "{") (return_statement "return 5;" (return "return") (number_literal "5") (; ";")) (} "}"))) (if_statement "if (iVar1 == 0x6e) {\n          return 5;\n        }" (if "if") (parenthesized_expression "(iVar1 == 0x6e)" (( "(") (binary_expression "iVar1 == 0x6e" (identifier "iVar1") (== "==") (number_literal "0x6e")) () ")")) (compound_statement "{\n          return 5;\n        }" ({ "{") (return_statement "return 5;" (return "return") (number_literal "5") (; ";")) (} "}"))) (if_statement "if (iVar1 == 0x10) {\n          return 5;\n        }" (if "if") (parenthesized_expression "(iVar1 == 0x10)" (( "(") (binary_expression "iVar1 == 0x10" (identifier "iVar1") (== "==") (number_literal "0x10")) () ")")) (compound_statement "{\n          return 5;\n        }" ({ "{") (return_statement "return 5;" (return "return") (number_literal "5") (; ";")) (} "}"))) (expression_statement "iVar2 = 0xf0a;" (assignment_expression "iVar2 = 0xf0a" (identifier "iVar2") (= "=") (number_literal "0xf0a")) (; ";")) (} "}")))) (expression_statement "*(int *)(param_1 + 0x14) = iVar1;" (assignment_expression "*(int *)(param_1 + 0x14) = iVar1" (pointer_expression "*(int *)(param_1 + 0x14)" (* "*") (cast_expression "(int *)(param_1 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (identifier "iVar1")) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    *(undefined1 *)(param_1 + 0x10) = param_2;\n  }" (else "else") (compound_statement "{\n    *(undefined1 *)(param_1 + 0x10) = param_2;\n  }" ({ "{") (expression_statement "*(undefined1 *)(param_1 + 0x10) = param_2;" (assignment_expression "*(undefined1 *)(param_1 + 0x10) = param_2" (pointer_expression "*(undefined1 *)(param_1 + 0x10)" (* "*") (cast_expression "(undefined1 *)(param_1 + 0x10)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (identifier "param_2")) (; ";")) (} "}")))) (return_statement "return iVar2;" (return "return") (identifier "iVar2") (; ";")) (} "}")))

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

int function_1(type_1 *id,int eFileLock)

{
  type_2 *var_4;
  int var_2;
  int *piVar3;
  
  if (*(char *)&id[4].pMethods != '\0') {
    *(type_3 *)&id[4].pMethods = (type_3)eFileLock;
    var_1((char *)id[6].pMethods,(type_4 *)0x0);
    return 0;
  }
  var_2 = (*aSyscall[0x12].pCurrent)(id[6].pMethods,0x1ff);
  if (var_2 < 0) {
    piVar3 = var_3();
    var_4 = (type_2 *)*piVar3;
    var_2 = 5;
    if ((var_4 != (type_2 *)0x11) && (var_4 != (type_2 *)0xd)) {
      if ((int)var_4 < 0xe) {
        if (var_4 == (type_2 *)&DAT_00000004) {
          return 5;
        }
        if (var_4 == (type_2 *)0xb) {
          return 5;
        }
        var_2 = 3;
        if (var_4 != (type_2 *)0x1) {
          var_2 = 0xf0a;
        }
      }
      else {
        if (var_4 == (type_2 *)0x25) {
          return 5;
        }
        if (var_4 == (type_2 *)0x6e) {
          return 5;
        }
        if (var_4 == (type_2 *)0x10) {
          return 5;
        }
        var_2 = 0xf0a;
      }
      id[5].pMethods = var_4;
    }
  }
  else {
    *(type_3 *)&id[4].pMethods = (type_3)eFileLock;
  }
  return var_2;
}


(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: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (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: (identifier) right: (number_literal))))) right: (char_literal (escape_sequence)))) consequence: (compound_statement (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: (identifier) right: (number_literal))))) right: (identifier))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal))))) (return_statement (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal)))))) alternative: (else_clause (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_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: (identifier)))))) alternative: (else_clause (compound_statement (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: (identifier) right: (number_literal))))) right: (identifier)))))) (return_statement (identifier)))))

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

int MASKED(int param_1,undefined1 param_2)

{
  int iVar1;
  int iVar2;
  int *piVar3;
  
  if (*(char *)(param_1 + 0x10) != '\0') {
    *(undefined1 *)(param_1 + 0x10) = param_2;
    utime(*(char **)(param_1 + 0x18),(utimbuf *)0x0);
    return 0;
  }
  iVar2 = (*(code *)PTR_mkdir_0014a49c)(*(char **)(param_1 + 0x18),0x1ff);
  if (iVar2 < 0) {
    piVar3 = __errno_location();
    iVar1 = *piVar3;
    iVar2 = 5;
    if ((iVar1 != 0x11) && (iVar1 != 0xd)) {
      if (iVar1 < 0xe) {
        if (iVar1 == 4) {
          return 5;
        }
        if (iVar1 == 0xb) {
          return 5;
        }
        iVar2 = 3;
        if (iVar1 != 1) {
          iVar2 = 0xf0a;
        }
      }
      else {
        if (iVar1 == 0x25) {
          return 5;
        }
        if (iVar1 == 0x6e) {
          return 5;
        }
        if (iVar1 == 0x10) {
          return 5;
        }
        iVar2 = 0xf0a;
      }
      *(int *)(param_1 + 0x14) = iVar1;
    }
  }
  else {
    *(undefined1 *)(param_1 + 0x10) = param_2;
  }
  return iVar2;
}

