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

uid_t * getuidbyname(char *user)

{
  char cVar1;
  userid *puVar2;
  int iVar3;
  passwd *ppVar4;
  size_t sVar5;
  userid *puVar6;
  
  if (user_alist != (userid *)0x0) {
    cVar1 = *user;
    puVar6 = user_alist;
    do {
      if (*(char *)&puVar6[1].id == cVar1) {
        iVar3 = strcmp((char *)(puVar6 + 1),user);
        if (iVar3 == 0) {
          return (uid_t *)puVar6;
        }
      }
      puVar6 = puVar6->next;
    } while (puVar6 != (userid *)0x0);
  }
  if (nouser_alist != (userid *)0x0) {
    cVar1 = *user;
    puVar6 = nouser_alist;
    do {
      if (*(char *)&puVar6[1].id == cVar1) {
        iVar3 = strcmp((char *)(puVar6 + 1),user);
        if (iVar3 == 0) {
          return (uid_t *)0x0;
        }
      }
      puVar6 = puVar6->next;
    } while (puVar6 != (userid *)0x0);
  }
  ppVar4 = getpwnam(user);
  sVar5 = strlen(user);
  puVar6 = (userid *)xmalloc(sVar5 + 0xc & 0xfffffffc);
  strcpy((char *)(puVar6 + 1),user);
  if (ppVar4 != (passwd *)0x0) {
    puVar6->id = (anon_union_4_2_947300cf_for_id)ppVar4->pw_uid;
    puVar2 = puVar6;
    puVar6->next = user_alist;
    user_alist = puVar2;
    return (uid_t *)puVar6;
  }
  puVar6->next = nouser_alist;
  nouser_alist = puVar6;
  return (uid_t *)0x0;
}



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

__uid_t * FUN_0001f0c0(char *param_1)

