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

int kw_lookup(char *kwtbl,char ***pargs)

{
}



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

byte __regparm3 FUN_00039b43(byte *param_1,int *param_2)

{
  undefined4 *puVar1;
  char *__s2;
  int iVar2;
  
  puVar1 = (undefined4 *)*param_2;
  __s2 = (char *)*puVar1;
  if (__s2 != (char *)0x0) {
    do {
      iVar2 = strcmp((char *)(param_1 + 2),__s2);
      if (iVar2 == 0) {
        *param_2 = (int)(puVar1 + 1);
        if ((param_1[1] & 0x10) == 0) {
          return param_1[1];
        }
        if (puVar1[1] == 0) {
                    /* WARNING: Subroutine does not return */
          FUN_0001803e();
        }
        *param_2 = (int)(puVar1 + 2);
        return param_1[1];
      }
      param_1 = param_1 + *param_1;
    } while (*param_1 != 0);
  }
  return 0;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
SUB ESP,0x1c
CALL 0x00017650
ADD EBX,0xa1ed1
MOV EBP,EDX
MOV EDI,dword ptr [EDX]
MOV EDX,dword ptr [EDI]
TEST EDX,EDX
JZ 0x00039ba1
MOV ESI,EAX
SUB ESP,0x8
PUSH EDX
MOV dword ptr [ESP + 0x18],EDX
LEA EAX,[ESI + 0x2]
PUSH EAX
CALL 0x00016140
ADD ESP,0x10
TEST EAX,EAX
MOV EDX,dword ptr [ESP + 0xc]
JNZ 0x00039b97
LEA EAX,[EDI + 0x4]
MOV dword ptr [EBP],EAX
MOVZX EAX,byte ptr [ESI + 0x1]
TEST AL,0x10
JZ 0x00039ba3
MOV EAX,dword ptr [EDI + 0x4]
TEST EAX,EAX
JNZ 0x00039bab
CALL 0x0001803e
MOVZX EAX,byte ptr [ESI]
ADD ESI,EAX
CMP byte ptr [ESI],0x0
JNZ 0x00039b61
XOR EAX,EAX
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
ADD EDI,0x8
MOV dword ptr [EBP],EDI
MOVZX EAX,byte ptr [ESI + 0x1]
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nbyte __regparm3 FUN_00039b43(byte *param_1,int *param_2)\n\n{\n  undefined4 *puVar1;\n  char *__s2;\n  int iVar2;\n  \n  puVar1 = (undefined4 *)*param_2;\n  __s2 = (char *)*puVar1;\n  if (__s2 != (char *)0x0) {\n    do {\n      iVar2 = strcmp((char *)(param_1 + 2),__s2);\n      if (iVar2 == 0) {\n        *param_2 = (int)(puVar1 + 1);\n        if ((param_1[1] & 0x10) == 0) {\n          return param_1[1];\n        }\n        if (puVar1[1] == 0) {\n                    /* WARNING: Subroutine does not return */\n          FUN_0001803e();\n        }\n        *param_2 = (int)(puVar1 + 2);\n        return param_1[1];\n      }\n      param_1 = param_1 + *param_1;\n    } while (*param_1 != 0);\n  }\n  return 0;\n}\n\n" comment (function_definition "byte __regparm3 FUN_00039b43(byte *param_1,int *param_2)\n\n{\n  undefined4 *puVar1;\n  char *__s2;\n  int iVar2;\n  \n  puVar1 = (undefined4 *)*param_2;\n  __s2 = (char *)*puVar1;\n  if (__s2 != (char *)0x0) {\n    do {\n      iVar2 = strcmp((char *)(param_1 + 2),__s2);\n      if (iVar2 == 0) {\n        *param_2 = (int)(puVar1 + 1);\n        if ((param_1[1] & 0x10) == 0) {\n          return param_1[1];\n        }\n        if (puVar1[1] == 0) {\n                    /* WARNING: Subroutine does not return */\n          FUN_0001803e();\n        }\n        *param_2 = (int)(puVar1 + 2);\n        return param_1[1];\n      }\n      param_1 = param_1 + *param_1;\n    } while (*param_1 != 0);\n  }\n  return 0;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_00039b43(byte *param_1,int *param_2)" identifier (parameter_list "(byte *param_1,int *param_2)" ( (parameter_declaration "byte *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  undefined4 *puVar1;\n  char *__s2;\n  int iVar2;\n  \n  puVar1 = (undefined4 *)*param_2;\n  __s2 = (char *)*puVar1;\n  if (__s2 != (char *)0x0) {\n    do {\n      iVar2 = strcmp((char *)(param_1 + 2),__s2);\n      if (iVar2 == 0) {\n        *param_2 = (int)(puVar1 + 1);\n        if ((param_1[1] & 0x10) == 0) {\n          return param_1[1];\n        }\n        if (puVar1[1] == 0) {\n                    /* WARNING: Subroutine does not return */\n          FUN_0001803e();\n        }\n        *param_2 = (int)(puVar1 + 2);\n        return param_1[1];\n      }\n      param_1 = param_1 + *param_1;\n    } while (*param_1 != 0);\n  }\n  return 0;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "char *__s2;" primitive_type (pointer_declarator "*__s2" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "puVar1 = (undefined4 *)*param_2;" (assignment_expression "puVar1 = (undefined4 *)*param_2" identifier = (cast_expression "(undefined4 *)*param_2" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier))) ;) (expression_statement "__s2 = (char *)*puVar1;" (assignment_expression "__s2 = (char *)*puVar1" identifier = (cast_expression "(char *)*puVar1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar1" * identifier))) ;) (if_statement "if (__s2 != (char *)0x0) {\n    do {\n      iVar2 = strcmp((char *)(param_1 + 2),__s2);\n      if (iVar2 == 0) {\n        *param_2 = (int)(puVar1 + 1);\n        if ((param_1[1] & 0x10) == 0) {\n          return param_1[1];\n        }\n        if (puVar1[1] == 0) {\n                    /* WARNING: Subroutine does not return */\n          FUN_0001803e();\n        }\n        *param_2 = (int)(puVar1 + 2);\n        return param_1[1];\n      }\n      param_1 = param_1 + *param_1;\n    } while (*param_1 != 0);\n  }" if (parenthesized_expression "(__s2 != (char *)0x0)" ( (binary_expression "__s2 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    do {\n      iVar2 = strcmp((char *)(param_1 + 2),__s2);\n      if (iVar2 == 0) {\n        *param_2 = (int)(puVar1 + 1);\n        if ((param_1[1] & 0x10) == 0) {\n          return param_1[1];\n        }\n        if (puVar1[1] == 0) {\n                    /* WARNING: Subroutine does not return */\n          FUN_0001803e();\n        }\n        *param_2 = (int)(puVar1 + 2);\n        return param_1[1];\n      }\n      param_1 = param_1 + *param_1;\n    } while (*param_1 != 0);\n  }" { (do_statement "do {\n      iVar2 = strcmp((char *)(param_1 + 2),__s2);\n      if (iVar2 == 0) {\n        *param_2 = (int)(puVar1 + 1);\n        if ((param_1[1] & 0x10) == 0) {\n          return param_1[1];\n        }\n        if (puVar1[1] == 0) {\n                    /* WARNING: Subroutine does not return */\n          FUN_0001803e();\n        }\n        *param_2 = (int)(puVar1 + 2);\n        return param_1[1];\n      }\n      param_1 = param_1 + *param_1;\n    } while (*param_1 != 0);" do (compound_statement "{\n      iVar2 = strcmp((char *)(param_1 + 2),__s2);\n      if (iVar2 == 0) {\n        *param_2 = (int)(puVar1 + 1);\n        if ((param_1[1] & 0x10) == 0) {\n          return param_1[1];\n        }\n        if (puVar1[1] == 0) {\n                    /* WARNING: Subroutine does not return */\n          FUN_0001803e();\n        }\n        *param_2 = (int)(puVar1 + 2);\n        return param_1[1];\n      }\n      param_1 = param_1 + *param_1;\n    }" { (expression_statement "iVar2 = strcmp((char *)(param_1 + 2),__s2);" (assignment_expression "iVar2 = strcmp((char *)(param_1 + 2),__s2)" identifier = (call_expression "strcmp((char *)(param_1 + 2),__s2)" identifier (argument_list "((char *)(param_1 + 2),__s2)" ( (cast_expression "(char *)(param_1 + 2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) ))) , identifier )))) ;) (if_statement "if (iVar2 == 0) {\n        *param_2 = (int)(puVar1 + 1);\n        if ((param_1[1] & 0x10) == 0) {\n          return param_1[1];\n        }\n        if (puVar1[1] == 0) {\n                    /* WARNING: Subroutine does not return */\n          FUN_0001803e();\n        }\n        *param_2 = (int)(puVar1 + 2);\n        return param_1[1];\n      }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n        *param_2 = (int)(puVar1 + 1);\n        if ((param_1[1] & 0x10) == 0) {\n          return param_1[1];\n        }\n        if (puVar1[1] == 0) {\n                    /* WARNING: Subroutine does not return */\n          FUN_0001803e();\n        }\n        *param_2 = (int)(puVar1 + 2);\n        return param_1[1];\n      }" { (expression_statement "*param_2 = (int)(puVar1 + 1);" (assignment_expression "*param_2 = (int)(puVar1 + 1)" (pointer_expression "*param_2" * identifier) = (cast_expression "(int)(puVar1 + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(puVar1 + 1)" ( (binary_expression "puVar1 + 1" identifier + number_literal) )))) ;) (if_statement "if ((param_1[1] & 0x10) == 0) {\n          return param_1[1];\n        }" if (parenthesized_expression "((param_1[1] & 0x10) == 0)" ( (binary_expression "(param_1[1] & 0x10) == 0" (parenthesized_expression "(param_1[1] & 0x10)" ( (binary_expression "param_1[1] & 0x10" (subscript_expression "param_1[1]" identifier [ number_literal ]) & number_literal) )) == number_literal) )) (compound_statement "{\n          return param_1[1];\n        }" { (return_statement "return param_1[1];" return (subscript_expression "param_1[1]" identifier [ number_literal ]) ;) })) (if_statement "if (puVar1[1] == 0) {\n                    /* WARNING: Subroutine does not return */\n          FUN_0001803e();\n        }" if (parenthesized_expression "(puVar1[1] == 0)" ( (binary_expression "puVar1[1] == 0" (subscript_expression "puVar1[1]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n          FUN_0001803e();\n        }" { comment (expression_statement "FUN_0001803e();" (call_expression "FUN_0001803e()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "*param_2 = (int)(puVar1 + 2);" (assignment_expression "*param_2 = (int)(puVar1 + 2)" (pointer_expression "*param_2" * identifier) = (cast_expression "(int)(puVar1 + 2)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(puVar1 + 2)" ( (binary_expression "puVar1 + 2" identifier + number_literal) )))) ;) (return_statement "return param_1[1];" return (subscript_expression "param_1[1]" identifier [ number_literal ]) ;) })) (expression_statement "param_1 = param_1 + *param_1;" (assignment_expression "param_1 = param_1 + *param_1" identifier = (binary_expression "param_1 + *param_1" identifier + (pointer_expression "*param_1" * identifier))) ;) }) while (parenthesized_expression "(*param_1 != 0)" ( (binary_expression "*param_1 != 0" (pointer_expression "*param_1" * identifier) != number_literal) )) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint kw_lookup(char *kwtbl,char ***pargs)\n\n{\n}\n\n" comment (function_definition "int kw_lookup(char *kwtbl,char ***pargs)\n\n{\n}" primitive_type (function_declarator "kw_lookup(char *kwtbl,char ***pargs)" identifier (parameter_list "(char *kwtbl,char ***pargs)" ( (parameter_declaration "char *kwtbl" primitive_type (pointer_declarator "*kwtbl" * identifier)) , (parameter_declaration "char ***pargs" primitive_type (pointer_declarator "***pargs" * (pointer_declarator "**pargs" * (pointer_declarator "*pargs" * identifier)))) ))) (compound_statement "{\n}" { })))
(translation_unit "byte __regparm3 FUN_00039b43(byte *param_1,int *param_2)\n\n{\n  undefined4 *puVar1;\n  char *__s2;\n  int iVar2;\n  \n  puVar1 = (undefined4 *)*param_2;\n  __s2 = (char *)*puVar1;\n  if (__s2 != (char *)0x0) {\n    do {\n      iVar2 = strcmp((char *)(param_1 + 2),__s2);\n      if (iVar2 == 0) {\n        *param_2 = (int)(puVar1 + 1);\n        if ((param_1[1] & 0x10) == 0) {\n          return param_1[1];\n        }\n        if (puVar1[1] == 0) {\n                    \n          FUN_0001803e();\n        }\n        *param_2 = (int)(puVar1 + 2);\n        return param_1[1];\n      }\n      param_1 = param_1 + *param_1;\n    } while (*param_1 != 0);\n  }\n  return 0;\n}\n\n" (function_definition "byte __regparm3 FUN_00039b43(byte *param_1,int *param_2)\n\n{\n  undefined4 *puVar1;\n  char *__s2;\n  int iVar2;\n  \n  puVar1 = (undefined4 *)*param_2;\n  __s2 = (char *)*puVar1;\n  if (__s2 != (char *)0x0) {\n    do {\n      iVar2 = strcmp((char *)(param_1 + 2),__s2);\n      if (iVar2 == 0) {\n        *param_2 = (int)(puVar1 + 1);\n        if ((param_1[1] & 0x10) == 0) {\n          return param_1[1];\n        }\n        if (puVar1[1] == 0) {\n                    \n          FUN_0001803e();\n        }\n        *param_2 = (int)(puVar1 + 2);\n        return param_1[1];\n      }\n      param_1 = param_1 + *param_1;\n    } while (*param_1 != 0);\n  }\n  return 0;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_00039b43(byte *param_1,int *param_2)" identifier (parameter_list "(byte *param_1,int *param_2)" ( (parameter_declaration "byte *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  undefined4 *puVar1;\n  char *__s2;\n  int iVar2;\n  \n  puVar1 = (undefined4 *)*param_2;\n  __s2 = (char *)*puVar1;\n  if (__s2 != (char *)0x0) {\n    do {\n      iVar2 = strcmp((char *)(param_1 + 2),__s2);\n      if (iVar2 == 0) {\n        *param_2 = (int)(puVar1 + 1);\n        if ((param_1[1] & 0x10) == 0) {\n          return param_1[1];\n        }\n        if (puVar1[1] == 0) {\n                    \n          FUN_0001803e();\n        }\n        *param_2 = (int)(puVar1 + 2);\n        return param_1[1];\n      }\n      param_1 = param_1 + *param_1;\n    } while (*param_1 != 0);\n  }\n  return 0;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "char *__s2;" primitive_type (pointer_declarator "*__s2" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "puVar1 = (undefined4 *)*param_2;" (assignment_expression "puVar1 = (undefined4 *)*param_2" identifier = (cast_expression "(undefined4 *)*param_2" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier))) ;) (expression_statement "__s2 = (char *)*puVar1;" (assignment_expression "__s2 = (char *)*puVar1" identifier = (cast_expression "(char *)*puVar1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar1" * identifier))) ;) (if_statement "if (__s2 != (char *)0x0) {\n    do {\n      iVar2 = strcmp((char *)(param_1 + 2),__s2);\n      if (iVar2 == 0) {\n        *param_2 = (int)(puVar1 + 1);\n        if ((param_1[1] & 0x10) == 0) {\n          return param_1[1];\n        }\n        if (puVar1[1] == 0) {\n                    \n          FUN_0001803e();\n        }\n        *param_2 = (int)(puVar1 + 2);\n        return param_1[1];\n      }\n      param_1 = param_1 + *param_1;\n    } while (*param_1 != 0);\n  }" if (parenthesized_expression "(__s2 != (char *)0x0)" ( (binary_expression "__s2 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    do {\n      iVar2 = strcmp((char *)(param_1 + 2),__s2);\n      if (iVar2 == 0) {\n        *param_2 = (int)(puVar1 + 1);\n        if ((param_1[1] & 0x10) == 0) {\n          return param_1[1];\n        }\n        if (puVar1[1] == 0) {\n                    \n          FUN_0001803e();\n        }\n        *param_2 = (int)(puVar1 + 2);\n        return param_1[1];\n      }\n      param_1 = param_1 + *param_1;\n    } while (*param_1 != 0);\n  }" { (do_statement "do {\n      iVar2 = strcmp((char *)(param_1 + 2),__s2);\n      if (iVar2 == 0) {\n        *param_2 = (int)(puVar1 + 1);\n        if ((param_1[1] & 0x10) == 0) {\n          return param_1[1];\n        }\n        if (puVar1[1] == 0) {\n                    \n          FUN_0001803e();\n        }\n        *param_2 = (int)(puVar1 + 2);\n        return param_1[1];\n      }\n      param_1 = param_1 + *param_1;\n    } while (*param_1 != 0);" do (compound_statement "{\n      iVar2 = strcmp((char *)(param_1 + 2),__s2);\n      if (iVar2 == 0) {\n        *param_2 = (int)(puVar1 + 1);\n        if ((param_1[1] & 0x10) == 0) {\n          return param_1[1];\n        }\n        if (puVar1[1] == 0) {\n                    \n          FUN_0001803e();\n        }\n        *param_2 = (int)(puVar1 + 2);\n        return param_1[1];\n      }\n      param_1 = param_1 + *param_1;\n    }" { (expression_statement "iVar2 = strcmp((char *)(param_1 + 2),__s2);" (assignment_expression "iVar2 = strcmp((char *)(param_1 + 2),__s2)" identifier = (call_expression "strcmp((char *)(param_1 + 2),__s2)" identifier (argument_list "((char *)(param_1 + 2),__s2)" ( (cast_expression "(char *)(param_1 + 2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) ))) , identifier )))) ;) (if_statement "if (iVar2 == 0) {\n        *param_2 = (int)(puVar1 + 1);\n        if ((param_1[1] & 0x10) == 0) {\n          return param_1[1];\n        }\n        if (puVar1[1] == 0) {\n                    \n          FUN_0001803e();\n        }\n        *param_2 = (int)(puVar1 + 2);\n        return param_1[1];\n      }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n        *param_2 = (int)(puVar1 + 1);\n        if ((param_1[1] & 0x10) == 0) {\n          return param_1[1];\n        }\n        if (puVar1[1] == 0) {\n                    \n          FUN_0001803e();\n        }\n        *param_2 = (int)(puVar1 + 2);\n        return param_1[1];\n      }" { (expression_statement "*param_2 = (int)(puVar1 + 1);" (assignment_expression "*param_2 = (int)(puVar1 + 1)" (pointer_expression "*param_2" * identifier) = (cast_expression "(int)(puVar1 + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(puVar1 + 1)" ( (binary_expression "puVar1 + 1" identifier + number_literal) )))) ;) (if_statement "if ((param_1[1] & 0x10) == 0) {\n          return param_1[1];\n        }" if (parenthesized_expression "((param_1[1] & 0x10) == 0)" ( (binary_expression "(param_1[1] & 0x10) == 0" (parenthesized_expression "(param_1[1] & 0x10)" ( (binary_expression "param_1[1] & 0x10" (subscript_expression "param_1[1]" identifier [ number_literal ]) & number_literal) )) == number_literal) )) (compound_statement "{\n          return param_1[1];\n        }" { (return_statement "return param_1[1];" return (subscript_expression "param_1[1]" identifier [ number_literal ]) ;) })) (if_statement "if (puVar1[1] == 0) {\n                    \n          FUN_0001803e();\n        }" if (parenthesized_expression "(puVar1[1] == 0)" ( (binary_expression "puVar1[1] == 0" (subscript_expression "puVar1[1]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n                    \n          FUN_0001803e();\n        }" { (expression_statement "FUN_0001803e();" (call_expression "FUN_0001803e()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "*param_2 = (int)(puVar1 + 2);" (assignment_expression "*param_2 = (int)(puVar1 + 2)" (pointer_expression "*param_2" * identifier) = (cast_expression "(int)(puVar1 + 2)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(puVar1 + 2)" ( (binary_expression "puVar1 + 2" identifier + number_literal) )))) ;) (return_statement "return param_1[1];" return (subscript_expression "param_1[1]" identifier [ number_literal ]) ;) })) (expression_statement "param_1 = param_1 + *param_1;" (assignment_expression "param_1 = param_1 + *param_1" identifier = (binary_expression "param_1 + *param_1" identifier + (pointer_expression "*param_1" * identifier))) ;) }) while (parenthesized_expression "(*param_1 != 0)" ( (binary_expression "*param_1 != 0" (pointer_expression "*param_1" * identifier) != number_literal) )) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))) , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) & LIT) )) == LIT) )) (compound_statement { (return_statement return (subscript_expression IDENT [ LIT ]) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (return_statement return (subscript_expression IDENT [ LIT ]) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (pointer_expression * IDENT))) ;) }) while (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) )) ;) })) (return_statement return LIT ;) })))
(function_definition "byte __regparm3 FUN_00039b43(byte *param_1,int *param_2)\n\n{\n  undefined4 *puVar1;\n  char *__s2;\n  int iVar2;\n  \n  puVar1 = (undefined4 *)*param_2;\n  __s2 = (char *)*puVar1;\n  if (__s2 != (char *)0x0) {\n    do {\n      iVar2 = strcmp((char *)(param_1 + 2),__s2);\n      if (iVar2 == 0) {\n        *param_2 = (int)(puVar1 + 1);\n        if ((param_1[1] & 0x10) == 0) {\n          return param_1[1];\n        }\n        if (puVar1[1] == 0) {\n                    \n          FUN_0001803e();\n        }\n        *param_2 = (int)(puVar1 + 2);\n        return param_1[1];\n      }\n      param_1 = param_1 + *param_1;\n    } while (*param_1 != 0);\n  }\n  return 0;\n}" (type_identifier "byte") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00039b43(byte *param_1,int *param_2)" (identifier "FUN_00039b43") (parameter_list "(byte *param_1,int *param_2)" (( "(") (parameter_declaration "byte *param_1" (type_identifier "byte") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int *param_2" (primitive_type "int") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  undefined4 *puVar1;\n  char *__s2;\n  int iVar2;\n  \n  puVar1 = (undefined4 *)*param_2;\n  __s2 = (char *)*puVar1;\n  if (__s2 != (char *)0x0) {\n    do {\n      iVar2 = strcmp((char *)(param_1 + 2),__s2);\n      if (iVar2 == 0) {\n        *param_2 = (int)(puVar1 + 1);\n        if ((param_1[1] & 0x10) == 0) {\n          return param_1[1];\n        }\n        if (puVar1[1] == 0) {\n                    \n          FUN_0001803e();\n        }\n        *param_2 = (int)(puVar1 + 2);\n        return param_1[1];\n      }\n      param_1 = param_1 + *param_1;\n    } while (*param_1 != 0);\n  }\n  return 0;\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "char *__s2;" (primitive_type "char") (pointer_declarator "*__s2" (* "*") (identifier "__s2")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (expression_statement "puVar1 = (undefined4 *)*param_2;" (assignment_expression "puVar1 = (undefined4 *)*param_2" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)*param_2" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_2" (* "*") (identifier "param_2")))) (; ";")) (expression_statement "__s2 = (char *)*puVar1;" (assignment_expression "__s2 = (char *)*puVar1" (identifier "__s2") (= "=") (cast_expression "(char *)*puVar1" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar1" (* "*") (identifier "puVar1")))) (; ";")) (if_statement "if (__s2 != (char *)0x0) {\n    do {\n      iVar2 = strcmp((char *)(param_1 + 2),__s2);\n      if (iVar2 == 0) {\n        *param_2 = (int)(puVar1 + 1);\n        if ((param_1[1] & 0x10) == 0) {\n          return param_1[1];\n        }\n        if (puVar1[1] == 0) {\n                    \n          FUN_0001803e();\n        }\n        *param_2 = (int)(puVar1 + 2);\n        return param_1[1];\n      }\n      param_1 = param_1 + *param_1;\n    } while (*param_1 != 0);\n  }" (if "if") (parenthesized_expression "(__s2 != (char *)0x0)" (( "(") (binary_expression "__s2 != (char *)0x0" (identifier "__s2") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    do {\n      iVar2 = strcmp((char *)(param_1 + 2),__s2);\n      if (iVar2 == 0) {\n        *param_2 = (int)(puVar1 + 1);\n        if ((param_1[1] & 0x10) == 0) {\n          return param_1[1];\n        }\n        if (puVar1[1] == 0) {\n                    \n          FUN_0001803e();\n        }\n        *param_2 = (int)(puVar1 + 2);\n        return param_1[1];\n      }\n      param_1 = param_1 + *param_1;\n    } while (*param_1 != 0);\n  }" ({ "{") (do_statement "do {\n      iVar2 = strcmp((char *)(param_1 + 2),__s2);\n      if (iVar2 == 0) {\n        *param_2 = (int)(puVar1 + 1);\n        if ((param_1[1] & 0x10) == 0) {\n          return param_1[1];\n        }\n        if (puVar1[1] == 0) {\n                    \n          FUN_0001803e();\n        }\n        *param_2 = (int)(puVar1 + 2);\n        return param_1[1];\n      }\n      param_1 = param_1 + *param_1;\n    } while (*param_1 != 0);" (do "do") (compound_statement "{\n      iVar2 = strcmp((char *)(param_1 + 2),__s2);\n      if (iVar2 == 0) {\n        *param_2 = (int)(puVar1 + 1);\n        if ((param_1[1] & 0x10) == 0) {\n          return param_1[1];\n        }\n        if (puVar1[1] == 0) {\n                    \n          FUN_0001803e();\n        }\n        *param_2 = (int)(puVar1 + 2);\n        return param_1[1];\n      }\n      param_1 = param_1 + *param_1;\n    }" ({ "{") (expression_statement "iVar2 = strcmp((char *)(param_1 + 2),__s2);" (assignment_expression "iVar2 = strcmp((char *)(param_1 + 2),__s2)" (identifier "iVar2") (= "=") (call_expression "strcmp((char *)(param_1 + 2),__s2)" (identifier "strcmp") (argument_list "((char *)(param_1 + 2),__s2)" (( "(") (cast_expression "(char *)(param_1 + 2)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 2)" (( "(") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2")) () ")"))) (, ",") (identifier "__s2") () ")")))) (; ";")) (if_statement "if (iVar2 == 0) {\n        *param_2 = (int)(puVar1 + 1);\n        if ((param_1[1] & 0x10) == 0) {\n          return param_1[1];\n        }\n        if (puVar1[1] == 0) {\n                    \n          FUN_0001803e();\n        }\n        *param_2 = (int)(puVar1 + 2);\n        return param_1[1];\n      }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        *param_2 = (int)(puVar1 + 1);\n        if ((param_1[1] & 0x10) == 0) {\n          return param_1[1];\n        }\n        if (puVar1[1] == 0) {\n                    \n          FUN_0001803e();\n        }\n        *param_2 = (int)(puVar1 + 2);\n        return param_1[1];\n      }" ({ "{") (expression_statement "*param_2 = (int)(puVar1 + 1);" (assignment_expression "*param_2 = (int)(puVar1 + 1)" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (cast_expression "(int)(puVar1 + 1)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(puVar1 + 1)" (( "(") (binary_expression "puVar1 + 1" (identifier "puVar1") (+ "+") (number_literal "1")) () ")")))) (; ";")) (if_statement "if ((param_1[1] & 0x10) == 0) {\n          return param_1[1];\n        }" (if "if") (parenthesized_expression "((param_1[1] & 0x10) == 0)" (( "(") (binary_expression "(param_1[1] & 0x10) == 0" (parenthesized_expression "(param_1[1] & 0x10)" (( "(") (binary_expression "param_1[1] & 0x10" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (& "&") (number_literal "0x10")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          return param_1[1];\n        }" ({ "{") (return_statement "return param_1[1];" (return "return") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (; ";")) (} "}"))) (if_statement "if (puVar1[1] == 0) {\n                    \n          FUN_0001803e();\n        }" (if "if") (parenthesized_expression "(puVar1[1] == 0)" (( "(") (binary_expression "puVar1[1] == 0" (subscript_expression "puVar1[1]" (identifier "puVar1") ([ "[") (number_literal "1") (] "]")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                    \n          FUN_0001803e();\n        }" ({ "{") (expression_statement "FUN_0001803e();" (call_expression "FUN_0001803e()" (identifier "FUN_0001803e") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "*param_2 = (int)(puVar1 + 2);" (assignment_expression "*param_2 = (int)(puVar1 + 2)" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (cast_expression "(int)(puVar1 + 2)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(puVar1 + 2)" (( "(") (binary_expression "puVar1 + 2" (identifier "puVar1") (+ "+") (number_literal "2")) () ")")))) (; ";")) (return_statement "return param_1[1];" (return "return") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (; ";")) (} "}"))) (expression_statement "param_1 = param_1 + *param_1;" (assignment_expression "param_1 = param_1 + *param_1" (identifier "param_1") (= "=") (binary_expression "param_1 + *param_1" (identifier "param_1") (+ "+") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(*param_1 != 0)" (( "(") (binary_expression "*param_1 != 0" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (!= "!=") (number_literal "0")) () ")")) (; ";")) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

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

int function_1(char *kwtbl,char ***pargs)

{
}


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

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

byte __regparm3 MASKED(byte *param_1,int *param_2)

{
  undefined4 *puVar1;
  char *__s2;
  int iVar2;
  
  puVar1 = (undefined4 *)*param_2;
  __s2 = (char *)*puVar1;
  if (__s2 != (char *)0x0) {
    do {
      iVar2 = strcmp((char *)(param_1 + 2),__s2);
      if (iVar2 == 0) {
        *param_2 = (int)(puVar1 + 1);
        if ((param_1[1] & 0x10) == 0) {
          return param_1[1];
        }
        if (puVar1[1] == 0) {
                    /* WARNING: Subroutine does not return */
          FUN_0001803e();
        }
        *param_2 = (int)(puVar1 + 2);
        return param_1[1];
      }
      param_1 = param_1 + *param_1;
    } while (*param_1 != 0);
  }
  return 0;
}

