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

Backend * backend_from_name(char *name)

{
  int iVar1;
  Backend *pBVar2;
  undefined **ppuVar3;
  
  ppuVar3 = &backends;
  pBVar2 = (Backend *)backends;
  if (backends != (undefined *)0x0) {
    do {
      iVar1 = strcmp(pBVar2->name,name);
      if (iVar1 == 0) {
        return pBVar2;
      }
      ppuVar3 = ppuVar3 + 1;
      pBVar2 = (Backend *)*ppuVar3;
    } while (pBVar2 != (Backend *)0x0);
  }
  return pBVar2;
}



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

undefined * FUN_0002a0f0(char *param_1)

{
  int iVar1;
  undefined *puVar2;
  undefined **ppuVar3;
  
  ppuVar3 = &PTR_PTR_FUN_000d0008;
  puVar2 = PTR_PTR_FUN_000d0008;
  if (PTR_PTR_FUN_000d0008 != (undefined *)0x0) {
    do {
      iVar1 = strcmp(*(char **)(puVar2 + 0x44),param_1);
      if (iVar1 == 0) {
        return puVar2;
      }
      ppuVar3 = ppuVar3 + 1;
      puVar2 = *ppuVar3;
    } while (puVar2 != (undefined *)0x0);
  }
  return puVar2;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x000149a0
ADD EBX,0xa5c97
SUB ESP,0xc
MOV EDI,dword ptr [ESP + 0x20]
LEA ESI,[EBX + 0x278]
MOV EBP,dword ptr [ESI]
TEST EBP,EBP
JNZ 0x0002a121
JMP 0x0002a134
ADD ESI,0x4
MOV EBP,dword ptr [ESI]
TEST EBP,EBP
JZ 0x0002a134
SUB ESP,0x8
PUSH EDI
PUSH dword ptr [EBP + 0x44]
CALL 0x00014090
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x0002a118
ADD ESP,0xc
MOV EAX,EBP
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\nundefined * FUN_0002a0f0(char *param_1)\n\n{\n  int iVar1;\n  undefined *puVar2;\n  undefined **ppuVar3;\n  \n  ppuVar3 = &PTR_PTR_FUN_000d0008;\n  puVar2 = PTR_PTR_FUN_000d0008;\n  if (PTR_PTR_FUN_000d0008 != (undefined *)0x0) {\n    do {\n      iVar1 = strcmp(*(char **)(puVar2 + 0x44),param_1);\n      if (iVar1 == 0) {\n        return puVar2;\n      }\n      ppuVar3 = ppuVar3 + 1;\n      puVar2 = *ppuVar3;\n    } while (puVar2 != (undefined *)0x0);\n  }\n  return puVar2;\n}\n\n" comment (function_definition "undefined * FUN_0002a0f0(char *param_1)\n\n{\n  int iVar1;\n  undefined *puVar2;\n  undefined **ppuVar3;\n  \n  ppuVar3 = &PTR_PTR_FUN_000d0008;\n  puVar2 = PTR_PTR_FUN_000d0008;\n  if (PTR_PTR_FUN_000d0008 != (undefined *)0x0) {\n    do {\n      iVar1 = strcmp(*(char **)(puVar2 + 0x44),param_1);\n      if (iVar1 == 0) {\n        return puVar2;\n      }\n      ppuVar3 = ppuVar3 + 1;\n      puVar2 = *ppuVar3;\n    } while (puVar2 != (undefined *)0x0);\n  }\n  return puVar2;\n}" type_identifier (pointer_declarator "* FUN_0002a0f0(char *param_1)" * (function_declarator "FUN_0002a0f0(char *param_1)" identifier (parameter_list "(char *param_1)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) )))) (compound_statement "{\n  int iVar1;\n  undefined *puVar2;\n  undefined **ppuVar3;\n  \n  ppuVar3 = &PTR_PTR_FUN_000d0008;\n  puVar2 = PTR_PTR_FUN_000d0008;\n  if (PTR_PTR_FUN_000d0008 != (undefined *)0x0) {\n    do {\n      iVar1 = strcmp(*(char **)(puVar2 + 0x44),param_1);\n      if (iVar1 == 0) {\n        return puVar2;\n      }\n      ppuVar3 = ppuVar3 + 1;\n      puVar2 = *ppuVar3;\n    } while (puVar2 != (undefined *)0x0);\n  }\n  return puVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined **ppuVar3;" type_identifier (pointer_declarator "**ppuVar3" * (pointer_declarator "*ppuVar3" * identifier)) ;) (expression_statement "ppuVar3 = &PTR_PTR_FUN_000d0008;" (assignment_expression "ppuVar3 = &PTR_PTR_FUN_000d0008" identifier = (pointer_expression "&PTR_PTR_FUN_000d0008" & identifier)) ;) (expression_statement "puVar2 = PTR_PTR_FUN_000d0008;" (assignment_expression "puVar2 = PTR_PTR_FUN_000d0008" identifier = identifier) ;) (if_statement "if (PTR_PTR_FUN_000d0008 != (undefined *)0x0) {\n    do {\n      iVar1 = strcmp(*(char **)(puVar2 + 0x44),param_1);\n      if (iVar1 == 0) {\n        return puVar2;\n      }\n      ppuVar3 = ppuVar3 + 1;\n      puVar2 = *ppuVar3;\n    } while (puVar2 != (undefined *)0x0);\n  }" if (parenthesized_expression "(PTR_PTR_FUN_000d0008 != (undefined *)0x0)" ( (binary_expression "PTR_PTR_FUN_000d0008 != (undefined *)0x0" identifier != (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    do {\n      iVar1 = strcmp(*(char **)(puVar2 + 0x44),param_1);\n      if (iVar1 == 0) {\n        return puVar2;\n      }\n      ppuVar3 = ppuVar3 + 1;\n      puVar2 = *ppuVar3;\n    } while (puVar2 != (undefined *)0x0);\n  }" { (do_statement "do {\n      iVar1 = strcmp(*(char **)(puVar2 + 0x44),param_1);\n      if (iVar1 == 0) {\n        return puVar2;\n      }\n      ppuVar3 = ppuVar3 + 1;\n      puVar2 = *ppuVar3;\n    } while (puVar2 != (undefined *)0x0);" do (compound_statement "{\n      iVar1 = strcmp(*(char **)(puVar2 + 0x44),param_1);\n      if (iVar1 == 0) {\n        return puVar2;\n      }\n      ppuVar3 = ppuVar3 + 1;\n      puVar2 = *ppuVar3;\n    }" { (expression_statement "iVar1 = strcmp(*(char **)(puVar2 + 0x44),param_1);" (assignment_expression "iVar1 = strcmp(*(char **)(puVar2 + 0x44),param_1)" identifier = (call_expression "strcmp(*(char **)(puVar2 + 0x44),param_1)" identifier (argument_list "(*(char **)(puVar2 + 0x44),param_1)" ( (pointer_expression "*(char **)(puVar2 + 0x44)" * (cast_expression "(char **)(puVar2 + 0x44)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar2 + 0x44)" ( (binary_expression "puVar2 + 0x44" identifier + number_literal) )))) , identifier )))) ;) (if_statement "if (iVar1 == 0) {\n        return puVar2;\n      }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n        return puVar2;\n      }" { (return_statement "return puVar2;" return identifier ;) })) (expression_statement "ppuVar3 = ppuVar3 + 1;" (assignment_expression "ppuVar3 = ppuVar3 + 1" identifier = (binary_expression "ppuVar3 + 1" identifier + number_literal)) ;) (expression_statement "puVar2 = *ppuVar3;" (assignment_expression "puVar2 = *ppuVar3" identifier = (pointer_expression "*ppuVar3" * identifier)) ;) }) while (parenthesized_expression "(puVar2 != (undefined *)0x0)" ( (binary_expression "puVar2 != (undefined *)0x0" identifier != (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) })) (return_statement "return puVar2;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nBackend * backend_from_name(char *name)\n\n{\n  int iVar1;\n  Backend *pBVar2;\n  undefined **ppuVar3;\n  \n  ppuVar3 = &backends;\n  pBVar2 = (Backend *)backends;\n  if (backends != (undefined *)0x0) {\n    do {\n      iVar1 = strcmp(pBVar2->name,name);\n      if (iVar1 == 0) {\n        return pBVar2;\n      }\n      ppuVar3 = ppuVar3 + 1;\n      pBVar2 = (Backend *)*ppuVar3;\n    } while (pBVar2 != (Backend *)0x0);\n  }\n  return pBVar2;\n}\n\n" comment comment (function_definition "Backend * backend_from_name(char *name)\n\n{\n  int iVar1;\n  Backend *pBVar2;\n  undefined **ppuVar3;\n  \n  ppuVar3 = &backends;\n  pBVar2 = (Backend *)backends;\n  if (backends != (undefined *)0x0) {\n    do {\n      iVar1 = strcmp(pBVar2->name,name);\n      if (iVar1 == 0) {\n        return pBVar2;\n      }\n      ppuVar3 = ppuVar3 + 1;\n      pBVar2 = (Backend *)*ppuVar3;\n    } while (pBVar2 != (Backend *)0x0);\n  }\n  return pBVar2;\n}" type_identifier (pointer_declarator "* backend_from_name(char *name)" * (function_declarator "backend_from_name(char *name)" identifier (parameter_list "(char *name)" ( (parameter_declaration "char *name" primitive_type (pointer_declarator "*name" * identifier)) )))) (compound_statement "{\n  int iVar1;\n  Backend *pBVar2;\n  undefined **ppuVar3;\n  \n  ppuVar3 = &backends;\n  pBVar2 = (Backend *)backends;\n  if (backends != (undefined *)0x0) {\n    do {\n      iVar1 = strcmp(pBVar2->name,name);\n      if (iVar1 == 0) {\n        return pBVar2;\n      }\n      ppuVar3 = ppuVar3 + 1;\n      pBVar2 = (Backend *)*ppuVar3;\n    } while (pBVar2 != (Backend *)0x0);\n  }\n  return pBVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "Backend *pBVar2;" type_identifier (pointer_declarator "*pBVar2" * identifier) ;) (declaration "undefined **ppuVar3;" type_identifier (pointer_declarator "**ppuVar3" * (pointer_declarator "*ppuVar3" * identifier)) ;) (expression_statement "ppuVar3 = &backends;" (assignment_expression "ppuVar3 = &backends" identifier = (pointer_expression "&backends" & identifier)) ;) (expression_statement "pBVar2 = (Backend *)backends;" (assignment_expression "pBVar2 = (Backend *)backends" identifier = (cast_expression "(Backend *)backends" ( (type_descriptor "Backend *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (if_statement "if (backends != (undefined *)0x0) {\n    do {\n      iVar1 = strcmp(pBVar2->name,name);\n      if (iVar1 == 0) {\n        return pBVar2;\n      }\n      ppuVar3 = ppuVar3 + 1;\n      pBVar2 = (Backend *)*ppuVar3;\n    } while (pBVar2 != (Backend *)0x0);\n  }" if (parenthesized_expression "(backends != (undefined *)0x0)" ( (binary_expression "backends != (undefined *)0x0" identifier != (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    do {\n      iVar1 = strcmp(pBVar2->name,name);\n      if (iVar1 == 0) {\n        return pBVar2;\n      }\n      ppuVar3 = ppuVar3 + 1;\n      pBVar2 = (Backend *)*ppuVar3;\n    } while (pBVar2 != (Backend *)0x0);\n  }" { (do_statement "do {\n      iVar1 = strcmp(pBVar2->name,name);\n      if (iVar1 == 0) {\n        return pBVar2;\n      }\n      ppuVar3 = ppuVar3 + 1;\n      pBVar2 = (Backend *)*ppuVar3;\n    } while (pBVar2 != (Backend *)0x0);" do (compound_statement "{\n      iVar1 = strcmp(pBVar2->name,name);\n      if (iVar1 == 0) {\n        return pBVar2;\n      }\n      ppuVar3 = ppuVar3 + 1;\n      pBVar2 = (Backend *)*ppuVar3;\n    }" { (expression_statement "iVar1 = strcmp(pBVar2->name,name);" (assignment_expression "iVar1 = strcmp(pBVar2->name,name)" identifier = (call_expression "strcmp(pBVar2->name,name)" identifier (argument_list "(pBVar2->name,name)" ( (field_expression "pBVar2->name" identifier -> field_identifier) , identifier )))) ;) (if_statement "if (iVar1 == 0) {\n        return pBVar2;\n      }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n        return pBVar2;\n      }" { (return_statement "return pBVar2;" return identifier ;) })) (expression_statement "ppuVar3 = ppuVar3 + 1;" (assignment_expression "ppuVar3 = ppuVar3 + 1" identifier = (binary_expression "ppuVar3 + 1" identifier + number_literal)) ;) (expression_statement "pBVar2 = (Backend *)*ppuVar3;" (assignment_expression "pBVar2 = (Backend *)*ppuVar3" identifier = (cast_expression "(Backend *)*ppuVar3" ( (type_descriptor "Backend *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*ppuVar3" * identifier))) ;) }) while (parenthesized_expression "(pBVar2 != (Backend *)0x0)" ( (binary_expression "pBVar2 != (Backend *)0x0" identifier != (cast_expression "(Backend *)0x0" ( (type_descriptor "Backend *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) })) (return_statement "return pBVar2;" return identifier ;) })))
(translation_unit "undefined * FUN_0002a0f0(char *param_1)\n\n{\n  int iVar1;\n  undefined *puVar2;\n  undefined **ppuVar3;\n  \n  ppuVar3 = &PTR_PTR_FUN_000d0008;\n  puVar2 = PTR_PTR_FUN_000d0008;\n  if (PTR_PTR_FUN_000d0008 != (undefined *)0x0) {\n    do {\n      iVar1 = strcmp(*(char **)(puVar2 + 0x44),param_1);\n      if (iVar1 == 0) {\n        return puVar2;\n      }\n      ppuVar3 = ppuVar3 + 1;\n      puVar2 = *ppuVar3;\n    } while (puVar2 != (undefined *)0x0);\n  }\n  return puVar2;\n}\n\n" (function_definition "undefined * FUN_0002a0f0(char *param_1)\n\n{\n  int iVar1;\n  undefined *puVar2;\n  undefined **ppuVar3;\n  \n  ppuVar3 = &PTR_PTR_FUN_000d0008;\n  puVar2 = PTR_PTR_FUN_000d0008;\n  if (PTR_PTR_FUN_000d0008 != (undefined *)0x0) {\n    do {\n      iVar1 = strcmp(*(char **)(puVar2 + 0x44),param_1);\n      if (iVar1 == 0) {\n        return puVar2;\n      }\n      ppuVar3 = ppuVar3 + 1;\n      puVar2 = *ppuVar3;\n    } while (puVar2 != (undefined *)0x0);\n  }\n  return puVar2;\n}" type_identifier (pointer_declarator "* FUN_0002a0f0(char *param_1)" * (function_declarator "FUN_0002a0f0(char *param_1)" identifier (parameter_list "(char *param_1)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) )))) (compound_statement "{\n  int iVar1;\n  undefined *puVar2;\n  undefined **ppuVar3;\n  \n  ppuVar3 = &PTR_PTR_FUN_000d0008;\n  puVar2 = PTR_PTR_FUN_000d0008;\n  if (PTR_PTR_FUN_000d0008 != (undefined *)0x0) {\n    do {\n      iVar1 = strcmp(*(char **)(puVar2 + 0x44),param_1);\n      if (iVar1 == 0) {\n        return puVar2;\n      }\n      ppuVar3 = ppuVar3 + 1;\n      puVar2 = *ppuVar3;\n    } while (puVar2 != (undefined *)0x0);\n  }\n  return puVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined **ppuVar3;" type_identifier (pointer_declarator "**ppuVar3" * (pointer_declarator "*ppuVar3" * identifier)) ;) (expression_statement "ppuVar3 = &PTR_PTR_FUN_000d0008;" (assignment_expression "ppuVar3 = &PTR_PTR_FUN_000d0008" identifier = (pointer_expression "&PTR_PTR_FUN_000d0008" & identifier)) ;) (expression_statement "puVar2 = PTR_PTR_FUN_000d0008;" (assignment_expression "puVar2 = PTR_PTR_FUN_000d0008" identifier = identifier) ;) (if_statement "if (PTR_PTR_FUN_000d0008 != (undefined *)0x0) {\n    do {\n      iVar1 = strcmp(*(char **)(puVar2 + 0x44),param_1);\n      if (iVar1 == 0) {\n        return puVar2;\n      }\n      ppuVar3 = ppuVar3 + 1;\n      puVar2 = *ppuVar3;\n    } while (puVar2 != (undefined *)0x0);\n  }" if (parenthesized_expression "(PTR_PTR_FUN_000d0008 != (undefined *)0x0)" ( (binary_expression "PTR_PTR_FUN_000d0008 != (undefined *)0x0" identifier != (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    do {\n      iVar1 = strcmp(*(char **)(puVar2 + 0x44),param_1);\n      if (iVar1 == 0) {\n        return puVar2;\n      }\n      ppuVar3 = ppuVar3 + 1;\n      puVar2 = *ppuVar3;\n    } while (puVar2 != (undefined *)0x0);\n  }" { (do_statement "do {\n      iVar1 = strcmp(*(char **)(puVar2 + 0x44),param_1);\n      if (iVar1 == 0) {\n        return puVar2;\n      }\n      ppuVar3 = ppuVar3 + 1;\n      puVar2 = *ppuVar3;\n    } while (puVar2 != (undefined *)0x0);" do (compound_statement "{\n      iVar1 = strcmp(*(char **)(puVar2 + 0x44),param_1);\n      if (iVar1 == 0) {\n        return puVar2;\n      }\n      ppuVar3 = ppuVar3 + 1;\n      puVar2 = *ppuVar3;\n    }" { (expression_statement "iVar1 = strcmp(*(char **)(puVar2 + 0x44),param_1);" (assignment_expression "iVar1 = strcmp(*(char **)(puVar2 + 0x44),param_1)" identifier = (call_expression "strcmp(*(char **)(puVar2 + 0x44),param_1)" identifier (argument_list "(*(char **)(puVar2 + 0x44),param_1)" ( (pointer_expression "*(char **)(puVar2 + 0x44)" * (cast_expression "(char **)(puVar2 + 0x44)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar2 + 0x44)" ( (binary_expression "puVar2 + 0x44" identifier + number_literal) )))) , identifier )))) ;) (if_statement "if (iVar1 == 0) {\n        return puVar2;\n      }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n        return puVar2;\n      }" { (return_statement "return puVar2;" return identifier ;) })) (expression_statement "ppuVar3 = ppuVar3 + 1;" (assignment_expression "ppuVar3 = ppuVar3 + 1" identifier = (binary_expression "ppuVar3 + 1" identifier + number_literal)) ;) (expression_statement "puVar2 = *ppuVar3;" (assignment_expression "puVar2 = *ppuVar3" identifier = (pointer_expression "*ppuVar3" * identifier)) ;) }) while (parenthesized_expression "(puVar2 != (undefined *)0x0)" ( (binary_expression "puVar2 != (undefined *)0x0" identifier != (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) })) (return_statement "return puVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) )))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * (pointer_declarator * IDENT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (expression_statement (assignment_expression IDENT = 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 ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) ;) })) (return_statement return IDENT ;) })))
(function_definition "undefined * FUN_0002a0f0(char *param_1)\n\n{\n  int iVar1;\n  undefined *puVar2;\n  undefined **ppuVar3;\n  \n  ppuVar3 = &PTR_PTR_FUN_000d0008;\n  puVar2 = PTR_PTR_FUN_000d0008;\n  if (PTR_PTR_FUN_000d0008 != (undefined *)0x0) {\n    do {\n      iVar1 = strcmp(*(char **)(puVar2 + 0x44),param_1);\n      if (iVar1 == 0) {\n        return puVar2;\n      }\n      ppuVar3 = ppuVar3 + 1;\n      puVar2 = *ppuVar3;\n    } while (puVar2 != (undefined *)0x0);\n  }\n  return puVar2;\n}" (type_identifier "undefined") (pointer_declarator "* FUN_0002a0f0(char *param_1)" (* "*") (function_declarator "FUN_0002a0f0(char *param_1)" (identifier "FUN_0002a0f0") (parameter_list "(char *param_1)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")")))) (compound_statement "{\n  int iVar1;\n  undefined *puVar2;\n  undefined **ppuVar3;\n  \n  ppuVar3 = &PTR_PTR_FUN_000d0008;\n  puVar2 = PTR_PTR_FUN_000d0008;\n  if (PTR_PTR_FUN_000d0008 != (undefined *)0x0) {\n    do {\n      iVar1 = strcmp(*(char **)(puVar2 + 0x44),param_1);\n      if (iVar1 == 0) {\n        return puVar2;\n      }\n      ppuVar3 = ppuVar3 + 1;\n      puVar2 = *ppuVar3;\n    } while (puVar2 != (undefined *)0x0);\n  }\n  return puVar2;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined *puVar2;" (type_identifier "undefined") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "undefined **ppuVar3;" (type_identifier "undefined") (pointer_declarator "**ppuVar3" (* "*") (pointer_declarator "*ppuVar3" (* "*") (identifier "ppuVar3"))) (; ";")) (expression_statement "ppuVar3 = &PTR_PTR_FUN_000d0008;" (assignment_expression "ppuVar3 = &PTR_PTR_FUN_000d0008" (identifier "ppuVar3") (= "=") (pointer_expression "&PTR_PTR_FUN_000d0008" (& "&") (identifier "PTR_PTR_FUN_000d0008"))) (; ";")) (expression_statement "puVar2 = PTR_PTR_FUN_000d0008;" (assignment_expression "puVar2 = PTR_PTR_FUN_000d0008" (identifier "puVar2") (= "=") (identifier "PTR_PTR_FUN_000d0008")) (; ";")) (if_statement "if (PTR_PTR_FUN_000d0008 != (undefined *)0x0) {\n    do {\n      iVar1 = strcmp(*(char **)(puVar2 + 0x44),param_1);\n      if (iVar1 == 0) {\n        return puVar2;\n      }\n      ppuVar3 = ppuVar3 + 1;\n      puVar2 = *ppuVar3;\n    } while (puVar2 != (undefined *)0x0);\n  }" (if "if") (parenthesized_expression "(PTR_PTR_FUN_000d0008 != (undefined *)0x0)" (( "(") (binary_expression "PTR_PTR_FUN_000d0008 != (undefined *)0x0" (identifier "PTR_PTR_FUN_000d0008") (!= "!=") (cast_expression "(undefined *)0x0" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    do {\n      iVar1 = strcmp(*(char **)(puVar2 + 0x44),param_1);\n      if (iVar1 == 0) {\n        return puVar2;\n      }\n      ppuVar3 = ppuVar3 + 1;\n      puVar2 = *ppuVar3;\n    } while (puVar2 != (undefined *)0x0);\n  }" ({ "{") (do_statement "do {\n      iVar1 = strcmp(*(char **)(puVar2 + 0x44),param_1);\n      if (iVar1 == 0) {\n        return puVar2;\n      }\n      ppuVar3 = ppuVar3 + 1;\n      puVar2 = *ppuVar3;\n    } while (puVar2 != (undefined *)0x0);" (do "do") (compound_statement "{\n      iVar1 = strcmp(*(char **)(puVar2 + 0x44),param_1);\n      if (iVar1 == 0) {\n        return puVar2;\n      }\n      ppuVar3 = ppuVar3 + 1;\n      puVar2 = *ppuVar3;\n    }" ({ "{") (expression_statement "iVar1 = strcmp(*(char **)(puVar2 + 0x44),param_1);" (assignment_expression "iVar1 = strcmp(*(char **)(puVar2 + 0x44),param_1)" (identifier "iVar1") (= "=") (call_expression "strcmp(*(char **)(puVar2 + 0x44),param_1)" (identifier "strcmp") (argument_list "(*(char **)(puVar2 + 0x44),param_1)" (( "(") (pointer_expression "*(char **)(puVar2 + 0x44)" (* "*") (cast_expression "(char **)(puVar2 + 0x44)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar2 + 0x44)" (( "(") (binary_expression "puVar2 + 0x44" (identifier "puVar2") (+ "+") (number_literal "0x44")) () ")")))) (, ",") (identifier "param_1") () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n        return puVar2;\n      }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        return puVar2;\n      }" ({ "{") (return_statement "return puVar2;" (return "return") (identifier "puVar2") (; ";")) (} "}"))) (expression_statement "ppuVar3 = ppuVar3 + 1;" (assignment_expression "ppuVar3 = ppuVar3 + 1" (identifier "ppuVar3") (= "=") (binary_expression "ppuVar3 + 1" (identifier "ppuVar3") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "puVar2 = *ppuVar3;" (assignment_expression "puVar2 = *ppuVar3" (identifier "puVar2") (= "=") (pointer_expression "*ppuVar3" (* "*") (identifier "ppuVar3"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(puVar2 != (undefined *)0x0)" (( "(") (binary_expression "puVar2 != (undefined *)0x0" (identifier "puVar2") (!= "!=") (cast_expression "(undefined *)0x0" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (; ";")) (} "}"))) (return_statement "return puVar2;" (return "return") (identifier "puVar2") (; ";")) (} "}")))

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

type_1 * function_1(char *name)

{
  int var_3;
  type_1 *var_5;
  type_2 **var_4;
  
  var_4 = &var_1;
  var_5 = (type_1 *)var_1;
  if (var_1 != (type_2 *)0x0) {
    do {
      var_3 = var_2(var_5->name,name);
      if (var_3 == 0) {
        return var_5;
      }
      var_4 = var_4 + 1;
      var_5 = (type_1 *)*var_4;
    } while (var_5 != (type_1 *)0x0);
  }
  return var_5;
}


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

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

undefined * MASKED(char *param_1)

{
  int iVar1;
  undefined *puVar2;
  undefined **ppuVar3;
  
  ppuVar3 = &PTR_PTR_FUN_000d0008;
  puVar2 = PTR_PTR_FUN_000d0008;
  if (PTR_PTR_FUN_000d0008 != (undefined *)0x0) {
    do {
      iVar1 = strcmp(*(char **)(puVar2 + 0x44),param_1);
      if (iVar1 == 0) {
        return puVar2;
      }
      ppuVar3 = ppuVar3 + 1;
      puVar2 = *ppuVar3;
    } while (puVar2 != (undefined *)0x0);
  }
  return puVar2;
}

