
/* WARNING: Function: __x86.get_pc_thunk.cx replaced with injection: get_pc_thunk_cx */
/* WARNING: Unknown calling convention */

char * sqlite3_errstr(int rc)

{
  char *pcVar1;
  
  pcVar1 = "no more rows available";
  if (((rc != 0x65) && (pcVar1 = "abort due to ROLLBACK", rc != 0x204)) &&
     (pcVar1 = "another row available", rc != 100)) {
    pcVar1 = "unknown error";
    if ((rc & 0xffU) < 0x1d) {
      pcVar1 = *(char **)(aMsg_38692 + (rc & 0xffU) * 4);
      if (*(char **)(aMsg_38692 + (rc & 0xffU) * 4) == (char *)0x0) {
        pcVar1 = "unknown error";
      }
    }
  }
  return pcVar1;
}



/* WARNING: Function: __i686.get_pc_thunk.cx replaced with injection: get_pc_thunk_cx */

char * FUN_0004b3e0(uint param_1)

{
  char *pcVar1;
  
  pcVar1 = "no more rows available";
  if (((param_1 != 0x65) && (pcVar1 = "abort due to ROLLBACK", param_1 != 0x204)) &&
     (pcVar1 = "another row available", param_1 != 100)) {
    pcVar1 = "unknown error";
    if ((param_1 & 0xff) < 0x1d) {
      pcVar1 = (&PTR_s_not_an_error_001b9e60)[param_1 & 0xff];
      if ((&PTR_s_not_an_error_001b9e60)[param_1 & 0xff] == (char *)0x0) {
        pcVar1 = "unknown error";
      }
    }
  }
  return pcVar1;
}