{
  char cVar1;
  __uid_t *p_Var2;
  int iVar3;
  passwd *ppVar4;
  size_t sVar5;
  __uid_t *p_Var6;
  __uid_t _Var7;
  
  if (DAT_0003c37c != (__uid_t *)0x0) {
    cVar1 = *param_1;
    p_Var6 = DAT_0003c37c;
    do {
      if ((char)p_Var6[2] == cVar1) {
        iVar3 = strcmp((char *)(p_Var6 + 2),param_1);
        if (iVar3 == 0) {
          return p_Var6;
        }
      }
      p_Var6 = (__uid_t *)p_Var6[1];
    } while (p_Var6 != (__uid_t *)0x0);
  }
  if (DAT_0003c378 != (__uid_t *)0x0) {
    cVar1 = *param_1;
    _Var7 = (__uid_t)DAT_0003c378;
    do {
      if (*(char *)(_Var7 + 8) == cVar1) {
        iVar3 = strcmp((char *)(_Var7 + 8),param_1);
        if (iVar3 == 0) {
          return (__uid_t *)0x0;
        }
      }
      _Var7 = *(__uid_t *)(_Var7 + 4);
    } while (_Var7 != 0);
  }
  ppVar4 = getpwnam(param_1);
  sVar5 = strlen(param_1);
  p_Var6 = (__uid_t *)FUN_00023f30(sVar5 + 0xc & 0xfffffffc);
  strcpy((char *)(p_Var6 + 2),param_1);
  if (ppVar4 != (passwd *)0x0) {
    *p_Var6 = ppVar4->pw_uid;
    p_Var2 = p_Var6;
    p_Var6[1] = (__uid_t)DAT_0003c37c;
    DAT_0003c37c = p_Var2;
    return p_Var6;
  }
  p_Var6[1] = (__uid_t)DAT_0003c378;
  DAT_0003c378 = p_Var6;
  return (__uid_t *)0x0;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00014250
ADD EBX,0x1bf37
SUB ESP,0xc
MOV EDI,dword ptr [ESP + 0x20]
MOV ESI,dword ptr [EBX + 0x137c]
TEST ESI,ESI
JZ 0x0001f118
MOVZX EBP,byte ptr [EDI]
JMP 0x0001f0ef
MOV ESI,dword ptr [ESI + 0x4]
TEST ESI,ESI
JZ 0x0001f118
MOV EAX,EBP
CMP byte ptr [ESI + 0x8],AL
JNZ 0x0001f0e8
SUB ESP,0x8
LEA EAX,[ESI + 0x8]
PUSH EDI
PUSH EAX
CALL 0x000120a0
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x0001f0e8
ADD ESP,0xc
MOV EAX,ESI
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV ESI,dword ptr [EBX + 0x1378]
TEST ESI,ESI
JZ 0x0001f160
MOVZX EBP,byte ptr [EDI]
JMP 0x0001f137
MOV ESI,dword ptr [ESI + 0x4]
TEST ESI,ESI
JZ 0x0001f160
MOV EAX,EBP
CMP byte ptr [ESI + 0x8],AL
JNZ 0x0001f130
SUB ESP,0x8
LEA EAX,[ESI + 0x8]
PUSH EDI
PUSH EAX
CALL 0x000120a0
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x0001f130
ADD ESP,0xc
XOR ESI,ESI
POP EBX
MOV EAX,ESI
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0xc
PUSH EDI
CALL 0x00012060
MOV dword ptr [ESP],EDI
MOV ESI,EAX
CALL 0x00012420
ADD EAX,0xc
AND EAX,0xfffffffc
MOV dword ptr [ESP],EAX
CALL 0x00023f30
MOV EBP,EAX
POP EAX
POP EDX
PUSH EDI
LEA EAX,[EBP + 0x8]
PUSH EAX
CALL 0x000122f0
ADD ESP,0x10
TEST ESI,ESI
JZ 0x0001f1c0
MOV EAX,dword ptr [ESI + 0x8]
MOV ESI,EBP
MOV dword ptr [EBP],EAX
MOV EAX,dword ptr [EBX + 0x137c]
MOV dword ptr [EBX + 0x137c],EBP
MOV dword ptr [EBP + 0x4],EAX
ADD ESP,0xc
MOV EAX,ESI
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EAX,dword ptr [EBX + 0x1378]
MOV dword ptr [EBX + 0x1378],EBP
MOV dword ptr [EBP + 0x4],EAX
ADD ESP,0xc
MOV EAX,ESI
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\n__uid_t * FUN_0001f0c0(char *param_1)\n\n{\n  char cVar1;\n  __uid_t *p_Var2;\n  int iVar3;\n  passwd *ppVar4;\n  size_t sVar5;\n  __uid_t *p_Var6;\n  __uid_t _Var7;\n  \n  if (DAT_0003c37c != (__uid_t *)0x0) {\n    cVar1 = *param_1;\n    p_Var6 = DAT_0003c37c;\n    do {\n      if ((char)p_Var6[2] == cVar1) {\n        iVar3 = strcmp((char *)(p_Var6 + 2),param_1);\n        if (iVar3 == 0) {\n          return p_Var6;\n        }\n      }\n      p_Var6 = (__uid_t *)p_Var6[1];\n    } while (p_Var6 != (__uid_t *)0x0);\n  }\n  if (DAT_0003c378 != (__uid_t *)0x0) {\n    cVar1 = *param_1;\n    _Var7 = (__uid_t)DAT_0003c378;\n    do {\n      if (*(char *)(_Var7 + 8) == cVar1) {\n        iVar3 = strcmp((char *)(_Var7 + 8),param_1);\n        if (iVar3 == 0) {\n          return (__uid_t *)0x0;\n        }\n      }\n      _Var7 = *(__uid_t *)(_Var7 + 4);\n    } while (_Var7 != 0);\n  }\n  ppVar4 = getpwnam(param_1);\n  sVar5 = strlen(param_1);\n  p_Var6 = (__uid_t *)FUN_00023f30(sVar5 + 0xc & 0xfffffffc);\n  strcpy((char *)(p_Var6 + 2),param_1);\n  if (ppVar4 != (passwd *)0x0) {\n    *p_Var6 = ppVar4->pw_uid;\n    p_Var2 = p_Var6;\n    p_Var6[1] = (__uid_t)DAT_0003c37c;\n    DAT_0003c37c = p_Var2;\n    return p_Var6;\n  }\n  p_Var6[1] = (__uid_t)DAT_0003c378;\n  DAT_0003c378 = p_Var6;\n  return (__uid_t *)0x0;\n}\n\n" comment (function_definition "__uid_t * FUN_0001f0c0(char *param_1)\n\n{\n  char cVar1;\n  __uid_t *p_Var2;\n  int iVar3;\n  passwd *ppVar4;\n  size_t sVar5;\n  __uid_t *p_Var6;\n  __uid_t _Var7;\n  \n  if (DAT_0003c37c != (__uid_t *)0x0) {\n    cVar1 = *param_1;\n    p_Var6 = DAT_0003c37c;\n    do {\n      if ((char)p_Var6[2] == cVar1) {\n        iVar3 = strcmp((char *)(p_Var6 + 2),param_1);\n        if (iVar3 == 0) {\n          return p_Var6;\n        }\n      }\n      p_Var6 = (__uid_t *)p_Var6[1];\n    } while (p_Var6 != (__uid_t *)0x0);\n  }\n  if (DAT_0003c378 != (__uid_t *)0x0) {\n    cVar1 = *param_1;\n    _Var7 = (__uid_t)DAT_0003c378;\n    do {\n      if (*(char *)(_Var7 + 8) == cVar1) {\n        iVar3 = strcmp((char *)(_Var7 + 8),param_1);\n        if (iVar3 == 0) {\n          return (__uid_t *)0x0;\n        }\n      }\n      _Var7 = *(__uid_t *)(_Var7 + 4);\n    } while (_Var7 != 0);\n  }\n  ppVar4 = getpwnam(param_1);\n  sVar5 = strlen(param_1);\n  p_Var6 = (__uid_t *)FUN_00023f30(sVar5 + 0xc & 0xfffffffc);\n  strcpy((char *)(p_Var6 + 2),param_1);\n  if (ppVar4 != (passwd *)0x0) {\n    *p_Var6 = ppVar4->pw_uid;\n    p_Var2 = p_Var6;\n    p_Var6[1] = (__uid_t)DAT_0003c37c;\n    DAT_0003c37c = p_Var2;\n    return p_Var6;\n  }\n  p_Var6[1] = (__uid_t)DAT_0003c378;\n  DAT_0003c378 = p_Var6;\n  return (__uid_t *)0x0;\n}" type_identifier (pointer_declarator "* FUN_0001f0c0(char *param_1)" * (function_declarator "FUN_0001f0c0(char *param_1)" identifier (parameter_list "(char *param_1)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) )))) (compound_statement "{\n  char cVar1;\n  __uid_t *p_Var2;\n  int iVar3;\n  passwd *ppVar4;\n  size_t sVar5;\n  __uid_t *p_Var6;\n  __uid_t _Var7;\n  \n  if (DAT_0003c37c != (__uid_t *)0x0) {\n    cVar1 = *param_1;\n    p_Var6 = DAT_0003c37c;\n    do {\n      if ((char)p_Var6[2] == cVar1) {\n        iVar3 = strcmp((char *)(p_Var6 + 2),param_1);\n        if (iVar3 == 0) {\n          return p_Var6;\n        }\n      }\n      p_Var6 = (__uid_t *)p_Var6[1];\n    } while (p_Var6 != (__uid_t *)0x0);\n  }\n  if (DAT_0003c378 != (__uid_t *)0x0) {\n    cVar1 = *param_1;\n    _Var7 = (__uid_t)DAT_0003c378;\n    do {\n      if (*(char *)(_Var7 + 8) == cVar1) {\n        iVar3 = strcmp((char *)(_Var7 + 8),param_1);\n        if (iVar3 == 0) {\n          return (__uid_t *)0x0;\n        }\n      }\n      _Var7 = *(__uid_t *)(_Var7 + 4);\n    } while (_Var7 != 0);\n  }\n  ppVar4 = getpwnam(param_1);\n  sVar5 = strlen(param_1);\n  p_Var6 = (__uid_t *)FUN_00023f30(sVar5 + 0xc & 0xfffffffc);\n  strcpy((char *)(p_Var6 + 2),param_1);\n  if (ppVar4 != (passwd *)0x0) {\n    *p_Var6 = ppVar4->pw_uid;\n    p_Var2 = p_Var6;\n    p_Var6[1] = (__uid_t)DAT_0003c37c;\n    DAT_0003c37c = p_Var2;\n    return p_Var6;\n  }\n  p_Var6[1] = (__uid_t)DAT_0003c378;\n  DAT_0003c378 = p_Var6;\n  return (__uid_t *)0x0;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "__uid_t *p_Var2;" type_identifier (pointer_declarator "*p_Var2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "passwd *ppVar4;" type_identifier (pointer_declarator "*ppVar4" * identifier) ;) (declaration "size_t sVar5;" primitive_type identifier ;) (declaration "__uid_t *p_Var6;" type_identifier (pointer_declarator "*p_Var6" * identifier) ;) (declaration "__uid_t _Var7;" type_identifier identifier ;) (if_statement "if (DAT_0003c37c != (__uid_t *)0x0) {\n    cVar1 = *param_1;\n    p_Var6 = DAT_0003c37c;\n    do {\n      if ((char)p_Var6[2] == cVar1) {\n        iVar3 = strcmp((char *)(p_Var6 + 2),param_1);\n        if (iVar3 == 0) {\n          return p_Var6;\n        }\n      }\n      p_Var6 = (__uid_t *)p_Var6[1];\n    } while (p_Var6 != (__uid_t *)0x0);\n  }" if (parenthesized_expression "(DAT_0003c37c != (__uid_t *)0x0)" ( (binary_expression "DAT_0003c37c != (__uid_t *)0x0" identifier != (cast_expression "(__uid_t *)0x0" ( (type_descriptor "__uid_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    cVar1 = *param_1;\n    p_Var6 = DAT_0003c37c;\n    do {\n      if ((char)p_Var6[2] == cVar1) {\n        iVar3 = strcmp((char *)(p_Var6 + 2),param_1);\n        if (iVar3 == 0) {\n          return p_Var6;\n        }\n      }\n      p_Var6 = (__uid_t *)p_Var6[1];\n    } while (p_Var6 != (__uid_t *)0x0);\n  }" { (expression_statement "cVar1 = *param_1;" (assignment_expression "cVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "p_Var6 = DAT_0003c37c;" (assignment_expression "p_Var6 = DAT_0003c37c" identifier = identifier) ;) (do_statement "do {\n      if ((char)p_Var6[2] == cVar1) {\n        iVar3 = strcmp((char *)(p_Var6 + 2),param_1);\n        if (iVar3 == 0) {\n          return p_Var6;\n        }\n      }\n      p_Var6 = (__uid_t *)p_Var6[1];\n    } while (p_Var6 != (__uid_t *)0x0);" do (compound_statement "{\n      if ((char)p_Var6[2] == cVar1) {\n        iVar3 = strcmp((char *)(p_Var6 + 2),param_1);\n        if (iVar3 == 0) {\n          return p_Var6;\n        }\n      }\n      p_Var6 = (__uid_t *)p_Var6[1];\n    }" { (if_statement "if ((char)p_Var6[2] == cVar1) {\n        iVar3 = strcmp((char *)(p_Var6 + 2),param_1);\n        if (iVar3 == 0) {\n          return p_Var6;\n        }\n      }" if (parenthesized_expression "((char)p_Var6[2] == cVar1)" ( (binary_expression "(char)p_Var6[2] == cVar1" (cast_expression "(char)p_Var6[2]" ( (type_descriptor "char" primitive_type) ) (subscript_expression "p_Var6[2]" identifier [ number_literal ])) == identifier) )) (compound_statement "{\n        iVar3 = strcmp((char *)(p_Var6 + 2),param_1);\n        if (iVar3 == 0) {\n          return p_Var6;\n        }\n      }" { (expression_statement "iVar3 = strcmp((char *)(p_Var6 + 2),param_1);" (assignment_expression "iVar3 = strcmp((char *)(p_Var6 + 2),param_1)" identifier = (call_expression "strcmp((char *)(p_Var6 + 2),param_1)" identifier (argument_list "((char *)(p_Var6 + 2),param_1)" ( (cast_expression "(char *)(p_Var6 + 2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(p_Var6 + 2)" ( (binary_expression "p_Var6 + 2" identifier + number_literal) ))) , identifier )))) ;) (if_statement "if (iVar3 == 0) {\n          return p_Var6;\n        }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n          return p_Var6;\n        }" { (return_statement "return p_Var6;" return identifier ;) })) })) (expression_statement "p_Var6 = (__uid_t *)p_Var6[1];" (assignment_expression "p_Var6 = (__uid_t *)p_Var6[1]" identifier = (cast_expression "(__uid_t *)p_Var6[1]" ( (type_descriptor "__uid_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "p_Var6[1]" identifier [ number_literal ]))) ;) }) while (parenthesized_expression "(p_Var6 != (__uid_t *)0x0)" ( (binary_expression "p_Var6 != (__uid_t *)0x0" identifier != (cast_expression "(__uid_t *)0x0" ( (type_descriptor "__uid_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) })) (if_statement "if (DAT_0003c378 != (__uid_t *)0x0) {\n    cVar1 = *param_1;\n    _Var7 = (__uid_t)DAT_0003c378;\n    do {\n      if (*(char *)(_Var7 + 8) == cVar1) {\n        iVar3 = strcmp((char *)(_Var7 + 8),param_1);\n        if (iVar3 == 0) {\n          return (__uid_t *)0x0;\n        }\n      }\n      _Var7 = *(__uid_t *)(_Var7 + 4);\n    } while (_Var7 != 0);\n  }" if (parenthesized_expression "(DAT_0003c378 != (__uid_t *)0x0)" ( (binary_expression "DAT_0003c378 != (__uid_t *)0x0" identifier != (cast_expression "(__uid_t *)0x0" ( (type_descriptor "__uid_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    cVar1 = *param_1;\n    _Var7 = (__uid_t)DAT_0003c378;\n    do {\n      if (*(char *)(_Var7 + 8) == cVar1) {\n        iVar3 = strcmp((char *)(_Var7 + 8),param_1);\n        if (iVar3 == 0) {\n          return (__uid_t *)0x0;\n        }\n      }\n      _Var7 = *(__uid_t *)(_Var7 + 4);\n    } while (_Var7 != 0);\n  }" { (expression_statement "cVar1 = *param_1;" (assignment_expression "cVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "_Var7 = (__uid_t)DAT_0003c378;" (assignment_expression "_Var7 = (__uid_t)DAT_0003c378" identifier = (cast_expression "(__uid_t)DAT_0003c378" ( (type_descriptor "__uid_t" type_identifier) ) identifier)) ;) (do_statement "do {\n      if (*(char *)(_Var7 + 8) == cVar1) {\n        iVar3 = strcmp((char *)(_Var7 + 8),param_1);\n        if (iVar3 == 0) {\n          return (__uid_t *)0x0;\n        }\n      }\n      _Var7 = *(__uid_t *)(_Var7 + 4);\n    } while (_Var7 != 0);" do (compound_statement "{\n      if (*(char *)(_Var7 + 8) == cVar1) {\n        iVar3 = strcmp((char *)(_Var7 + 8),param_1);\n        if (iVar3 == 0) {\n          return (__uid_t *)0x0;\n        }\n      }\n      _Var7 = *(__uid_t *)(_Var7 + 4);\n    }" { (if_statement "if (*(char *)(_Var7 + 8) == cVar1) {\n        iVar3 = strcmp((char *)(_Var7 + 8),param_1);\n        if (iVar3 == 0) {\n          return (__uid_t *)0x0;\n        }\n      }" if (parenthesized_expression "(*(char *)(_Var7 + 8) == cVar1)" ( (binary_expression "*(char *)(_Var7 + 8) == cVar1" (pointer_expression "*(char *)(_Var7 + 8)" * (cast_expression "(char *)(_Var7 + 8)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(_Var7 + 8)" ( (binary_expression "_Var7 + 8" identifier + number_literal) )))) == identifier) )) (compound_statement "{\n        iVar3 = strcmp((char *)(_Var7 + 8),param_1);\n        if (iVar3 == 0) {\n          return (__uid_t *)0x0;\n        }\n      }" { (expression_statement "iVar3 = strcmp((char *)(_Var7 + 8),param_1);" (assignment_expression "iVar3 = strcmp((char *)(_Var7 + 8),param_1)" identifier = (call_expression "strcmp((char *)(_Var7 + 8),param_1)" identifier (argument_list "((char *)(_Var7 + 8),param_1)" ( (cast_expression "(char *)(_Var7 + 8)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(_Var7 + 8)" ( (binary_expression "_Var7 + 8" identifier + number_literal) ))) , identifier )))) ;) (if_statement "if (iVar3 == 0) {\n          return (__uid_t *)0x0;\n        }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n          return (__uid_t *)0x0;\n        }" { (return_statement "return (__uid_t *)0x0;" return (cast_expression "(__uid_t *)0x0" ( (type_descriptor "__uid_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) })) (expression_statement "_Var7 = *(__uid_t *)(_Var7 + 4);" (assignment_expression "_Var7 = *(__uid_t *)(_Var7 + 4)" identifier = (pointer_expression "*(__uid_t *)(_Var7 + 4)" * (cast_expression "(__uid_t *)(_Var7 + 4)" ( (type_descriptor "__uid_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(_Var7 + 4)" ( (binary_expression "_Var7 + 4" identifier + number_literal) ))))) ;) }) while (parenthesized_expression "(_Var7 != 0)" ( (binary_expression "_Var7 != 0" identifier != number_literal) )) ;) })) (expression_statement "ppVar4 = getpwnam(param_1);" (assignment_expression "ppVar4 = getpwnam(param_1)" identifier = (call_expression "getpwnam(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "sVar5 = strlen(param_1);" (assignment_expression "sVar5 = strlen(param_1)" identifier = (call_expression "strlen(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "p_Var6 = (__uid_t *)FUN_00023f30(sVar5 + 0xc & 0xfffffffc);" (assignment_expression "p_Var6 = (__uid_t *)FUN_00023f30(sVar5 + 0xc & 0xfffffffc)" identifier = (cast_expression "(__uid_t *)FUN_00023f30(sVar5 + 0xc & 0xfffffffc)" ( (type_descriptor "__uid_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00023f30(sVar5 + 0xc & 0xfffffffc)" identifier (argument_list "(sVar5 + 0xc & 0xfffffffc)" ( (binary_expression "sVar5 + 0xc & 0xfffffffc" (binary_expression "sVar5 + 0xc" identifier + number_literal) & number_literal) ))))) ;) (expression_statement "strcpy((char *)(p_Var6 + 2),param_1);" (call_expression "strcpy((char *)(p_Var6 + 2),param_1)" identifier (argument_list "((char *)(p_Var6 + 2),param_1)" ( (cast_expression "(char *)(p_Var6 + 2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(p_Var6 + 2)" ( (binary_expression "p_Var6 + 2" identifier + number_literal) ))) , identifier ))) ;) (if_statement "if (ppVar4 != (passwd *)0x0) {\n    *p_Var6 = ppVar4->pw_uid;\n    p_Var2 = p_Var6;\n    p_Var6[1] = (__uid_t)DAT_0003c37c;\n    DAT_0003c37c = p_Var2;\n    return p_Var6;\n  }" if (parenthesized_expression "(ppVar4 != (passwd *)0x0)" ( (binary_expression "ppVar4 != (passwd *)0x0" identifier != (cast_expression "(passwd *)0x0" ( (type_descriptor "passwd *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    *p_Var6 = ppVar4->pw_uid;\n    p_Var2 = p_Var6;\n    p_Var6[1] = (__uid_t)DAT_0003c37c;\n    DAT_0003c37c = p_Var2;\n    return p_Var6;\n  }" { (expression_statement "*p_Var6 = ppVar4->pw_uid;" (assignment_expression "*p_Var6 = ppVar4->pw_uid" (pointer_expression "*p_Var6" * identifier) = (field_expression "ppVar4->pw_uid" identifier -> field_identifier)) ;) (expression_statement "p_Var2 = p_Var6;" (assignment_expression "p_Var2 = p_Var6" identifier = identifier) ;) (expression_statement "p_Var6[1] = (__uid_t)DAT_0003c37c;" (assignment_expression "p_Var6[1] = (__uid_t)DAT_0003c37c" (subscript_expression "p_Var6[1]" identifier [ number_literal ]) = (cast_expression "(__uid_t)DAT_0003c37c" ( (type_descriptor "__uid_t" type_identifier) ) identifier)) ;) (expression_statement "DAT_0003c37c = p_Var2;" (assignment_expression "DAT_0003c37c = p_Var2" identifier = identifier) ;) (return_statement "return p_Var6;" return identifier ;) })) (expression_statement "p_Var6[1] = (__uid_t)DAT_0003c378;" (assignment_expression "p_Var6[1] = (__uid_t)DAT_0003c378" (subscript_expression "p_Var6[1]" identifier [ number_literal ]) = (cast_expression "(__uid_t)DAT_0003c378" ( (type_descriptor "__uid_t" type_identifier) ) identifier)) ;) (expression_statement "DAT_0003c378 = p_Var6;" (assignment_expression "DAT_0003c378 = p_Var6" identifier = identifier) ;) (return_statement "return (__uid_t *)0x0;" return (cast_expression "(__uid_t *)0x0" ( (type_descriptor "__uid_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nuid_t * getuidbyname(char *user)\n\n{\n  char cVar1;\n  userid *puVar2;\n  int iVar3;\n  passwd *ppVar4;\n  size_t sVar5;\n  userid *puVar6;\n  \n  if (user_alist != (userid *)0x0) {\n    cVar1 = *user;\n    puVar6 = user_alist;\n    do {\n      if (*(char *)&puVar6[1].id == cVar1) {\n        iVar3 = strcmp((char *)(puVar6 + 1),user);\n        if (iVar3 == 0) {\n          return (uid_t *)puVar6;\n        }\n      }\n      puVar6 = puVar6->next;\n    } while (puVar6 != (userid *)0x0);\n  }\n  if (nouser_alist != (userid *)0x0) {\n    cVar1 = *user;\n    puVar6 = nouser_alist;\n    do {\n      if (*(char *)&puVar6[1].id == cVar1) {\n        iVar3 = strcmp((char *)(puVar6 + 1),user);\n        if (iVar3 == 0) {\n          return (uid_t *)0x0;\n        }\n      }\n      puVar6 = puVar6->next;\n    } while (puVar6 != (userid *)0x0);\n  }\n  ppVar4 = getpwnam(user);\n  sVar5 = strlen(user);\n  puVar6 = (userid *)xmalloc(sVar5 + 0xc & 0xfffffffc);\n  strcpy((char *)(puVar6 + 1),user);\n  if (ppVar4 != (passwd *)0x0) {\n    puVar6->id = (anon_union_4_2_947300cf_for_id)ppVar4->pw_uid;\n    puVar2 = puVar6;\n    puVar6->next = user_alist;\n    user_alist = puVar2;\n    return (uid_t *)puVar6;\n  }\n  puVar6->next = nouser_alist;\n  nouser_alist = puVar6;\n  return (uid_t *)0x0;\n}\n\n" comment comment (function_definition "uid_t * getuidbyname(char *user)\n\n{\n  char cVar1;\n  userid *puVar2;\n  int iVar3;\n  passwd *ppVar4;\n  size_t sVar5;\n  userid *puVar6;\n  \n  if (user_alist != (userid *)0x0) {\n    cVar1 = *user;\n    puVar6 = user_alist;\n    do {\n      if (*(char *)&puVar6[1].id == cVar1) {\n        iVar3 = strcmp((char *)(puVar6 + 1),user);\n        if (iVar3 == 0) {\n          return (uid_t *)puVar6;\n        }\n      }\n      puVar6 = puVar6->next;\n    } while (puVar6 != (userid *)0x0);\n  }\n  if (nouser_alist != (userid *)0x0) {\n    cVar1 = *user;\n    puVar6 = nouser_alist;\n    do {\n      if (*(char *)&puVar6[1].id == cVar1) {\n        iVar3 = strcmp((char *)(puVar6 + 1),user);\n        if (iVar3 == 0) {\n          return (uid_t *)0x0;\n        }\n      }\n      puVar6 = puVar6->next;\n    } while (puVar6 != (userid *)0x0);\n  }\n  ppVar4 = getpwnam(user);\n  sVar5 = strlen(user);\n  puVar6 = (userid *)xmalloc(sVar5 + 0xc & 0xfffffffc);\n  strcpy((char *)(puVar6 + 1),user);\n  if (ppVar4 != (passwd *)0x0) {\n    puVar6->id = (anon_union_4_2_947300cf_for_id)ppVar4->pw_uid;\n    puVar2 = puVar6;\n    puVar6->next = user_alist;\n    user_alist = puVar2;\n    return (uid_t *)puVar6;\n  }\n  puVar6->next = nouser_alist;\n  nouser_alist = puVar6;\n  return (uid_t *)0x0;\n}" type_identifier (pointer_declarator "* getuidbyname(char *user)" * (function_declarator "getuidbyname(char *user)" identifier (parameter_list "(char *user)" ( (parameter_declaration "char *user" primitive_type (pointer_declarator "*user" * identifier)) )))) (compound_statement "{\n  char cVar1;\n  userid *puVar2;\n  int iVar3;\n  passwd *ppVar4;\n  size_t sVar5;\n  userid *puVar6;\n  \n  if (user_alist != (userid *)0x0) {\n    cVar1 = *user;\n    puVar6 = user_alist;\n    do {\n      if (*(char *)&puVar6[1].id == cVar1) {\n        iVar3 = strcmp((char *)(puVar6 + 1),user);\n        if (iVar3 == 0) {\n          return (uid_t *)puVar6;\n        }\n      }\n      puVar6 = puVar6->next;\n    } while (puVar6 != (userid *)0x0);\n  }\n  if (nouser_alist != (userid *)0x0) {\n    cVar1 = *user;\n    puVar6 = nouser_alist;\n    do {\n      if (*(char *)&puVar6[1].id == cVar1) {\n        iVar3 = strcmp((char *)(puVar6 + 1),user);\n        if (iVar3 == 0) {\n          return (uid_t *)0x0;\n        }\n      }\n      puVar6 = puVar6->next;\n    } while (puVar6 != (userid *)0x0);\n  }\n  ppVar4 = getpwnam(user);\n  sVar5 = strlen(user);\n  puVar6 = (userid *)xmalloc(sVar5 + 0xc & 0xfffffffc);\n  strcpy((char *)(puVar6 + 1),user);\n  if (ppVar4 != (passwd *)0x0) {\n    puVar6->id = (anon_union_4_2_947300cf_for_id)ppVar4->pw_uid;\n    puVar2 = puVar6;\n    puVar6->next = user_alist;\n    user_alist = puVar2;\n    return (uid_t *)puVar6;\n  }\n  puVar6->next = nouser_alist;\n  nouser_alist = puVar6;\n  return (uid_t *)0x0;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "userid *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "passwd *ppVar4;" type_identifier (pointer_declarator "*ppVar4" * identifier) ;) (declaration "size_t sVar5;" primitive_type identifier ;) (declaration "userid *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (if_statement "if (user_alist != (userid *)0x0) {\n    cVar1 = *user;\n    puVar6 = user_alist;\n    do {\n      if (*(char *)&puVar6[1].id == cVar1) {\n        iVar3 = strcmp((char *)(puVar6 + 1),user);\n        if (iVar3 == 0) {\n          return (uid_t *)puVar6;\n        }\n      }\n      puVar6 = puVar6->next;\n    } while (puVar6 != (userid *)0x0);\n  }" if (parenthesized_expression "(user_alist != (userid *)0x0)" ( (binary_expression "user_alist != (userid *)0x0" identifier != (cast_expression "(userid *)0x0" ( (type_descriptor "userid *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    cVar1 = *user;\n    puVar6 = user_alist;\n    do {\n      if (*(char *)&puVar6[1].id == cVar1) {\n        iVar3 = strcmp((char *)(puVar6 + 1),user);\n        if (iVar3 == 0) {\n          return (uid_t *)puVar6;\n        }\n      }\n      puVar6 = puVar6->next;\n    } while (puVar6 != (userid *)0x0);\n  }" { (expression_statement "cVar1 = *user;" (assignment_expression "cVar1 = *user" identifier = (pointer_expression "*user" * identifier)) ;) (expression_statement "puVar6 = user_alist;" (assignment_expression "puVar6 = user_alist" identifier = identifier) ;) (do_statement "do {\n      if (*(char *)&puVar6[1].id == cVar1) {\n        iVar3 = strcmp((char *)(puVar6 + 1),user);\n        if (iVar3 == 0) {\n          return (uid_t *)puVar6;\n        }\n      }\n      puVar6 = puVar6->next;\n    } while (puVar6 != (userid *)0x0);" do (compound_statement "{\n      if (*(char *)&puVar6[1].id == cVar1) {\n        iVar3 = strcmp((char *)(puVar6 + 1),user);\n        if (iVar3 == 0) {\n          return (uid_t *)puVar6;\n        }\n      }\n      puVar6 = puVar6->next;\n    }" { (if_statement "if (*(char *)&puVar6[1].id == cVar1) {\n        iVar3 = strcmp((char *)(puVar6 + 1),user);\n        if (iVar3 == 0) {\n          return (uid_t *)puVar6;\n        }\n      }" if (parenthesized_expression "(*(char *)&puVar6[1].id == cVar1)" ( (binary_expression "*(char *)&puVar6[1].id == cVar1" (pointer_expression "*(char *)&puVar6[1].id" * (cast_expression "(char *)&puVar6[1].id" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&puVar6[1].id" & (field_expression "puVar6[1].id" (subscript_expression "puVar6[1]" identifier [ number_literal ]) . field_identifier)))) == identifier) )) (compound_statement "{\n        iVar3 = strcmp((char *)(puVar6 + 1),user);\n        if (iVar3 == 0) {\n          return (uid_t *)puVar6;\n        }\n      }" { (expression_statement "iVar3 = strcmp((char *)(puVar6 + 1),user);" (assignment_expression "iVar3 = strcmp((char *)(puVar6 + 1),user)" identifier = (call_expression "strcmp((char *)(puVar6 + 1),user)" identifier (argument_list "((char *)(puVar6 + 1),user)" ( (cast_expression "(char *)(puVar6 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar6 + 1)" ( (binary_expression "puVar6 + 1" identifier + number_literal) ))) , identifier )))) ;) (if_statement "if (iVar3 == 0) {\n          return (uid_t *)puVar6;\n        }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n          return (uid_t *)puVar6;\n        }" { (return_statement "return (uid_t *)puVar6;" return (cast_expression "(uid_t *)puVar6" ( (type_descriptor "uid_t *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) ;) })) })) (expression_statement "puVar6 = puVar6->next;" (assignment_expression "puVar6 = puVar6->next" identifier = (field_expression "puVar6->next" identifier -> field_identifier)) ;) }) while (parenthesized_expression "(puVar6 != (userid *)0x0)" ( (binary_expression "puVar6 != (userid *)0x0" identifier != (cast_expression "(userid *)0x0" ( (type_descriptor "userid *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) })) (if_statement "if (nouser_alist != (userid *)0x0) {\n    cVar1 = *user;\n    puVar6 = nouser_alist;\n    do {\n      if (*(char *)&puVar6[1].id == cVar1) {\n        iVar3 = strcmp((char *)(puVar6 + 1),user);\n        if (iVar3 == 0) {\n          return (uid_t *)0x0;\n        }\n      }\n      puVar6 = puVar6->next;\n    } while (puVar6 != (userid *)0x0);\n  }" if (parenthesized_expression "(nouser_alist != (userid *)0x0)" ( (binary_expression "nouser_alist != (userid *)0x0" identifier != (cast_expression "(userid *)0x0" ( (type_descriptor "userid *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    cVar1 = *user;\n    puVar6 = nouser_alist;\n    do {\n      if (*(char *)&puVar6[1].id == cVar1) {\n        iVar3 = strcmp((char *)(puVar6 + 1),user);\n        if (iVar3 == 0) {\n          return (uid_t *)0x0;\n        }\n      }\n      puVar6 = puVar6->next;\n    } while (puVar6 != (userid *)0x0);\n  }" { (expression_statement "cVar1 = *user;" (assignment_expression "cVar1 = *user" identifier = (pointer_expression "*user" * identifier)) ;) (expression_statement "puVar6 = nouser_alist;" (assignment_expression "puVar6 = nouser_alist" identifier = identifier) ;) (do_statement "do {\n      if (*(char *)&puVar6[1].id == cVar1) {\n        iVar3 = strcmp((char *)(puVar6 + 1),user);\n        if (iVar3 == 0) {\n          return (uid_t *)0x0;\n        }\n      }\n      puVar6 = puVar6->next;\n    } while (puVar6 != (userid *)0x0);" do (compound_statement "{\n      if (*(char *)&puVar6[1].id == cVar1) {\n        iVar3 = strcmp((char *)(puVar6 + 1),user);\n        if (iVar3 == 0) {\n          return (uid_t *)0x0;\n        }\n      }\n      puVar6 = puVar6->next;\n    }" { (if_statement "if (*(char *)&puVar6[1].id == cVar1) {\n        iVar3 = strcmp((char *)(puVar6 + 1),user);\n        if (iVar3 == 0) {\n          return (uid_t *)0x0;\n        }\n      }" if (parenthesized_expression "(*(char *)&puVar6[1].id == cVar1)" ( (binary_expression "*(char *)&puVar6[1].id == cVar1" (pointer_expression "*(char *)&puVar6[1].id" * (cast_expression "(char *)&puVar6[1].id" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&puVar6[1].id" & (field_expression "puVar6[1].id" (subscript_expression "puVar6[1]" identifier [ number_literal ]) . field_identifier)))) == identifier) )) (compound_statement "{\n        iVar3 = strcmp((char *)(puVar6 + 1),user);\n        if (iVar3 == 0) {\n          return (uid_t *)0x0;\n        }\n      }" { (expression_statement "iVar3 = strcmp((char *)(puVar6 + 1),user);" (assignment_expression "iVar3 = strcmp((char *)(puVar6 + 1),user)" identifier = (call_expression "strcmp((char *)(puVar6 + 1),user)" identifier (argument_list "((char *)(puVar6 + 1),user)" ( (cast_expression "(char *)(puVar6 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar6 + 1)" ( (binary_expression "puVar6 + 1" identifier + number_literal) ))) , identifier )))) ;) (if_statement "if (iVar3 == 0) {\n          return (uid_t *)0x0;\n        }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n          return (uid_t *)0x0;\n        }" { (return_statement "return (uid_t *)0x0;" return (cast_expression "(uid_t *)0x0" ( (type_descriptor "uid_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) })) (expression_statement "puVar6 = puVar6->next;" (assignment_expression "puVar6 = puVar6->next" identifier = (field_expression "puVar6->next" identifier -> field_identifier)) ;) }) while (parenthesized_expression "(puVar6 != (userid *)0x0)" ( (binary_expression "puVar6 != (userid *)0x0" identifier != (cast_expression "(userid *)0x0" ( (type_descriptor "userid *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) })) (expression_statement "ppVar4 = getpwnam(user);" (assignment_expression "ppVar4 = getpwnam(user)" identifier = (call_expression "getpwnam(user)" identifier (argument_list "(user)" ( identifier )))) ;) (expression_statement "sVar5 = strlen(user);" (assignment_expression "sVar5 = strlen(user)" identifier = (call_expression "strlen(user)" identifier (argument_list "(user)" ( identifier )))) ;) (expression_statement "puVar6 = (userid *)xmalloc(sVar5 + 0xc & 0xfffffffc);" (assignment_expression "puVar6 = (userid *)xmalloc(sVar5 + 0xc & 0xfffffffc)" identifier = (cast_expression "(userid *)xmalloc(sVar5 + 0xc & 0xfffffffc)" ( (type_descriptor "userid *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(sVar5 + 0xc & 0xfffffffc)" identifier (argument_list "(sVar5 + 0xc & 0xfffffffc)" ( (binary_expression "sVar5 + 0xc & 0xfffffffc" (binary_expression "sVar5 + 0xc" identifier + number_literal) & number_literal) ))))) ;) (expression_statement "strcpy((char *)(puVar6 + 1),user);" (call_expression "strcpy((char *)(puVar6 + 1),user)" identifier (argument_list "((char *)(puVar6 + 1),user)" ( (cast_expression "(char *)(puVar6 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar6 + 1)" ( (binary_expression "puVar6 + 1" identifier + number_literal) ))) , identifier ))) ;) (if_statement "if (ppVar4 != (passwd *)0x0) {\n    puVar6->id = (anon_union_4_2_947300cf_for_id)ppVar4->pw_uid;\n    puVar2 = puVar6;\n    puVar6->next = user_alist;\n    user_alist = puVar2;\n    return (uid_t *)puVar6;\n  }" if (parenthesized_expression "(ppVar4 != (passwd *)0x0)" ( (binary_expression "ppVar4 != (passwd *)0x0" identifier != (cast_expression "(passwd *)0x0" ( (type_descriptor "passwd *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    puVar6->id = (anon_union_4_2_947300cf_for_id)ppVar4->pw_uid;\n    puVar2 = puVar6;\n    puVar6->next = user_alist;\n    user_alist = puVar2;\n    return (uid_t *)puVar6;\n  }" { (expression_statement "puVar6->id = (anon_union_4_2_947300cf_for_id)ppVar4->pw_uid;" (assignment_expression "puVar6->id = (anon_union_4_2_947300cf_for_id)ppVar4->pw_uid" (field_expression "puVar6->id" identifier -> field_identifier) = (cast_expression "(anon_union_4_2_947300cf_for_id)ppVar4->pw_uid" ( (type_descriptor "anon_union_4_2_947300cf_for_id" type_identifier) ) (field_expression "ppVar4->pw_uid" identifier -> field_identifier))) ;) (expression_statement "puVar2 = puVar6;" (assignment_expression "puVar2 = puVar6" identifier = identifier) ;) (expression_statement "puVar6->next = user_alist;" (assignment_expression "puVar6->next = user_alist" (field_expression "puVar6->next" identifier -> field_identifier) = identifier) ;) (expression_statement "user_alist = puVar2;" (assignment_expression "user_alist = puVar2" identifier = identifier) ;) (return_statement "return (uid_t *)puVar6;" return (cast_expression "(uid_t *)puVar6" ( (type_descriptor "uid_t *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) ;) })) (expression_statement "puVar6->next = nouser_alist;" (assignment_expression "puVar6->next = nouser_alist" (field_expression "puVar6->next" identifier -> field_identifier) = identifier) ;) (expression_statement "nouser_alist = puVar6;" (assignment_expression "nouser_alist = puVar6" identifier = identifier) ;) (return_statement "return (uid_t *)0x0;" return (cast_expression "(uid_t *)0x0" ( (type_descriptor "uid_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))
(translation_unit "__uid_t * FUN_0001f0c0(char *param_1)\n\n{\n  char cVar1;\n  __uid_t *p_Var2;\n  int iVar3;\n  passwd *ppVar4;\n  size_t sVar5;\n  __uid_t *p_Var6;\n  __uid_t _Var7;\n  \n  if (DAT_0003c37c != (__uid_t *)0x0) {\n    cVar1 = *param_1;\n    p_Var6 = DAT_0003c37c;\n    do {\n      if ((char)p_Var6[2] == cVar1) {\n        iVar3 = strcmp((char *)(p_Var6 + 2),param_1);\n        if (iVar3 == 0) {\n          return p_Var6;\n        }\n      }\n      p_Var6 = (__uid_t *)p_Var6[1];\n    } while (p_Var6 != (__uid_t *)0x0);\n  }\n  if (DAT_0003c378 != (__uid_t *)0x0) {\n    cVar1 = *param_1;\n    _Var7 = (__uid_t)DAT_0003c378;\n    do {\n      if (*(char *)(_Var7 + 8) == cVar1) {\n        iVar3 = strcmp((char *)(_Var7 + 8),param_1);\n        if (iVar3 == 0) {\n          return (__uid_t *)0x0;\n        }\n      }\n      _Var7 = *(__uid_t *)(_Var7 + 4);\n    } while (_Var7 != 0);\n  }\n  ppVar4 = getpwnam(param_1);\n  sVar5 = strlen(param_1);\n  p_Var6 = (__uid_t *)FUN_00023f30(sVar5 + 0xc & 0xfffffffc);\n  strcpy((char *)(p_Var6 + 2),param_1);\n  if (ppVar4 != (passwd *)0x0) {\n    *p_Var6 = ppVar4->pw_uid;\n    p_Var2 = p_Var6;\n    p_Var6[1] = (__uid_t)DAT_0003c37c;\n    DAT_0003c37c = p_Var2;\n    return p_Var6;\n  }\n  p_Var6[1] = (__uid_t)DAT_0003c378;\n  DAT_0003c378 = p_Var6;\n  return (__uid_t *)0x0;\n}\n\n" (function_definition "__uid_t * FUN_0001f0c0(char *param_1)\n\n{\n  char cVar1;\n  __uid_t *p_Var2;\n  int iVar3;\n  passwd *ppVar4;\n  size_t sVar5;\n  __uid_t *p_Var6;\n  __uid_t _Var7;\n  \n  if (DAT_0003c37c != (__uid_t *)0x0) {\n    cVar1 = *param_1;\n    p_Var6 = DAT_0003c37c;\n    do {\n      if ((char)p_Var6[2] == cVar1) {\n        iVar3 = strcmp((char *)(p_Var6 + 2),param_1);\n        if (iVar3 == 0) {\n          return p_Var6;\n        }\n      }\n      p_Var6 = (__uid_t *)p_Var6[1];\n    } while (p_Var6 != (__uid_t *)0x0);\n  }\n  if (DAT_0003c378 != (__uid_t *)0x0) {\n    cVar1 = *param_1;\n    _Var7 = (__uid_t)DAT_0003c378;\n    do {\n      if (*(char *)(_Var7 + 8) == cVar1) {\n        iVar3 = strcmp((char *)(_Var7 + 8),param_1);\n        if (iVar3 == 0) {\n          return (__uid_t *)0x0;\n        }\n      }\n      _Var7 = *(__uid_t *)(_Var7 + 4);\n    } while (_Var7 != 0);\n  }\n  ppVar4 = getpwnam(param_1);\n  sVar5 = strlen(param_1);\n  p_Var6 = (__uid_t *)FUN_00023f30(sVar5 + 0xc & 0xfffffffc);\n  strcpy((char *)(p_Var6 + 2),param_1);\n  if (ppVar4 != (passwd *)0x0) {\n    *p_Var6 = ppVar4->pw_uid;\n    p_Var2 = p_Var6;\n    p_Var6[1] = (__uid_t)DAT_0003c37c;\n    DAT_0003c37c = p_Var2;\n    return p_Var6;\n  }\n  p_Var6[1] = (__uid_t)DAT_0003c378;\n  DAT_0003c378 = p_Var6;\n  return (__uid_t *)0x0;\n}" type_identifier (pointer_declarator "* FUN_0001f0c0(char *param_1)" * (function_declarator "FUN_0001f0c0(char *param_1)" identifier (parameter_list "(char *param_1)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) )))) (compound_statement "{\n  char cVar1;\n  __uid_t *p_Var2;\n  int iVar3;\n  passwd *ppVar4;\n  size_t sVar5;\n  __uid_t *p_Var6;\n  __uid_t _Var7;\n  \n  if (DAT_0003c37c != (__uid_t *)0x0) {\n    cVar1 = *param_1;\n    p_Var6 = DAT_0003c37c;\n    do {\n      if ((char)p_Var6[2] == cVar1) {\n        iVar3 = strcmp((char *)(p_Var6 + 2),param_1);\n        if (iVar3 == 0) {\n          return p_Var6;\n        }\n      }\n      p_Var6 = (__uid_t *)p_Var6[1];\n    } while (p_Var6 != (__uid_t *)0x0);\n  }\n  if (DAT_0003c378 != (__uid_t *)0x0) {\n    cVar1 = *param_1;\n    _Var7 = (__uid_t)DAT_0003c378;\n    do {\n      if (*(char *)(_Var7 + 8) == cVar1) {\n        iVar3 = strcmp((char *)(_Var7 + 8),param_1);\n        if (iVar3 == 0) {\n          return (__uid_t *)0x0;\n        }\n      }\n      _Var7 = *(__uid_t *)(_Var7 + 4);\n    } while (_Var7 != 0);\n  }\n  ppVar4 = getpwnam(param_1);\n  sVar5 = strlen(param_1);\n  p_Var6 = (__uid_t *)FUN_00023f30(sVar5 + 0xc & 0xfffffffc);\n  strcpy((char *)(p_Var6 + 2),param_1);\n  if (ppVar4 != (passwd *)0x0) {\n    *p_Var6 = ppVar4->pw_uid;\n    p_Var2 = p_Var6;\n    p_Var6[1] = (__uid_t)DAT_0003c37c;\n    DAT_0003c37c = p_Var2;\n    return p_Var6;\n  }\n  p_Var6[1] = (__uid_t)DAT_0003c378;\n  DAT_0003c378 = p_Var6;\n  return (__uid_t *)0x0;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "__uid_t *p_Var2;" type_identifier (pointer_declarator "*p_Var2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "passwd *ppVar4;" type_identifier (pointer_declarator "*ppVar4" * identifier) ;) (declaration "size_t sVar5;" primitive_type identifier ;) (declaration "__uid_t *p_Var6;" type_identifier (pointer_declarator "*p_Var6" * identifier) ;) (declaration "__uid_t _Var7;" type_identifier identifier ;) (if_statement "if (DAT_0003c37c != (__uid_t *)0x0) {\n    cVar1 = *param_1;\n    p_Var6 = DAT_0003c37c;\n    do {\n      if ((char)p_Var6[2] == cVar1) {\n        iVar3 = strcmp((char *)(p_Var6 + 2),param_1);\n        if (iVar3 == 0) {\n          return p_Var6;\n        }\n      }\n      p_Var6 = (__uid_t *)p_Var6[1];\n    } while (p_Var6 != (__uid_t *)0x0);\n  }" if (parenthesized_expression "(DAT_0003c37c != (__uid_t *)0x0)" ( (binary_expression "DAT_0003c37c != (__uid_t *)0x0" identifier != (cast_expression "(__uid_t *)0x0" ( (type_descriptor "__uid_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    cVar1 = *param_1;\n    p_Var6 = DAT_0003c37c;\n    do {\n      if ((char)p_Var6[2] == cVar1) {\n        iVar3 = strcmp((char *)(p_Var6 + 2),param_1);\n        if (iVar3 == 0) {\n          return p_Var6;\n        }\n      }\n      p_Var6 = (__uid_t *)p_Var6[1];\n    } while (p_Var6 != (__uid_t *)0x0);\n  }" { (expression_statement "cVar1 = *param_1;" (assignment_expression "cVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "p_Var6 = DAT_0003c37c;" (assignment_expression "p_Var6 = DAT_0003c37c" identifier = identifier) ;) (do_statement "do {\n      if ((char)p_Var6[2] == cVar1) {\n        iVar3 = strcmp((char *)(p_Var6 + 2),param_1);\n        if (iVar3 == 0) {\n          return p_Var6;\n        }\n      }\n      p_Var6 = (__uid_t *)p_Var6[1];\n    } while (p_Var6 != (__uid_t *)0x0);" do (compound_statement "{\n      if ((char)p_Var6[2] == cVar1) {\n        iVar3 = strcmp((char *)(p_Var6 + 2),param_1);\n        if (iVar3 == 0) {\n          return p_Var6;\n        }\n      }\n      p_Var6 = (__uid_t *)p_Var6[1];\n    }" { (if_statement "if ((char)p_Var6[2] == cVar1) {\n        iVar3 = strcmp((char *)(p_Var6 + 2),param_1);\n        if (iVar3 == 0) {\n          return p_Var6;\n        }\n      }" if (parenthesized_expression "((char)p_Var6[2] == cVar1)" ( (binary_expression "(char)p_Var6[2] == cVar1" (cast_expression "(char)p_Var6[2]" ( (type_descriptor "char" primitive_type) ) (subscript_expression "p_Var6[2]" identifier [ number_literal ])) == identifier) )) (compound_statement "{\n        iVar3 = strcmp((char *)(p_Var6 + 2),param_1);\n        if (iVar3 == 0) {\n          return p_Var6;\n        }\n      }" { (expression_statement "iVar3 = strcmp((char *)(p_Var6 + 2),param_1);" (assignment_expression "iVar3 = strcmp((char *)(p_Var6 + 2),param_1)" identifier = (call_expression "strcmp((char *)(p_Var6 + 2),param_1)" identifier (argument_list "((char *)(p_Var6 + 2),param_1)" ( (cast_expression "(char *)(p_Var6 + 2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(p_Var6 + 2)" ( (binary_expression "p_Var6 + 2" identifier + number_literal) ))) , identifier )))) ;) (if_statement "if (iVar3 == 0) {\n          return p_Var6;\n        }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n          return p_Var6;\n        }" { (return_statement "return p_Var6;" return identifier ;) })) })) (expression_statement "p_Var6 = (__uid_t *)p_Var6[1];" (assignment_expression "p_Var6 = (__uid_t *)p_Var6[1]" identifier = (cast_expression "(__uid_t *)p_Var6[1]" ( (type_descriptor "__uid_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "p_Var6[1]" identifier [ number_literal ]))) ;) }) while (parenthesized_expression "(p_Var6 != (__uid_t *)0x0)" ( (binary_expression "p_Var6 != (__uid_t *)0x0" identifier != (cast_expression "(__uid_t *)0x0" ( (type_descriptor "__uid_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) })) (if_statement "if (DAT_0003c378 != (__uid_t *)0x0) {\n    cVar1 = *param_1;\n    _Var7 = (__uid_t)DAT_0003c378;\n    do {\n      if (*(char *)(_Var7 + 8) == cVar1) {\n        iVar3 = strcmp((char *)(_Var7 + 8),param_1);\n        if (iVar3 == 0) {\n          return (__uid_t *)0x0;\n        }\n      }\n      _Var7 = *(__uid_t *)(_Var7 + 4);\n    } while (_Var7 != 0);\n  }" if (parenthesized_expression "(DAT_0003c378 != (__uid_t *)0x0)" ( (binary_expression "DAT_0003c378 != (__uid_t *)0x0" identifier != (cast_expression "(__uid_t *)0x0" ( (type_descriptor "__uid_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    cVar1 = *param_1;\n    _Var7 = (__uid_t)DAT_0003c378;\n    do {\n      if (*(char *)(_Var7 + 8) == cVar1) {\n        iVar3 = strcmp((char *)(_Var7 + 8),param_1);\n        if (iVar3 == 0) {\n          return (__uid_t *)0x0;\n        }\n      }\n      _Var7 = *(__uid_t *)(_Var7 + 4);\n    } while (_Var7 != 0);\n  }" { (expression_statement "cVar1 = *param_1;" (assignment_expression "cVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "_Var7 = (__uid_t)DAT_0003c378;" (assignment_expression "_Var7 = (__uid_t)DAT_0003c378" identifier = (cast_expression "(__uid_t)DAT_0003c378" ( (type_descriptor "__uid_t" type_identifier) ) identifier)) ;) (do_statement "do {\n      if (*(char *)(_Var7 + 8) == cVar1) {\n        iVar3 = strcmp((char *)(_Var7 + 8),param_1);\n        if (iVar3 == 0) {\n          return (__uid_t *)0x0;\n        }\n      }\n      _Var7 = *(__uid_t *)(_Var7 + 4);\n    } while (_Var7 != 0);" do (compound_statement "{\n      if (*(char *)(_Var7 + 8) == cVar1) {\n        iVar3 = strcmp((char *)(_Var7 + 8),param_1);\n        if (iVar3 == 0) {\n          return (__uid_t *)0x0;\n        }\n      }\n      _Var7 = *(__uid_t *)(_Var7 + 4);\n    }" { (if_statement "if (*(char *)(_Var7 + 8) == cVar1) {\n        iVar3 = strcmp((char *)(_Var7 + 8),param_1);\n        if (iVar3 == 0) {\n          return (__uid_t *)0x0;\n        }\n      }" if (parenthesized_expression "(*(char *)(_Var7 + 8) == cVar1)" ( (binary_expression "*(char *)(_Var7 + 8) == cVar1" (pointer_expression "*(char *)(_Var7 + 8)" * (cast_expression "(char *)(_Var7 + 8)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(_Var7 + 8)" ( (binary_expression "_Var7 + 8" identifier + number_literal) )))) == identifier) )) (compound_statement "{\n        iVar3 = strcmp((char *)(_Var7 + 8),param_1);\n        if (iVar3 == 0) {\n          return (__uid_t *)0x0;\n        }\n      }" { (expression_statement "iVar3 = strcmp((char *)(_Var7 + 8),param_1);" (assignment_expression "iVar3 = strcmp((char *)(_Var7 + 8),param_1)" identifier = (call_expression "strcmp((char *)(_Var7 + 8),param_1)" identifier (argument_list "((char *)(_Var7 + 8),param_1)" ( (cast_expression "(char *)(_Var7 + 8)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(_Var7 + 8)" ( (binary_expression "_Var7 + 8" identifier + number_literal) ))) , identifier )))) ;) (if_statement "if (iVar3 == 0) {\n          return (__uid_t *)0x0;\n        }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n          return (__uid_t *)0x0;\n        }" { (return_statement "return (__uid_t *)0x0;" return (cast_expression "(__uid_t *)0x0" ( (type_descriptor "__uid_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) })) (expression_statement "_Var7 = *(__uid_t *)(_Var7 + 4);" (assignment_expression "_Var7 = *(__uid_t *)(_Var7 + 4)" identifier = (pointer_expression "*(__uid_t *)(_Var7 + 4)" * (cast_expression "(__uid_t *)(_Var7 + 4)" ( (type_descriptor "__uid_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(_Var7 + 4)" ( (binary_expression "_Var7 + 4" identifier + number_literal) ))))) ;) }) while (parenthesized_expression "(_Var7 != 0)" ( (binary_expression "_Var7 != 0" identifier != number_literal) )) ;) })) (expression_statement "ppVar4 = getpwnam(param_1);" (assignment_expression "ppVar4 = getpwnam(param_1)" identifier = (call_expression "getpwnam(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "sVar5 = strlen(param_1);" (assignment_expression "sVar5 = strlen(param_1)" identifier = (call_expression "strlen(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "p_Var6 = (__uid_t *)FUN_00023f30(sVar5 + 0xc & 0xfffffffc);" (assignment_expression "p_Var6 = (__uid_t *)FUN_00023f30(sVar5 + 0xc & 0xfffffffc)" identifier = (cast_expression "(__uid_t *)FUN_00023f30(sVar5 + 0xc & 0xfffffffc)" ( (type_descriptor "__uid_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00023f30(sVar5 + 0xc & 0xfffffffc)" identifier (argument_list "(sVar5 + 0xc & 0xfffffffc)" ( (binary_expression "sVar5 + 0xc & 0xfffffffc" (binary_expression "sVar5 + 0xc" identifier + number_literal) & number_literal) ))))) ;) (expression_statement "strcpy((char *)(p_Var6 + 2),param_1);" (call_expression "strcpy((char *)(p_Var6 + 2),param_1)" identifier (argument_list "((char *)(p_Var6 + 2),param_1)" ( (cast_expression "(char *)(p_Var6 + 2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(p_Var6 + 2)" ( (binary_expression "p_Var6 + 2" identifier + number_literal) ))) , identifier ))) ;) (if_statement "if (ppVar4 != (passwd *)0x0) {\n    *p_Var6 = ppVar4->pw_uid;\n    p_Var2 = p_Var6;\n    p_Var6[1] = (__uid_t)DAT_0003c37c;\n    DAT_0003c37c = p_Var2;\n    return p_Var6;\n  }" if (parenthesized_expression "(ppVar4 != (passwd *)0x0)" ( (binary_expression "ppVar4 != (passwd *)0x0" identifier != (cast_expression "(passwd *)0x0" ( (type_descriptor "passwd *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    *p_Var6 = ppVar4->pw_uid;\n    p_Var2 = p_Var6;\n    p_Var6[1] = (__uid_t)DAT_0003c37c;\n    DAT_0003c37c = p_Var2;\n    return p_Var6;\n  }" { (expression_statement "*p_Var6 = ppVar4->pw_uid;" (assignment_expression "*p_Var6 = ppVar4->pw_uid" (pointer_expression "*p_Var6" * identifier) = (field_expression "ppVar4->pw_uid" identifier -> field_identifier)) ;) (expression_statement "p_Var2 = p_Var6;" (assignment_expression "p_Var2 = p_Var6" identifier = identifier) ;) (expression_statement "p_Var6[1] = (__uid_t)DAT_0003c37c;" (assignment_expression "p_Var6[1] = (__uid_t)DAT_0003c37c" (subscript_expression "p_Var6[1]" identifier [ number_literal ]) = (cast_expression "(__uid_t)DAT_0003c37c" ( (type_descriptor "__uid_t" type_identifier) ) identifier)) ;) (expression_statement "DAT_0003c37c = p_Var2;" (assignment_expression "DAT_0003c37c = p_Var2" identifier = identifier) ;) (return_statement "return p_Var6;" return identifier ;) })) (expression_statement "p_Var6[1] = (__uid_t)DAT_0003c378;" (assignment_expression "p_Var6[1] = (__uid_t)DAT_0003c378" (subscript_expression "p_Var6[1]" identifier [ number_literal ]) = (cast_expression "(__uid_t)DAT_0003c378" ( (type_descriptor "__uid_t" type_identifier) ) identifier)) ;) (expression_statement "DAT_0003c378 = p_Var6;" (assignment_expression "DAT_0003c378 = p_Var6" identifier = identifier) ;) (return_statement "return (__uid_t *)0x0;" return (cast_expression "(__uid_t *)0x0" ( (type_descriptor "__uid_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))
(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 IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) == IDENT) )) (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 { (return_statement return IDENT ;) })) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) 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 = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == IDENT) )) (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 { (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ;) })) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (binary_expression (binary_expression IDENT + LIT) & LIT) ))))) ;) (expression_statement (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 != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (field_expression IDENT -> field_identifier)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (return_statement return IDENT ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ;) })))
(function_definition "__uid_t * FUN_0001f0c0(char *param_1)\n\n{\n  char cVar1;\n  __uid_t *p_Var2;\n  int iVar3;\n  passwd *ppVar4;\n  size_t sVar5;\n  __uid_t *p_Var6;\n  __uid_t _Var7;\n  \n  if (DAT_0003c37c != (__uid_t *)0x0) {\n    cVar1 = *param_1;\n    p_Var6 = DAT_0003c37c;\n    do {\n      if ((char)p_Var6[2] == cVar1) {\n        iVar3 = strcmp((char *)(p_Var6 + 2),param_1);\n        if (iVar3 == 0) {\n          return p_Var6;\n        }\n      }\n      p_Var6 = (__uid_t *)p_Var6[1];\n    } while (p_Var6 != (__uid_t *)0x0);\n  }\n  if (DAT_0003c378 != (__uid_t *)0x0) {\n    cVar1 = *param_1;\n    _Var7 = (__uid_t)DAT_0003c378;\n    do {\n      if (*(char *)(_Var7 + 8) == cVar1) {\n        iVar3 = strcmp((char *)(_Var7 + 8),param_1);\n        if (iVar3 == 0) {\n          return (__uid_t *)0x0;\n        }\n      }\n      _Var7 = *(__uid_t *)(_Var7 + 4);\n    } while (_Var7 != 0);\n  }\n  ppVar4 = getpwnam(param_1);\n  sVar5 = strlen(param_1);\n  p_Var6 = (__uid_t *)FUN_00023f30(sVar5 + 0xc & 0xfffffffc);\n  strcpy((char *)(p_Var6 + 2),param_1);\n  if (ppVar4 != (passwd *)0x0) {\n    *p_Var6 = ppVar4->pw_uid;\n    p_Var2 = p_Var6;\n    p_Var6[1] = (__uid_t)DAT_0003c37c;\n    DAT_0003c37c = p_Var2;\n    return p_Var6;\n  }\n  p_Var6[1] = (__uid_t)DAT_0003c378;\n  DAT_0003c378 = p_Var6;\n  return (__uid_t *)0x0;\n}" (type_identifier "__uid_t") (pointer_declarator "* FUN_0001f0c0(char *param_1)" (* "*") (function_declarator "FUN_0001f0c0(char *param_1)" (identifier "FUN_0001f0c0") (parameter_list "(char *param_1)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")")))) (compound_statement "{\n  char cVar1;\n  __uid_t *p_Var2;\n  int iVar3;\n  passwd *ppVar4;\n  size_t sVar5;\n  __uid_t *p_Var6;\n  __uid_t _Var7;\n  \n  if (DAT_0003c37c != (__uid_t *)0x0) {\n    cVar1 = *param_1;\n    p_Var6 = DAT_0003c37c;\n    do {\n      if ((char)p_Var6[2] == cVar1) {\n        iVar3 = strcmp((char *)(p_Var6 + 2),param_1);\n        if (iVar3 == 0) {\n          return p_Var6;\n        }\n      }\n      p_Var6 = (__uid_t *)p_Var6[1];\n    } while (p_Var6 != (__uid_t *)0x0);\n  }\n  if (DAT_0003c378 != (__uid_t *)0x0) {\n    cVar1 = *param_1;\n    _Var7 = (__uid_t)DAT_0003c378;\n    do {\n      if (*(char *)(_Var7 + 8) == cVar1) {\n        iVar3 = strcmp((char *)(_Var7 + 8),param_1);\n        if (iVar3 == 0) {\n          return (__uid_t *)0x0;\n        }\n      }\n      _Var7 = *(__uid_t *)(_Var7 + 4);\n    } while (_Var7 != 0);\n  }\n  ppVar4 = getpwnam(param_1);\n  sVar5 = strlen(param_1);\n  p_Var6 = (__uid_t *)FUN_00023f30(sVar5 + 0xc & 0xfffffffc);\n  strcpy((char *)(p_Var6 + 2),param_1);\n  if (ppVar4 != (passwd *)0x0) {\n    *p_Var6 = ppVar4->pw_uid;\n    p_Var2 = p_Var6;\n    p_Var6[1] = (__uid_t)DAT_0003c37c;\n    DAT_0003c37c = p_Var2;\n    return p_Var6;\n  }\n  p_Var6[1] = (__uid_t)DAT_0003c378;\n  DAT_0003c378 = p_Var6;\n  return (__uid_t *)0x0;\n}" ({ "{") (declaration "char cVar1;" (primitive_type "char") (identifier "cVar1") (; ";")) (declaration "__uid_t *p_Var2;" (type_identifier "__uid_t") (pointer_declarator "*p_Var2" (* "*") (identifier "p_Var2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "passwd *ppVar4;" (type_identifier "passwd") (pointer_declarator "*ppVar4" (* "*") (identifier "ppVar4")) (; ";")) (declaration "size_t sVar5;" (primitive_type "size_t") (identifier "sVar5") (; ";")) (declaration "__uid_t *p_Var6;" (type_identifier "__uid_t") (pointer_declarator "*p_Var6" (* "*") (identifier "p_Var6")) (; ";")) (declaration "__uid_t _Var7;" (type_identifier "__uid_t") (identifier "_Var7") (; ";")) (if_statement "if (DAT_0003c37c != (__uid_t *)0x0) {\n    cVar1 = *param_1;\n    p_Var6 = DAT_0003c37c;\n    do {\n      if ((char)p_Var6[2] == cVar1) {\n        iVar3 = strcmp((char *)(p_Var6 + 2),param_1);\n        if (iVar3 == 0) {\n          return p_Var6;\n        }\n      }\n      p_Var6 = (__uid_t *)p_Var6[1];\n    } while (p_Var6 != (__uid_t *)0x0);\n  }" (if "if") (parenthesized_expression "(DAT_0003c37c != (__uid_t *)0x0)" (( "(") (binary_expression "DAT_0003c37c != (__uid_t *)0x0" (identifier "DAT_0003c37c") (!= "!=") (cast_expression "(__uid_t *)0x0" (( "(") (type_descriptor "__uid_t *" (type_identifier "__uid_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    cVar1 = *param_1;\n    p_Var6 = DAT_0003c37c;\n    do {\n      if ((char)p_Var6[2] == cVar1) {\n        iVar3 = strcmp((char *)(p_Var6 + 2),param_1);\n        if (iVar3 == 0) {\n          return p_Var6;\n        }\n      }\n      p_Var6 = (__uid_t *)p_Var6[1];\n    } while (p_Var6 != (__uid_t *)0x0);\n  }" ({ "{") (expression_statement "cVar1 = *param_1;" (assignment_expression "cVar1 = *param_1" (identifier "cVar1") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "p_Var6 = DAT_0003c37c;" (assignment_expression "p_Var6 = DAT_0003c37c" (identifier "p_Var6") (= "=") (identifier "DAT_0003c37c")) (; ";")) (do_statement "do {\n      if ((char)p_Var6[2] == cVar1) {\n        iVar3 = strcmp((char *)(p_Var6 + 2),param_1);\n        if (iVar3 == 0) {\n          return p_Var6;\n        }\n      }\n      p_Var6 = (__uid_t *)p_Var6[1];\n    } while (p_Var6 != (__uid_t *)0x0);" (do "do") (compound_statement "{\n      if ((char)p_Var6[2] == cVar1) {\n        iVar3 = strcmp((char *)(p_Var6 + 2),param_1);\n        if (iVar3 == 0) {\n          return p_Var6;\n        }\n      }\n      p_Var6 = (__uid_t *)p_Var6[1];\n    }" ({ "{") (if_statement "if ((char)p_Var6[2] == cVar1) {\n        iVar3 = strcmp((char *)(p_Var6 + 2),param_1);\n        if (iVar3 == 0) {\n          return p_Var6;\n        }\n      }" (if "if") (parenthesized_expression "((char)p_Var6[2] == cVar1)" (( "(") (binary_expression "(char)p_Var6[2] == cVar1" (cast_expression "(char)p_Var6[2]" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (subscript_expression "p_Var6[2]" (identifier "p_Var6") ([ "[") (number_literal "2") (] "]"))) (== "==") (identifier "cVar1")) () ")")) (compound_statement "{\n        iVar3 = strcmp((char *)(p_Var6 + 2),param_1);\n        if (iVar3 == 0) {\n          return p_Var6;\n        }\n      }" ({ "{") (expression_statement "iVar3 = strcmp((char *)(p_Var6 + 2),param_1);" (assignment_expression "iVar3 = strcmp((char *)(p_Var6 + 2),param_1)" (identifier "iVar3") (= "=") (call_expression "strcmp((char *)(p_Var6 + 2),param_1)" (identifier "strcmp") (argument_list "((char *)(p_Var6 + 2),param_1)" (( "(") (cast_expression "(char *)(p_Var6 + 2)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(p_Var6 + 2)" (( "(") (binary_expression "p_Var6 + 2" (identifier "p_Var6") (+ "+") (number_literal "2")) () ")"))) (, ",") (identifier "param_1") () ")")))) (; ";")) (if_statement "if (iVar3 == 0) {\n          return p_Var6;\n        }" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          return p_Var6;\n        }" ({ "{") (return_statement "return p_Var6;" (return "return") (identifier "p_Var6") (; ";")) (} "}"))) (} "}"))) (expression_statement "p_Var6 = (__uid_t *)p_Var6[1];" (assignment_expression "p_Var6 = (__uid_t *)p_Var6[1]" (identifier "p_Var6") (= "=") (cast_expression "(__uid_t *)p_Var6[1]" (( "(") (type_descriptor "__uid_t *" (type_identifier "__uid_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "p_Var6[1]" (identifier "p_Var6") ([ "[") (number_literal "1") (] "]")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(p_Var6 != (__uid_t *)0x0)" (( "(") (binary_expression "p_Var6 != (__uid_t *)0x0" (identifier "p_Var6") (!= "!=") (cast_expression "(__uid_t *)0x0" (( "(") (type_descriptor "__uid_t *" (type_identifier "__uid_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (; ";")) (} "}"))) (if_statement "if (DAT_0003c378 != (__uid_t *)0x0) {\n    cVar1 = *param_1;\n    _Var7 = (__uid_t)DAT_0003c378;\n    do {\n      if (*(char *)(_Var7 + 8) == cVar1) {\n        iVar3 = strcmp((char *)(_Var7 + 8),param_1);\n        if (iVar3 == 0) {\n          return (__uid_t *)0x0;\n        }\n      }\n      _Var7 = *(__uid_t *)(_Var7 + 4);\n    } while (_Var7 != 0);\n  }" (if "if") (parenthesized_expression "(DAT_0003c378 != (__uid_t *)0x0)" (( "(") (binary_expression "DAT_0003c378 != (__uid_t *)0x0" (identifier "DAT_0003c378") (!= "!=") (cast_expression "(__uid_t *)0x0" (( "(") (type_descriptor "__uid_t *" (type_identifier "__uid_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    cVar1 = *param_1;\n    _Var7 = (__uid_t)DAT_0003c378;\n    do {\n      if (*(char *)(_Var7 + 8) == cVar1) {\n        iVar3 = strcmp((char *)(_Var7 + 8),param_1);\n        if (iVar3 == 0) {\n          return (__uid_t *)0x0;\n        }\n      }\n      _Var7 = *(__uid_t *)(_Var7 + 4);\n    } while (_Var7 != 0);\n  }" ({ "{") (expression_statement "cVar1 = *param_1;" (assignment_expression "cVar1 = *param_1" (identifier "cVar1") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "_Var7 = (__uid_t)DAT_0003c378;" (assignment_expression "_Var7 = (__uid_t)DAT_0003c378" (identifier "_Var7") (= "=") (cast_expression "(__uid_t)DAT_0003c378" (( "(") (type_descriptor "__uid_t" (type_identifier "__uid_t")) () ")") (identifier "DAT_0003c378"))) (; ";")) (do_statement "do {\n      if (*(char *)(_Var7 + 8) == cVar1) {\n        iVar3 = strcmp((char *)(_Var7 + 8),param_1);\n        if (iVar3 == 0) {\n          return (__uid_t *)0x0;\n        }\n      }\n      _Var7 = *(__uid_t *)(_Var7 + 4);\n    } while (_Var7 != 0);" (do "do") (compound_statement "{\n      if (*(char *)(_Var7 + 8) == cVar1) {\n        iVar3 = strcmp((char *)(_Var7 + 8),param_1);\n        if (iVar3 == 0) {\n          return (__uid_t *)0x0;\n        }\n      }\n      _Var7 = *(__uid_t *)(_Var7 + 4);\n    }" ({ "{") (if_statement "if (*(char *)(_Var7 + 8) == cVar1) {\n        iVar3 = strcmp((char *)(_Var7 + 8),param_1);\n        if (iVar3 == 0) {\n          return (__uid_t *)0x0;\n        }\n      }" (if "if") (parenthesized_expression "(*(char *)(_Var7 + 8) == cVar1)" (( "(") (binary_expression "*(char *)(_Var7 + 8) == cVar1" (pointer_expression "*(char *)(_Var7 + 8)" (* "*") (cast_expression "(char *)(_Var7 + 8)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(_Var7 + 8)" (( "(") (binary_expression "_Var7 + 8" (identifier "_Var7") (+ "+") (number_literal "8")) () ")")))) (== "==") (identifier "cVar1")) () ")")) (compound_statement "{\n        iVar3 = strcmp((char *)(_Var7 + 8),param_1);\n        if (iVar3 == 0) {\n          return (__uid_t *)0x0;\n        }\n      }" ({ "{") (expression_statement "iVar3 = strcmp((char *)(_Var7 + 8),param_1);" (assignment_expression "iVar3 = strcmp((char *)(_Var7 + 8),param_1)" (identifier "iVar3") (= "=") (call_expression "strcmp((char *)(_Var7 + 8),param_1)" (identifier "strcmp") (argument_list "((char *)(_Var7 + 8),param_1)" (( "(") (cast_expression "(char *)(_Var7 + 8)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(_Var7 + 8)" (( "(") (binary_expression "_Var7 + 8" (identifier "_Var7") (+ "+") (number_literal "8")) () ")"))) (, ",") (identifier "param_1") () ")")))) (; ";")) (if_statement "if (iVar3 == 0) {\n          return (__uid_t *)0x0;\n        }" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          return (__uid_t *)0x0;\n        }" ({ "{") (return_statement "return (__uid_t *)0x0;" (return "return") (cast_expression "(__uid_t *)0x0" (( "(") (type_descriptor "__uid_t *" (type_identifier "__uid_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) (; ";")) (} "}"))) (} "}"))) (expression_statement "_Var7 = *(__uid_t *)(_Var7 + 4);" (assignment_expression "_Var7 = *(__uid_t *)(_Var7 + 4)" (identifier "_Var7") (= "=") (pointer_expression "*(__uid_t *)(_Var7 + 4)" (* "*") (cast_expression "(__uid_t *)(_Var7 + 4)" (( "(") (type_descriptor "__uid_t *" (type_identifier "__uid_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(_Var7 + 4)" (( "(") (binary_expression "_Var7 + 4" (identifier "_Var7") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(_Var7 != 0)" (( "(") (binary_expression "_Var7 != 0" (identifier "_Var7") (!= "!=") (number_literal "0")) () ")")) (; ";")) (} "}"))) (expression_statement "ppVar4 = getpwnam(param_1);" (assignment_expression "ppVar4 = getpwnam(param_1)" (identifier "ppVar4") (= "=") (call_expression "getpwnam(param_1)" (identifier "getpwnam") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (expression_statement "sVar5 = strlen(param_1);" (assignment_expression "sVar5 = strlen(param_1)" (identifier "sVar5") (= "=") (call_expression "strlen(param_1)" (identifier "strlen") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (expression_statement "p_Var6 = (__uid_t *)FUN_00023f30(sVar5 + 0xc & 0xfffffffc);" (assignment_expression "p_Var6 = (__uid_t *)FUN_00023f30(sVar5 + 0xc & 0xfffffffc)" (identifier "p_Var6") (= "=") (cast_expression "(__uid_t *)FUN_00023f30(sVar5 + 0xc & 0xfffffffc)" (( "(") (type_descriptor "__uid_t *" (type_identifier "__uid_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00023f30(sVar5 + 0xc & 0xfffffffc)" (identifier "FUN_00023f30") (argument_list "(sVar5 + 0xc & 0xfffffffc)" (( "(") (binary_expression "sVar5 + 0xc & 0xfffffffc" (binary_expression "sVar5 + 0xc" (identifier "sVar5") (+ "+") (number_literal "0xc")) (& "&") (number_literal "0xfffffffc")) () ")"))))) (; ";")) (expression_statement "strcpy((char *)(p_Var6 + 2),param_1);" (call_expression "strcpy((char *)(p_Var6 + 2),param_1)" (identifier "strcpy") (argument_list "((char *)(p_Var6 + 2),param_1)" (( "(") (cast_expression "(char *)(p_Var6 + 2)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(p_Var6 + 2)" (( "(") (binary_expression "p_Var6 + 2" (identifier "p_Var6") (+ "+") (number_literal "2")) () ")"))) (, ",") (identifier "param_1") () ")"))) (; ";")) (if_statement "if (ppVar4 != (passwd *)0x0) {\n    *p_Var6 = ppVar4->pw_uid;\n    p_Var2 = p_Var6;\n    p_Var6[1] = (__uid_t)DAT_0003c37c;\n    DAT_0003c37c = p_Var2;\n    return p_Var6;\n  }" (if "if") (parenthesized_expression "(ppVar4 != (passwd *)0x0)" (( "(") (binary_expression "ppVar4 != (passwd *)0x0" (identifier "ppVar4") (!= "!=") (cast_expression "(passwd *)0x0" (( "(") (type_descriptor "passwd *" (type_identifier "passwd") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    *p_Var6 = ppVar4->pw_uid;\n    p_Var2 = p_Var6;\n    p_Var6[1] = (__uid_t)DAT_0003c37c;\n    DAT_0003c37c = p_Var2;\n    return p_Var6;\n  }" ({ "{") (expression_statement "*p_Var6 = ppVar4->pw_uid;" (assignment_expression "*p_Var6 = ppVar4->pw_uid" (pointer_expression "*p_Var6" (* "*") (identifier "p_Var6")) (= "=") (field_expression "ppVar4->pw_uid" (identifier "ppVar4") (-> "->") (field_identifier "pw_uid"))) (; ";")) (expression_statement "p_Var2 = p_Var6;" (assignment_expression "p_Var2 = p_Var6" (identifier "p_Var2") (= "=") (identifier "p_Var6")) (; ";")) (expression_statement "p_Var6[1] = (__uid_t)DAT_0003c37c;" (assignment_expression "p_Var6[1] = (__uid_t)DAT_0003c37c" (subscript_expression "p_Var6[1]" (identifier "p_Var6") ([ "[") (number_literal "1") (] "]")) (= "=") (cast_expression "(__uid_t)DAT_0003c37c" (( "(") (type_descriptor "__uid_t" (type_identifier "__uid_t")) () ")") (identifier "DAT_0003c37c"))) (; ";")) (expression_statement "DAT_0003c37c = p_Var2;" (assignment_expression "DAT_0003c37c = p_Var2" (identifier "DAT_0003c37c") (= "=") (identifier "p_Var2")) (; ";")) (return_statement "return p_Var6;" (return "return") (identifier "p_Var6") (; ";")) (} "}"))) (expression_statement "p_Var6[1] = (__uid_t)DAT_0003c378;" (assignment_expression "p_Var6[1] = (__uid_t)DAT_0003c378" (subscript_expression "p_Var6[1]" (identifier "p_Var6") ([ "[") (number_literal "1") (] "]")) (= "=") (cast_expression "(__uid_t)DAT_0003c378" (( "(") (type_descriptor "__uid_t" (type_identifier "__uid_t")) () ")") (identifier "DAT_0003c378"))) (; ";")) (expression_statement "DAT_0003c378 = p_Var6;" (assignment_expression "DAT_0003c378 = p_Var6" (identifier "DAT_0003c378") (= "=") (identifier "p_Var6")) (; ";")) (return_statement "return (__uid_t *)0x0;" (return "return") (cast_expression "(__uid_t *)0x0" (( "(") (type_descriptor "__uid_t *" (type_identifier "__uid_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) (; ";")) (} "}")))

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

type_1 * function_1(char *user)

{
  char var_2;
  type_2 *puVar2;
  int var_5;
  type_3 *var_12;
  size_t var_10;
  type_2 *var_4;
  
  if (var_1 != (type_2 *)0x0) {
    var_2 = *user;
    var_4 = var_1;
    do {
      if (*(char *)&var_4[1].id == var_2) {
        var_5 = var_3((char *)(var_4 + 1),user);
        if (var_5 == 0) {
          return (type_1 *)var_4;
        }
      }
      var_4 = var_4->next;
    } while (var_4 != (type_2 *)0x0);
  }
  if (var_6 != (type_2 *)0x0) {
    var_2 = *user;
    var_4 = var_6;
    do {
      if (*(char *)&var_4[1].id == var_2) {
        var_5 = var_3((char *)(var_4 + 1),user);
        if (var_5 == 0) {
          return (type_1 *)0x0;
        }
      }
      var_4 = var_4->next;
    } while (var_4 != (type_2 *)0x0);
  }
  var_12 = var_7(user);
  var_10 = var_8(user);
  var_4 = (type_2 *)var_9(var_10 + 0xc & 0xfffffffc);
  var_11((char *)(var_4 + 1),user);
  if (var_12 != (type_3 *)0x0) {
    var_4->id = (type_4)var_12->pw_uid;
    puVar2 = var_4;
    var_4->next = var_1;
    var_1 = puVar2;
    return (type_1 *)var_4;
  }
  var_4->next = var_6;
  var_6 = var_4;
  return (type_1 *)0x0;
}


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

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

__uid_t * MASKED(char *param_1)

{
  char cVar1;
  __uid_t *p_Var2;
  int iVar3;
  passwd *ppVar4;
  size_t sVar5;
  __uid_t *p_Var6;
  __uid_t _Var7;
  
  if (DAT_0003c37c != (__uid_t *)0x0) {
    cVar1 = *param_1;
    p_Var6 = DAT_0003c37c;
    do {
      if ((char)p_Var6[2] == cVar1) {
        iVar3 = strcmp((char *)(p_Var6 + 2),param_1);
        if (iVar3 == 0) {
          return p_Var6;
        }
      }
      p_Var6 = (__uid_t *)p_Var6[1];
    } while (p_Var6 != (__uid_t *)0x0);
  }
  if (DAT_0003c378 != (__uid_t *)0x0) {
    cVar1 = *param_1;
    _Var7 = (__uid_t)DAT_0003c378;
    do {
      if (*(char *)(_Var7 + 8) == cVar1) {
        iVar3 = strcmp((char *)(_Var7 + 8),param_1);
        if (iVar3 == 0) {
          return (__uid_t *)0x0;
        }
      }
      _Var7 = *(__uid_t *)(_Var7 + 4);
    } while (_Var7 != 0);
  }
  ppVar4 = getpwnam(param_1);
  sVar5 = strlen(param_1);
  p_Var6 = (__uid_t *)FUN_00023f30(sVar5 + 0xc & 0xfffffffc);
  strcpy((char *)(p_Var6 + 2),param_1);
  if (ppVar4 != (passwd *)0x0) {
    *p_Var6 = ppVar4->pw_uid;
    p_Var2 = p_Var6;
    p_Var6[1] = (__uid_t)DAT_0003c37c;
    DAT_0003c37c = p_Var2;
    return p_Var6;
  }
  p_Var6[1] = (__uid_t)DAT_0003c378;
  DAT_0003c378 = p_Var6;
  return (__uid_t *)0x0;
}

