
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Removing unreachable block (ram,0x00018507) */

int __regparm3 windowExprGtZero(Parse *pParse,Expr *pExpr)

{
  int iVar1;
  sqlite3_value **unaff_ESI;
  int in_GS_OFFSET;
  sqlite3_value *pVal;
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  if (pExpr != (Expr *)0x0) {
    valueFromExpr((sqlite3 *)pParse,pExpr,'C',0xec,unaff_ESI,(ValueNewStat4Ctx *)unaff_ESI);
  }
  sqlite3ValueFree((sqlite3_value *)0x0);
  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {
    return 0;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



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

bool __regparm3 FUN_000184bf(undefined4 param_1,int param_2)

{
  int iVar1;
  bool bVar2;
  int in_GS_OFFSET;
  int local_14;
  int local_10;
  undefined4 uStack_c;
  
  uStack_c = 0x184c6;
  local_10 = *(int *)(in_GS_OFFSET + 0x14);
  local_14 = 0;
  if (param_2 != 0) {
    FUN_00060340(0x43,&local_14);
  }
  bVar2 = false;
  if (local_14 != 0) {
    iVar1 = sqlite3_value_int(local_14);
    bVar2 = 0 < iVar1;
  }
  FUN_00043510();
  if (local_10 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_000d1450();
  }
  return bVar2;
}


PUSH ESI
PUSH EBX
CALL 0x0001ddf0
ADD EBX,0xedb3a
SUB ESP,0x14
MOV ECX,dword ptr GS:[0x14]
MOV dword ptr [ESP + 0xc],ECX
XOR ECX,ECX
TEST EDX,EDX
MOV dword ptr [ESP + 0x8],0x0
JZ 0x000184fd
MOVZX ECX,byte ptr [EAX + 0x4a]
PUSH ESI
PUSH ESI
LEA ESI,[ESP + 0x10]
PUSH ESI
PUSH 0x43
CALL 0x00060340
ADD ESP,0x10
MOV EAX,dword ptr [ESP + 0x8]
XOR ESI,ESI
TEST EAX,EAX
JZ 0x0001851d
SUB ESP,0xc
PUSH EAX
CALL 0x00016470
ADD ESP,0x10
TEST EAX,EAX
SETG AL
MOVZX EAX,AL
MOV ESI,EAX
MOV EAX,dword ptr [ESP + 0x8]
CALL 0x00043510
MOV EBX,dword ptr [ESP + 0xc]
XOR EBX,dword ptr GS:[0x14]
MOV EAX,ESI
JZ 0x0001853a
CALL 0x000d1450
ADD ESP,0x14
POP EBX
POP ESI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nbool __regparm3 FUN_000184bf(undefined4 param_1,int param_2)\n\n{\n  int iVar1;\n  bool bVar2;\n  int in_GS_OFFSET;\n  int local_14;\n  int local_10;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x184c6;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  local_14 = 0;\n  if (param_2 != 0) {\n    FUN_00060340(0x43,&local_14);\n  }\n  bVar2 = false;\n  if (local_14 != 0) {\n    iVar1 = sqlite3_value_int(local_14);\n    bVar2 = 0 < iVar1;\n  }\n  FUN_00043510();\n  if (local_10 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_000d1450();\n  }\n  return bVar2;\n}\n\n" comment (function_definition "bool __regparm3 FUN_000184bf(undefined4 param_1,int param_2)\n\n{\n  int iVar1;\n  bool bVar2;\n  int in_GS_OFFSET;\n  int local_14;\n  int local_10;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x184c6;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  local_14 = 0;\n  if (param_2 != 0) {\n    FUN_00060340(0x43,&local_14);\n  }\n  bVar2 = false;\n  if (local_14 != 0) {\n    iVar1 = sqlite3_value_int(local_14);\n    bVar2 = 0 < iVar1;\n  }\n  FUN_00043510();\n  if (local_10 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_000d1450();\n  }\n  return bVar2;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_000184bf(undefined4 param_1,int param_2)" identifier (parameter_list "(undefined4 param_1,int param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  bool bVar2;\n  int in_GS_OFFSET;\n  int local_14;\n  int local_10;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x184c6;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  local_14 = 0;\n  if (param_2 != 0) {\n    FUN_00060340(0x43,&local_14);\n  }\n  bVar2 = false;\n  if (local_14 != 0) {\n    iVar1 = sqlite3_value_int(local_14);\n    bVar2 = 0 < iVar1;\n  }\n  FUN_00043510();\n  if (local_10 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_000d1450();\n  }\n  return bVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "bool bVar2;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "int local_14;" primitive_type identifier ;) (declaration "int local_10;" primitive_type identifier ;) (declaration "undefined4 uStack_c;" type_identifier identifier ;) (expression_statement "uStack_c = 0x184c6;" (assignment_expression "uStack_c = 0x184c6" identifier = number_literal) ;) (expression_statement "local_10 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_10 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "local_14 = 0;" (assignment_expression "local_14 = 0" identifier = number_literal) ;) (if_statement "if (param_2 != 0) {\n    FUN_00060340(0x43,&local_14);\n  }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n    FUN_00060340(0x43,&local_14);\n  }" { (expression_statement "FUN_00060340(0x43,&local_14);" (call_expression "FUN_00060340(0x43,&local_14)" identifier (argument_list "(0x43,&local_14)" ( number_literal , (pointer_expression "&local_14" & identifier) ))) ;) })) (expression_statement "bVar2 = false;" (assignment_expression "bVar2 = false" identifier = false) ;) (if_statement "if (local_14 != 0) {\n    iVar1 = sqlite3_value_int(local_14);\n    bVar2 = 0 < iVar1;\n  }" if (parenthesized_expression "(local_14 != 0)" ( (binary_expression "local_14 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar1 = sqlite3_value_int(local_14);\n    bVar2 = 0 < iVar1;\n  }" { (expression_statement "iVar1 = sqlite3_value_int(local_14);" (assignment_expression "iVar1 = sqlite3_value_int(local_14)" identifier = (call_expression "sqlite3_value_int(local_14)" identifier (argument_list "(local_14)" ( identifier )))) ;) (expression_statement "bVar2 = 0 < iVar1;" (assignment_expression "bVar2 = 0 < iVar1" identifier = (binary_expression "0 < iVar1" number_literal < identifier)) ;) })) (expression_statement "FUN_00043510();" (call_expression "FUN_00043510()" identifier (argument_list "()" ( ))) ;) (if_statement "if (local_10 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_000d1450();\n  }" if (parenthesized_expression "(local_10 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_10 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    FUN_000d1450();\n  }" { comment (expression_statement "FUN_000d1450();" (call_expression "FUN_000d1450()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return bVar2;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Removing unreachable block (ram,0x00018507) */\n\nint __regparm3 windowExprGtZero(Parse *pParse,Expr *pExpr)\n\n{\n  int iVar1;\n  sqlite3_value **unaff_ESI;\n  int in_GS_OFFSET;\n  sqlite3_value *pVal;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (pExpr != (Expr *)0x0) {\n    valueFromExpr((sqlite3 *)pParse,pExpr,'C',0xec,unaff_ESI,(ValueNewStat4Ctx *)unaff_ESI);\n  }\n  sqlite3ValueFree((sqlite3_value *)0x0);\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return 0;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}\n\n" comment comment (function_definition "int __regparm3 windowExprGtZero(Parse *pParse,Expr *pExpr)\n\n{\n  int iVar1;\n  sqlite3_value **unaff_ESI;\n  int in_GS_OFFSET;\n  sqlite3_value *pVal;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (pExpr != (Expr *)0x0) {\n    valueFromExpr((sqlite3 *)pParse,pExpr,'C',0xec,unaff_ESI,(ValueNewStat4Ctx *)unaff_ESI);\n  }\n  sqlite3ValueFree((sqlite3_value *)0x0);\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return 0;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "windowExprGtZero(Parse *pParse,Expr *pExpr)" identifier (parameter_list "(Parse *pParse,Expr *pExpr)" ( (parameter_declaration "Parse *pParse" type_identifier (pointer_declarator "*pParse" * identifier)) , (parameter_declaration "Expr *pExpr" type_identifier (pointer_declarator "*pExpr" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  sqlite3_value **unaff_ESI;\n  int in_GS_OFFSET;\n  sqlite3_value *pVal;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (pExpr != (Expr *)0x0) {\n    valueFromExpr((sqlite3 *)pParse,pExpr,'C',0xec,unaff_ESI,(ValueNewStat4Ctx *)unaff_ESI);\n  }\n  sqlite3ValueFree((sqlite3_value *)0x0);\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return 0;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "sqlite3_value **unaff_ESI;" type_identifier (pointer_declarator "**unaff_ESI" * (pointer_declarator "*unaff_ESI" * identifier)) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "sqlite3_value *pVal;" type_identifier (pointer_declarator "*pVal" * identifier) ;) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (pExpr != (Expr *)0x0) {\n    valueFromExpr((sqlite3 *)pParse,pExpr,'C',0xec,unaff_ESI,(ValueNewStat4Ctx *)unaff_ESI);\n  }" if (parenthesized_expression "(pExpr != (Expr *)0x0)" ( (binary_expression "pExpr != (Expr *)0x0" identifier != (cast_expression "(Expr *)0x0" ( (type_descriptor "Expr *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    valueFromExpr((sqlite3 *)pParse,pExpr,'C',0xec,unaff_ESI,(ValueNewStat4Ctx *)unaff_ESI);\n  }" { (expression_statement "valueFromExpr((sqlite3 *)pParse,pExpr,'C',0xec,unaff_ESI,(ValueNewStat4Ctx *)unaff_ESI);" (call_expression "valueFromExpr((sqlite3 *)pParse,pExpr,'C',0xec,unaff_ESI,(ValueNewStat4Ctx *)unaff_ESI)" identifier (argument_list "((sqlite3 *)pParse,pExpr,'C',0xec,unaff_ESI,(ValueNewStat4Ctx *)unaff_ESI)" ( (cast_expression "(sqlite3 *)pParse" ( (type_descriptor "sqlite3 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier , (char_literal "'C'" ' character ') , number_literal , identifier , (cast_expression "(ValueNewStat4Ctx *)unaff_ESI" ( (type_descriptor "ValueNewStat4Ctx *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) ))) ;) })) (expression_statement "sqlite3ValueFree((sqlite3_value *)0x0);" (call_expression "sqlite3ValueFree((sqlite3_value *)0x0)" identifier (argument_list "((sqlite3_value *)0x0)" ( (cast_expression "(sqlite3_value *)0x0" ( (type_descriptor "sqlite3_value *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ))) ;) (if_statement "if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return 0;\n  }" if (parenthesized_expression "(iVar1 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar1 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "bool __regparm3 FUN_000184bf(undefined4 param_1,int param_2)\n\n{\n  int iVar1;\n  bool bVar2;\n  int in_GS_OFFSET;\n  int local_14;\n  int local_10;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x184c6;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  local_14 = 0;\n  if (param_2 != 0) {\n    FUN_00060340(0x43,&local_14);\n  }\n  bVar2 = false;\n  if (local_14 != 0) {\n    iVar1 = sqlite3_value_int(local_14);\n    bVar2 = 0 < iVar1;\n  }\n  FUN_00043510();\n  if (local_10 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_000d1450();\n  }\n  return bVar2;\n}\n\n" (function_definition "bool __regparm3 FUN_000184bf(undefined4 param_1,int param_2)\n\n{\n  int iVar1;\n  bool bVar2;\n  int in_GS_OFFSET;\n  int local_14;\n  int local_10;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x184c6;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  local_14 = 0;\n  if (param_2 != 0) {\n    FUN_00060340(0x43,&local_14);\n  }\n  bVar2 = false;\n  if (local_14 != 0) {\n    iVar1 = sqlite3_value_int(local_14);\n    bVar2 = 0 < iVar1;\n  }\n  FUN_00043510();\n  if (local_10 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_000d1450();\n  }\n  return bVar2;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_000184bf(undefined4 param_1,int param_2)" identifier (parameter_list "(undefined4 param_1,int param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  bool bVar2;\n  int in_GS_OFFSET;\n  int local_14;\n  int local_10;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x184c6;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  local_14 = 0;\n  if (param_2 != 0) {\n    FUN_00060340(0x43,&local_14);\n  }\n  bVar2 = false;\n  if (local_14 != 0) {\n    iVar1 = sqlite3_value_int(local_14);\n    bVar2 = 0 < iVar1;\n  }\n  FUN_00043510();\n  if (local_10 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_000d1450();\n  }\n  return bVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "bool bVar2;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "int local_14;" primitive_type identifier ;) (declaration "int local_10;" primitive_type identifier ;) (declaration "undefined4 uStack_c;" type_identifier identifier ;) (expression_statement "uStack_c = 0x184c6;" (assignment_expression "uStack_c = 0x184c6" identifier = number_literal) ;) (expression_statement "local_10 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_10 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "local_14 = 0;" (assignment_expression "local_14 = 0" identifier = number_literal) ;) (if_statement "if (param_2 != 0) {\n    FUN_00060340(0x43,&local_14);\n  }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n    FUN_00060340(0x43,&local_14);\n  }" { (expression_statement "FUN_00060340(0x43,&local_14);" (call_expression "FUN_00060340(0x43,&local_14)" identifier (argument_list "(0x43,&local_14)" ( number_literal , (pointer_expression "&local_14" & identifier) ))) ;) })) (expression_statement "bVar2 = false;" (assignment_expression "bVar2 = false" identifier = false) ;) (if_statement "if (local_14 != 0) {\n    iVar1 = sqlite3_value_int(local_14);\n    bVar2 = 0 < iVar1;\n  }" if (parenthesized_expression "(local_14 != 0)" ( (binary_expression "local_14 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar1 = sqlite3_value_int(local_14);\n    bVar2 = 0 < iVar1;\n  }" { (expression_statement "iVar1 = sqlite3_value_int(local_14);" (assignment_expression "iVar1 = sqlite3_value_int(local_14)" identifier = (call_expression "sqlite3_value_int(local_14)" identifier (argument_list "(local_14)" ( identifier )))) ;) (expression_statement "bVar2 = 0 < iVar1;" (assignment_expression "bVar2 = 0 < iVar1" identifier = (binary_expression "0 < iVar1" number_literal < identifier)) ;) })) (expression_statement "FUN_00043510();" (call_expression "FUN_00043510()" identifier (argument_list "()" ( ))) ;) (if_statement "if (local_10 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_000d1450();\n  }" if (parenthesized_expression "(local_10 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_10 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    \n    FUN_000d1450();\n  }" { (expression_statement "FUN_000d1450();" (call_expression "FUN_000d1450()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return bVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( LIT , (pointer_expression & IDENT) ))) ;) })) (expression_statement (assignment_expression IDENT = BOOL) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression LIT < IDENT)) ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (return_statement return IDENT ;) })))
(function_definition "bool __regparm3 FUN_000184bf(undefined4 param_1,int param_2)\n\n{\n  int iVar1;\n  bool bVar2;\n  int in_GS_OFFSET;\n  int local_14;\n  int local_10;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x184c6;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  local_14 = 0;\n  if (param_2 != 0) {\n    FUN_00060340(0x43,&local_14);\n  }\n  bVar2 = false;\n  if (local_14 != 0) {\n    iVar1 = sqlite3_value_int(local_14);\n    bVar2 = 0 < iVar1;\n  }\n  FUN_00043510();\n  if (local_10 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_000d1450();\n  }\n  return bVar2;\n}" (primitive_type "bool") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_000184bf(undefined4 param_1,int param_2)" (identifier "FUN_000184bf") (parameter_list "(undefined4 param_1,int param_2)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  bool bVar2;\n  int in_GS_OFFSET;\n  int local_14;\n  int local_10;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x184c6;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  local_14 = 0;\n  if (param_2 != 0) {\n    FUN_00060340(0x43,&local_14);\n  }\n  bVar2 = false;\n  if (local_14 != 0) {\n    iVar1 = sqlite3_value_int(local_14);\n    bVar2 = 0 < iVar1;\n  }\n  FUN_00043510();\n  if (local_10 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_000d1450();\n  }\n  return bVar2;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "bool bVar2;" (primitive_type "bool") (identifier "bVar2") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "int local_14;" (primitive_type "int") (identifier "local_14") (; ";")) (declaration "int local_10;" (primitive_type "int") (identifier "local_10") (; ";")) (declaration "undefined4 uStack_c;" (type_identifier "undefined4") (identifier "uStack_c") (; ";")) (expression_statement "uStack_c = 0x184c6;" (assignment_expression "uStack_c = 0x184c6" (identifier "uStack_c") (= "=") (number_literal "0x184c6")) (; ";")) (expression_statement "local_10 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_10 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_10") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "local_14 = 0;" (assignment_expression "local_14 = 0" (identifier "local_14") (= "=") (number_literal "0")) (; ";")) (if_statement "if (param_2 != 0) {\n    FUN_00060340(0x43,&local_14);\n  }" (if "if") (parenthesized_expression "(param_2 != 0)" (( "(") (binary_expression "param_2 != 0" (identifier "param_2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    FUN_00060340(0x43,&local_14);\n  }" ({ "{") (expression_statement "FUN_00060340(0x43,&local_14);" (call_expression "FUN_00060340(0x43,&local_14)" (identifier "FUN_00060340") (argument_list "(0x43,&local_14)" (( "(") (number_literal "0x43") (, ",") (pointer_expression "&local_14" (& "&") (identifier "local_14")) () ")"))) (; ";")) (} "}"))) (expression_statement "bVar2 = false;" (assignment_expression "bVar2 = false" (identifier "bVar2") (= "=") (false "false")) (; ";")) (if_statement "if (local_14 != 0) {\n    iVar1 = sqlite3_value_int(local_14);\n    bVar2 = 0 < iVar1;\n  }" (if "if") (parenthesized_expression "(local_14 != 0)" (( "(") (binary_expression "local_14 != 0" (identifier "local_14") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    iVar1 = sqlite3_value_int(local_14);\n    bVar2 = 0 < iVar1;\n  }" ({ "{") (expression_statement "iVar1 = sqlite3_value_int(local_14);" (assignment_expression "iVar1 = sqlite3_value_int(local_14)" (identifier "iVar1") (= "=") (call_expression "sqlite3_value_int(local_14)" (identifier "sqlite3_value_int") (argument_list "(local_14)" (( "(") (identifier "local_14") () ")")))) (; ";")) (expression_statement "bVar2 = 0 < iVar1;" (assignment_expression "bVar2 = 0 < iVar1" (identifier "bVar2") (= "=") (binary_expression "0 < iVar1" (number_literal "0") (< "<") (identifier "iVar1"))) (; ";")) (} "}"))) (expression_statement "FUN_00043510();" (call_expression "FUN_00043510()" (identifier "FUN_00043510") (argument_list "()" (( "(") () ")"))) (; ";")) (if_statement "if (local_10 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_000d1450();\n  }" (if "if") (parenthesized_expression "(local_10 != *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_10 != *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_10") (!= "!=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n                    \n    FUN_000d1450();\n  }" ({ "{") (expression_statement "FUN_000d1450();" (call_expression "FUN_000d1450()" (identifier "FUN_000d1450") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (return_statement "return bVar2;" (return "return") (identifier "bVar2") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Removing unreachable block (ram,0x00018507) */

int __regparm3 function_1(type_1 *pParse,type_2 *var_2)

{
  int var_5;
  type_3 **unaff_ESI;
  int var_1;
  type_3 *pVal;
  
  var_5 = *(int *)(var_1 + 0x14);
  if (var_2 != (type_2 *)0x0) {
    var_3((type_4 *)pParse,var_2,'C',0xec,unaff_ESI,(type_5 *)unaff_ESI);
  }
  var_4((type_3 *)0x0);
  if (var_5 == *(int *)(var_1 + 0x14)) {
    return 0;
  }
                    /* WARNING: Subroutine does not return */
  var_6();
}


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

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

bool __regparm3 MASKED(undefined4 param_1,int param_2)

{
  int iVar1;
  bool bVar2;
  int in_GS_OFFSET;
  int local_14;
  int local_10;
  undefined4 uStack_c;
  
  uStack_c = 0x184c6;
  local_10 = *(int *)(in_GS_OFFSET + 0x14);
  local_14 = 0;
  if (param_2 != 0) {
    FUN_00060340(0x43,&local_14);
  }
  bVar2 = false;
  if (local_14 != 0) {
    iVar1 = sqlite3_value_int(local_14);
    bVar2 = 0 < iVar1;
  }
  FUN_00043510();
  if (local_10 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_000d1450();
  }
  return bVar2;
}