CALL 0x00152e68
ADD ECX,0x16fa43
MOV EDX,dword ptr [ESP + 0x4]
LEA EAX,[ECX + 0xfffa193a]
CMP EDX,0x65
JZ 0x0004b433
LEA EAX,[ECX + 0xfffa1967]
CMP EDX,0x204
JZ 0x0004b433
LEA EAX,[ECX + 0xfffa1951]
CMP EDX,0x64
JZ 0x0004b433
MOVZX EDX,DL
LEA EAX,[ECX + 0xfffa192c]
CMP EDX,0x1c
JG 0x0004b433
MOV EAX,dword ptr [ECX + EDX*0x4 + 0xfffff038]
LEA EDX,[ECX + 0xfffa192c]
TEST EAX,EAX
CMOVZ EAX,EDX
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.cx replaced with injection: get_pc_thunk_cx */\n\nchar * FUN_0004b3e0(uint param_1)\n\n{\n  char *pcVar1;\n  \n  pcVar1 = "no more rows available";\n  if (((param_1 != 0x65) && (pcVar1 = "abort due to ROLLBACK", param_1 != 0x204)) &&\n     (pcVar1 = "another row available", param_1 != 100)) {\n    pcVar1 = "unknown error";\n    if ((param_1 & 0xff) < 0x1d) {\n      pcVar1 = (&PTR_s_not_an_error_001b9e60)[param_1 & 0xff];\n      if ((&PTR_s_not_an_error_001b9e60)[param_1 & 0xff] == (char *)0x0) {\n        pcVar1 = "unknown error";\n      }\n    }\n  }\n  return pcVar1;\n}\n\n" comment (function_definition "char * FUN_0004b3e0(uint param_1)\n\n{\n  char *pcVar1;\n  \n  pcVar1 = "no more rows available";\n  if (((param_1 != 0x65) && (pcVar1 = "abort due to ROLLBACK", param_1 != 0x204)) &&\n     (pcVar1 = "another row available", param_1 != 100)) {\n    pcVar1 = "unknown error";\n    if ((param_1 & 0xff) < 0x1d) {\n      pcVar1 = (&PTR_s_not_an_error_001b9e60)[param_1 & 0xff];\n      if ((&PTR_s_not_an_error_001b9e60)[param_1 & 0xff] == (char *)0x0) {\n        pcVar1 = "unknown error";\n      }\n    }\n  }\n  return pcVar1;\n}" primitive_type (pointer_declarator "* FUN_0004b3e0(uint param_1)" * (function_declarator "FUN_0004b3e0(uint param_1)" identifier (parameter_list "(uint param_1)" ( (parameter_declaration "uint param_1" type_identifier identifier) )))) (compound_statement "{\n  char *pcVar1;\n  \n  pcVar1 = "no more rows available";\n  if (((param_1 != 0x65) && (pcVar1 = "abort due to ROLLBACK", param_1 != 0x204)) &&\n     (pcVar1 = "another row available", param_1 != 100)) {\n    pcVar1 = "unknown error";\n    if ((param_1 & 0xff) < 0x1d) {\n      pcVar1 = (&PTR_s_not_an_error_001b9e60)[param_1 & 0xff];\n      if ((&PTR_s_not_an_error_001b9e60)[param_1 & 0xff] == (char *)0x0) {\n        pcVar1 = "unknown error";\n      }\n    }\n  }\n  return pcVar1;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (expression_statement "pcVar1 = "no more rows available";" (assignment_expression "pcVar1 = "no more rows available"" identifier = (string_literal ""no more rows available"" " string_content ")) ;) (if_statement "if (((param_1 != 0x65) && (pcVar1 = "abort due to ROLLBACK", param_1 != 0x204)) &&\n     (pcVar1 = "another row available", param_1 != 100)) {\n    pcVar1 = "unknown error";\n    if ((param_1 & 0xff) < 0x1d) {\n      pcVar1 = (&PTR_s_not_an_error_001b9e60)[param_1 & 0xff];\n      if ((&PTR_s_not_an_error_001b9e60)[param_1 & 0xff] == (char *)0x0) {\n        pcVar1 = "unknown error";\n      }\n    }\n  }" if (parenthesized_expression "(((param_1 != 0x65) && (pcVar1 = "abort due to ROLLBACK", param_1 != 0x204)) &&\n     (pcVar1 = "another row available", param_1 != 100))" ( (binary_expression "((param_1 != 0x65) && (pcVar1 = "abort due to ROLLBACK", param_1 != 0x204)) &&\n     (pcVar1 = "another row available", param_1 != 100)" (parenthesized_expression "((param_1 != 0x65) && (pcVar1 = "abort due to ROLLBACK", param_1 != 0x204))" ( (binary_expression "(param_1 != 0x65) && (pcVar1 = "abort due to ROLLBACK", param_1 != 0x204)" (parenthesized_expression "(param_1 != 0x65)" ( (binary_expression "param_1 != 0x65" identifier != number_literal) )) && (parenthesized_expression "(pcVar1 = "abort due to ROLLBACK", param_1 != 0x204)" ( (comma_expression "pcVar1 = "abort due to ROLLBACK", param_1 != 0x204" (assignment_expression "pcVar1 = "abort due to ROLLBACK"" identifier = (string_literal ""abort due to ROLLBACK"" " string_content ")) , (binary_expression "param_1 != 0x204" identifier != number_literal)) ))) )) && (parenthesized_expression "(pcVar1 = "another row available", param_1 != 100)" ( (comma_expression "pcVar1 = "another row available", param_1 != 100" (assignment_expression "pcVar1 = "another row available"" identifier = (string_literal ""another row available"" " string_content ")) , (binary_expression "param_1 != 100" identifier != number_literal)) ))) )) (compound_statement "{\n    pcVar1 = "unknown error";\n    if ((param_1 & 0xff) < 0x1d) {\n      pcVar1 = (&PTR_s_not_an_error_001b9e60)[param_1 & 0xff];\n      if ((&PTR_s_not_an_error_001b9e60)[param_1 & 0xff] == (char *)0x0) {\n        pcVar1 = "unknown error";\n      }\n    }\n  }" { (expression_statement "pcVar1 = "unknown error";" (assignment_expression "pcVar1 = "unknown error"" identifier = (string_literal ""unknown error"" " string_content ")) ;) (if_statement "if ((param_1 & 0xff) < 0x1d) {\n      pcVar1 = (&PTR_s_not_an_error_001b9e60)[param_1 & 0xff];\n      if ((&PTR_s_not_an_error_001b9e60)[param_1 & 0xff] == (char *)0x0) {\n        pcVar1 = "unknown error";\n      }\n    }" if (parenthesized_expression "((param_1 & 0xff) < 0x1d)" ( (binary_expression "(param_1 & 0xff) < 0x1d" (parenthesized_expression "(param_1 & 0xff)" ( (binary_expression "param_1 & 0xff" identifier & number_literal) )) < number_literal) )) (compound_statement "{\n      pcVar1 = (&PTR_s_not_an_error_001b9e60)[param_1 & 0xff];\n      if ((&PTR_s_not_an_error_001b9e60)[param_1 & 0xff] == (char *)0x0) {\n        pcVar1 = "unknown error";\n      }\n    }" { (expression_statement "pcVar1 = (&PTR_s_not_an_error_001b9e60)[param_1 & 0xff];" (assignment_expression "pcVar1 = (&PTR_s_not_an_error_001b9e60)[param_1 & 0xff]" identifier = (subscript_expression "(&PTR_s_not_an_error_001b9e60)[param_1 & 0xff]" (parenthesized_expression "(&PTR_s_not_an_error_001b9e60)" ( (pointer_expression "&PTR_s_not_an_error_001b9e60" & identifier) )) [ (binary_expression "param_1 & 0xff" identifier & number_literal) ])) ;) (if_statement "if ((&PTR_s_not_an_error_001b9e60)[param_1 & 0xff] == (char *)0x0) {\n        pcVar1 = "unknown error";\n      }" if (parenthesized_expression "((&PTR_s_not_an_error_001b9e60)[param_1 & 0xff] == (char *)0x0)" ( (binary_expression "(&PTR_s_not_an_error_001b9e60)[param_1 & 0xff] == (char *)0x0" (subscript_expression "(&PTR_s_not_an_error_001b9e60)[param_1 & 0xff]" (parenthesized_expression "(&PTR_s_not_an_error_001b9e60)" ( (pointer_expression "&PTR_s_not_an_error_001b9e60" & identifier) )) [ (binary_expression "param_1 & 0xff" identifier & number_literal) ]) == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        pcVar1 = "unknown error";\n      }" { (expression_statement "pcVar1 = "unknown error";" (assignment_expression "pcVar1 = "unknown error"" identifier = (string_literal ""unknown error"" " string_content ")) ;) })) })) })) (return_statement "return pcVar1;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.cx replaced with injection: get_pc_thunk_cx */\n/* WARNING: Unknown calling convention */\n\nchar * sqlite3_errstr(int rc)\n\n{\n  char *pcVar1;\n  \n  pcVar1 = "no more rows available";\n  if (((rc != 0x65) && (pcVar1 = "abort due to ROLLBACK", rc != 0x204)) &&\n     (pcVar1 = "another row available", rc != 100)) {\n    pcVar1 = "unknown error";\n    if ((rc & 0xffU) < 0x1d) {\n      pcVar1 = *(char **)(aMsg_38692 + (rc & 0xffU) * 4);\n      if (*(char **)(aMsg_38692 + (rc & 0xffU) * 4) == (char *)0x0) {\n        pcVar1 = "unknown error";\n      }\n    }\n  }\n  return pcVar1;\n}\n\n" comment comment (function_definition "char * sqlite3_errstr(int rc)\n\n{\n  char *pcVar1;\n  \n  pcVar1 = "no more rows available";\n  if (((rc != 0x65) && (pcVar1 = "abort due to ROLLBACK", rc != 0x204)) &&\n     (pcVar1 = "another row available", rc != 100)) {\n    pcVar1 = "unknown error";\n    if ((rc & 0xffU) < 0x1d) {\n      pcVar1 = *(char **)(aMsg_38692 + (rc & 0xffU) * 4);\n      if (*(char **)(aMsg_38692 + (rc & 0xffU) * 4) == (char *)0x0) {\n        pcVar1 = "unknown error";\n      }\n    }\n  }\n  return pcVar1;\n}" primitive_type (pointer_declarator "* sqlite3_errstr(int rc)" * (function_declarator "sqlite3_errstr(int rc)" identifier (parameter_list "(int rc)" ( (parameter_declaration "int rc" primitive_type identifier) )))) (compound_statement "{\n  char *pcVar1;\n  \n  pcVar1 = "no more rows available";\n  if (((rc != 0x65) && (pcVar1 = "abort due to ROLLBACK", rc != 0x204)) &&\n     (pcVar1 = "another row available", rc != 100)) {\n    pcVar1 = "unknown error";\n    if ((rc & 0xffU) < 0x1d) {\n      pcVar1 = *(char **)(aMsg_38692 + (rc & 0xffU) * 4);\n      if (*(char **)(aMsg_38692 + (rc & 0xffU) * 4) == (char *)0x0) {\n        pcVar1 = "unknown error";\n      }\n    }\n  }\n  return pcVar1;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (expression_statement "pcVar1 = "no more rows available";" (assignment_expression "pcVar1 = "no more rows available"" identifier = (string_literal ""no more rows available"" " string_content ")) ;) (if_statement "if (((rc != 0x65) && (pcVar1 = "abort due to ROLLBACK", rc != 0x204)) &&\n     (pcVar1 = "another row available", rc != 100)) {\n    pcVar1 = "unknown error";\n    if ((rc & 0xffU) < 0x1d) {\n      pcVar1 = *(char **)(aMsg_38692 + (rc & 0xffU) * 4);\n      if (*(char **)(aMsg_38692 + (rc & 0xffU) * 4) == (char *)0x0) {\n        pcVar1 = "unknown error";\n      }\n    }\n  }" if (parenthesized_expression "(((rc != 0x65) && (pcVar1 = "abort due to ROLLBACK", rc != 0x204)) &&\n     (pcVar1 = "another row available", rc != 100))" ( (binary_expression "((rc != 0x65) && (pcVar1 = "abort due to ROLLBACK", rc != 0x204)) &&\n     (pcVar1 = "another row available", rc != 100)" (parenthesized_expression "((rc != 0x65) && (pcVar1 = "abort due to ROLLBACK", rc != 0x204))" ( (binary_expression "(rc != 0x65) && (pcVar1 = "abort due to ROLLBACK", rc != 0x204)" (parenthesized_expression "(rc != 0x65)" ( (binary_expression "rc != 0x65" identifier != number_literal) )) && (parenthesized_expression "(pcVar1 = "abort due to ROLLBACK", rc != 0x204)" ( (comma_expression "pcVar1 = "abort due to ROLLBACK", rc != 0x204" (assignment_expression "pcVar1 = "abort due to ROLLBACK"" identifier = (string_literal ""abort due to ROLLBACK"" " string_content ")) , (binary_expression "rc != 0x204" identifier != number_literal)) ))) )) && (parenthesized_expression "(pcVar1 = "another row available", rc != 100)" ( (comma_expression "pcVar1 = "another row available", rc != 100" (assignment_expression "pcVar1 = "another row available"" identifier = (string_literal ""another row available"" " string_content ")) , (binary_expression "rc != 100" identifier != number_literal)) ))) )) (compound_statement "{\n    pcVar1 = "unknown error";\n    if ((rc & 0xffU) < 0x1d) {\n      pcVar1 = *(char **)(aMsg_38692 + (rc & 0xffU) * 4);\n      if (*(char **)(aMsg_38692 + (rc & 0xffU) * 4) == (char *)0x0) {\n        pcVar1 = "unknown error";\n      }\n    }\n  }" { (expression_statement "pcVar1 = "unknown error";" (assignment_expression "pcVar1 = "unknown error"" identifier = (string_literal ""unknown error"" " string_content ")) ;) (if_statement "if ((rc & 0xffU) < 0x1d) {\n      pcVar1 = *(char **)(aMsg_38692 + (rc & 0xffU) * 4);\n      if (*(char **)(aMsg_38692 + (rc & 0xffU) * 4) == (char *)0x0) {\n        pcVar1 = "unknown error";\n      }\n    }" if (parenthesized_expression "((rc & 0xffU) < 0x1d)" ( (binary_expression "(rc & 0xffU) < 0x1d" (parenthesized_expression "(rc & 0xffU)" ( (binary_expression "rc & 0xffU" identifier & number_literal) )) < number_literal) )) (compound_statement "{\n      pcVar1 = *(char **)(aMsg_38692 + (rc & 0xffU) * 4);\n      if (*(char **)(aMsg_38692 + (rc & 0xffU) * 4) == (char *)0x0) {\n        pcVar1 = "unknown error";\n      }\n    }" { (expression_statement "pcVar1 = *(char **)(aMsg_38692 + (rc & 0xffU) * 4);" (assignment_expression "pcVar1 = *(char **)(aMsg_38692 + (rc & 0xffU) * 4)" identifier = (pointer_expression "*(char **)(aMsg_38692 + (rc & 0xffU) * 4)" * (cast_expression "(char **)(aMsg_38692 + (rc & 0xffU) * 4)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(aMsg_38692 + (rc & 0xffU) * 4)" ( (binary_expression "aMsg_38692 + (rc & 0xffU) * 4" identifier + (binary_expression "(rc & 0xffU) * 4" (parenthesized_expression "(rc & 0xffU)" ( (binary_expression "rc & 0xffU" identifier & number_literal) )) * number_literal)) ))))) ;) (if_statement "if (*(char **)(aMsg_38692 + (rc & 0xffU) * 4) == (char *)0x0) {\n        pcVar1 = "unknown error";\n      }" if (parenthesized_expression "(*(char **)(aMsg_38692 + (rc & 0xffU) * 4) == (char *)0x0)" ( (binary_expression "*(char **)(aMsg_38692 + (rc & 0xffU) * 4) == (char *)0x0" (pointer_expression "*(char **)(aMsg_38692 + (rc & 0xffU) * 4)" * (cast_expression "(char **)(aMsg_38692 + (rc & 0xffU) * 4)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(aMsg_38692 + (rc & 0xffU) * 4)" ( (binary_expression "aMsg_38692 + (rc & 0xffU) * 4" identifier + (binary_expression "(rc & 0xffU) * 4" (parenthesized_expression "(rc & 0xffU)" ( (binary_expression "rc & 0xffU" identifier & number_literal) )) * number_literal)) )))) == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        pcVar1 = "unknown error";\n      }" { (expression_statement "pcVar1 = "unknown error";" (assignment_expression "pcVar1 = "unknown error"" identifier = (string_literal ""unknown error"" " string_content ")) ;) })) })) })) (return_statement "return pcVar1;" return identifier ;) })))
(translation_unit "char * FUN_0004b3e0(uint param_1)\n\n{\n  char *pcVar1;\n  \n  pcVar1 = "no more rows available";\n  if (((param_1 != 0x65) && (pcVar1 = "abort due to ROLLBACK", param_1 != 0x204)) &&\n     (pcVar1 = "another row available", param_1 != 100)) {\n    pcVar1 = "unknown error";\n    if ((param_1 & 0xff) < 0x1d) {\n      pcVar1 = (&PTR_s_not_an_error_001b9e60)[param_1 & 0xff];\n      if ((&PTR_s_not_an_error_001b9e60)[param_1 & 0xff] == (char *)0x0) {\n        pcVar1 = "unknown error";\n      }\n    }\n  }\n  return pcVar1;\n}\n\n" (function_definition "char * FUN_0004b3e0(uint param_1)\n\n{\n  char *pcVar1;\n  \n  pcVar1 = "no more rows available";\n  if (((param_1 != 0x65) && (pcVar1 = "abort due to ROLLBACK", param_1 != 0x204)) &&\n     (pcVar1 = "another row available", param_1 != 100)) {\n    pcVar1 = "unknown error";\n    if ((param_1 & 0xff) < 0x1d) {\n      pcVar1 = (&PTR_s_not_an_error_001b9e60)[param_1 & 0xff];\n      if ((&PTR_s_not_an_error_001b9e60)[param_1 & 0xff] == (char *)0x0) {\n        pcVar1 = "unknown error";\n      }\n    }\n  }\n  return pcVar1;\n}" primitive_type (pointer_declarator "* FUN_0004b3e0(uint param_1)" * (function_declarator "FUN_0004b3e0(uint param_1)" identifier (parameter_list "(uint param_1)" ( (parameter_declaration "uint param_1" type_identifier identifier) )))) (compound_statement "{\n  char *pcVar1;\n  \n  pcVar1 = "no more rows available";\n  if (((param_1 != 0x65) && (pcVar1 = "abort due to ROLLBACK", param_1 != 0x204)) &&\n     (pcVar1 = "another row available", param_1 != 100)) {\n    pcVar1 = "unknown error";\n    if ((param_1 & 0xff) < 0x1d) {\n      pcVar1 = (&PTR_s_not_an_error_001b9e60)[param_1 & 0xff];\n      if ((&PTR_s_not_an_error_001b9e60)[param_1 & 0xff] == (char *)0x0) {\n        pcVar1 = "unknown error";\n      }\n    }\n  }\n  return pcVar1;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (expression_statement "pcVar1 = "no more rows available";" (assignment_expression "pcVar1 = "no more rows available"" identifier = (string_literal ""no more rows available"" " string_content ")) ;) (if_statement "if (((param_1 != 0x65) && (pcVar1 = "abort due to ROLLBACK", param_1 != 0x204)) &&\n     (pcVar1 = "another row available", param_1 != 100)) {\n    pcVar1 = "unknown error";\n    if ((param_1 & 0xff) < 0x1d) {\n      pcVar1 = (&PTR_s_not_an_error_001b9e60)[param_1 & 0xff];\n      if ((&PTR_s_not_an_error_001b9e60)[param_1 & 0xff] == (char *)0x0) {\n        pcVar1 = "unknown error";\n      }\n    }\n  }" if (parenthesized_expression "(((param_1 != 0x65) && (pcVar1 = "abort due to ROLLBACK", param_1 != 0x204)) &&\n     (pcVar1 = "another row available", param_1 != 100))" ( (binary_expression "((param_1 != 0x65) && (pcVar1 = "abort due to ROLLBACK", param_1 != 0x204)) &&\n     (pcVar1 = "another row available", param_1 != 100)" (parenthesized_expression "((param_1 != 0x65) && (pcVar1 = "abort due to ROLLBACK", param_1 != 0x204))" ( (binary_expression "(param_1 != 0x65) && (pcVar1 = "abort due to ROLLBACK", param_1 != 0x204)" (parenthesized_expression "(param_1 != 0x65)" ( (binary_expression "param_1 != 0x65" identifier != number_literal) )) && (parenthesized_expression "(pcVar1 = "abort due to ROLLBACK", param_1 != 0x204)" ( (comma_expression "pcVar1 = "abort due to ROLLBACK", param_1 != 0x204" (assignment_expression "pcVar1 = "abort due to ROLLBACK"" identifier = (string_literal ""abort due to ROLLBACK"" " string_content ")) , (binary_expression "param_1 != 0x204" identifier != number_literal)) ))) )) && (parenthesized_expression "(pcVar1 = "another row available", param_1 != 100)" ( (comma_expression "pcVar1 = "another row available", param_1 != 100" (assignment_expression "pcVar1 = "another row available"" identifier = (string_literal ""another row available"" " string_content ")) , (binary_expression "param_1 != 100" identifier != number_literal)) ))) )) (compound_statement "{\n    pcVar1 = "unknown error";\n    if ((param_1 & 0xff) < 0x1d) {\n      pcVar1 = (&PTR_s_not_an_error_001b9e60)[param_1 & 0xff];\n      if ((&PTR_s_not_an_error_001b9e60)[param_1 & 0xff] == (char *)0x0) {\n        pcVar1 = "unknown error";\n      }\n    }\n  }" { (expression_statement "pcVar1 = "unknown error";" (assignment_expression "pcVar1 = "unknown error"" identifier = (string_literal ""unknown error"" " string_content ")) ;) (if_statement "if ((param_1 & 0xff) < 0x1d) {\n      pcVar1 = (&PTR_s_not_an_error_001b9e60)[param_1 & 0xff];\n      if ((&PTR_s_not_an_error_001b9e60)[param_1 & 0xff] == (char *)0x0) {\n        pcVar1 = "unknown error";\n      }\n    }" if (parenthesized_expression "((param_1 & 0xff) < 0x1d)" ( (binary_expression "(param_1 & 0xff) < 0x1d" (parenthesized_expression "(param_1 & 0xff)" ( (binary_expression "param_1 & 0xff" identifier & number_literal) )) < number_literal) )) (compound_statement "{\n      pcVar1 = (&PTR_s_not_an_error_001b9e60)[param_1 & 0xff];\n      if ((&PTR_s_not_an_error_001b9e60)[param_1 & 0xff] == (char *)0x0) {\n        pcVar1 = "unknown error";\n      }\n    }" { (expression_statement "pcVar1 = (&PTR_s_not_an_error_001b9e60)[param_1 & 0xff];" (assignment_expression "pcVar1 = (&PTR_s_not_an_error_001b9e60)[param_1 & 0xff]" identifier = (subscript_expression "(&PTR_s_not_an_error_001b9e60)[param_1 & 0xff]" (parenthesized_expression "(&PTR_s_not_an_error_001b9e60)" ( (pointer_expression "&PTR_s_not_an_error_001b9e60" & identifier) )) [ (binary_expression "param_1 & 0xff" identifier & number_literal) ])) ;) (if_statement "if ((&PTR_s_not_an_error_001b9e60)[param_1 & 0xff] == (char *)0x0) {\n        pcVar1 = "unknown error";\n      }" if (parenthesized_expression "((&PTR_s_not_an_error_001b9e60)[param_1 & 0xff] == (char *)0x0)" ( (binary_expression "(&PTR_s_not_an_error_001b9e60)[param_1 & 0xff] == (char *)0x0" (subscript_expression "(&PTR_s_not_an_error_001b9e60)[param_1 & 0xff]" (parenthesized_expression "(&PTR_s_not_an_error_001b9e60)" ( (pointer_expression "&PTR_s_not_an_error_001b9e60" & identifier) )) [ (binary_expression "param_1 & 0xff" identifier & number_literal) ]) == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        pcVar1 = "unknown error";\n      }" { (expression_statement "pcVar1 = "unknown error";" (assignment_expression "pcVar1 = "unknown error"" identifier = (string_literal ""unknown error"" " string_content ")) ;) })) })) })) (return_statement "return pcVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (string_literal " string_content ")) , (binary_expression IDENT != LIT)) ))) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (string_literal " string_content ")) , (binary_expression IDENT != LIT)) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression (parenthesized_expression ( (pointer_expression & IDENT) )) [ (binary_expression IDENT & LIT) ])) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression (parenthesized_expression ( (pointer_expression & IDENT) )) [ (binary_expression IDENT & LIT) ]) == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) })) })) })) (return_statement return IDENT ;) })))
(function_definition "char * FUN_0004b3e0(uint param_1)\n\n{\n  char *pcVar1;\n  \n  pcVar1 = "no more rows available";\n  if (((param_1 != 0x65) && (pcVar1 = "abort due to ROLLBACK", param_1 != 0x204)) &&\n     (pcVar1 = "another row available", param_1 != 100)) {\n    pcVar1 = "unknown error";\n    if ((param_1 & 0xff) < 0x1d) {\n      pcVar1 = (&PTR_s_not_an_error_001b9e60)[param_1 & 0xff];\n      if ((&PTR_s_not_an_error_001b9e60)[param_1 & 0xff] == (char *)0x0) {\n        pcVar1 = "unknown error";\n      }\n    }\n  }\n  return pcVar1;\n}" (primitive_type "char") (pointer_declarator "* FUN_0004b3e0(uint param_1)" (* "*") (function_declarator "FUN_0004b3e0(uint param_1)" (identifier "FUN_0004b3e0") (parameter_list "(uint param_1)" (( "(") (parameter_declaration "uint param_1" (type_identifier "uint") (identifier "param_1")) () ")")))) (compound_statement "{\n  char *pcVar1;\n  \n  pcVar1 = "no more rows available";\n  if (((param_1 != 0x65) && (pcVar1 = "abort due to ROLLBACK", param_1 != 0x204)) &&\n     (pcVar1 = "another row available", param_1 != 100)) {\n    pcVar1 = "unknown error";\n    if ((param_1 & 0xff) < 0x1d) {\n      pcVar1 = (&PTR_s_not_an_error_001b9e60)[param_1 & 0xff];\n      if ((&PTR_s_not_an_error_001b9e60)[param_1 & 0xff] == (char *)0x0) {\n        pcVar1 = "unknown error";\n      }\n    }\n  }\n  return pcVar1;\n}" ({ "{") (declaration "char *pcVar1;" (primitive_type "char") (pointer_declarator "*pcVar1" (* "*") (identifier "pcVar1")) (; ";")) (expression_statement "pcVar1 = "no more rows available";" (assignment_expression "pcVar1 = "no more rows available"" (identifier "pcVar1") (= "=") (string_literal ""no more rows available"" (" """) (string_content "no more rows available") (" """))) (; ";")) (if_statement "if (((param_1 != 0x65) && (pcVar1 = "abort due to ROLLBACK", param_1 != 0x204)) &&\n     (pcVar1 = "another row available", param_1 != 100)) {\n    pcVar1 = "unknown error";\n    if ((param_1 & 0xff) < 0x1d) {\n      pcVar1 = (&PTR_s_not_an_error_001b9e60)[param_1 & 0xff];\n      if ((&PTR_s_not_an_error_001b9e60)[param_1 & 0xff] == (char *)0x0) {\n        pcVar1 = "unknown error";\n      }\n    }\n  }" (if "if") (parenthesized_expression "(((param_1 != 0x65) && (pcVar1 = "abort due to ROLLBACK", param_1 != 0x204)) &&\n     (pcVar1 = "another row available", param_1 != 100))" (( "(") (binary_expression "((param_1 != 0x65) && (pcVar1 = "abort due to ROLLBACK", param_1 != 0x204)) &&\n     (pcVar1 = "another row available", param_1 != 100)" (parenthesized_expression "((param_1 != 0x65) && (pcVar1 = "abort due to ROLLBACK", param_1 != 0x204))" (( "(") (binary_expression "(param_1 != 0x65) && (pcVar1 = "abort due to ROLLBACK", param_1 != 0x204)" (parenthesized_expression "(param_1 != 0x65)" (( "(") (binary_expression "param_1 != 0x65" (identifier "param_1") (!= "!=") (number_literal "0x65")) () ")")) (&& "&&") (parenthesized_expression "(pcVar1 = "abort due to ROLLBACK", param_1 != 0x204)" (( "(") (comma_expression "pcVar1 = "abort due to ROLLBACK", param_1 != 0x204" (assignment_expression "pcVar1 = "abort due to ROLLBACK"" (identifier "pcVar1") (= "=") (string_literal ""abort due to ROLLBACK"" (" """) (string_content "abort due to ROLLBACK") (" """))) (, ",") (binary_expression "param_1 != 0x204" (identifier "param_1") (!= "!=") (number_literal "0x204"))) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(pcVar1 = "another row available", param_1 != 100)" (( "(") (comma_expression "pcVar1 = "another row available", param_1 != 100" (assignment_expression "pcVar1 = "another row available"" (identifier "pcVar1") (= "=") (string_literal ""another row available"" (" """) (string_content "another row available") (" """))) (, ",") (binary_expression "param_1 != 100" (identifier "param_1") (!= "!=") (number_literal "100"))) () ")"))) () ")")) (compound_statement "{\n    pcVar1 = "unknown error";\n    if ((param_1 & 0xff) < 0x1d) {\n      pcVar1 = (&PTR_s_not_an_error_001b9e60)[param_1 & 0xff];\n      if ((&PTR_s_not_an_error_001b9e60)[param_1 & 0xff] == (char *)0x0) {\n        pcVar1 = "unknown error";\n      }\n    }\n  }" ({ "{") (expression_statement "pcVar1 = "unknown error";" (assignment_expression "pcVar1 = "unknown error"" (identifier "pcVar1") (= "=") (string_literal ""unknown error"" (" """) (string_content "unknown error") (" """))) (; ";")) (if_statement "if ((param_1 & 0xff) < 0x1d) {\n      pcVar1 = (&PTR_s_not_an_error_001b9e60)[param_1 & 0xff];\n      if ((&PTR_s_not_an_error_001b9e60)[param_1 & 0xff] == (char *)0x0) {\n        pcVar1 = "unknown error";\n      }\n    }" (if "if") (parenthesized_expression "((param_1 & 0xff) < 0x1d)" (( "(") (binary_expression "(param_1 & 0xff) < 0x1d" (parenthesized_expression "(param_1 & 0xff)" (( "(") (binary_expression "param_1 & 0xff" (identifier "param_1") (& "&") (number_literal "0xff")) () ")")) (< "<") (number_literal "0x1d")) () ")")) (compound_statement "{\n      pcVar1 = (&PTR_s_not_an_error_001b9e60)[param_1 & 0xff];\n      if ((&PTR_s_not_an_error_001b9e60)[param_1 & 0xff] == (char *)0x0) {\n        pcVar1 = "unknown error";\n      }\n    }" ({ "{") (expression_statement "pcVar1 = (&PTR_s_not_an_error_001b9e60)[param_1 & 0xff];" (assignment_expression "pcVar1 = (&PTR_s_not_an_error_001b9e60)[param_1 & 0xff]" (identifier "pcVar1") (= "=") (subscript_expression "(&PTR_s_not_an_error_001b9e60)[param_1 & 0xff]" (parenthesized_expression "(&PTR_s_not_an_error_001b9e60)" (( "(") (pointer_expression "&PTR_s_not_an_error_001b9e60" (& "&") (identifier "PTR_s_not_an_error_001b9e60")) () ")")) ([ "[") (binary_expression "param_1 & 0xff" (identifier "param_1") (& "&") (number_literal "0xff")) (] "]"))) (; ";")) (if_statement "if ((&PTR_s_not_an_error_001b9e60)[param_1 & 0xff] == (char *)0x0) {\n        pcVar1 = "unknown error";\n      }" (if "if") (parenthesized_expression "((&PTR_s_not_an_error_001b9e60)[param_1 & 0xff] == (char *)0x0)" (( "(") (binary_expression "(&PTR_s_not_an_error_001b9e60)[param_1 & 0xff] == (char *)0x0" (subscript_expression "(&PTR_s_not_an_error_001b9e60)[param_1 & 0xff]" (parenthesized_expression "(&PTR_s_not_an_error_001b9e60)" (( "(") (pointer_expression "&PTR_s_not_an_error_001b9e60" (& "&") (identifier "PTR_s_not_an_error_001b9e60")) () ")")) ([ "[") (binary_expression "param_1 & 0xff" (identifier "param_1") (& "&") (number_literal "0xff")) (] "]")) (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        pcVar1 = "unknown error";\n      }" ({ "{") (expression_statement "pcVar1 = "unknown error";" (assignment_expression "pcVar1 = "unknown error"" (identifier "pcVar1") (= "=") (string_literal ""unknown error"" (" """) (string_content "unknown error") (" """))) (; ";")) (} "}"))) (} "}"))) (} "}"))) (return_statement "return pcVar1;" (return "return") (identifier "pcVar1") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.cx replaced with injection: get_pc_thunk_cx */
/* WARNING: Unknown calling convention */

char * function_1(int var_1)

{
  char *pcVar1;
  
  pcVar1 = "no more rows available";
  if (((var_1 != 0x65) && (pcVar1 = "abort due to ROLLBACK", var_1 != 0x204)) &&
     (pcVar1 = "another row available", var_1 != 100)) {
    pcVar1 = "unknown error";
    if ((var_1 & 0xffU) < 0x1d) {
      pcVar1 = *(char **)(var_2 + (var_1 & 0xffU) * 4);
      if (*(char **)(var_2 + (var_1 & 0xffU) * 4) == (char *)0x0) {
        pcVar1 = "unknown error";
      }
    }
  }
  return pcVar1;
}


(translation_unit (function_definition type: (primitive_type) declarator: (pointer_declarator declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (string_literal (string_content))) right: (binary_expression left: (identifier) right: (number_literal)))))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (string_literal (string_content))) right: (binary_expression left: (identifier) right: (number_literal)))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (parenthesized_expression (pointer_expression argument: (identifier))) index: (binary_expression left: (identifier) right: (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (parenthesized_expression (pointer_expression argument: (identifier))) index: (binary_expression left: (identifier) right: (number_literal))) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content)))))))))) (return_statement (identifier)))))

/* WARNING: Function: __i686.get_pc_thunk.cx replaced with injection: get_pc_thunk_cx */

char * MASKED(uint param_1)

{
  char *pcVar1;
  
  pcVar1 = "no more rows available";
  if (((param_1 != 0x65) && (pcVar1 = "abort due to ROLLBACK", param_1 != 0x204)) &&
     (pcVar1 = "another row available", param_1 != 100)) {
    pcVar1 = "unknown error";
    if ((param_1 & 0xff) < 0x1d) {
      pcVar1 = (&PTR_s_not_an_error_001b9e60)[param_1 & 0xff];
      if ((&PTR_s_not_an_error_001b9e60)[param_1 & 0xff] == (char *)0x0) {
        pcVar1 = "unknown error";
      }
    }
  }
  return pcVar1;
}

