
char * names_countrycode(uint countrycode)

{
  uint uVar1;
  int *piVar2;
  uint extraout_ECX;
  uint uVar3;
  uint extraout_EDX;
  uint uVar4;
  int iVar5;
  int unaff_EDI;
  
  __x86_get_pc_thunk_di();
  iVar5 = 0x1c;
  uVar1 = countrycode;
  uVar3 = extraout_ECX;
  uVar4 = extraout_EDX;
  do {
    if ((uVar4 & uVar1) != 0) {
      uVar1 = uVar1 ^ uVar3;
    }
    uVar4 = uVar4 >> 1;
    uVar3 = uVar3 >> 1;
    iVar5 = iVar5 + -1;
  } while (iVar5 != 0);
  piVar2 = *(int **)(unaff_EDI + 0x1d7bf + (uVar1 & 0x1ff) * 4);
  if (piVar2 == (int *)0x0) {
    piVar2 = (int *)0x0;
  }
  else {
    do {
      if (countrycode == piVar2[1]) {
        return (char *)piVar2[2];
      }
      piVar2 = (int *)*piVar2;
    } while (piVar2 != (int *)0x0);
  }
  return (char *)piVar2;
}



int * FUN_00022310(uint param_1)

{
  uint uVar1;
  int *piVar2;
  uint extraout_ECX;
  uint uVar3;
  uint extraout_EDX;
  uint uVar4;
  int iVar5;
  int unaff_EDI;
  
  FUN_0002348b();
  iVar5 = 0x1c;
  uVar1 = param_1;
  uVar3 = extraout_ECX;
  uVar4 = extraout_EDX;
  do {
    if ((uVar4 & uVar1) != 0) {
      uVar1 = uVar1 ^ uVar3;
    }
    uVar4 = uVar4 >> 1;
    uVar3 = uVar3 >> 1;
    iVar5 = iVar5 + -1;
  } while (iVar5 != 0);
  piVar2 = *(int **)(unaff_EDI + 0x1d7bf + (uVar1 & 0x1ff) * 4);
  if (piVar2 == (int *)0x0) {
    piVar2 = (int *)0x0;
  }
  else {
    do {
      if (param_1 == piVar2[1]) {
        return (int *)piVar2[2];
      }
      piVar2 = (int *)*piVar2;
    } while (piVar2 != (int *)0x0);
  }
  return piVar2;
}


PUSH EBP
MOV ECX,0x10000000
MOV EDX,0x80000000
PUSH EDI
CALL 0x0002348b
ADD EDI,0x18cdf
PUSH ESI
PUSH EBX
MOV ESI,dword ptr [ESP + 0x14]
MOV EBX,0x1c
MOV EAX,ESI
LEA ESI,[ESI]
MOV EBP,EAX
XOR EBP,ECX
TEST EDX,EAX
CMOVNZ EAX,EBP
SHR EDX,0x1
SHR ECX,0x1
SUB EBX,0x1
JNZ 0x00022338
AND EAX,0x1ff
MOV EAX,dword ptr [EDI + EAX*0x4 + 0x4ae0]
TEST EAX,EAX
JNZ 0x00022366
JMP 0x0002236e
MOV EAX,dword ptr [EAX]
TEST EAX,EAX
JZ 0x0002236e
CMP ESI,dword ptr [EAX + 0x4]
JNZ 0x00022360
MOV EAX,dword ptr [EAX + 0x8]
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "int * FUN_00022310(uint param_1)\n\n{\n  uint uVar1;\n  int *piVar2;\n  uint extraout_ECX;\n  uint uVar3;\n  uint extraout_EDX;\n  uint uVar4;\n  int iVar5;\n  int unaff_EDI;\n  \n  FUN_0002348b();\n  iVar5 = 0x1c;\n  uVar1 = param_1;\n  uVar3 = extraout_ECX;\n  uVar4 = extraout_EDX;\n  do {\n    if ((uVar4 & uVar1) != 0) {\n      uVar1 = uVar1 ^ uVar3;\n    }\n    uVar4 = uVar4 >> 1;\n    uVar3 = uVar3 >> 1;\n    iVar5 = iVar5 + -1;\n  } while (iVar5 != 0);\n  piVar2 = *(int **)(unaff_EDI + 0x1d7bf + (uVar1 & 0x1ff) * 4);\n  if (piVar2 == (int *)0x0) {\n    piVar2 = (int *)0x0;\n  }\n  else {\n    do {\n      if (param_1 == piVar2[1]) {\n        return (int *)piVar2[2];\n      }\n      piVar2 = (int *)*piVar2;\n    } while (piVar2 != (int *)0x0);\n  }\n  return piVar2;\n}\n\n" (function_definition "int * FUN_00022310(uint param_1)\n\n{\n  uint uVar1;\n  int *piVar2;\n  uint extraout_ECX;\n  uint uVar3;\n  uint extraout_EDX;\n  uint uVar4;\n  int iVar5;\n  int unaff_EDI;\n  \n  FUN_0002348b();\n  iVar5 = 0x1c;\n  uVar1 = param_1;\n  uVar3 = extraout_ECX;\n  uVar4 = extraout_EDX;\n  do {\n    if ((uVar4 & uVar1) != 0) {\n      uVar1 = uVar1 ^ uVar3;\n    }\n    uVar4 = uVar4 >> 1;\n    uVar3 = uVar3 >> 1;\n    iVar5 = iVar5 + -1;\n  } while (iVar5 != 0);\n  piVar2 = *(int **)(unaff_EDI + 0x1d7bf + (uVar1 & 0x1ff) * 4);\n  if (piVar2 == (int *)0x0) {\n    piVar2 = (int *)0x0;\n  }\n  else {\n    do {\n      if (param_1 == piVar2[1]) {\n        return (int *)piVar2[2];\n      }\n      piVar2 = (int *)*piVar2;\n    } while (piVar2 != (int *)0x0);\n  }\n  return piVar2;\n}" primitive_type (pointer_declarator "* FUN_00022310(uint param_1)" * (function_declarator "FUN_00022310(uint param_1)" identifier (parameter_list "(uint param_1)" ( (parameter_declaration "uint param_1" type_identifier identifier) )))) (compound_statement "{\n  uint uVar1;\n  int *piVar2;\n  uint extraout_ECX;\n  uint uVar3;\n  uint extraout_EDX;\n  uint uVar4;\n  int iVar5;\n  int unaff_EDI;\n  \n  FUN_0002348b();\n  iVar5 = 0x1c;\n  uVar1 = param_1;\n  uVar3 = extraout_ECX;\n  uVar4 = extraout_EDX;\n  do {\n    if ((uVar4 & uVar1) != 0) {\n      uVar1 = uVar1 ^ uVar3;\n    }\n    uVar4 = uVar4 >> 1;\n    uVar3 = uVar3 >> 1;\n    iVar5 = iVar5 + -1;\n  } while (iVar5 != 0);\n  piVar2 = *(int **)(unaff_EDI + 0x1d7bf + (uVar1 & 0x1ff) * 4);\n  if (piVar2 == (int *)0x0) {\n    piVar2 = (int *)0x0;\n  }\n  else {\n    do {\n      if (param_1 == piVar2[1]) {\n        return (int *)piVar2[2];\n      }\n      piVar2 = (int *)*piVar2;\n    } while (piVar2 != (int *)0x0);\n  }\n  return piVar2;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "uint extraout_ECX;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "uint extraout_EDX;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (expression_statement "FUN_0002348b();" (call_expression "FUN_0002348b()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar5 = 0x1c;" (assignment_expression "iVar5 = 0x1c" identifier = number_literal) ;) (expression_statement "uVar1 = param_1;" (assignment_expression "uVar1 = param_1" identifier = identifier) ;) (expression_statement "uVar3 = extraout_ECX;" (assignment_expression "uVar3 = extraout_ECX" identifier = identifier) ;) (expression_statement "uVar4 = extraout_EDX;" (assignment_expression "uVar4 = extraout_EDX" identifier = identifier) ;) (do_statement "do {\n    if ((uVar4 & uVar1) != 0) {\n      uVar1 = uVar1 ^ uVar3;\n    }\n    uVar4 = uVar4 >> 1;\n    uVar3 = uVar3 >> 1;\n    iVar5 = iVar5 + -1;\n  } while (iVar5 != 0);" do (compound_statement "{\n    if ((uVar4 & uVar1) != 0) {\n      uVar1 = uVar1 ^ uVar3;\n    }\n    uVar4 = uVar4 >> 1;\n    uVar3 = uVar3 >> 1;\n    iVar5 = iVar5 + -1;\n  }" { (if_statement "if ((uVar4 & uVar1) != 0) {\n      uVar1 = uVar1 ^ uVar3;\n    }" if (parenthesized_expression "((uVar4 & uVar1) != 0)" ( (binary_expression "(uVar4 & uVar1) != 0" (parenthesized_expression "(uVar4 & uVar1)" ( (binary_expression "uVar4 & uVar1" identifier & identifier) )) != number_literal) )) (compound_statement "{\n      uVar1 = uVar1 ^ uVar3;\n    }" { (expression_statement "uVar1 = uVar1 ^ uVar3;" (assignment_expression "uVar1 = uVar1 ^ uVar3" identifier = (binary_expression "uVar1 ^ uVar3" identifier ^ identifier)) ;) })) (expression_statement "uVar4 = uVar4 >> 1;" (assignment_expression "uVar4 = uVar4 >> 1" identifier = (binary_expression "uVar4 >> 1" identifier >> number_literal)) ;) (expression_statement "uVar3 = uVar3 >> 1;" (assignment_expression "uVar3 = uVar3 >> 1" identifier = (binary_expression "uVar3 >> 1" identifier >> number_literal)) ;) (expression_statement "iVar5 = iVar5 + -1;" (assignment_expression "iVar5 = iVar5 + -1" identifier = (binary_expression "iVar5 + -1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) ;) (expression_statement "piVar2 = *(int **)(unaff_EDI + 0x1d7bf + (uVar1 & 0x1ff) * 4);" (assignment_expression "piVar2 = *(int **)(unaff_EDI + 0x1d7bf + (uVar1 & 0x1ff) * 4)" identifier = (pointer_expression "*(int **)(unaff_EDI + 0x1d7bf + (uVar1 & 0x1ff) * 4)" * (cast_expression "(int **)(unaff_EDI + 0x1d7bf + (uVar1 & 0x1ff) * 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_EDI + 0x1d7bf + (uVar1 & 0x1ff) * 4)" ( (binary_expression "unaff_EDI + 0x1d7bf + (uVar1 & 0x1ff) * 4" (binary_expression "unaff_EDI + 0x1d7bf" identifier + number_literal) + (binary_expression "(uVar1 & 0x1ff) * 4" (parenthesized_expression "(uVar1 & 0x1ff)" ( (binary_expression "uVar1 & 0x1ff" identifier & number_literal) )) * number_literal)) ))))) ;) (if_statement "if (piVar2 == (int *)0x0) {\n    piVar2 = (int *)0x0;\n  }\n  else {\n    do {\n      if (param_1 == piVar2[1]) {\n        return (int *)piVar2[2];\n      }\n      piVar2 = (int *)*piVar2;\n    } while (piVar2 != (int *)0x0);\n  }" if (parenthesized_expression "(piVar2 == (int *)0x0)" ( (binary_expression "piVar2 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    piVar2 = (int *)0x0;\n  }" { (expression_statement "piVar2 = (int *)0x0;" (assignment_expression "piVar2 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n    do {\n      if (param_1 == piVar2[1]) {\n        return (int *)piVar2[2];\n      }\n      piVar2 = (int *)*piVar2;\n    } while (piVar2 != (int *)0x0);\n  }" else (compound_statement "{\n    do {\n      if (param_1 == piVar2[1]) {\n        return (int *)piVar2[2];\n      }\n      piVar2 = (int *)*piVar2;\n    } while (piVar2 != (int *)0x0);\n  }" { (do_statement "do {\n      if (param_1 == piVar2[1]) {\n        return (int *)piVar2[2];\n      }\n      piVar2 = (int *)*piVar2;\n    } while (piVar2 != (int *)0x0);" do (compound_statement "{\n      if (param_1 == piVar2[1]) {\n        return (int *)piVar2[2];\n      }\n      piVar2 = (int *)*piVar2;\n    }" { (if_statement "if (param_1 == piVar2[1]) {\n        return (int *)piVar2[2];\n      }" if (parenthesized_expression "(param_1 == piVar2[1])" ( (binary_expression "param_1 == piVar2[1]" identifier == (subscript_expression "piVar2[1]" identifier [ number_literal ])) )) (compound_statement "{\n        return (int *)piVar2[2];\n      }" { (return_statement "return (int *)piVar2[2];" return (cast_expression "(int *)piVar2[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar2[2]" identifier [ number_literal ])) ;) })) (expression_statement "piVar2 = (int *)*piVar2;" (assignment_expression "piVar2 = (int *)*piVar2" identifier = (cast_expression "(int *)*piVar2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar2" * identifier))) ;) }) while (parenthesized_expression "(piVar2 != (int *)0x0)" ( (binary_expression "piVar2 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) }))) (return_statement "return piVar2;" return identifier ;) })))
(translation_unit "char * names_countrycode(uint countrycode)\n\n{\n  uint uVar1;\n  int *piVar2;\n  uint extraout_ECX;\n  uint uVar3;\n  uint extraout_EDX;\n  uint uVar4;\n  int iVar5;\n  int unaff_EDI;\n  \n  __x86_get_pc_thunk_di();\n  iVar5 = 0x1c;\n  uVar1 = countrycode;\n  uVar3 = extraout_ECX;\n  uVar4 = extraout_EDX;\n  do {\n    if ((uVar4 & uVar1) != 0) {\n      uVar1 = uVar1 ^ uVar3;\n    }\n    uVar4 = uVar4 >> 1;\n    uVar3 = uVar3 >> 1;\n    iVar5 = iVar5 + -1;\n  } while (iVar5 != 0);\n  piVar2 = *(int **)(unaff_EDI + 0x1d7bf + (uVar1 & 0x1ff) * 4);\n  if (piVar2 == (int *)0x0) {\n    piVar2 = (int *)0x0;\n  }\n  else {\n    do {\n      if (countrycode == piVar2[1]) {\n        return (char *)piVar2[2];\n      }\n      piVar2 = (int *)*piVar2;\n    } while (piVar2 != (int *)0x0);\n  }\n  return (char *)piVar2;\n}\n\n" (function_definition "char * names_countrycode(uint countrycode)\n\n{\n  uint uVar1;\n  int *piVar2;\n  uint extraout_ECX;\n  uint uVar3;\n  uint extraout_EDX;\n  uint uVar4;\n  int iVar5;\n  int unaff_EDI;\n  \n  __x86_get_pc_thunk_di();\n  iVar5 = 0x1c;\n  uVar1 = countrycode;\n  uVar3 = extraout_ECX;\n  uVar4 = extraout_EDX;\n  do {\n    if ((uVar4 & uVar1) != 0) {\n      uVar1 = uVar1 ^ uVar3;\n    }\n    uVar4 = uVar4 >> 1;\n    uVar3 = uVar3 >> 1;\n    iVar5 = iVar5 + -1;\n  } while (iVar5 != 0);\n  piVar2 = *(int **)(unaff_EDI + 0x1d7bf + (uVar1 & 0x1ff) * 4);\n  if (piVar2 == (int *)0x0) {\n    piVar2 = (int *)0x0;\n  }\n  else {\n    do {\n      if (countrycode == piVar2[1]) {\n        return (char *)piVar2[2];\n      }\n      piVar2 = (int *)*piVar2;\n    } while (piVar2 != (int *)0x0);\n  }\n  return (char *)piVar2;\n}" primitive_type (pointer_declarator "* names_countrycode(uint countrycode)" * (function_declarator "names_countrycode(uint countrycode)" identifier (parameter_list "(uint countrycode)" ( (parameter_declaration "uint countrycode" type_identifier identifier) )))) (compound_statement "{\n  uint uVar1;\n  int *piVar2;\n  uint extraout_ECX;\n  uint uVar3;\n  uint extraout_EDX;\n  uint uVar4;\n  int iVar5;\n  int unaff_EDI;\n  \n  __x86_get_pc_thunk_di();\n  iVar5 = 0x1c;\n  uVar1 = countrycode;\n  uVar3 = extraout_ECX;\n  uVar4 = extraout_EDX;\n  do {\n    if ((uVar4 & uVar1) != 0) {\n      uVar1 = uVar1 ^ uVar3;\n    }\n    uVar4 = uVar4 >> 1;\n    uVar3 = uVar3 >> 1;\n    iVar5 = iVar5 + -1;\n  } while (iVar5 != 0);\n  piVar2 = *(int **)(unaff_EDI + 0x1d7bf + (uVar1 & 0x1ff) * 4);\n  if (piVar2 == (int *)0x0) {\n    piVar2 = (int *)0x0;\n  }\n  else {\n    do {\n      if (countrycode == piVar2[1]) {\n        return (char *)piVar2[2];\n      }\n      piVar2 = (int *)*piVar2;\n    } while (piVar2 != (int *)0x0);\n  }\n  return (char *)piVar2;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "uint extraout_ECX;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "uint extraout_EDX;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (expression_statement "__x86_get_pc_thunk_di();" (call_expression "__x86_get_pc_thunk_di()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar5 = 0x1c;" (assignment_expression "iVar5 = 0x1c" identifier = number_literal) ;) (expression_statement "uVar1 = countrycode;" (assignment_expression "uVar1 = countrycode" identifier = identifier) ;) (expression_statement "uVar3 = extraout_ECX;" (assignment_expression "uVar3 = extraout_ECX" identifier = identifier) ;) (expression_statement "uVar4 = extraout_EDX;" (assignment_expression "uVar4 = extraout_EDX" identifier = identifier) ;) (do_statement "do {\n    if ((uVar4 & uVar1) != 0) {\n      uVar1 = uVar1 ^ uVar3;\n    }\n    uVar4 = uVar4 >> 1;\n    uVar3 = uVar3 >> 1;\n    iVar5 = iVar5 + -1;\n  } while (iVar5 != 0);" do (compound_statement "{\n    if ((uVar4 & uVar1) != 0) {\n      uVar1 = uVar1 ^ uVar3;\n    }\n    uVar4 = uVar4 >> 1;\n    uVar3 = uVar3 >> 1;\n    iVar5 = iVar5 + -1;\n  }" { (if_statement "if ((uVar4 & uVar1) != 0) {\n      uVar1 = uVar1 ^ uVar3;\n    }" if (parenthesized_expression "((uVar4 & uVar1) != 0)" ( (binary_expression "(uVar4 & uVar1) != 0" (parenthesized_expression "(uVar4 & uVar1)" ( (binary_expression "uVar4 & uVar1" identifier & identifier) )) != number_literal) )) (compound_statement "{\n      uVar1 = uVar1 ^ uVar3;\n    }" { (expression_statement "uVar1 = uVar1 ^ uVar3;" (assignment_expression "uVar1 = uVar1 ^ uVar3" identifier = (binary_expression "uVar1 ^ uVar3" identifier ^ identifier)) ;) })) (expression_statement "uVar4 = uVar4 >> 1;" (assignment_expression "uVar4 = uVar4 >> 1" identifier = (binary_expression "uVar4 >> 1" identifier >> number_literal)) ;) (expression_statement "uVar3 = uVar3 >> 1;" (assignment_expression "uVar3 = uVar3 >> 1" identifier = (binary_expression "uVar3 >> 1" identifier >> number_literal)) ;) (expression_statement "iVar5 = iVar5 + -1;" (assignment_expression "iVar5 = iVar5 + -1" identifier = (binary_expression "iVar5 + -1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) ;) (expression_statement "piVar2 = *(int **)(unaff_EDI + 0x1d7bf + (uVar1 & 0x1ff) * 4);" (assignment_expression "piVar2 = *(int **)(unaff_EDI + 0x1d7bf + (uVar1 & 0x1ff) * 4)" identifier = (pointer_expression "*(int **)(unaff_EDI + 0x1d7bf + (uVar1 & 0x1ff) * 4)" * (cast_expression "(int **)(unaff_EDI + 0x1d7bf + (uVar1 & 0x1ff) * 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_EDI + 0x1d7bf + (uVar1 & 0x1ff) * 4)" ( (binary_expression "unaff_EDI + 0x1d7bf + (uVar1 & 0x1ff) * 4" (binary_expression "unaff_EDI + 0x1d7bf" identifier + number_literal) + (binary_expression "(uVar1 & 0x1ff) * 4" (parenthesized_expression "(uVar1 & 0x1ff)" ( (binary_expression "uVar1 & 0x1ff" identifier & number_literal) )) * number_literal)) ))))) ;) (if_statement "if (piVar2 == (int *)0x0) {\n    piVar2 = (int *)0x0;\n  }\n  else {\n    do {\n      if (countrycode == piVar2[1]) {\n        return (char *)piVar2[2];\n      }\n      piVar2 = (int *)*piVar2;\n    } while (piVar2 != (int *)0x0);\n  }" if (parenthesized_expression "(piVar2 == (int *)0x0)" ( (binary_expression "piVar2 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    piVar2 = (int *)0x0;\n  }" { (expression_statement "piVar2 = (int *)0x0;" (assignment_expression "piVar2 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n    do {\n      if (countrycode == piVar2[1]) {\n        return (char *)piVar2[2];\n      }\n      piVar2 = (int *)*piVar2;\n    } while (piVar2 != (int *)0x0);\n  }" else (compound_statement "{\n    do {\n      if (countrycode == piVar2[1]) {\n        return (char *)piVar2[2];\n      }\n      piVar2 = (int *)*piVar2;\n    } while (piVar2 != (int *)0x0);\n  }" { (do_statement "do {\n      if (countrycode == piVar2[1]) {\n        return (char *)piVar2[2];\n      }\n      piVar2 = (int *)*piVar2;\n    } while (piVar2 != (int *)0x0);" do (compound_statement "{\n      if (countrycode == piVar2[1]) {\n        return (char *)piVar2[2];\n      }\n      piVar2 = (int *)*piVar2;\n    }" { (if_statement "if (countrycode == piVar2[1]) {\n        return (char *)piVar2[2];\n      }" if (parenthesized_expression "(countrycode == piVar2[1])" ( (binary_expression "countrycode == piVar2[1]" identifier == (subscript_expression "piVar2[1]" identifier [ number_literal ])) )) (compound_statement "{\n        return (char *)piVar2[2];\n      }" { (return_statement "return (char *)piVar2[2];" return (cast_expression "(char *)piVar2[2]" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar2[2]" identifier [ number_literal ])) ;) })) (expression_statement "piVar2 = (int *)*piVar2;" (assignment_expression "piVar2 = (int *)*piVar2" identifier = (cast_expression "(int *)*piVar2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar2" * identifier))) ;) }) while (parenthesized_expression "(piVar2 != (int *)0x0)" ( (binary_expression "piVar2 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) }))) (return_statement "return (char *)piVar2;" return (cast_expression "(char *)piVar2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) ;) })))
(translation_unit "int * FUN_00022310(uint param_1)\n\n{\n  uint uVar1;\n  int *piVar2;\n  uint extraout_ECX;\n  uint uVar3;\n  uint extraout_EDX;\n  uint uVar4;\n  int iVar5;\n  int unaff_EDI;\n  \n  FUN_0002348b();\n  iVar5 = 0x1c;\n  uVar1 = param_1;\n  uVar3 = extraout_ECX;\n  uVar4 = extraout_EDX;\n  do {\n    if ((uVar4 & uVar1) != 0) {\n      uVar1 = uVar1 ^ uVar3;\n    }\n    uVar4 = uVar4 >> 1;\n    uVar3 = uVar3 >> 1;\n    iVar5 = iVar5 + -1;\n  } while (iVar5 != 0);\n  piVar2 = *(int **)(unaff_EDI + 0x1d7bf + (uVar1 & 0x1ff) * 4);\n  if (piVar2 == (int *)0x0) {\n    piVar2 = (int *)0x0;\n  }\n  else {\n    do {\n      if (param_1 == piVar2[1]) {\n        return (int *)piVar2[2];\n      }\n      piVar2 = (int *)*piVar2;\n    } while (piVar2 != (int *)0x0);\n  }\n  return piVar2;\n}\n\n" (function_definition "int * FUN_00022310(uint param_1)\n\n{\n  uint uVar1;\n  int *piVar2;\n  uint extraout_ECX;\n  uint uVar3;\n  uint extraout_EDX;\n  uint uVar4;\n  int iVar5;\n  int unaff_EDI;\n  \n  FUN_0002348b();\n  iVar5 = 0x1c;\n  uVar1 = param_1;\n  uVar3 = extraout_ECX;\n  uVar4 = extraout_EDX;\n  do {\n    if ((uVar4 & uVar1) != 0) {\n      uVar1 = uVar1 ^ uVar3;\n    }\n    uVar4 = uVar4 >> 1;\n    uVar3 = uVar3 >> 1;\n    iVar5 = iVar5 + -1;\n  } while (iVar5 != 0);\n  piVar2 = *(int **)(unaff_EDI + 0x1d7bf + (uVar1 & 0x1ff) * 4);\n  if (piVar2 == (int *)0x0) {\n    piVar2 = (int *)0x0;\n  }\n  else {\n    do {\n      if (param_1 == piVar2[1]) {\n        return (int *)piVar2[2];\n      }\n      piVar2 = (int *)*piVar2;\n    } while (piVar2 != (int *)0x0);\n  }\n  return piVar2;\n}" primitive_type (pointer_declarator "* FUN_00022310(uint param_1)" * (function_declarator "FUN_00022310(uint param_1)" identifier (parameter_list "(uint param_1)" ( (parameter_declaration "uint param_1" type_identifier identifier) )))) (compound_statement "{\n  uint uVar1;\n  int *piVar2;\n  uint extraout_ECX;\n  uint uVar3;\n  uint extraout_EDX;\n  uint uVar4;\n  int iVar5;\n  int unaff_EDI;\n  \n  FUN_0002348b();\n  iVar5 = 0x1c;\n  uVar1 = param_1;\n  uVar3 = extraout_ECX;\n  uVar4 = extraout_EDX;\n  do {\n    if ((uVar4 & uVar1) != 0) {\n      uVar1 = uVar1 ^ uVar3;\n    }\n    uVar4 = uVar4 >> 1;\n    uVar3 = uVar3 >> 1;\n    iVar5 = iVar5 + -1;\n  } while (iVar5 != 0);\n  piVar2 = *(int **)(unaff_EDI + 0x1d7bf + (uVar1 & 0x1ff) * 4);\n  if (piVar2 == (int *)0x0) {\n    piVar2 = (int *)0x0;\n  }\n  else {\n    do {\n      if (param_1 == piVar2[1]) {\n        return (int *)piVar2[2];\n      }\n      piVar2 = (int *)*piVar2;\n    } while (piVar2 != (int *)0x0);\n  }\n  return piVar2;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "uint extraout_ECX;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "uint extraout_EDX;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (expression_statement "FUN_0002348b();" (call_expression "FUN_0002348b()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar5 = 0x1c;" (assignment_expression "iVar5 = 0x1c" identifier = number_literal) ;) (expression_statement "uVar1 = param_1;" (assignment_expression "uVar1 = param_1" identifier = identifier) ;) (expression_statement "uVar3 = extraout_ECX;" (assignment_expression "uVar3 = extraout_ECX" identifier = identifier) ;) (expression_statement "uVar4 = extraout_EDX;" (assignment_expression "uVar4 = extraout_EDX" identifier = identifier) ;) (do_statement "do {\n    if ((uVar4 & uVar1) != 0) {\n      uVar1 = uVar1 ^ uVar3;\n    }\n    uVar4 = uVar4 >> 1;\n    uVar3 = uVar3 >> 1;\n    iVar5 = iVar5 + -1;\n  } while (iVar5 != 0);" do (compound_statement "{\n    if ((uVar4 & uVar1) != 0) {\n      uVar1 = uVar1 ^ uVar3;\n    }\n    uVar4 = uVar4 >> 1;\n    uVar3 = uVar3 >> 1;\n    iVar5 = iVar5 + -1;\n  }" { (if_statement "if ((uVar4 & uVar1) != 0) {\n      uVar1 = uVar1 ^ uVar3;\n    }" if (parenthesized_expression "((uVar4 & uVar1) != 0)" ( (binary_expression "(uVar4 & uVar1) != 0" (parenthesized_expression "(uVar4 & uVar1)" ( (binary_expression "uVar4 & uVar1" identifier & identifier) )) != number_literal) )) (compound_statement "{\n      uVar1 = uVar1 ^ uVar3;\n    }" { (expression_statement "uVar1 = uVar1 ^ uVar3;" (assignment_expression "uVar1 = uVar1 ^ uVar3" identifier = (binary_expression "uVar1 ^ uVar3" identifier ^ identifier)) ;) })) (expression_statement "uVar4 = uVar4 >> 1;" (assignment_expression "uVar4 = uVar4 >> 1" identifier = (binary_expression "uVar4 >> 1" identifier >> number_literal)) ;) (expression_statement "uVar3 = uVar3 >> 1;" (assignment_expression "uVar3 = uVar3 >> 1" identifier = (binary_expression "uVar3 >> 1" identifier >> number_literal)) ;) (expression_statement "iVar5 = iVar5 + -1;" (assignment_expression "iVar5 = iVar5 + -1" identifier = (binary_expression "iVar5 + -1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) ;) (expression_statement "piVar2 = *(int **)(unaff_EDI + 0x1d7bf + (uVar1 & 0x1ff) * 4);" (assignment_expression "piVar2 = *(int **)(unaff_EDI + 0x1d7bf + (uVar1 & 0x1ff) * 4)" identifier = (pointer_expression "*(int **)(unaff_EDI + 0x1d7bf + (uVar1 & 0x1ff) * 4)" * (cast_expression "(int **)(unaff_EDI + 0x1d7bf + (uVar1 & 0x1ff) * 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_EDI + 0x1d7bf + (uVar1 & 0x1ff) * 4)" ( (binary_expression "unaff_EDI + 0x1d7bf + (uVar1 & 0x1ff) * 4" (binary_expression "unaff_EDI + 0x1d7bf" identifier + number_literal) + (binary_expression "(uVar1 & 0x1ff) * 4" (parenthesized_expression "(uVar1 & 0x1ff)" ( (binary_expression "uVar1 & 0x1ff" identifier & number_literal) )) * number_literal)) ))))) ;) (if_statement "if (piVar2 == (int *)0x0) {\n    piVar2 = (int *)0x0;\n  }\n  else {\n    do {\n      if (param_1 == piVar2[1]) {\n        return (int *)piVar2[2];\n      }\n      piVar2 = (int *)*piVar2;\n    } while (piVar2 != (int *)0x0);\n  }" if (parenthesized_expression "(piVar2 == (int *)0x0)" ( (binary_expression "piVar2 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    piVar2 = (int *)0x0;\n  }" { (expression_statement "piVar2 = (int *)0x0;" (assignment_expression "piVar2 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n    do {\n      if (param_1 == piVar2[1]) {\n        return (int *)piVar2[2];\n      }\n      piVar2 = (int *)*piVar2;\n    } while (piVar2 != (int *)0x0);\n  }" else (compound_statement "{\n    do {\n      if (param_1 == piVar2[1]) {\n        return (int *)piVar2[2];\n      }\n      piVar2 = (int *)*piVar2;\n    } while (piVar2 != (int *)0x0);\n  }" { (do_statement "do {\n      if (param_1 == piVar2[1]) {\n        return (int *)piVar2[2];\n      }\n      piVar2 = (int *)*piVar2;\n    } while (piVar2 != (int *)0x0);" do (compound_statement "{\n      if (param_1 == piVar2[1]) {\n        return (int *)piVar2[2];\n      }\n      piVar2 = (int *)*piVar2;\n    }" { (if_statement "if (param_1 == piVar2[1]) {\n        return (int *)piVar2[2];\n      }" if (parenthesized_expression "(param_1 == piVar2[1])" ( (binary_expression "param_1 == piVar2[1]" identifier == (subscript_expression "piVar2[1]" identifier [ number_literal ])) )) (compound_statement "{\n        return (int *)piVar2[2];\n      }" { (return_statement "return (int *)piVar2[2];" return (cast_expression "(int *)piVar2[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar2[2]" identifier [ number_literal ])) ;) })) (expression_statement "piVar2 = (int *)*piVar2;" (assignment_expression "piVar2 = (int *)*piVar2" identifier = (cast_expression "(int *)*piVar2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar2" * identifier))) ;) }) while (parenthesized_expression "(piVar2 != (int *)0x0)" ( (binary_expression "piVar2 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) }))) (return_statement "return piVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & IDENT) )) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT ^ IDENT)) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT >> LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT >> LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) * LIT)) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) }) (else_clause else (compound_statement { (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (subscript_expression IDENT [ LIT ])) )) (compound_statement { (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) ;) }))) (return_statement return IDENT ;) })))
(function_definition "int * FUN_00022310(uint param_1)\n\n{\n  uint uVar1;\n  int *piVar2;\n  uint extraout_ECX;\n  uint uVar3;\n  uint extraout_EDX;\n  uint uVar4;\n  int iVar5;\n  int unaff_EDI;\n  \n  FUN_0002348b();\n  iVar5 = 0x1c;\n  uVar1 = param_1;\n  uVar3 = extraout_ECX;\n  uVar4 = extraout_EDX;\n  do {\n    if ((uVar4 & uVar1) != 0) {\n      uVar1 = uVar1 ^ uVar3;\n    }\n    uVar4 = uVar4 >> 1;\n    uVar3 = uVar3 >> 1;\n    iVar5 = iVar5 + -1;\n  } while (iVar5 != 0);\n  piVar2 = *(int **)(unaff_EDI + 0x1d7bf + (uVar1 & 0x1ff) * 4);\n  if (piVar2 == (int *)0x0) {\n    piVar2 = (int *)0x0;\n  }\n  else {\n    do {\n      if (param_1 == piVar2[1]) {\n        return (int *)piVar2[2];\n      }\n      piVar2 = (int *)*piVar2;\n    } while (piVar2 != (int *)0x0);\n  }\n  return piVar2;\n}" (primitive_type "int") (pointer_declarator "* FUN_00022310(uint param_1)" (* "*") (function_declarator "FUN_00022310(uint param_1)" (identifier "FUN_00022310") (parameter_list "(uint param_1)" (( "(") (parameter_declaration "uint param_1" (type_identifier "uint") (identifier "param_1")) () ")")))) (compound_statement "{\n  uint uVar1;\n  int *piVar2;\n  uint extraout_ECX;\n  uint uVar3;\n  uint extraout_EDX;\n  uint uVar4;\n  int iVar5;\n  int unaff_EDI;\n  \n  FUN_0002348b();\n  iVar5 = 0x1c;\n  uVar1 = param_1;\n  uVar3 = extraout_ECX;\n  uVar4 = extraout_EDX;\n  do {\n    if ((uVar4 & uVar1) != 0) {\n      uVar1 = uVar1 ^ uVar3;\n    }\n    uVar4 = uVar4 >> 1;\n    uVar3 = uVar3 >> 1;\n    iVar5 = iVar5 + -1;\n  } while (iVar5 != 0);\n  piVar2 = *(int **)(unaff_EDI + 0x1d7bf + (uVar1 & 0x1ff) * 4);\n  if (piVar2 == (int *)0x0) {\n    piVar2 = (int *)0x0;\n  }\n  else {\n    do {\n      if (param_1 == piVar2[1]) {\n        return (int *)piVar2[2];\n      }\n      piVar2 = (int *)*piVar2;\n    } while (piVar2 != (int *)0x0);\n  }\n  return piVar2;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "uint extraout_ECX;" (type_identifier "uint") (identifier "extraout_ECX") (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "uint extraout_EDX;" (type_identifier "uint") (identifier "extraout_EDX") (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "int unaff_EDI;" (primitive_type "int") (identifier "unaff_EDI") (; ";")) (expression_statement "FUN_0002348b();" (call_expression "FUN_0002348b()" (identifier "FUN_0002348b") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "iVar5 = 0x1c;" (assignment_expression "iVar5 = 0x1c" (identifier "iVar5") (= "=") (number_literal "0x1c")) (; ";")) (expression_statement "uVar1 = param_1;" (assignment_expression "uVar1 = param_1" (identifier "uVar1") (= "=") (identifier "param_1")) (; ";")) (expression_statement "uVar3 = extraout_ECX;" (assignment_expression "uVar3 = extraout_ECX" (identifier "uVar3") (= "=") (identifier "extraout_ECX")) (; ";")) (expression_statement "uVar4 = extraout_EDX;" (assignment_expression "uVar4 = extraout_EDX" (identifier "uVar4") (= "=") (identifier "extraout_EDX")) (; ";")) (do_statement "do {\n    if ((uVar4 & uVar1) != 0) {\n      uVar1 = uVar1 ^ uVar3;\n    }\n    uVar4 = uVar4 >> 1;\n    uVar3 = uVar3 >> 1;\n    iVar5 = iVar5 + -1;\n  } while (iVar5 != 0);" (do "do") (compound_statement "{\n    if ((uVar4 & uVar1) != 0) {\n      uVar1 = uVar1 ^ uVar3;\n    }\n    uVar4 = uVar4 >> 1;\n    uVar3 = uVar3 >> 1;\n    iVar5 = iVar5 + -1;\n  }" ({ "{") (if_statement "if ((uVar4 & uVar1) != 0) {\n      uVar1 = uVar1 ^ uVar3;\n    }" (if "if") (parenthesized_expression "((uVar4 & uVar1) != 0)" (( "(") (binary_expression "(uVar4 & uVar1) != 0" (parenthesized_expression "(uVar4 & uVar1)" (( "(") (binary_expression "uVar4 & uVar1" (identifier "uVar4") (& "&") (identifier "uVar1")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      uVar1 = uVar1 ^ uVar3;\n    }" ({ "{") (expression_statement "uVar1 = uVar1 ^ uVar3;" (assignment_expression "uVar1 = uVar1 ^ uVar3" (identifier "uVar1") (= "=") (binary_expression "uVar1 ^ uVar3" (identifier "uVar1") (^ "^") (identifier "uVar3"))) (; ";")) (} "}"))) (expression_statement "uVar4 = uVar4 >> 1;" (assignment_expression "uVar4 = uVar4 >> 1" (identifier "uVar4") (= "=") (binary_expression "uVar4 >> 1" (identifier "uVar4") (>> ">>") (number_literal "1"))) (; ";")) (expression_statement "uVar3 = uVar3 >> 1;" (assignment_expression "uVar3 = uVar3 >> 1" (identifier "uVar3") (= "=") (binary_expression "uVar3 >> 1" (identifier "uVar3") (>> ">>") (number_literal "1"))) (; ";")) (expression_statement "iVar5 = iVar5 + -1;" (assignment_expression "iVar5 = iVar5 + -1" (identifier "iVar5") (= "=") (binary_expression "iVar5 + -1" (identifier "iVar5") (+ "+") (number_literal "-1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar5 != 0)" (( "(") (binary_expression "iVar5 != 0" (identifier "iVar5") (!= "!=") (number_literal "0")) () ")")) (; ";")) (expression_statement "piVar2 = *(int **)(unaff_EDI + 0x1d7bf + (uVar1 & 0x1ff) * 4);" (assignment_expression "piVar2 = *(int **)(unaff_EDI + 0x1d7bf + (uVar1 & 0x1ff) * 4)" (identifier "piVar2") (= "=") (pointer_expression "*(int **)(unaff_EDI + 0x1d7bf + (uVar1 & 0x1ff) * 4)" (* "*") (cast_expression "(int **)(unaff_EDI + 0x1d7bf + (uVar1 & 0x1ff) * 4)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(unaff_EDI + 0x1d7bf + (uVar1 & 0x1ff) * 4)" (( "(") (binary_expression "unaff_EDI + 0x1d7bf + (uVar1 & 0x1ff) * 4" (binary_expression "unaff_EDI + 0x1d7bf" (identifier "unaff_EDI") (+ "+") (number_literal "0x1d7bf")) (+ "+") (binary_expression "(uVar1 & 0x1ff) * 4" (parenthesized_expression "(uVar1 & 0x1ff)" (( "(") (binary_expression "uVar1 & 0x1ff" (identifier "uVar1") (& "&") (number_literal "0x1ff")) () ")")) (* "*") (number_literal "4"))) () ")"))))) (; ";")) (if_statement "if (piVar2 == (int *)0x0) {\n    piVar2 = (int *)0x0;\n  }\n  else {\n    do {\n      if (param_1 == piVar2[1]) {\n        return (int *)piVar2[2];\n      }\n      piVar2 = (int *)*piVar2;\n    } while (piVar2 != (int *)0x0);\n  }" (if "if") (parenthesized_expression "(piVar2 == (int *)0x0)" (( "(") (binary_expression "piVar2 == (int *)0x0" (identifier "piVar2") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    piVar2 = (int *)0x0;\n  }" ({ "{") (expression_statement "piVar2 = (int *)0x0;" (assignment_expression "piVar2 = (int *)0x0" (identifier "piVar2") (= "=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (} "}")) (else_clause "else {\n    do {\n      if (param_1 == piVar2[1]) {\n        return (int *)piVar2[2];\n      }\n      piVar2 = (int *)*piVar2;\n    } while (piVar2 != (int *)0x0);\n  }" (else "else") (compound_statement "{\n    do {\n      if (param_1 == piVar2[1]) {\n        return (int *)piVar2[2];\n      }\n      piVar2 = (int *)*piVar2;\n    } while (piVar2 != (int *)0x0);\n  }" ({ "{") (do_statement "do {\n      if (param_1 == piVar2[1]) {\n        return (int *)piVar2[2];\n      }\n      piVar2 = (int *)*piVar2;\n    } while (piVar2 != (int *)0x0);" (do "do") (compound_statement "{\n      if (param_1 == piVar2[1]) {\n        return (int *)piVar2[2];\n      }\n      piVar2 = (int *)*piVar2;\n    }" ({ "{") (if_statement "if (param_1 == piVar2[1]) {\n        return (int *)piVar2[2];\n      }" (if "if") (parenthesized_expression "(param_1 == piVar2[1])" (( "(") (binary_expression "param_1 == piVar2[1]" (identifier "param_1") (== "==") (subscript_expression "piVar2[1]" (identifier "piVar2") ([ "[") (number_literal "1") (] "]"))) () ")")) (compound_statement "{\n        return (int *)piVar2[2];\n      }" ({ "{") (return_statement "return (int *)piVar2[2];" (return "return") (cast_expression "(int *)piVar2[2]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar2[2]" (identifier "piVar2") ([ "[") (number_literal "2") (] "]"))) (; ";")) (} "}"))) (expression_statement "piVar2 = (int *)*piVar2;" (assignment_expression "piVar2 = (int *)*piVar2" (identifier "piVar2") (= "=") (cast_expression "(int *)*piVar2" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*piVar2" (* "*") (identifier "piVar2")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(piVar2 != (int *)0x0)" (( "(") (binary_expression "piVar2 != (int *)0x0" (identifier "piVar2") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (; ";")) (} "}")))) (return_statement "return piVar2;" (return "return") (identifier "piVar2") (; ";")) (} "}")))

char * function_1(type_1 var_8)

{
  type_1 var_3;
  int *var_7;
  type_1 extraout_ECX;
  type_1 var_4;
  type_1 extraout_EDX;
  type_1 var_2;
  int var_5;
  int var_6;
  
  var_1();
  var_5 = 0x1c;
  var_3 = var_8;
  var_4 = extraout_ECX;
  var_2 = extraout_EDX;
  do {
    if ((var_2 & var_3) != 0) {
      var_3 = var_3 ^ var_4;
    }
    var_2 = var_2 >> 1;
    var_4 = var_4 >> 1;
    var_5 = var_5 + -1;
  } while (var_5 != 0);
  var_7 = *(int **)(var_6 + 0x1d7bf + (var_3 & 0x1ff) * 4);
  if (var_7 == (int *)0x0) {
    var_7 = (int *)0x0;
  }
  else {
    do {
      if (var_8 == var_7[1]) {
        return (char *)var_7[2];
      }
      var_7 = (int *)*var_7;
    } while (var_7 != (int *)0x0);
  }
  return (char *)var_7;
}


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

int * MASKED(uint param_1)

{
  uint uVar1;
  int *piVar2;
  uint extraout_ECX;
  uint uVar3;
  uint extraout_EDX;
  uint uVar4;
  int iVar5;
  int unaff_EDI;
  
  FUN_0002348b();
  iVar5 = 0x1c;
  uVar1 = param_1;
  uVar3 = extraout_ECX;
  uVar4 = extraout_EDX;
  do {
    if ((uVar4 & uVar1) != 0) {
      uVar1 = uVar1 ^ uVar3;
    }
    uVar4 = uVar4 >> 1;
    uVar3 = uVar3 >> 1;
    iVar5 = iVar5 + -1;
  } while (iVar5 != 0);
  piVar2 = *(int **)(unaff_EDI + 0x1d7bf + (uVar1 & 0x1ff) * 4);
  if (piVar2 == (int *)0x0) {
    piVar2 = (int *)0x0;
  }
  else {
    do {
      if (param_1 == piVar2[1]) {
        return (int *)piVar2[2];
      }
      piVar2 = (int *)*piVar2;
    } while (piVar2 != (int *)0x0);
  }
  return piVar2;
}

