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

void rsastr_fmt(char *str,RSAKey *key)

{
  Bignum_conflict bn;
  Bignum_conflict bn_00;
  int iVar1;
  int iVar2;
  uint uVar3;
  uint uVar4;
  char *pcVar5;
  int local_24;
  
  bn = (Bignum_conflict)key->modulus;
  bn_00 = (Bignum_conflict)key->exponent;
  str[0] = '0';
  str[1] = 'x';
  str[2] = '\0';
  iVar1 = bignum_bitcount(bn_00);
  if (iVar1 < 1) {
    uVar3 = bignum_byte(bn_00,0);
    local_24 = 3;
    str[2] = "0123456789abcdef"[uVar3 & 0xf];
  }
  else {
    local_24 = iVar1 + 3 >> 2;
    uVar3 = local_24 - 1;
    pcVar5 = str + 2;
    do {
      iVar1 = bignum_byte(bn_00,(int)uVar3 >> 1);
      uVar4 = uVar3 - 1;
      *pcVar5 = "0123456789abcdef"[iVar1 >> (sbyte)((uVar3 & 1) << 2) & 0xf];
      uVar3 = uVar4;
      pcVar5 = pcVar5 + 1;
    } while (uVar4 != 0xffffffff);
    local_24 = local_24 + 2;
  }
  builtin_strncpy(str + local_24,",0x",4);
  iVar1 = bignum_bitcount(bn);
  if (0 < iVar1) {
    iVar1 = iVar1 + 3 >> 2;
    uVar3 = iVar1 - 1;
    pcVar5 = str + local_24 + 3;
    do {
      iVar2 = bignum_byte(bn,(int)uVar3 >> 1);
      uVar4 = uVar3 - 1;
      *pcVar5 = "0123456789abcdef"[iVar2 >> (sbyte)((uVar3 & 1) << 2) & 0xf];
      uVar3 = uVar4;
      pcVar5 = pcVar5 + 1;
    } while (uVar4 != 0xffffffff);
    str[iVar1 + 3 + local_24] = '\0';
    return;
  }
  uVar3 = bignum_byte(bn,0);
  str[local_24 + 3] = "0123456789abcdef"[uVar3 & 0xf];
  str[local_24 + 4] = '\0';
  return;
}



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

void FUN_0003d920(undefined2 *param_1,int param_2)

{
  undefined4 uVar1;
  undefined4 uVar2;
  int iVar3;
  int iVar4;
  uint uVar5;
  uint uVar6;
  char *pcVar7;
  int local_24;
  
  uVar1 = *(undefined4 *)(param_2 + 8);
  uVar2 = *(undefined4 *)(param_2 + 0xc);
  *param_1 = 0x7830;
  *(undefined1 *)(param_1 + 1) = 0;
  iVar3 = FUN_000277a0(uVar2);
  if (iVar3 < 1) {
    uVar5 = FUN_00027890(uVar2,0);
    local_24 = 3;
    *(char *)(param_1 + 1) = "0123456789abcdef"[uVar5 & 0xf];
  }
  else {
    local_24 = iVar3 + 3 >> 2;
    uVar5 = local_24 - 1;
    pcVar7 = (char *)(param_1 + 1);
    do {
      iVar3 = FUN_00027890(uVar2,(int)uVar5 >> 1);
      uVar6 = uVar5 - 1;
      *pcVar7 = "0123456789abcdef"[iVar3 >> (sbyte)((uVar5 & 1) << 2) & 0xf];
      uVar5 = uVar6;
      pcVar7 = pcVar7 + 1;
    } while (uVar6 != 0xffffffff);
    local_24 = local_24 + 2;
  }
  *(undefined4 *)((int)param_1 + local_24) = 0x78302c;
  iVar3 = FUN_000277a0(uVar1);
  if (0 < iVar3) {
    iVar3 = iVar3 + 3 >> 2;
    uVar5 = iVar3 - 1;
    pcVar7 = (char *)(local_24 + 3 + (int)param_1);
    do {
      iVar4 = FUN_00027890(uVar1,(int)uVar5 >> 1);
      uVar6 = uVar5 - 1;
      *pcVar7 = "0123456789abcdef"[iVar4 >> (sbyte)((uVar5 & 1) << 2) & 0xf];
      uVar5 = uVar6;
      pcVar7 = pcVar7 + 1;
    } while (uVar6 != 0xffffffff);
    *(undefined1 *)((int)param_1 + iVar3 + 3 + local_24) = 0;
    return;
  }
  uVar5 = FUN_00027890(uVar1,0);
  *(char *)((int)param_1 + local_24 + 3) = "0123456789abcdef"[uVar5 & 0xf];
  *(undefined1 *)((int)param_1 + local_24 + 4) = 0;
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00014560
ADD EBX,0x3253b
SUB ESP,0x28
MOV EAX,dword ptr [ESP + 0x40]
MOV EDX,dword ptr [EAX + 0x8]
MOV EDI,dword ptr [EAX + 0xc]
MOV EAX,dword ptr [ESP + 0x3c]
MOV dword ptr [ESP + 0x10],EDX
MOV EDX,0x7830
MOV dword ptr [ESP + 0x14],EDI
MOV word ptr [EAX],DX
MOV byte ptr [EAX + 0x2],0x0
PUSH EDI
CALL 0x000277a0
ADD ESP,0x10
TEST EAX,EAX
JLE 0x0003da88
ADD EAX,0x3
LEA EBP,[EBX + 0xfffe8f78]
SAR EAX,0x2
MOV dword ptr [ESP + 0xc],EAX
LEA ESI,[EAX + -0x1]
MOV EAX,dword ptr [ESP + 0x30]
LEA EDI,[EAX + 0x2]
NOP
MOV EAX,ESI
SUB ESP,0x8
ADD EDI,0x1
SAR EAX,0x1
PUSH EAX
PUSH dword ptr [ESP + 0x14]
CALL 0x00027890
MOV ECX,ESI
SUB ESI,0x1
ADD ESP,0x10
AND ECX,0x1
SHL ECX,0x2
SAR EAX,CL
AND EAX,0xf
MOVZX EAX,byte ptr [EBP + EAX*0x1]
MOV byte ptr [EDI + -0x1],AL
CMP ESI,-0x1
JNZ 0x0003d980
MOV EAX,dword ptr [ESP + 0xc]
ADD EAX,0x2
MOV dword ptr [ESP + 0x8],EAX
MOV ESI,dword ptr [ESP + 0x8]
MOV EAX,dword ptr [ESP + 0x30]
SUB ESP,0xc
MOV EBP,dword ptr [ESP + 0x10]
MOV dword ptr [EAX + ESI*0x1],0x78302c
LEA EDI,[ESI + 0x3]
PUSH EBP
CALL 0x000277a0
ADD ESP,0x10
TEST EAX,EAX
JLE 0x0003da50
ADD EAX,0x3
ADD EDI,dword ptr [ESP + 0x30]
LEA EBP,[EBX + 0xfffe8f78]
SAR EAX,0x2
LEA ESI,[EAX + -0x1]
MOV dword ptr [ESP + 0xc],ESI
LEA ESI,[ESI]
MOV EAX,ESI
SUB ESP,0x8
ADD EDI,0x1
SAR EAX,0x1
PUSH EAX
PUSH dword ptr [ESP + 0x10]
CALL 0x00027890
MOV ECX,ESI
SUB ESI,0x1
ADD ESP,0x10
AND ECX,0x1
SHL ECX,0x2
SAR EAX,CL
AND EAX,0xf
MOVZX EAX,byte ptr [EBP + EAX*0x1]
MOV byte ptr [EDI + -0x1],AL
CMP ESI,-0x1
JNZ 0x0003da00
MOV EAX,dword ptr [ESP + 0xc]
MOV EDX,dword ptr [ESP + 0x8]
LEA EDX,[EAX + EDX*0x1 + 0x4]
MOV EAX,dword ptr [ESP + 0x30]
MOV byte ptr [EAX + EDX*0x1],0x0
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x8
PUSH 0x0
PUSH EBP
CALL 0x00027890
LEA EDX,[ESI + 0x4]
AND EAX,0xf
MOVZX EAX,byte ptr [EBX + EAX*0x1 + 0xfffe8f78]
MOV EBX,dword ptr [ESP + 0x40]
ADD ESP,0x10
MOV byte ptr [EBX + ESI*0x1 + 0x3],AL
MOV EAX,dword ptr [ESP + 0x30]
MOV byte ptr [EAX + EDX*0x1],0x0
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x8
PUSH 0x0
PUSH EDI
CALL 0x00027890
MOV EDX,dword ptr [ESP + 0x40]
ADD ESP,0x10
AND EAX,0xf
MOVZX EAX,byte ptr [EBX + EAX*0x1 + 0xfffe8f78]
MOV dword ptr [ESP + 0x8],0x3
MOV byte ptr [EDX + 0x2],AL
JMP 0x0003d9bf
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_0003d920(undefined2 *param_1,int param_2)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  uint uVar5;\n  uint uVar6;\n  char *pcVar7;\n  int local_24;\n  \n  uVar1 = *(undefined4 *)(param_2 + 8);\n  uVar2 = *(undefined4 *)(param_2 + 0xc);\n  *param_1 = 0x7830;\n  *(undefined1 *)(param_1 + 1) = 0;\n  iVar3 = FUN_000277a0(uVar2);\n  if (iVar3 < 1) {\n    uVar5 = FUN_00027890(uVar2,0);\n    local_24 = 3;\n    *(char *)(param_1 + 1) = "0123456789abcdef"[uVar5 & 0xf];\n  }\n  else {\n    local_24 = iVar3 + 3 >> 2;\n    uVar5 = local_24 - 1;\n    pcVar7 = (char *)(param_1 + 1);\n    do {\n      iVar3 = FUN_00027890(uVar2,(int)uVar5 >> 1);\n      uVar6 = uVar5 - 1;\n      *pcVar7 = "0123456789abcdef"[iVar3 >> (sbyte)((uVar5 & 1) << 2) & 0xf];\n      uVar5 = uVar6;\n      pcVar7 = pcVar7 + 1;\n    } while (uVar6 != 0xffffffff);\n    local_24 = local_24 + 2;\n  }\n  *(undefined4 *)((int)param_1 + local_24) = 0x78302c;\n  iVar3 = FUN_000277a0(uVar1);\n  if (0 < iVar3) {\n    iVar3 = iVar3 + 3 >> 2;\n    uVar5 = iVar3 - 1;\n    pcVar7 = (char *)(local_24 + 3 + (int)param_1);\n    do {\n      iVar4 = FUN_00027890(uVar1,(int)uVar5 >> 1);\n      uVar6 = uVar5 - 1;\n      *pcVar7 = "0123456789abcdef"[iVar4 >> (sbyte)((uVar5 & 1) << 2) & 0xf];\n      uVar5 = uVar6;\n      pcVar7 = pcVar7 + 1;\n    } while (uVar6 != 0xffffffff);\n    *(undefined1 *)((int)param_1 + iVar3 + 3 + local_24) = 0;\n    return;\n  }\n  uVar5 = FUN_00027890(uVar1,0);\n  *(char *)((int)param_1 + local_24 + 3) = "0123456789abcdef"[uVar5 & 0xf];\n  *(undefined1 *)((int)param_1 + local_24 + 4) = 0;\n  return;\n}\n\n" comment (function_definition "void FUN_0003d920(undefined2 *param_1,int param_2)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  uint uVar5;\n  uint uVar6;\n  char *pcVar7;\n  int local_24;\n  \n  uVar1 = *(undefined4 *)(param_2 + 8);\n  uVar2 = *(undefined4 *)(param_2 + 0xc);\n  *param_1 = 0x7830;\n  *(undefined1 *)(param_1 + 1) = 0;\n  iVar3 = FUN_000277a0(uVar2);\n  if (iVar3 < 1) {\n    uVar5 = FUN_00027890(uVar2,0);\n    local_24 = 3;\n    *(char *)(param_1 + 1) = "0123456789abcdef"[uVar5 & 0xf];\n  }\n  else {\n    local_24 = iVar3 + 3 >> 2;\n    uVar5 = local_24 - 1;\n    pcVar7 = (char *)(param_1 + 1);\n    do {\n      iVar3 = FUN_00027890(uVar2,(int)uVar5 >> 1);\n      uVar6 = uVar5 - 1;\n      *pcVar7 = "0123456789abcdef"[iVar3 >> (sbyte)((uVar5 & 1) << 2) & 0xf];\n      uVar5 = uVar6;\n      pcVar7 = pcVar7 + 1;\n    } while (uVar6 != 0xffffffff);\n    local_24 = local_24 + 2;\n  }\n  *(undefined4 *)((int)param_1 + local_24) = 0x78302c;\n  iVar3 = FUN_000277a0(uVar1);\n  if (0 < iVar3) {\n    iVar3 = iVar3 + 3 >> 2;\n    uVar5 = iVar3 - 1;\n    pcVar7 = (char *)(local_24 + 3 + (int)param_1);\n    do {\n      iVar4 = FUN_00027890(uVar1,(int)uVar5 >> 1);\n      uVar6 = uVar5 - 1;\n      *pcVar7 = "0123456789abcdef"[iVar4 >> (sbyte)((uVar5 & 1) << 2) & 0xf];\n      uVar5 = uVar6;\n      pcVar7 = pcVar7 + 1;\n    } while (uVar6 != 0xffffffff);\n    *(undefined1 *)((int)param_1 + iVar3 + 3 + local_24) = 0;\n    return;\n  }\n  uVar5 = FUN_00027890(uVar1,0);\n  *(char *)((int)param_1 + local_24 + 3) = "0123456789abcdef"[uVar5 & 0xf];\n  *(undefined1 *)((int)param_1 + local_24 + 4) = 0;\n  return;\n}" primitive_type (function_declarator "FUN_0003d920(undefined2 *param_1,int param_2)" identifier (parameter_list "(undefined2 *param_1,int param_2)" ( (parameter_declaration "undefined2 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  uint uVar5;\n  uint uVar6;\n  char *pcVar7;\n  int local_24;\n  \n  uVar1 = *(undefined4 *)(param_2 + 8);\n  uVar2 = *(undefined4 *)(param_2 + 0xc);\n  *param_1 = 0x7830;\n  *(undefined1 *)(param_1 + 1) = 0;\n  iVar3 = FUN_000277a0(uVar2);\n  if (iVar3 < 1) {\n    uVar5 = FUN_00027890(uVar2,0);\n    local_24 = 3;\n    *(char *)(param_1 + 1) = "0123456789abcdef"[uVar5 & 0xf];\n  }\n  else {\n    local_24 = iVar3 + 3 >> 2;\n    uVar5 = local_24 - 1;\n    pcVar7 = (char *)(param_1 + 1);\n    do {\n      iVar3 = FUN_00027890(uVar2,(int)uVar5 >> 1);\n      uVar6 = uVar5 - 1;\n      *pcVar7 = "0123456789abcdef"[iVar3 >> (sbyte)((uVar5 & 1) << 2) & 0xf];\n      uVar5 = uVar6;\n      pcVar7 = pcVar7 + 1;\n    } while (uVar6 != 0xffffffff);\n    local_24 = local_24 + 2;\n  }\n  *(undefined4 *)((int)param_1 + local_24) = 0x78302c;\n  iVar3 = FUN_000277a0(uVar1);\n  if (0 < iVar3) {\n    iVar3 = iVar3 + 3 >> 2;\n    uVar5 = iVar3 - 1;\n    pcVar7 = (char *)(local_24 + 3 + (int)param_1);\n    do {\n      iVar4 = FUN_00027890(uVar1,(int)uVar5 >> 1);\n      uVar6 = uVar5 - 1;\n      *pcVar7 = "0123456789abcdef"[iVar4 >> (sbyte)((uVar5 & 1) << 2) & 0xf];\n      uVar5 = uVar6;\n      pcVar7 = pcVar7 + 1;\n    } while (uVar6 != 0xffffffff);\n    *(undefined1 *)((int)param_1 + iVar3 + 3 + local_24) = 0;\n    return;\n  }\n  uVar5 = FUN_00027890(uVar1,0);\n  *(char *)((int)param_1 + local_24 + 3) = "0123456789abcdef"[uVar5 & 0xf];\n  *(undefined1 *)((int)param_1 + local_24 + 4) = 0;\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "char *pcVar7;" primitive_type (pointer_declarator "*pcVar7" * identifier) ;) (declaration "int local_24;" primitive_type identifier ;) (expression_statement "uVar1 = *(undefined4 *)(param_2 + 8);" (assignment_expression "uVar1 = *(undefined4 *)(param_2 + 8)" identifier = (pointer_expression "*(undefined4 *)(param_2 + 8)" * (cast_expression "(undefined4 *)(param_2 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) ))))) ;) (expression_statement "uVar2 = *(undefined4 *)(param_2 + 0xc);" (assignment_expression "uVar2 = *(undefined4 *)(param_2 + 0xc)" identifier = (pointer_expression "*(undefined4 *)(param_2 + 0xc)" * (cast_expression "(undefined4 *)(param_2 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xc)" ( (binary_expression "param_2 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "*param_1 = 0x7830;" (assignment_expression "*param_1 = 0x7830" (pointer_expression "*param_1" * identifier) = number_literal) ;) (expression_statement "*(undefined1 *)(param_1 + 1) = 0;" (assignment_expression "*(undefined1 *)(param_1 + 1) = 0" (pointer_expression "*(undefined1 *)(param_1 + 1)" * (cast_expression "(undefined1 *)(param_1 + 1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 1)" ( (binary_expression "param_1 + 1" identifier + number_literal) )))) = number_literal) ;) (expression_statement "iVar3 = FUN_000277a0(uVar2);" (assignment_expression "iVar3 = FUN_000277a0(uVar2)" identifier = (call_expression "FUN_000277a0(uVar2)" identifier (argument_list "(uVar2)" ( identifier )))) ;) (if_statement "if (iVar3 < 1) {\n    uVar5 = FUN_00027890(uVar2,0);\n    local_24 = 3;\n    *(char *)(param_1 + 1) = "0123456789abcdef"[uVar5 & 0xf];\n  }\n  else {\n    local_24 = iVar3 + 3 >> 2;\n    uVar5 = local_24 - 1;\n    pcVar7 = (char *)(param_1 + 1);\n    do {\n      iVar3 = FUN_00027890(uVar2,(int)uVar5 >> 1);\n      uVar6 = uVar5 - 1;\n      *pcVar7 = "0123456789abcdef"[iVar3 >> (sbyte)((uVar5 & 1) << 2) & 0xf];\n      uVar5 = uVar6;\n      pcVar7 = pcVar7 + 1;\n    } while (uVar6 != 0xffffffff);\n    local_24 = local_24 + 2;\n  }" if (parenthesized_expression "(iVar3 < 1)" ( (binary_expression "iVar3 < 1" identifier < number_literal) )) (compound_statement "{\n    uVar5 = FUN_00027890(uVar2,0);\n    local_24 = 3;\n    *(char *)(param_1 + 1) = "0123456789abcdef"[uVar5 & 0xf];\n  }" { (expression_statement "uVar5 = FUN_00027890(uVar2,0);" (assignment_expression "uVar5 = FUN_00027890(uVar2,0)" identifier = (call_expression "FUN_00027890(uVar2,0)" identifier (argument_list "(uVar2,0)" ( identifier , number_literal )))) ;) (expression_statement "local_24 = 3;" (assignment_expression "local_24 = 3" identifier = number_literal) ;) (expression_statement "*(char *)(param_1 + 1) = "0123456789abcdef"[uVar5 & 0xf];" (assignment_expression "*(char *)(param_1 + 1) = "0123456789abcdef"[uVar5 & 0xf]" (pointer_expression "*(char *)(param_1 + 1)" * (cast_expression "(char *)(param_1 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 1)" ( (binary_expression "param_1 + 1" identifier + number_literal) )))) = (subscript_expression ""0123456789abcdef"[uVar5 & 0xf]" (string_literal ""0123456789abcdef"" " string_content ") [ (binary_expression "uVar5 & 0xf" identifier & number_literal) ])) ;) }) (else_clause "else {\n    local_24 = iVar3 + 3 >> 2;\n    uVar5 = local_24 - 1;\n    pcVar7 = (char *)(param_1 + 1);\n    do {\n      iVar3 = FUN_00027890(uVar2,(int)uVar5 >> 1);\n      uVar6 = uVar5 - 1;\n      *pcVar7 = "0123456789abcdef"[iVar3 >> (sbyte)((uVar5 & 1) << 2) & 0xf];\n      uVar5 = uVar6;\n      pcVar7 = pcVar7 + 1;\n    } while (uVar6 != 0xffffffff);\n    local_24 = local_24 + 2;\n  }" else (compound_statement "{\n    local_24 = iVar3 + 3 >> 2;\n    uVar5 = local_24 - 1;\n    pcVar7 = (char *)(param_1 + 1);\n    do {\n      iVar3 = FUN_00027890(uVar2,(int)uVar5 >> 1);\n      uVar6 = uVar5 - 1;\n      *pcVar7 = "0123456789abcdef"[iVar3 >> (sbyte)((uVar5 & 1) << 2) & 0xf];\n      uVar5 = uVar6;\n      pcVar7 = pcVar7 + 1;\n    } while (uVar6 != 0xffffffff);\n    local_24 = local_24 + 2;\n  }" { (expression_statement "local_24 = iVar3 + 3 >> 2;" (assignment_expression "local_24 = iVar3 + 3 >> 2" identifier = (binary_expression "iVar3 + 3 >> 2" (binary_expression "iVar3 + 3" identifier + number_literal) >> number_literal)) ;) (expression_statement "uVar5 = local_24 - 1;" (assignment_expression "uVar5 = local_24 - 1" identifier = (binary_expression "local_24 - 1" identifier - number_literal)) ;) (expression_statement "pcVar7 = (char *)(param_1 + 1);" (assignment_expression "pcVar7 = (char *)(param_1 + 1)" identifier = (cast_expression "(char *)(param_1 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 1)" ( (binary_expression "param_1 + 1" identifier + number_literal) )))) ;) (do_statement "do {\n      iVar3 = FUN_00027890(uVar2,(int)uVar5 >> 1);\n      uVar6 = uVar5 - 1;\n      *pcVar7 = "0123456789abcdef"[iVar3 >> (sbyte)((uVar5 & 1) << 2) & 0xf];\n      uVar5 = uVar6;\n      pcVar7 = pcVar7 + 1;\n    } while (uVar6 != 0xffffffff);" do (compound_statement "{\n      iVar3 = FUN_00027890(uVar2,(int)uVar5 >> 1);\n      uVar6 = uVar5 - 1;\n      *pcVar7 = "0123456789abcdef"[iVar3 >> (sbyte)((uVar5 & 1) << 2) & 0xf];\n      uVar5 = uVar6;\n      pcVar7 = pcVar7 + 1;\n    }" { (expression_statement "iVar3 = FUN_00027890(uVar2,(int)uVar5 >> 1);" (assignment_expression "iVar3 = FUN_00027890(uVar2,(int)uVar5 >> 1)" identifier = (call_expression "FUN_00027890(uVar2,(int)uVar5 >> 1)" identifier (argument_list "(uVar2,(int)uVar5 >> 1)" ( identifier , (binary_expression "(int)uVar5 >> 1" (cast_expression "(int)uVar5" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) )))) ;) (expression_statement "uVar6 = uVar5 - 1;" (assignment_expression "uVar6 = uVar5 - 1" identifier = (binary_expression "uVar5 - 1" identifier - number_literal)) ;) (expression_statement "*pcVar7 = "0123456789abcdef"[iVar3 >> (sbyte)((uVar5 & 1) << 2) & 0xf];" (assignment_expression "*pcVar7 = "0123456789abcdef"[iVar3 >> (sbyte)((uVar5 & 1) << 2) & 0xf]" (pointer_expression "*pcVar7" * identifier) = (subscript_expression ""0123456789abcdef"[iVar3 >> (sbyte)((uVar5 & 1) << 2) & 0xf]" (string_literal ""0123456789abcdef"" " string_content ") [ (binary_expression "iVar3 >> (sbyte)((uVar5 & 1) << 2) & 0xf" (binary_expression "iVar3 >> (sbyte)((uVar5 & 1) << 2)" identifier >> (call_expression "(sbyte)((uVar5 & 1) << 2)" (parenthesized_expression "(sbyte)" ( identifier )) (argument_list "((uVar5 & 1) << 2)" ( (binary_expression "(uVar5 & 1) << 2" (parenthesized_expression "(uVar5 & 1)" ( (binary_expression "uVar5 & 1" identifier & number_literal) )) << number_literal) )))) & number_literal) ])) ;) (expression_statement "uVar5 = uVar6;" (assignment_expression "uVar5 = uVar6" identifier = identifier) ;) (expression_statement "pcVar7 = pcVar7 + 1;" (assignment_expression "pcVar7 = pcVar7 + 1" identifier = (binary_expression "pcVar7 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar6 != 0xffffffff)" ( (binary_expression "uVar6 != 0xffffffff" identifier != number_literal) )) ;) (expression_statement "local_24 = local_24 + 2;" (assignment_expression "local_24 = local_24 + 2" identifier = (binary_expression "local_24 + 2" identifier + number_literal)) ;) }))) (expression_statement "*(undefined4 *)((int)param_1 + local_24) = 0x78302c;" (assignment_expression "*(undefined4 *)((int)param_1 + local_24) = 0x78302c" (pointer_expression "*(undefined4 *)((int)param_1 + local_24)" * (cast_expression "(undefined4 *)((int)param_1 + local_24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + local_24)" ( (binary_expression "(int)param_1 + local_24" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) = number_literal) ;) (expression_statement "iVar3 = FUN_000277a0(uVar1);" (assignment_expression "iVar3 = FUN_000277a0(uVar1)" identifier = (call_expression "FUN_000277a0(uVar1)" identifier (argument_list "(uVar1)" ( identifier )))) ;) (if_statement "if (0 < iVar3) {\n    iVar3 = iVar3 + 3 >> 2;\n    uVar5 = iVar3 - 1;\n    pcVar7 = (char *)(local_24 + 3 + (int)param_1);\n    do {\n      iVar4 = FUN_00027890(uVar1,(int)uVar5 >> 1);\n      uVar6 = uVar5 - 1;\n      *pcVar7 = "0123456789abcdef"[iVar4 >> (sbyte)((uVar5 & 1) << 2) & 0xf];\n      uVar5 = uVar6;\n      pcVar7 = pcVar7 + 1;\n    } while (uVar6 != 0xffffffff);\n    *(undefined1 *)((int)param_1 + iVar3 + 3 + local_24) = 0;\n    return;\n  }" if (parenthesized_expression "(0 < iVar3)" ( (binary_expression "0 < iVar3" number_literal < identifier) )) (compound_statement "{\n    iVar3 = iVar3 + 3 >> 2;\n    uVar5 = iVar3 - 1;\n    pcVar7 = (char *)(local_24 + 3 + (int)param_1);\n    do {\n      iVar4 = FUN_00027890(uVar1,(int)uVar5 >> 1);\n      uVar6 = uVar5 - 1;\n      *pcVar7 = "0123456789abcdef"[iVar4 >> (sbyte)((uVar5 & 1) << 2) & 0xf];\n      uVar5 = uVar6;\n      pcVar7 = pcVar7 + 1;\n    } while (uVar6 != 0xffffffff);\n    *(undefined1 *)((int)param_1 + iVar3 + 3 + local_24) = 0;\n    return;\n  }" { (expression_statement "iVar3 = iVar3 + 3 >> 2;" (assignment_expression "iVar3 = iVar3 + 3 >> 2" identifier = (binary_expression "iVar3 + 3 >> 2" (binary_expression "iVar3 + 3" identifier + number_literal) >> number_literal)) ;) (expression_statement "uVar5 = iVar3 - 1;" (assignment_expression "uVar5 = iVar3 - 1" identifier = (binary_expression "iVar3 - 1" identifier - number_literal)) ;) (expression_statement "pcVar7 = (char *)(local_24 + 3 + (int)param_1);" (assignment_expression "pcVar7 = (char *)(local_24 + 3 + (int)param_1)" identifier = (cast_expression "(char *)(local_24 + 3 + (int)param_1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_24 + 3 + (int)param_1)" ( (binary_expression "local_24 + 3 + (int)param_1" (binary_expression "local_24 + 3" identifier + number_literal) + (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier)) )))) ;) (do_statement "do {\n      iVar4 = FUN_00027890(uVar1,(int)uVar5 >> 1);\n      uVar6 = uVar5 - 1;\n      *pcVar7 = "0123456789abcdef"[iVar4 >> (sbyte)((uVar5 & 1) << 2) & 0xf];\n      uVar5 = uVar6;\n      pcVar7 = pcVar7 + 1;\n    } while (uVar6 != 0xffffffff);" do (compound_statement "{\n      iVar4 = FUN_00027890(uVar1,(int)uVar5 >> 1);\n      uVar6 = uVar5 - 1;\n      *pcVar7 = "0123456789abcdef"[iVar4 >> (sbyte)((uVar5 & 1) << 2) & 0xf];\n      uVar5 = uVar6;\n      pcVar7 = pcVar7 + 1;\n    }" { (expression_statement "iVar4 = FUN_00027890(uVar1,(int)uVar5 >> 1);" (assignment_expression "iVar4 = FUN_00027890(uVar1,(int)uVar5 >> 1)" identifier = (call_expression "FUN_00027890(uVar1,(int)uVar5 >> 1)" identifier (argument_list "(uVar1,(int)uVar5 >> 1)" ( identifier , (binary_expression "(int)uVar5 >> 1" (cast_expression "(int)uVar5" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) )))) ;) (expression_statement "uVar6 = uVar5 - 1;" (assignment_expression "uVar6 = uVar5 - 1" identifier = (binary_expression "uVar5 - 1" identifier - number_literal)) ;) (expression_statement "*pcVar7 = "0123456789abcdef"[iVar4 >> (sbyte)((uVar5 & 1) << 2) & 0xf];" (assignment_expression "*pcVar7 = "0123456789abcdef"[iVar4 >> (sbyte)((uVar5 & 1) << 2) & 0xf]" (pointer_expression "*pcVar7" * identifier) = (subscript_expression ""0123456789abcdef"[iVar4 >> (sbyte)((uVar5 & 1) << 2) & 0xf]" (string_literal ""0123456789abcdef"" " string_content ") [ (binary_expression "iVar4 >> (sbyte)((uVar5 & 1) << 2) & 0xf" (binary_expression "iVar4 >> (sbyte)((uVar5 & 1) << 2)" identifier >> (call_expression "(sbyte)((uVar5 & 1) << 2)" (parenthesized_expression "(sbyte)" ( identifier )) (argument_list "((uVar5 & 1) << 2)" ( (binary_expression "(uVar5 & 1) << 2" (parenthesized_expression "(uVar5 & 1)" ( (binary_expression "uVar5 & 1" identifier & number_literal) )) << number_literal) )))) & number_literal) ])) ;) (expression_statement "uVar5 = uVar6;" (assignment_expression "uVar5 = uVar6" identifier = identifier) ;) (expression_statement "pcVar7 = pcVar7 + 1;" (assignment_expression "pcVar7 = pcVar7 + 1" identifier = (binary_expression "pcVar7 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar6 != 0xffffffff)" ( (binary_expression "uVar6 != 0xffffffff" identifier != number_literal) )) ;) (expression_statement "*(undefined1 *)((int)param_1 + iVar3 + 3 + local_24) = 0;" (assignment_expression "*(undefined1 *)((int)param_1 + iVar3 + 3 + local_24) = 0" (pointer_expression "*(undefined1 *)((int)param_1 + iVar3 + 3 + local_24)" * (cast_expression "(undefined1 *)((int)param_1 + iVar3 + 3 + local_24)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + iVar3 + 3 + local_24)" ( (binary_expression "(int)param_1 + iVar3 + 3 + local_24" (binary_expression "(int)param_1 + iVar3 + 3" (binary_expression "(int)param_1 + iVar3" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) + identifier) )))) = number_literal) ;) (return_statement "return;" return ;) })) (expression_statement "uVar5 = FUN_00027890(uVar1,0);" (assignment_expression "uVar5 = FUN_00027890(uVar1,0)" identifier = (call_expression "FUN_00027890(uVar1,0)" identifier (argument_list "(uVar1,0)" ( identifier , number_literal )))) ;) (expression_statement "*(char *)((int)param_1 + local_24 + 3) = "0123456789abcdef"[uVar5 & 0xf];" (assignment_expression "*(char *)((int)param_1 + local_24 + 3) = "0123456789abcdef"[uVar5 & 0xf]" (pointer_expression "*(char *)((int)param_1 + local_24 + 3)" * (cast_expression "(char *)((int)param_1 + local_24 + 3)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + local_24 + 3)" ( (binary_expression "(int)param_1 + local_24 + 3" (binary_expression "(int)param_1 + local_24" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = (subscript_expression ""0123456789abcdef"[uVar5 & 0xf]" (string_literal ""0123456789abcdef"" " string_content ") [ (binary_expression "uVar5 & 0xf" identifier & number_literal) ])) ;) (expression_statement "*(undefined1 *)((int)param_1 + local_24 + 4) = 0;" (assignment_expression "*(undefined1 *)((int)param_1 + local_24 + 4) = 0" (pointer_expression "*(undefined1 *)((int)param_1 + local_24 + 4)" * (cast_expression "(undefined1 *)((int)param_1 + local_24 + 4)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + local_24 + 4)" ( (binary_expression "(int)param_1 + local_24 + 4" (binary_expression "(int)param_1 + local_24" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nvoid rsastr_fmt(char *str,RSAKey *key)\n\n{\n  Bignum_conflict bn;\n  Bignum_conflict bn_00;\n  int iVar1;\n  int iVar2;\n  uint uVar3;\n  uint uVar4;\n  char *pcVar5;\n  int local_24;\n  \n  bn = (Bignum_conflict)key->modulus;\n  bn_00 = (Bignum_conflict)key->exponent;\n  str[0] = '0';\n  str[1] = 'x';\n  str[2] = '\0';\n  iVar1 = bignum_bitcount(bn_00);\n  if (iVar1 < 1) {\n    uVar3 = bignum_byte(bn_00,0);\n    local_24 = 3;\n    str[2] = "0123456789abcdef"[uVar3 & 0xf];\n  }\n  else {\n    local_24 = iVar1 + 3 >> 2;\n    uVar3 = local_24 - 1;\n    pcVar5 = str + 2;\n    do {\n      iVar1 = bignum_byte(bn_00,(int)uVar3 >> 1);\n      uVar4 = uVar3 - 1;\n      *pcVar5 = "0123456789abcdef"[iVar1 >> (sbyte)((uVar3 & 1) << 2) & 0xf];\n      uVar3 = uVar4;\n      pcVar5 = pcVar5 + 1;\n    } while (uVar4 != 0xffffffff);\n    local_24 = local_24 + 2;\n  }\n  builtin_strncpy(str + local_24,",0x",4);\n  iVar1 = bignum_bitcount(bn);\n  if (0 < iVar1) {\n    iVar1 = iVar1 + 3 >> 2;\n    uVar3 = iVar1 - 1;\n    pcVar5 = str + local_24 + 3;\n    do {\n      iVar2 = bignum_byte(bn,(int)uVar3 >> 1);\n      uVar4 = uVar3 - 1;\n      *pcVar5 = "0123456789abcdef"[iVar2 >> (sbyte)((uVar3 & 1) << 2) & 0xf];\n      uVar3 = uVar4;\n      pcVar5 = pcVar5 + 1;\n    } while (uVar4 != 0xffffffff);\n    str[iVar1 + 3 + local_24] = '\0';\n    return;\n  }\n  uVar3 = bignum_byte(bn,0);\n  str[local_24 + 3] = "0123456789abcdef"[uVar3 & 0xf];\n  str[local_24 + 4] = '\0';\n  return;\n}\n\n" comment comment (function_definition "void rsastr_fmt(char *str,RSAKey *key)\n\n{\n  Bignum_conflict bn;\n  Bignum_conflict bn_00;\n  int iVar1;\n  int iVar2;\n  uint uVar3;\n  uint uVar4;\n  char *pcVar5;\n  int local_24;\n  \n  bn = (Bignum_conflict)key->modulus;\n  bn_00 = (Bignum_conflict)key->exponent;\n  str[0] = '0';\n  str[1] = 'x';\n  str[2] = '\0';\n  iVar1 = bignum_bitcount(bn_00);\n  if (iVar1 < 1) {\n    uVar3 = bignum_byte(bn_00,0);\n    local_24 = 3;\n    str[2] = "0123456789abcdef"[uVar3 & 0xf];\n  }\n  else {\n    local_24 = iVar1 + 3 >> 2;\n    uVar3 = local_24 - 1;\n    pcVar5 = str + 2;\n    do {\n      iVar1 = bignum_byte(bn_00,(int)uVar3 >> 1);\n      uVar4 = uVar3 - 1;\n      *pcVar5 = "0123456789abcdef"[iVar1 >> (sbyte)((uVar3 & 1) << 2) & 0xf];\n      uVar3 = uVar4;\n      pcVar5 = pcVar5 + 1;\n    } while (uVar4 != 0xffffffff);\n    local_24 = local_24 + 2;\n  }\n  builtin_strncpy(str + local_24,",0x",4);\n  iVar1 = bignum_bitcount(bn);\n  if (0 < iVar1) {\n    iVar1 = iVar1 + 3 >> 2;\n    uVar3 = iVar1 - 1;\n    pcVar5 = str + local_24 + 3;\n    do {\n      iVar2 = bignum_byte(bn,(int)uVar3 >> 1);\n      uVar4 = uVar3 - 1;\n      *pcVar5 = "0123456789abcdef"[iVar2 >> (sbyte)((uVar3 & 1) << 2) & 0xf];\n      uVar3 = uVar4;\n      pcVar5 = pcVar5 + 1;\n    } while (uVar4 != 0xffffffff);\n    str[iVar1 + 3 + local_24] = '\0';\n    return;\n  }\n  uVar3 = bignum_byte(bn,0);\n  str[local_24 + 3] = "0123456789abcdef"[uVar3 & 0xf];\n  str[local_24 + 4] = '\0';\n  return;\n}" primitive_type (function_declarator "rsastr_fmt(char *str,RSAKey *key)" identifier (parameter_list "(char *str,RSAKey *key)" ( (parameter_declaration "char *str" primitive_type (pointer_declarator "*str" * identifier)) , (parameter_declaration "RSAKey *key" type_identifier (pointer_declarator "*key" * identifier)) ))) (compound_statement "{\n  Bignum_conflict bn;\n  Bignum_conflict bn_00;\n  int iVar1;\n  int iVar2;\n  uint uVar3;\n  uint uVar4;\n  char *pcVar5;\n  int local_24;\n  \n  bn = (Bignum_conflict)key->modulus;\n  bn_00 = (Bignum_conflict)key->exponent;\n  str[0] = '0';\n  str[1] = 'x';\n  str[2] = '\0';\n  iVar1 = bignum_bitcount(bn_00);\n  if (iVar1 < 1) {\n    uVar3 = bignum_byte(bn_00,0);\n    local_24 = 3;\n    str[2] = "0123456789abcdef"[uVar3 & 0xf];\n  }\n  else {\n    local_24 = iVar1 + 3 >> 2;\n    uVar3 = local_24 - 1;\n    pcVar5 = str + 2;\n    do {\n      iVar1 = bignum_byte(bn_00,(int)uVar3 >> 1);\n      uVar4 = uVar3 - 1;\n      *pcVar5 = "0123456789abcdef"[iVar1 >> (sbyte)((uVar3 & 1) << 2) & 0xf];\n      uVar3 = uVar4;\n      pcVar5 = pcVar5 + 1;\n    } while (uVar4 != 0xffffffff);\n    local_24 = local_24 + 2;\n  }\n  builtin_strncpy(str + local_24,",0x",4);\n  iVar1 = bignum_bitcount(bn);\n  if (0 < iVar1) {\n    iVar1 = iVar1 + 3 >> 2;\n    uVar3 = iVar1 - 1;\n    pcVar5 = str + local_24 + 3;\n    do {\n      iVar2 = bignum_byte(bn,(int)uVar3 >> 1);\n      uVar4 = uVar3 - 1;\n      *pcVar5 = "0123456789abcdef"[iVar2 >> (sbyte)((uVar3 & 1) << 2) & 0xf];\n      uVar3 = uVar4;\n      pcVar5 = pcVar5 + 1;\n    } while (uVar4 != 0xffffffff);\n    str[iVar1 + 3 + local_24] = '\0';\n    return;\n  }\n  uVar3 = bignum_byte(bn,0);\n  str[local_24 + 3] = "0123456789abcdef"[uVar3 & 0xf];\n  str[local_24 + 4] = '\0';\n  return;\n}" { (declaration "Bignum_conflict bn;" type_identifier identifier ;) (declaration "Bignum_conflict bn_00;" type_identifier identifier ;) (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "int local_24;" primitive_type identifier ;) (expression_statement "bn = (Bignum_conflict)key->modulus;" (assignment_expression "bn = (Bignum_conflict)key->modulus" identifier = (cast_expression "(Bignum_conflict)key->modulus" ( (type_descriptor "Bignum_conflict" type_identifier) ) (field_expression "key->modulus" identifier -> field_identifier))) ;) (expression_statement "bn_00 = (Bignum_conflict)key->exponent;" (assignment_expression "bn_00 = (Bignum_conflict)key->exponent" identifier = (cast_expression "(Bignum_conflict)key->exponent" ( (type_descriptor "Bignum_conflict" type_identifier) ) (field_expression "key->exponent" identifier -> field_identifier))) ;) (expression_statement "str[0] = '0';" (assignment_expression "str[0] = '0'" (subscript_expression "str[0]" identifier [ number_literal ]) = (char_literal "'0'" ' character ')) ;) (expression_statement "str[1] = 'x';" (assignment_expression "str[1] = 'x'" (subscript_expression "str[1]" identifier [ number_literal ]) = (char_literal "'x'" ' character ')) ;) (expression_statement "str[2] = '\0';" (assignment_expression "str[2] = '\0'" (subscript_expression "str[2]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "iVar1 = bignum_bitcount(bn_00);" (assignment_expression "iVar1 = bignum_bitcount(bn_00)" identifier = (call_expression "bignum_bitcount(bn_00)" identifier (argument_list "(bn_00)" ( identifier )))) ;) (if_statement "if (iVar1 < 1) {\n    uVar3 = bignum_byte(bn_00,0);\n    local_24 = 3;\n    str[2] = "0123456789abcdef"[uVar3 & 0xf];\n  }\n  else {\n    local_24 = iVar1 + 3 >> 2;\n    uVar3 = local_24 - 1;\n    pcVar5 = str + 2;\n    do {\n      iVar1 = bignum_byte(bn_00,(int)uVar3 >> 1);\n      uVar4 = uVar3 - 1;\n      *pcVar5 = "0123456789abcdef"[iVar1 >> (sbyte)((uVar3 & 1) << 2) & 0xf];\n      uVar3 = uVar4;\n      pcVar5 = pcVar5 + 1;\n    } while (uVar4 != 0xffffffff);\n    local_24 = local_24 + 2;\n  }" if (parenthesized_expression "(iVar1 < 1)" ( (binary_expression "iVar1 < 1" identifier < number_literal) )) (compound_statement "{\n    uVar3 = bignum_byte(bn_00,0);\n    local_24 = 3;\n    str[2] = "0123456789abcdef"[uVar3 & 0xf];\n  }" { (expression_statement "uVar3 = bignum_byte(bn_00,0);" (assignment_expression "uVar3 = bignum_byte(bn_00,0)" identifier = (call_expression "bignum_byte(bn_00,0)" identifier (argument_list "(bn_00,0)" ( identifier , number_literal )))) ;) (expression_statement "local_24 = 3;" (assignment_expression "local_24 = 3" identifier = number_literal) ;) (expression_statement "str[2] = "0123456789abcdef"[uVar3 & 0xf];" (assignment_expression "str[2] = "0123456789abcdef"[uVar3 & 0xf]" (subscript_expression "str[2]" identifier [ number_literal ]) = (subscript_expression ""0123456789abcdef"[uVar3 & 0xf]" (string_literal ""0123456789abcdef"" " string_content ") [ (binary_expression "uVar3 & 0xf" identifier & number_literal) ])) ;) }) (else_clause "else {\n    local_24 = iVar1 + 3 >> 2;\n    uVar3 = local_24 - 1;\n    pcVar5 = str + 2;\n    do {\n      iVar1 = bignum_byte(bn_00,(int)uVar3 >> 1);\n      uVar4 = uVar3 - 1;\n      *pcVar5 = "0123456789abcdef"[iVar1 >> (sbyte)((uVar3 & 1) << 2) & 0xf];\n      uVar3 = uVar4;\n      pcVar5 = pcVar5 + 1;\n    } while (uVar4 != 0xffffffff);\n    local_24 = local_24 + 2;\n  }" else (compound_statement "{\n    local_24 = iVar1 + 3 >> 2;\n    uVar3 = local_24 - 1;\n    pcVar5 = str + 2;\n    do {\n      iVar1 = bignum_byte(bn_00,(int)uVar3 >> 1);\n      uVar4 = uVar3 - 1;\n      *pcVar5 = "0123456789abcdef"[iVar1 >> (sbyte)((uVar3 & 1) << 2) & 0xf];\n      uVar3 = uVar4;\n      pcVar5 = pcVar5 + 1;\n    } while (uVar4 != 0xffffffff);\n    local_24 = local_24 + 2;\n  }" { (expression_statement "local_24 = iVar1 + 3 >> 2;" (assignment_expression "local_24 = iVar1 + 3 >> 2" identifier = (binary_expression "iVar1 + 3 >> 2" (binary_expression "iVar1 + 3" identifier + number_literal) >> number_literal)) ;) (expression_statement "uVar3 = local_24 - 1;" (assignment_expression "uVar3 = local_24 - 1" identifier = (binary_expression "local_24 - 1" identifier - number_literal)) ;) (expression_statement "pcVar5 = str + 2;" (assignment_expression "pcVar5 = str + 2" identifier = (binary_expression "str + 2" identifier + number_literal)) ;) (do_statement "do {\n      iVar1 = bignum_byte(bn_00,(int)uVar3 >> 1);\n      uVar4 = uVar3 - 1;\n      *pcVar5 = "0123456789abcdef"[iVar1 >> (sbyte)((uVar3 & 1) << 2) & 0xf];\n      uVar3 = uVar4;\n      pcVar5 = pcVar5 + 1;\n    } while (uVar4 != 0xffffffff);" do (compound_statement "{\n      iVar1 = bignum_byte(bn_00,(int)uVar3 >> 1);\n      uVar4 = uVar3 - 1;\n      *pcVar5 = "0123456789abcdef"[iVar1 >> (sbyte)((uVar3 & 1) << 2) & 0xf];\n      uVar3 = uVar4;\n      pcVar5 = pcVar5 + 1;\n    }" { (expression_statement "iVar1 = bignum_byte(bn_00,(int)uVar3 >> 1);" (assignment_expression "iVar1 = bignum_byte(bn_00,(int)uVar3 >> 1)" identifier = (call_expression "bignum_byte(bn_00,(int)uVar3 >> 1)" identifier (argument_list "(bn_00,(int)uVar3 >> 1)" ( identifier , (binary_expression "(int)uVar3 >> 1" (cast_expression "(int)uVar3" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) )))) ;) (expression_statement "uVar4 = uVar3 - 1;" (assignment_expression "uVar4 = uVar3 - 1" identifier = (binary_expression "uVar3 - 1" identifier - number_literal)) ;) (expression_statement "*pcVar5 = "0123456789abcdef"[iVar1 >> (sbyte)((uVar3 & 1) << 2) & 0xf];" (assignment_expression "*pcVar5 = "0123456789abcdef"[iVar1 >> (sbyte)((uVar3 & 1) << 2) & 0xf]" (pointer_expression "*pcVar5" * identifier) = (subscript_expression ""0123456789abcdef"[iVar1 >> (sbyte)((uVar3 & 1) << 2) & 0xf]" (string_literal ""0123456789abcdef"" " string_content ") [ (binary_expression "iVar1 >> (sbyte)((uVar3 & 1) << 2) & 0xf" (binary_expression "iVar1 >> (sbyte)((uVar3 & 1) << 2)" identifier >> (call_expression "(sbyte)((uVar3 & 1) << 2)" (parenthesized_expression "(sbyte)" ( identifier )) (argument_list "((uVar3 & 1) << 2)" ( (binary_expression "(uVar3 & 1) << 2" (parenthesized_expression "(uVar3 & 1)" ( (binary_expression "uVar3 & 1" identifier & number_literal) )) << number_literal) )))) & number_literal) ])) ;) (expression_statement "uVar3 = uVar4;" (assignment_expression "uVar3 = uVar4" identifier = identifier) ;) (expression_statement "pcVar5 = pcVar5 + 1;" (assignment_expression "pcVar5 = pcVar5 + 1" identifier = (binary_expression "pcVar5 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar4 != 0xffffffff)" ( (binary_expression "uVar4 != 0xffffffff" identifier != number_literal) )) ;) (expression_statement "local_24 = local_24 + 2;" (assignment_expression "local_24 = local_24 + 2" identifier = (binary_expression "local_24 + 2" identifier + number_literal)) ;) }))) (expression_statement "builtin_strncpy(str + local_24,",0x",4);" (call_expression "builtin_strncpy(str + local_24,",0x",4)" identifier (argument_list "(str + local_24,",0x",4)" ( (binary_expression "str + local_24" identifier + identifier) , (string_literal "",0x"" " string_content ") , number_literal ))) ;) (expression_statement "iVar1 = bignum_bitcount(bn);" (assignment_expression "iVar1 = bignum_bitcount(bn)" identifier = (call_expression "bignum_bitcount(bn)" identifier (argument_list "(bn)" ( identifier )))) ;) (if_statement "if (0 < iVar1) {\n    iVar1 = iVar1 + 3 >> 2;\n    uVar3 = iVar1 - 1;\n    pcVar5 = str + local_24 + 3;\n    do {\n      iVar2 = bignum_byte(bn,(int)uVar3 >> 1);\n      uVar4 = uVar3 - 1;\n      *pcVar5 = "0123456789abcdef"[iVar2 >> (sbyte)((uVar3 & 1) << 2) & 0xf];\n      uVar3 = uVar4;\n      pcVar5 = pcVar5 + 1;\n    } while (uVar4 != 0xffffffff);\n    str[iVar1 + 3 + local_24] = '\0';\n    return;\n  }" if (parenthesized_expression "(0 < iVar1)" ( (binary_expression "0 < iVar1" number_literal < identifier) )) (compound_statement "{\n    iVar1 = iVar1 + 3 >> 2;\n    uVar3 = iVar1 - 1;\n    pcVar5 = str + local_24 + 3;\n    do {\n      iVar2 = bignum_byte(bn,(int)uVar3 >> 1);\n      uVar4 = uVar3 - 1;\n      *pcVar5 = "0123456789abcdef"[iVar2 >> (sbyte)((uVar3 & 1) << 2) & 0xf];\n      uVar3 = uVar4;\n      pcVar5 = pcVar5 + 1;\n    } while (uVar4 != 0xffffffff);\n    str[iVar1 + 3 + local_24] = '\0';\n    return;\n  }" { (expression_statement "iVar1 = iVar1 + 3 >> 2;" (assignment_expression "iVar1 = iVar1 + 3 >> 2" identifier = (binary_expression "iVar1 + 3 >> 2" (binary_expression "iVar1 + 3" identifier + number_literal) >> number_literal)) ;) (expression_statement "uVar3 = iVar1 - 1;" (assignment_expression "uVar3 = iVar1 - 1" identifier = (binary_expression "iVar1 - 1" identifier - number_literal)) ;) (expression_statement "pcVar5 = str + local_24 + 3;" (assignment_expression "pcVar5 = str + local_24 + 3" identifier = (binary_expression "str + local_24 + 3" (binary_expression "str + local_24" identifier + identifier) + number_literal)) ;) (do_statement "do {\n      iVar2 = bignum_byte(bn,(int)uVar3 >> 1);\n      uVar4 = uVar3 - 1;\n      *pcVar5 = "0123456789abcdef"[iVar2 >> (sbyte)((uVar3 & 1) << 2) & 0xf];\n      uVar3 = uVar4;\n      pcVar5 = pcVar5 + 1;\n    } while (uVar4 != 0xffffffff);" do (compound_statement "{\n      iVar2 = bignum_byte(bn,(int)uVar3 >> 1);\n      uVar4 = uVar3 - 1;\n      *pcVar5 = "0123456789abcdef"[iVar2 >> (sbyte)((uVar3 & 1) << 2) & 0xf];\n      uVar3 = uVar4;\n      pcVar5 = pcVar5 + 1;\n    }" { (expression_statement "iVar2 = bignum_byte(bn,(int)uVar3 >> 1);" (assignment_expression "iVar2 = bignum_byte(bn,(int)uVar3 >> 1)" identifier = (call_expression "bignum_byte(bn,(int)uVar3 >> 1)" identifier (argument_list "(bn,(int)uVar3 >> 1)" ( identifier , (binary_expression "(int)uVar3 >> 1" (cast_expression "(int)uVar3" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) )))) ;) (expression_statement "uVar4 = uVar3 - 1;" (assignment_expression "uVar4 = uVar3 - 1" identifier = (binary_expression "uVar3 - 1" identifier - number_literal)) ;) (expression_statement "*pcVar5 = "0123456789abcdef"[iVar2 >> (sbyte)((uVar3 & 1) << 2) & 0xf];" (assignment_expression "*pcVar5 = "0123456789abcdef"[iVar2 >> (sbyte)((uVar3 & 1) << 2) & 0xf]" (pointer_expression "*pcVar5" * identifier) = (subscript_expression ""0123456789abcdef"[iVar2 >> (sbyte)((uVar3 & 1) << 2) & 0xf]" (string_literal ""0123456789abcdef"" " string_content ") [ (binary_expression "iVar2 >> (sbyte)((uVar3 & 1) << 2) & 0xf" (binary_expression "iVar2 >> (sbyte)((uVar3 & 1) << 2)" identifier >> (call_expression "(sbyte)((uVar3 & 1) << 2)" (parenthesized_expression "(sbyte)" ( identifier )) (argument_list "((uVar3 & 1) << 2)" ( (binary_expression "(uVar3 & 1) << 2" (parenthesized_expression "(uVar3 & 1)" ( (binary_expression "uVar3 & 1" identifier & number_literal) )) << number_literal) )))) & number_literal) ])) ;) (expression_statement "uVar3 = uVar4;" (assignment_expression "uVar3 = uVar4" identifier = identifier) ;) (expression_statement "pcVar5 = pcVar5 + 1;" (assignment_expression "pcVar5 = pcVar5 + 1" identifier = (binary_expression "pcVar5 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar4 != 0xffffffff)" ( (binary_expression "uVar4 != 0xffffffff" identifier != number_literal) )) ;) (expression_statement "str[iVar1 + 3 + local_24] = '\0';" (assignment_expression "str[iVar1 + 3 + local_24] = '\0'" (subscript_expression "str[iVar1 + 3 + local_24]" identifier [ (binary_expression "iVar1 + 3 + local_24" (binary_expression "iVar1 + 3" identifier + number_literal) + identifier) ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (return_statement "return;" return ;) })) (expression_statement "uVar3 = bignum_byte(bn,0);" (assignment_expression "uVar3 = bignum_byte(bn,0)" identifier = (call_expression "bignum_byte(bn,0)" identifier (argument_list "(bn,0)" ( identifier , number_literal )))) ;) (expression_statement "str[local_24 + 3] = "0123456789abcdef"[uVar3 & 0xf];" (assignment_expression "str[local_24 + 3] = "0123456789abcdef"[uVar3 & 0xf]" (subscript_expression "str[local_24 + 3]" identifier [ (binary_expression "local_24 + 3" identifier + number_literal) ]) = (subscript_expression ""0123456789abcdef"[uVar3 & 0xf]" (string_literal ""0123456789abcdef"" " string_content ") [ (binary_expression "uVar3 & 0xf" identifier & number_literal) ])) ;) (expression_statement "str[local_24 + 4] = '\0';" (assignment_expression "str[local_24 + 4] = '\0'" (subscript_expression "str[local_24 + 4]" identifier [ (binary_expression "local_24 + 4" identifier + number_literal) ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0003d920(undefined2 *param_1,int param_2)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  uint uVar5;\n  uint uVar6;\n  char *pcVar7;\n  int local_24;\n  \n  uVar1 = *(undefined4 *)(param_2 + 8);\n  uVar2 = *(undefined4 *)(param_2 + 0xc);\n  *param_1 = 0x7830;\n  *(undefined1 *)(param_1 + 1) = 0;\n  iVar3 = FUN_000277a0(uVar2);\n  if (iVar3 < 1) {\n    uVar5 = FUN_00027890(uVar2,0);\n    local_24 = 3;\n    *(char *)(param_1 + 1) = "0123456789abcdef"[uVar5 & 0xf];\n  }\n  else {\n    local_24 = iVar3 + 3 >> 2;\n    uVar5 = local_24 - 1;\n    pcVar7 = (char *)(param_1 + 1);\n    do {\n      iVar3 = FUN_00027890(uVar2,(int)uVar5 >> 1);\n      uVar6 = uVar5 - 1;\n      *pcVar7 = "0123456789abcdef"[iVar3 >> (sbyte)((uVar5 & 1) << 2) & 0xf];\n      uVar5 = uVar6;\n      pcVar7 = pcVar7 + 1;\n    } while (uVar6 != 0xffffffff);\n    local_24 = local_24 + 2;\n  }\n  *(undefined4 *)((int)param_1 + local_24) = 0x78302c;\n  iVar3 = FUN_000277a0(uVar1);\n  if (0 < iVar3) {\n    iVar3 = iVar3 + 3 >> 2;\n    uVar5 = iVar3 - 1;\n    pcVar7 = (char *)(local_24 + 3 + (int)param_1);\n    do {\n      iVar4 = FUN_00027890(uVar1,(int)uVar5 >> 1);\n      uVar6 = uVar5 - 1;\n      *pcVar7 = "0123456789abcdef"[iVar4 >> (sbyte)((uVar5 & 1) << 2) & 0xf];\n      uVar5 = uVar6;\n      pcVar7 = pcVar7 + 1;\n    } while (uVar6 != 0xffffffff);\n    *(undefined1 *)((int)param_1 + iVar3 + 3 + local_24) = 0;\n    return;\n  }\n  uVar5 = FUN_00027890(uVar1,0);\n  *(char *)((int)param_1 + local_24 + 3) = "0123456789abcdef"[uVar5 & 0xf];\n  *(undefined1 *)((int)param_1 + local_24 + 4) = 0;\n  return;\n}\n\n" (function_definition "void FUN_0003d920(undefined2 *param_1,int param_2)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  uint uVar5;\n  uint uVar6;\n  char *pcVar7;\n  int local_24;\n  \n  uVar1 = *(undefined4 *)(param_2 + 8);\n  uVar2 = *(undefined4 *)(param_2 + 0xc);\n  *param_1 = 0x7830;\n  *(undefined1 *)(param_1 + 1) = 0;\n  iVar3 = FUN_000277a0(uVar2);\n  if (iVar3 < 1) {\n    uVar5 = FUN_00027890(uVar2,0);\n    local_24 = 3;\n    *(char *)(param_1 + 1) = "0123456789abcdef"[uVar5 & 0xf];\n  }\n  else {\n    local_24 = iVar3 + 3 >> 2;\n    uVar5 = local_24 - 1;\n    pcVar7 = (char *)(param_1 + 1);\n    do {\n      iVar3 = FUN_00027890(uVar2,(int)uVar5 >> 1);\n      uVar6 = uVar5 - 1;\n      *pcVar7 = "0123456789abcdef"[iVar3 >> (sbyte)((uVar5 & 1) << 2) & 0xf];\n      uVar5 = uVar6;\n      pcVar7 = pcVar7 + 1;\n    } while (uVar6 != 0xffffffff);\n    local_24 = local_24 + 2;\n  }\n  *(undefined4 *)((int)param_1 + local_24) = 0x78302c;\n  iVar3 = FUN_000277a0(uVar1);\n  if (0 < iVar3) {\n    iVar3 = iVar3 + 3 >> 2;\n    uVar5 = iVar3 - 1;\n    pcVar7 = (char *)(local_24 + 3 + (int)param_1);\n    do {\n      iVar4 = FUN_00027890(uVar1,(int)uVar5 >> 1);\n      uVar6 = uVar5 - 1;\n      *pcVar7 = "0123456789abcdef"[iVar4 >> (sbyte)((uVar5 & 1) << 2) & 0xf];\n      uVar5 = uVar6;\n      pcVar7 = pcVar7 + 1;\n    } while (uVar6 != 0xffffffff);\n    *(undefined1 *)((int)param_1 + iVar3 + 3 + local_24) = 0;\n    return;\n  }\n  uVar5 = FUN_00027890(uVar1,0);\n  *(char *)((int)param_1 + local_24 + 3) = "0123456789abcdef"[uVar5 & 0xf];\n  *(undefined1 *)((int)param_1 + local_24 + 4) = 0;\n  return;\n}" primitive_type (function_declarator "FUN_0003d920(undefined2 *param_1,int param_2)" identifier (parameter_list "(undefined2 *param_1,int param_2)" ( (parameter_declaration "undefined2 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  uint uVar5;\n  uint uVar6;\n  char *pcVar7;\n  int local_24;\n  \n  uVar1 = *(undefined4 *)(param_2 + 8);\n  uVar2 = *(undefined4 *)(param_2 + 0xc);\n  *param_1 = 0x7830;\n  *(undefined1 *)(param_1 + 1) = 0;\n  iVar3 = FUN_000277a0(uVar2);\n  if (iVar3 < 1) {\n    uVar5 = FUN_00027890(uVar2,0);\n    local_24 = 3;\n    *(char *)(param_1 + 1) = "0123456789abcdef"[uVar5 & 0xf];\n  }\n  else {\n    local_24 = iVar3 + 3 >> 2;\n    uVar5 = local_24 - 1;\n    pcVar7 = (char *)(param_1 + 1);\n    do {\n      iVar3 = FUN_00027890(uVar2,(int)uVar5 >> 1);\n      uVar6 = uVar5 - 1;\n      *pcVar7 = "0123456789abcdef"[iVar3 >> (sbyte)((uVar5 & 1) << 2) & 0xf];\n      uVar5 = uVar6;\n      pcVar7 = pcVar7 + 1;\n    } while (uVar6 != 0xffffffff);\n    local_24 = local_24 + 2;\n  }\n  *(undefined4 *)((int)param_1 + local_24) = 0x78302c;\n  iVar3 = FUN_000277a0(uVar1);\n  if (0 < iVar3) {\n    iVar3 = iVar3 + 3 >> 2;\n    uVar5 = iVar3 - 1;\n    pcVar7 = (char *)(local_24 + 3 + (int)param_1);\n    do {\n      iVar4 = FUN_00027890(uVar1,(int)uVar5 >> 1);\n      uVar6 = uVar5 - 1;\n      *pcVar7 = "0123456789abcdef"[iVar4 >> (sbyte)((uVar5 & 1) << 2) & 0xf];\n      uVar5 = uVar6;\n      pcVar7 = pcVar7 + 1;\n    } while (uVar6 != 0xffffffff);\n    *(undefined1 *)((int)param_1 + iVar3 + 3 + local_24) = 0;\n    return;\n  }\n  uVar5 = FUN_00027890(uVar1,0);\n  *(char *)((int)param_1 + local_24 + 3) = "0123456789abcdef"[uVar5 & 0xf];\n  *(undefined1 *)((int)param_1 + local_24 + 4) = 0;\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "char *pcVar7;" primitive_type (pointer_declarator "*pcVar7" * identifier) ;) (declaration "int local_24;" primitive_type identifier ;) (expression_statement "uVar1 = *(undefined4 *)(param_2 + 8);" (assignment_expression "uVar1 = *(undefined4 *)(param_2 + 8)" identifier = (pointer_expression "*(undefined4 *)(param_2 + 8)" * (cast_expression "(undefined4 *)(param_2 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) ))))) ;) (expression_statement "uVar2 = *(undefined4 *)(param_2 + 0xc);" (assignment_expression "uVar2 = *(undefined4 *)(param_2 + 0xc)" identifier = (pointer_expression "*(undefined4 *)(param_2 + 0xc)" * (cast_expression "(undefined4 *)(param_2 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xc)" ( (binary_expression "param_2 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "*param_1 = 0x7830;" (assignment_expression "*param_1 = 0x7830" (pointer_expression "*param_1" * identifier) = number_literal) ;) (expression_statement "*(undefined1 *)(param_1 + 1) = 0;" (assignment_expression "*(undefined1 *)(param_1 + 1) = 0" (pointer_expression "*(undefined1 *)(param_1 + 1)" * (cast_expression "(undefined1 *)(param_1 + 1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 1)" ( (binary_expression "param_1 + 1" identifier + number_literal) )))) = number_literal) ;) (expression_statement "iVar3 = FUN_000277a0(uVar2);" (assignment_expression "iVar3 = FUN_000277a0(uVar2)" identifier = (call_expression "FUN_000277a0(uVar2)" identifier (argument_list "(uVar2)" ( identifier )))) ;) (if_statement "if (iVar3 < 1) {\n    uVar5 = FUN_00027890(uVar2,0);\n    local_24 = 3;\n    *(char *)(param_1 + 1) = "0123456789abcdef"[uVar5 & 0xf];\n  }\n  else {\n    local_24 = iVar3 + 3 >> 2;\n    uVar5 = local_24 - 1;\n    pcVar7 = (char *)(param_1 + 1);\n    do {\n      iVar3 = FUN_00027890(uVar2,(int)uVar5 >> 1);\n      uVar6 = uVar5 - 1;\n      *pcVar7 = "0123456789abcdef"[iVar3 >> (sbyte)((uVar5 & 1) << 2) & 0xf];\n      uVar5 = uVar6;\n      pcVar7 = pcVar7 + 1;\n    } while (uVar6 != 0xffffffff);\n    local_24 = local_24 + 2;\n  }" if (parenthesized_expression "(iVar3 < 1)" ( (binary_expression "iVar3 < 1" identifier < number_literal) )) (compound_statement "{\n    uVar5 = FUN_00027890(uVar2,0);\n    local_24 = 3;\n    *(char *)(param_1 + 1) = "0123456789abcdef"[uVar5 & 0xf];\n  }" { (expression_statement "uVar5 = FUN_00027890(uVar2,0);" (assignment_expression "uVar5 = FUN_00027890(uVar2,0)" identifier = (call_expression "FUN_00027890(uVar2,0)" identifier (argument_list "(uVar2,0)" ( identifier , number_literal )))) ;) (expression_statement "local_24 = 3;" (assignment_expression "local_24 = 3" identifier = number_literal) ;) (expression_statement "*(char *)(param_1 + 1) = "0123456789abcdef"[uVar5 & 0xf];" (assignment_expression "*(char *)(param_1 + 1) = "0123456789abcdef"[uVar5 & 0xf]" (pointer_expression "*(char *)(param_1 + 1)" * (cast_expression "(char *)(param_1 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 1)" ( (binary_expression "param_1 + 1" identifier + number_literal) )))) = (subscript_expression ""0123456789abcdef"[uVar5 & 0xf]" (string_literal ""0123456789abcdef"" " string_content ") [ (binary_expression "uVar5 & 0xf" identifier & number_literal) ])) ;) }) (else_clause "else {\n    local_24 = iVar3 + 3 >> 2;\n    uVar5 = local_24 - 1;\n    pcVar7 = (char *)(param_1 + 1);\n    do {\n      iVar3 = FUN_00027890(uVar2,(int)uVar5 >> 1);\n      uVar6 = uVar5 - 1;\n      *pcVar7 = "0123456789abcdef"[iVar3 >> (sbyte)((uVar5 & 1) << 2) & 0xf];\n      uVar5 = uVar6;\n      pcVar7 = pcVar7 + 1;\n    } while (uVar6 != 0xffffffff);\n    local_24 = local_24 + 2;\n  }" else (compound_statement "{\n    local_24 = iVar3 + 3 >> 2;\n    uVar5 = local_24 - 1;\n    pcVar7 = (char *)(param_1 + 1);\n    do {\n      iVar3 = FUN_00027890(uVar2,(int)uVar5 >> 1);\n      uVar6 = uVar5 - 1;\n      *pcVar7 = "0123456789abcdef"[iVar3 >> (sbyte)((uVar5 & 1) << 2) & 0xf];\n      uVar5 = uVar6;\n      pcVar7 = pcVar7 + 1;\n    } while (uVar6 != 0xffffffff);\n    local_24 = local_24 + 2;\n  }" { (expression_statement "local_24 = iVar3 + 3 >> 2;" (assignment_expression "local_24 = iVar3 + 3 >> 2" identifier = (binary_expression "iVar3 + 3 >> 2" (binary_expression "iVar3 + 3" identifier + number_literal) >> number_literal)) ;) (expression_statement "uVar5 = local_24 - 1;" (assignment_expression "uVar5 = local_24 - 1" identifier = (binary_expression "local_24 - 1" identifier - number_literal)) ;) (expression_statement "pcVar7 = (char *)(param_1 + 1);" (assignment_expression "pcVar7 = (char *)(param_1 + 1)" identifier = (cast_expression "(char *)(param_1 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 1)" ( (binary_expression "param_1 + 1" identifier + number_literal) )))) ;) (do_statement "do {\n      iVar3 = FUN_00027890(uVar2,(int)uVar5 >> 1);\n      uVar6 = uVar5 - 1;\n      *pcVar7 = "0123456789abcdef"[iVar3 >> (sbyte)((uVar5 & 1) << 2) & 0xf];\n      uVar5 = uVar6;\n      pcVar7 = pcVar7 + 1;\n    } while (uVar6 != 0xffffffff);" do (compound_statement "{\n      iVar3 = FUN_00027890(uVar2,(int)uVar5 >> 1);\n      uVar6 = uVar5 - 1;\n      *pcVar7 = "0123456789abcdef"[iVar3 >> (sbyte)((uVar5 & 1) << 2) & 0xf];\n      uVar5 = uVar6;\n      pcVar7 = pcVar7 + 1;\n    }" { (expression_statement "iVar3 = FUN_00027890(uVar2,(int)uVar5 >> 1);" (assignment_expression "iVar3 = FUN_00027890(uVar2,(int)uVar5 >> 1)" identifier = (call_expression "FUN_00027890(uVar2,(int)uVar5 >> 1)" identifier (argument_list "(uVar2,(int)uVar5 >> 1)" ( identifier , (binary_expression "(int)uVar5 >> 1" (cast_expression "(int)uVar5" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) )))) ;) (expression_statement "uVar6 = uVar5 - 1;" (assignment_expression "uVar6 = uVar5 - 1" identifier = (binary_expression "uVar5 - 1" identifier - number_literal)) ;) (expression_statement "*pcVar7 = "0123456789abcdef"[iVar3 >> (sbyte)((uVar5 & 1) << 2) & 0xf];" (assignment_expression "*pcVar7 = "0123456789abcdef"[iVar3 >> (sbyte)((uVar5 & 1) << 2) & 0xf]" (pointer_expression "*pcVar7" * identifier) = (subscript_expression ""0123456789abcdef"[iVar3 >> (sbyte)((uVar5 & 1) << 2) & 0xf]" (string_literal ""0123456789abcdef"" " string_content ") [ (binary_expression "iVar3 >> (sbyte)((uVar5 & 1) << 2) & 0xf" (binary_expression "iVar3 >> (sbyte)((uVar5 & 1) << 2)" identifier >> (call_expression "(sbyte)((uVar5 & 1) << 2)" (parenthesized_expression "(sbyte)" ( identifier )) (argument_list "((uVar5 & 1) << 2)" ( (binary_expression "(uVar5 & 1) << 2" (parenthesized_expression "(uVar5 & 1)" ( (binary_expression "uVar5 & 1" identifier & number_literal) )) << number_literal) )))) & number_literal) ])) ;) (expression_statement "uVar5 = uVar6;" (assignment_expression "uVar5 = uVar6" identifier = identifier) ;) (expression_statement "pcVar7 = pcVar7 + 1;" (assignment_expression "pcVar7 = pcVar7 + 1" identifier = (binary_expression "pcVar7 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar6 != 0xffffffff)" ( (binary_expression "uVar6 != 0xffffffff" identifier != number_literal) )) ;) (expression_statement "local_24 = local_24 + 2;" (assignment_expression "local_24 = local_24 + 2" identifier = (binary_expression "local_24 + 2" identifier + number_literal)) ;) }))) (expression_statement "*(undefined4 *)((int)param_1 + local_24) = 0x78302c;" (assignment_expression "*(undefined4 *)((int)param_1 + local_24) = 0x78302c" (pointer_expression "*(undefined4 *)((int)param_1 + local_24)" * (cast_expression "(undefined4 *)((int)param_1 + local_24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + local_24)" ( (binary_expression "(int)param_1 + local_24" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) = number_literal) ;) (expression_statement "iVar3 = FUN_000277a0(uVar1);" (assignment_expression "iVar3 = FUN_000277a0(uVar1)" identifier = (call_expression "FUN_000277a0(uVar1)" identifier (argument_list "(uVar1)" ( identifier )))) ;) (if_statement "if (0 < iVar3) {\n    iVar3 = iVar3 + 3 >> 2;\n    uVar5 = iVar3 - 1;\n    pcVar7 = (char *)(local_24 + 3 + (int)param_1);\n    do {\n      iVar4 = FUN_00027890(uVar1,(int)uVar5 >> 1);\n      uVar6 = uVar5 - 1;\n      *pcVar7 = "0123456789abcdef"[iVar4 >> (sbyte)((uVar5 & 1) << 2) & 0xf];\n      uVar5 = uVar6;\n      pcVar7 = pcVar7 + 1;\n    } while (uVar6 != 0xffffffff);\n    *(undefined1 *)((int)param_1 + iVar3 + 3 + local_24) = 0;\n    return;\n  }" if (parenthesized_expression "(0 < iVar3)" ( (binary_expression "0 < iVar3" number_literal < identifier) )) (compound_statement "{\n    iVar3 = iVar3 + 3 >> 2;\n    uVar5 = iVar3 - 1;\n    pcVar7 = (char *)(local_24 + 3 + (int)param_1);\n    do {\n      iVar4 = FUN_00027890(uVar1,(int)uVar5 >> 1);\n      uVar6 = uVar5 - 1;\n      *pcVar7 = "0123456789abcdef"[iVar4 >> (sbyte)((uVar5 & 1) << 2) & 0xf];\n      uVar5 = uVar6;\n      pcVar7 = pcVar7 + 1;\n    } while (uVar6 != 0xffffffff);\n    *(undefined1 *)((int)param_1 + iVar3 + 3 + local_24) = 0;\n    return;\n  }" { (expression_statement "iVar3 = iVar3 + 3 >> 2;" (assignment_expression "iVar3 = iVar3 + 3 >> 2" identifier = (binary_expression "iVar3 + 3 >> 2" (binary_expression "iVar3 + 3" identifier + number_literal) >> number_literal)) ;) (expression_statement "uVar5 = iVar3 - 1;" (assignment_expression "uVar5 = iVar3 - 1" identifier = (binary_expression "iVar3 - 1" identifier - number_literal)) ;) (expression_statement "pcVar7 = (char *)(local_24 + 3 + (int)param_1);" (assignment_expression "pcVar7 = (char *)(local_24 + 3 + (int)param_1)" identifier = (cast_expression "(char *)(local_24 + 3 + (int)param_1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_24 + 3 + (int)param_1)" ( (binary_expression "local_24 + 3 + (int)param_1" (binary_expression "local_24 + 3" identifier + number_literal) + (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier)) )))) ;) (do_statement "do {\n      iVar4 = FUN_00027890(uVar1,(int)uVar5 >> 1);\n      uVar6 = uVar5 - 1;\n      *pcVar7 = "0123456789abcdef"[iVar4 >> (sbyte)((uVar5 & 1) << 2) & 0xf];\n      uVar5 = uVar6;\n      pcVar7 = pcVar7 + 1;\n    } while (uVar6 != 0xffffffff);" do (compound_statement "{\n      iVar4 = FUN_00027890(uVar1,(int)uVar5 >> 1);\n      uVar6 = uVar5 - 1;\n      *pcVar7 = "0123456789abcdef"[iVar4 >> (sbyte)((uVar5 & 1) << 2) & 0xf];\n      uVar5 = uVar6;\n      pcVar7 = pcVar7 + 1;\n    }" { (expression_statement "iVar4 = FUN_00027890(uVar1,(int)uVar5 >> 1);" (assignment_expression "iVar4 = FUN_00027890(uVar1,(int)uVar5 >> 1)" identifier = (call_expression "FUN_00027890(uVar1,(int)uVar5 >> 1)" identifier (argument_list "(uVar1,(int)uVar5 >> 1)" ( identifier , (binary_expression "(int)uVar5 >> 1" (cast_expression "(int)uVar5" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) )))) ;) (expression_statement "uVar6 = uVar5 - 1;" (assignment_expression "uVar6 = uVar5 - 1" identifier = (binary_expression "uVar5 - 1" identifier - number_literal)) ;) (expression_statement "*pcVar7 = "0123456789abcdef"[iVar4 >> (sbyte)((uVar5 & 1) << 2) & 0xf];" (assignment_expression "*pcVar7 = "0123456789abcdef"[iVar4 >> (sbyte)((uVar5 & 1) << 2) & 0xf]" (pointer_expression "*pcVar7" * identifier) = (subscript_expression ""0123456789abcdef"[iVar4 >> (sbyte)((uVar5 & 1) << 2) & 0xf]" (string_literal ""0123456789abcdef"" " string_content ") [ (binary_expression "iVar4 >> (sbyte)((uVar5 & 1) << 2) & 0xf" (binary_expression "iVar4 >> (sbyte)((uVar5 & 1) << 2)" identifier >> (call_expression "(sbyte)((uVar5 & 1) << 2)" (parenthesized_expression "(sbyte)" ( identifier )) (argument_list "((uVar5 & 1) << 2)" ( (binary_expression "(uVar5 & 1) << 2" (parenthesized_expression "(uVar5 & 1)" ( (binary_expression "uVar5 & 1" identifier & number_literal) )) << number_literal) )))) & number_literal) ])) ;) (expression_statement "uVar5 = uVar6;" (assignment_expression "uVar5 = uVar6" identifier = identifier) ;) (expression_statement "pcVar7 = pcVar7 + 1;" (assignment_expression "pcVar7 = pcVar7 + 1" identifier = (binary_expression "pcVar7 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar6 != 0xffffffff)" ( (binary_expression "uVar6 != 0xffffffff" identifier != number_literal) )) ;) (expression_statement "*(undefined1 *)((int)param_1 + iVar3 + 3 + local_24) = 0;" (assignment_expression "*(undefined1 *)((int)param_1 + iVar3 + 3 + local_24) = 0" (pointer_expression "*(undefined1 *)((int)param_1 + iVar3 + 3 + local_24)" * (cast_expression "(undefined1 *)((int)param_1 + iVar3 + 3 + local_24)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + iVar3 + 3 + local_24)" ( (binary_expression "(int)param_1 + iVar3 + 3 + local_24" (binary_expression "(int)param_1 + iVar3 + 3" (binary_expression "(int)param_1 + iVar3" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) + identifier) )))) = number_literal) ;) (return_statement "return;" return ;) })) (expression_statement "uVar5 = FUN_00027890(uVar1,0);" (assignment_expression "uVar5 = FUN_00027890(uVar1,0)" identifier = (call_expression "FUN_00027890(uVar1,0)" identifier (argument_list "(uVar1,0)" ( identifier , number_literal )))) ;) (expression_statement "*(char *)((int)param_1 + local_24 + 3) = "0123456789abcdef"[uVar5 & 0xf];" (assignment_expression "*(char *)((int)param_1 + local_24 + 3) = "0123456789abcdef"[uVar5 & 0xf]" (pointer_expression "*(char *)((int)param_1 + local_24 + 3)" * (cast_expression "(char *)((int)param_1 + local_24 + 3)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + local_24 + 3)" ( (binary_expression "(int)param_1 + local_24 + 3" (binary_expression "(int)param_1 + local_24" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = (subscript_expression ""0123456789abcdef"[uVar5 & 0xf]" (string_literal ""0123456789abcdef"" " string_content ") [ (binary_expression "uVar5 & 0xf" identifier & number_literal) ])) ;) (expression_statement "*(undefined1 *)((int)param_1 + local_24 + 4) = 0;" (assignment_expression "*(undefined1 *)((int)param_1 + local_24 + 4) = 0" (pointer_expression "*(undefined1 *)((int)param_1 + local_24 + 4)" * (cast_expression "(undefined1 *)((int)param_1 + local_24 + 4)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + local_24 + 4)" ( (binary_expression "(int)param_1 + local_24 + 4" (binary_expression "(int)param_1 + local_24" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (subscript_expression (string_literal " string_content ") [ (binary_expression IDENT & LIT) ])) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + LIT) >> LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (subscript_expression (string_literal " string_content ") [ (binary_expression (binary_expression IDENT >> (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) << LIT) )))) & LIT) ])) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }))) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + LIT) >> LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + (cast_expression ( (type_descriptor TYPE) ) IDENT)) )))) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (subscript_expression (string_literal " string_content ") [ (binary_expression (binary_expression IDENT >> (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) << LIT) )))) & LIT) ])) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) + LIT) + IDENT) )))) = LIT) ;) (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) + LIT) )))) = (subscript_expression (string_literal " string_content ") [ (binary_expression IDENT & LIT) ])) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) + LIT) )))) = LIT) ;) (return_statement return ;) })))
(function_definition "void FUN_0003d920(undefined2 *param_1,int param_2)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  uint uVar5;\n  uint uVar6;\n  char *pcVar7;\n  int local_24;\n  \n  uVar1 = *(undefined4 *)(param_2 + 8);\n  uVar2 = *(undefined4 *)(param_2 + 0xc);\n  *param_1 = 0x7830;\n  *(undefined1 *)(param_1 + 1) = 0;\n  iVar3 = FUN_000277a0(uVar2);\n  if (iVar3 < 1) {\n    uVar5 = FUN_00027890(uVar2,0);\n    local_24 = 3;\n    *(char *)(param_1 + 1) = "0123456789abcdef"[uVar5 & 0xf];\n  }\n  else {\n    local_24 = iVar3 + 3 >> 2;\n    uVar5 = local_24 - 1;\n    pcVar7 = (char *)(param_1 + 1);\n    do {\n      iVar3 = FUN_00027890(uVar2,(int)uVar5 >> 1);\n      uVar6 = uVar5 - 1;\n      *pcVar7 = "0123456789abcdef"[iVar3 >> (sbyte)((uVar5 & 1) << 2) & 0xf];\n      uVar5 = uVar6;\n      pcVar7 = pcVar7 + 1;\n    } while (uVar6 != 0xffffffff);\n    local_24 = local_24 + 2;\n  }\n  *(undefined4 *)((int)param_1 + local_24) = 0x78302c;\n  iVar3 = FUN_000277a0(uVar1);\n  if (0 < iVar3) {\n    iVar3 = iVar3 + 3 >> 2;\n    uVar5 = iVar3 - 1;\n    pcVar7 = (char *)(local_24 + 3 + (int)param_1);\n    do {\n      iVar4 = FUN_00027890(uVar1,(int)uVar5 >> 1);\n      uVar6 = uVar5 - 1;\n      *pcVar7 = "0123456789abcdef"[iVar4 >> (sbyte)((uVar5 & 1) << 2) & 0xf];\n      uVar5 = uVar6;\n      pcVar7 = pcVar7 + 1;\n    } while (uVar6 != 0xffffffff);\n    *(undefined1 *)((int)param_1 + iVar3 + 3 + local_24) = 0;\n    return;\n  }\n  uVar5 = FUN_00027890(uVar1,0);\n  *(char *)((int)param_1 + local_24 + 3) = "0123456789abcdef"[uVar5 & 0xf];\n  *(undefined1 *)((int)param_1 + local_24 + 4) = 0;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0003d920(undefined2 *param_1,int param_2)" (identifier "FUN_0003d920") (parameter_list "(undefined2 *param_1,int param_2)" (( "(") (parameter_declaration "undefined2 *param_1" (type_identifier "undefined2") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  uint uVar5;\n  uint uVar6;\n  char *pcVar7;\n  int local_24;\n  \n  uVar1 = *(undefined4 *)(param_2 + 8);\n  uVar2 = *(undefined4 *)(param_2 + 0xc);\n  *param_1 = 0x7830;\n  *(undefined1 *)(param_1 + 1) = 0;\n  iVar3 = FUN_000277a0(uVar2);\n  if (iVar3 < 1) {\n    uVar5 = FUN_00027890(uVar2,0);\n    local_24 = 3;\n    *(char *)(param_1 + 1) = "0123456789abcdef"[uVar5 & 0xf];\n  }\n  else {\n    local_24 = iVar3 + 3 >> 2;\n    uVar5 = local_24 - 1;\n    pcVar7 = (char *)(param_1 + 1);\n    do {\n      iVar3 = FUN_00027890(uVar2,(int)uVar5 >> 1);\n      uVar6 = uVar5 - 1;\n      *pcVar7 = "0123456789abcdef"[iVar3 >> (sbyte)((uVar5 & 1) << 2) & 0xf];\n      uVar5 = uVar6;\n      pcVar7 = pcVar7 + 1;\n    } while (uVar6 != 0xffffffff);\n    local_24 = local_24 + 2;\n  }\n  *(undefined4 *)((int)param_1 + local_24) = 0x78302c;\n  iVar3 = FUN_000277a0(uVar1);\n  if (0 < iVar3) {\n    iVar3 = iVar3 + 3 >> 2;\n    uVar5 = iVar3 - 1;\n    pcVar7 = (char *)(local_24 + 3 + (int)param_1);\n    do {\n      iVar4 = FUN_00027890(uVar1,(int)uVar5 >> 1);\n      uVar6 = uVar5 - 1;\n      *pcVar7 = "0123456789abcdef"[iVar4 >> (sbyte)((uVar5 & 1) << 2) & 0xf];\n      uVar5 = uVar6;\n      pcVar7 = pcVar7 + 1;\n    } while (uVar6 != 0xffffffff);\n    *(undefined1 *)((int)param_1 + iVar3 + 3 + local_24) = 0;\n    return;\n  }\n  uVar5 = FUN_00027890(uVar1,0);\n  *(char *)((int)param_1 + local_24 + 3) = "0123456789abcdef"[uVar5 & 0xf];\n  *(undefined1 *)((int)param_1 + local_24 + 4) = 0;\n  return;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "uint uVar5;" (type_identifier "uint") (identifier "uVar5") (; ";")) (declaration "uint uVar6;" (type_identifier "uint") (identifier "uVar6") (; ";")) (declaration "char *pcVar7;" (primitive_type "char") (pointer_declarator "*pcVar7" (* "*") (identifier "pcVar7")) (; ";")) (declaration "int local_24;" (primitive_type "int") (identifier "local_24") (; ";")) (expression_statement "uVar1 = *(undefined4 *)(param_2 + 8);" (assignment_expression "uVar1 = *(undefined4 *)(param_2 + 8)" (identifier "uVar1") (= "=") (pointer_expression "*(undefined4 *)(param_2 + 8)" (* "*") (cast_expression "(undefined4 *)(param_2 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 8)" (( "(") (binary_expression "param_2 + 8" (identifier "param_2") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (expression_statement "uVar2 = *(undefined4 *)(param_2 + 0xc);" (assignment_expression "uVar2 = *(undefined4 *)(param_2 + 0xc)" (identifier "uVar2") (= "=") (pointer_expression "*(undefined4 *)(param_2 + 0xc)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0xc)" (( "(") (binary_expression "param_2 + 0xc" (identifier "param_2") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (expression_statement "*param_1 = 0x7830;" (assignment_expression "*param_1 = 0x7830" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (number_literal "0x7830")) (; ";")) (expression_statement "*(undefined1 *)(param_1 + 1) = 0;" (assignment_expression "*(undefined1 *)(param_1 + 1) = 0" (pointer_expression "*(undefined1 *)(param_1 + 1)" (* "*") (cast_expression "(undefined1 *)(param_1 + 1)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 1)" (( "(") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar3 = FUN_000277a0(uVar2);" (assignment_expression "iVar3 = FUN_000277a0(uVar2)" (identifier "iVar3") (= "=") (call_expression "FUN_000277a0(uVar2)" (identifier "FUN_000277a0") (argument_list "(uVar2)" (( "(") (identifier "uVar2") () ")")))) (; ";")) (if_statement "if (iVar3 < 1) {\n    uVar5 = FUN_00027890(uVar2,0);\n    local_24 = 3;\n    *(char *)(param_1 + 1) = "0123456789abcdef"[uVar5 & 0xf];\n  }\n  else {\n    local_24 = iVar3 + 3 >> 2;\n    uVar5 = local_24 - 1;\n    pcVar7 = (char *)(param_1 + 1);\n    do {\n      iVar3 = FUN_00027890(uVar2,(int)uVar5 >> 1);\n      uVar6 = uVar5 - 1;\n      *pcVar7 = "0123456789abcdef"[iVar3 >> (sbyte)((uVar5 & 1) << 2) & 0xf];\n      uVar5 = uVar6;\n      pcVar7 = pcVar7 + 1;\n    } while (uVar6 != 0xffffffff);\n    local_24 = local_24 + 2;\n  }" (if "if") (parenthesized_expression "(iVar3 < 1)" (( "(") (binary_expression "iVar3 < 1" (identifier "iVar3") (< "<") (number_literal "1")) () ")")) (compound_statement "{\n    uVar5 = FUN_00027890(uVar2,0);\n    local_24 = 3;\n    *(char *)(param_1 + 1) = "0123456789abcdef"[uVar5 & 0xf];\n  }" ({ "{") (expression_statement "uVar5 = FUN_00027890(uVar2,0);" (assignment_expression "uVar5 = FUN_00027890(uVar2,0)" (identifier "uVar5") (= "=") (call_expression "FUN_00027890(uVar2,0)" (identifier "FUN_00027890") (argument_list "(uVar2,0)" (( "(") (identifier "uVar2") (, ",") (number_literal "0") () ")")))) (; ";")) (expression_statement "local_24 = 3;" (assignment_expression "local_24 = 3" (identifier "local_24") (= "=") (number_literal "3")) (; ";")) (expression_statement "*(char *)(param_1 + 1) = "0123456789abcdef"[uVar5 & 0xf];" (assignment_expression "*(char *)(param_1 + 1) = "0123456789abcdef"[uVar5 & 0xf]" (pointer_expression "*(char *)(param_1 + 1)" (* "*") (cast_expression "(char *)(param_1 + 1)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 1)" (( "(") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1")) () ")")))) (= "=") (subscript_expression ""0123456789abcdef"[uVar5 & 0xf]" (string_literal ""0123456789abcdef"" (" """) (string_content "0123456789abcdef") (" """)) ([ "[") (binary_expression "uVar5 & 0xf" (identifier "uVar5") (& "&") (number_literal "0xf")) (] "]"))) (; ";")) (} "}")) (else_clause "else {\n    local_24 = iVar3 + 3 >> 2;\n    uVar5 = local_24 - 1;\n    pcVar7 = (char *)(param_1 + 1);\n    do {\n      iVar3 = FUN_00027890(uVar2,(int)uVar5 >> 1);\n      uVar6 = uVar5 - 1;\n      *pcVar7 = "0123456789abcdef"[iVar3 >> (sbyte)((uVar5 & 1) << 2) & 0xf];\n      uVar5 = uVar6;\n      pcVar7 = pcVar7 + 1;\n    } while (uVar6 != 0xffffffff);\n    local_24 = local_24 + 2;\n  }" (else "else") (compound_statement "{\n    local_24 = iVar3 + 3 >> 2;\n    uVar5 = local_24 - 1;\n    pcVar7 = (char *)(param_1 + 1);\n    do {\n      iVar3 = FUN_00027890(uVar2,(int)uVar5 >> 1);\n      uVar6 = uVar5 - 1;\n      *pcVar7 = "0123456789abcdef"[iVar3 >> (sbyte)((uVar5 & 1) << 2) & 0xf];\n      uVar5 = uVar6;\n      pcVar7 = pcVar7 + 1;\n    } while (uVar6 != 0xffffffff);\n    local_24 = local_24 + 2;\n  }" ({ "{") (expression_statement "local_24 = iVar3 + 3 >> 2;" (assignment_expression "local_24 = iVar3 + 3 >> 2" (identifier "local_24") (= "=") (binary_expression "iVar3 + 3 >> 2" (binary_expression "iVar3 + 3" (identifier "iVar3") (+ "+") (number_literal "3")) (>> ">>") (number_literal "2"))) (; ";")) (expression_statement "uVar5 = local_24 - 1;" (assignment_expression "uVar5 = local_24 - 1" (identifier "uVar5") (= "=") (binary_expression "local_24 - 1" (identifier "local_24") (- "-") (number_literal "1"))) (; ";")) (expression_statement "pcVar7 = (char *)(param_1 + 1);" (assignment_expression "pcVar7 = (char *)(param_1 + 1)" (identifier "pcVar7") (= "=") (cast_expression "(char *)(param_1 + 1)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 1)" (( "(") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1")) () ")")))) (; ";")) (do_statement "do {\n      iVar3 = FUN_00027890(uVar2,(int)uVar5 >> 1);\n      uVar6 = uVar5 - 1;\n      *pcVar7 = "0123456789abcdef"[iVar3 >> (sbyte)((uVar5 & 1) << 2) & 0xf];\n      uVar5 = uVar6;\n      pcVar7 = pcVar7 + 1;\n    } while (uVar6 != 0xffffffff);" (do "do") (compound_statement "{\n      iVar3 = FUN_00027890(uVar2,(int)uVar5 >> 1);\n      uVar6 = uVar5 - 1;\n      *pcVar7 = "0123456789abcdef"[iVar3 >> (sbyte)((uVar5 & 1) << 2) & 0xf];\n      uVar5 = uVar6;\n      pcVar7 = pcVar7 + 1;\n    }" ({ "{") (expression_statement "iVar3 = FUN_00027890(uVar2,(int)uVar5 >> 1);" (assignment_expression "iVar3 = FUN_00027890(uVar2,(int)uVar5 >> 1)" (identifier "iVar3") (= "=") (call_expression "FUN_00027890(uVar2,(int)uVar5 >> 1)" (identifier "FUN_00027890") (argument_list "(uVar2,(int)uVar5 >> 1)" (( "(") (identifier "uVar2") (, ",") (binary_expression "(int)uVar5 >> 1" (cast_expression "(int)uVar5" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar5")) (>> ">>") (number_literal "1")) () ")")))) (; ";")) (expression_statement "uVar6 = uVar5 - 1;" (assignment_expression "uVar6 = uVar5 - 1" (identifier "uVar6") (= "=") (binary_expression "uVar5 - 1" (identifier "uVar5") (- "-") (number_literal "1"))) (; ";")) (expression_statement "*pcVar7 = "0123456789abcdef"[iVar3 >> (sbyte)((uVar5 & 1) << 2) & 0xf];" (assignment_expression "*pcVar7 = "0123456789abcdef"[iVar3 >> (sbyte)((uVar5 & 1) << 2) & 0xf]" (pointer_expression "*pcVar7" (* "*") (identifier "pcVar7")) (= "=") (subscript_expression ""0123456789abcdef"[iVar3 >> (sbyte)((uVar5 & 1) << 2) & 0xf]" (string_literal ""0123456789abcdef"" (" """) (string_content "0123456789abcdef") (" """)) ([ "[") (binary_expression "iVar3 >> (sbyte)((uVar5 & 1) << 2) & 0xf" (binary_expression "iVar3 >> (sbyte)((uVar5 & 1) << 2)" (identifier "iVar3") (>> ">>") (call_expression "(sbyte)((uVar5 & 1) << 2)" (parenthesized_expression "(sbyte)" (( "(") (identifier "sbyte") () ")")) (argument_list "((uVar5 & 1) << 2)" (( "(") (binary_expression "(uVar5 & 1) << 2" (parenthesized_expression "(uVar5 & 1)" (( "(") (binary_expression "uVar5 & 1" (identifier "uVar5") (& "&") (number_literal "1")) () ")")) (<< "<<") (number_literal "2")) () ")")))) (& "&") (number_literal "0xf")) (] "]"))) (; ";")) (expression_statement "uVar5 = uVar6;" (assignment_expression "uVar5 = uVar6" (identifier "uVar5") (= "=") (identifier "uVar6")) (; ";")) (expression_statement "pcVar7 = pcVar7 + 1;" (assignment_expression "pcVar7 = pcVar7 + 1" (identifier "pcVar7") (= "=") (binary_expression "pcVar7 + 1" (identifier "pcVar7") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(uVar6 != 0xffffffff)" (( "(") (binary_expression "uVar6 != 0xffffffff" (identifier "uVar6") (!= "!=") (number_literal "0xffffffff")) () ")")) (; ";")) (expression_statement "local_24 = local_24 + 2;" (assignment_expression "local_24 = local_24 + 2" (identifier "local_24") (= "=") (binary_expression "local_24 + 2" (identifier "local_24") (+ "+") (number_literal "2"))) (; ";")) (} "}")))) (expression_statement "*(undefined4 *)((int)param_1 + local_24) = 0x78302c;" (assignment_expression "*(undefined4 *)((int)param_1 + local_24) = 0x78302c" (pointer_expression "*(undefined4 *)((int)param_1 + local_24)" (* "*") (cast_expression "(undefined4 *)((int)param_1 + local_24)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + local_24)" (( "(") (binary_expression "(int)param_1 + local_24" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (identifier "local_24")) () ")")))) (= "=") (number_literal "0x78302c")) (; ";")) (expression_statement "iVar3 = FUN_000277a0(uVar1);" (assignment_expression "iVar3 = FUN_000277a0(uVar1)" (identifier "iVar3") (= "=") (call_expression "FUN_000277a0(uVar1)" (identifier "FUN_000277a0") (argument_list "(uVar1)" (( "(") (identifier "uVar1") () ")")))) (; ";")) (if_statement "if (0 < iVar3) {\n    iVar3 = iVar3 + 3 >> 2;\n    uVar5 = iVar3 - 1;\n    pcVar7 = (char *)(local_24 + 3 + (int)param_1);\n    do {\n      iVar4 = FUN_00027890(uVar1,(int)uVar5 >> 1);\n      uVar6 = uVar5 - 1;\n      *pcVar7 = "0123456789abcdef"[iVar4 >> (sbyte)((uVar5 & 1) << 2) & 0xf];\n      uVar5 = uVar6;\n      pcVar7 = pcVar7 + 1;\n    } while (uVar6 != 0xffffffff);\n    *(undefined1 *)((int)param_1 + iVar3 + 3 + local_24) = 0;\n    return;\n  }" (if "if") (parenthesized_expression "(0 < iVar3)" (( "(") (binary_expression "0 < iVar3" (number_literal "0") (< "<") (identifier "iVar3")) () ")")) (compound_statement "{\n    iVar3 = iVar3 + 3 >> 2;\n    uVar5 = iVar3 - 1;\n    pcVar7 = (char *)(local_24 + 3 + (int)param_1);\n    do {\n      iVar4 = FUN_00027890(uVar1,(int)uVar5 >> 1);\n      uVar6 = uVar5 - 1;\n      *pcVar7 = "0123456789abcdef"[iVar4 >> (sbyte)((uVar5 & 1) << 2) & 0xf];\n      uVar5 = uVar6;\n      pcVar7 = pcVar7 + 1;\n    } while (uVar6 != 0xffffffff);\n    *(undefined1 *)((int)param_1 + iVar3 + 3 + local_24) = 0;\n    return;\n  }" ({ "{") (expression_statement "iVar3 = iVar3 + 3 >> 2;" (assignment_expression "iVar3 = iVar3 + 3 >> 2" (identifier "iVar3") (= "=") (binary_expression "iVar3 + 3 >> 2" (binary_expression "iVar3 + 3" (identifier "iVar3") (+ "+") (number_literal "3")) (>> ">>") (number_literal "2"))) (; ";")) (expression_statement "uVar5 = iVar3 - 1;" (assignment_expression "uVar5 = iVar3 - 1" (identifier "uVar5") (= "=") (binary_expression "iVar3 - 1" (identifier "iVar3") (- "-") (number_literal "1"))) (; ";")) (expression_statement "pcVar7 = (char *)(local_24 + 3 + (int)param_1);" (assignment_expression "pcVar7 = (char *)(local_24 + 3 + (int)param_1)" (identifier "pcVar7") (= "=") (cast_expression "(char *)(local_24 + 3 + (int)param_1)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_24 + 3 + (int)param_1)" (( "(") (binary_expression "local_24 + 3 + (int)param_1" (binary_expression "local_24 + 3" (identifier "local_24") (+ "+") (number_literal "3")) (+ "+") (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1"))) () ")")))) (; ";")) (do_statement "do {\n      iVar4 = FUN_00027890(uVar1,(int)uVar5 >> 1);\n      uVar6 = uVar5 - 1;\n      *pcVar7 = "0123456789abcdef"[iVar4 >> (sbyte)((uVar5 & 1) << 2) & 0xf];\n      uVar5 = uVar6;\n      pcVar7 = pcVar7 + 1;\n    } while (uVar6 != 0xffffffff);" (do "do") (compound_statement "{\n      iVar4 = FUN_00027890(uVar1,(int)uVar5 >> 1);\n      uVar6 = uVar5 - 1;\n      *pcVar7 = "0123456789abcdef"[iVar4 >> (sbyte)((uVar5 & 1) << 2) & 0xf];\n      uVar5 = uVar6;\n      pcVar7 = pcVar7 + 1;\n    }" ({ "{") (expression_statement "iVar4 = FUN_00027890(uVar1,(int)uVar5 >> 1);" (assignment_expression "iVar4 = FUN_00027890(uVar1,(int)uVar5 >> 1)" (identifier "iVar4") (= "=") (call_expression "FUN_00027890(uVar1,(int)uVar5 >> 1)" (identifier "FUN_00027890") (argument_list "(uVar1,(int)uVar5 >> 1)" (( "(") (identifier "uVar1") (, ",") (binary_expression "(int)uVar5 >> 1" (cast_expression "(int)uVar5" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar5")) (>> ">>") (number_literal "1")) () ")")))) (; ";")) (expression_statement "uVar6 = uVar5 - 1;" (assignment_expression "uVar6 = uVar5 - 1" (identifier "uVar6") (= "=") (binary_expression "uVar5 - 1" (identifier "uVar5") (- "-") (number_literal "1"))) (; ";")) (expression_statement "*pcVar7 = "0123456789abcdef"[iVar4 >> (sbyte)((uVar5 & 1) << 2) & 0xf];" (assignment_expression "*pcVar7 = "0123456789abcdef"[iVar4 >> (sbyte)((uVar5 & 1) << 2) & 0xf]" (pointer_expression "*pcVar7" (* "*") (identifier "pcVar7")) (= "=") (subscript_expression ""0123456789abcdef"[iVar4 >> (sbyte)((uVar5 & 1) << 2) & 0xf]" (string_literal ""0123456789abcdef"" (" """) (string_content "0123456789abcdef") (" """)) ([ "[") (binary_expression "iVar4 >> (sbyte)((uVar5 & 1) << 2) & 0xf" (binary_expression "iVar4 >> (sbyte)((uVar5 & 1) << 2)" (identifier "iVar4") (>> ">>") (call_expression "(sbyte)((uVar5 & 1) << 2)" (parenthesized_expression "(sbyte)" (( "(") (identifier "sbyte") () ")")) (argument_list "((uVar5 & 1) << 2)" (( "(") (binary_expression "(uVar5 & 1) << 2" (parenthesized_expression "(uVar5 & 1)" (( "(") (binary_expression "uVar5 & 1" (identifier "uVar5") (& "&") (number_literal "1")) () ")")) (<< "<<") (number_literal "2")) () ")")))) (& "&") (number_literal "0xf")) (] "]"))) (; ";")) (expression_statement "uVar5 = uVar6;" (assignment_expression "uVar5 = uVar6" (identifier "uVar5") (= "=") (identifier "uVar6")) (; ";")) (expression_statement "pcVar7 = pcVar7 + 1;" (assignment_expression "pcVar7 = pcVar7 + 1" (identifier "pcVar7") (= "=") (binary_expression "pcVar7 + 1" (identifier "pcVar7") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(uVar6 != 0xffffffff)" (( "(") (binary_expression "uVar6 != 0xffffffff" (identifier "uVar6") (!= "!=") (number_literal "0xffffffff")) () ")")) (; ";")) (expression_statement "*(undefined1 *)((int)param_1 + iVar3 + 3 + local_24) = 0;" (assignment_expression "*(undefined1 *)((int)param_1 + iVar3 + 3 + local_24) = 0" (pointer_expression "*(undefined1 *)((int)param_1 + iVar3 + 3 + local_24)" (* "*") (cast_expression "(undefined1 *)((int)param_1 + iVar3 + 3 + local_24)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + iVar3 + 3 + local_24)" (( "(") (binary_expression "(int)param_1 + iVar3 + 3 + local_24" (binary_expression "(int)param_1 + iVar3 + 3" (binary_expression "(int)param_1 + iVar3" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (identifier "iVar3")) (+ "+") (number_literal "3")) (+ "+") (identifier "local_24")) () ")")))) (= "=") (number_literal "0")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "uVar5 = FUN_00027890(uVar1,0);" (assignment_expression "uVar5 = FUN_00027890(uVar1,0)" (identifier "uVar5") (= "=") (call_expression "FUN_00027890(uVar1,0)" (identifier "FUN_00027890") (argument_list "(uVar1,0)" (( "(") (identifier "uVar1") (, ",") (number_literal "0") () ")")))) (; ";")) (expression_statement "*(char *)((int)param_1 + local_24 + 3) = "0123456789abcdef"[uVar5 & 0xf];" (assignment_expression "*(char *)((int)param_1 + local_24 + 3) = "0123456789abcdef"[uVar5 & 0xf]" (pointer_expression "*(char *)((int)param_1 + local_24 + 3)" (* "*") (cast_expression "(char *)((int)param_1 + local_24 + 3)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + local_24 + 3)" (( "(") (binary_expression "(int)param_1 + local_24 + 3" (binary_expression "(int)param_1 + local_24" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (identifier "local_24")) (+ "+") (number_literal "3")) () ")")))) (= "=") (subscript_expression ""0123456789abcdef"[uVar5 & 0xf]" (string_literal ""0123456789abcdef"" (" """) (string_content "0123456789abcdef") (" """)) ([ "[") (binary_expression "uVar5 & 0xf" (identifier "uVar5") (& "&") (number_literal "0xf")) (] "]"))) (; ";")) (expression_statement "*(undefined1 *)((int)param_1 + local_24 + 4) = 0;" (assignment_expression "*(undefined1 *)((int)param_1 + local_24 + 4) = 0" (pointer_expression "*(undefined1 *)((int)param_1 + local_24 + 4)" (* "*") (cast_expression "(undefined1 *)((int)param_1 + local_24 + 4)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + local_24 + 4)" (( "(") (binary_expression "(int)param_1 + local_24 + 4" (binary_expression "(int)param_1 + local_24" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (identifier "local_24")) (+ "+") (number_literal "4")) () ")")))) (= "=") (number_literal "0")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void function_1(char *var_6,type_1 *key)

{
  type_2 bn;
  type_2 bn_00;
  int var_2;
  int var_10;
  type_3 var_4;
  type_3 var_8;
  char *var_7;
  int var_5;
  
  bn = (type_2)key->modulus;
  bn_00 = (type_2)key->exponent;
  var_6[0] = '0';
  var_6[1] = 'x';
  var_6[2] = '\0';
  var_2 = var_1(bn_00);
  if (var_2 < 1) {
    var_4 = var_3(bn_00,0);
    var_5 = 3;
    var_6[2] = "0123456789abcdef"[var_4 & 0xf];
  }
  else {
    var_5 = var_2 + 3 >> 2;
    var_4 = var_5 - 1;
    var_7 = var_6 + 2;
    do {
      var_2 = var_3(bn_00,(int)var_4 >> 1);
      var_8 = var_4 - 1;
      *var_7 = "0123456789abcdef"[var_2 >> (sbyte)((var_4 & 1) << 2) & 0xf];
      var_4 = var_8;
      var_7 = var_7 + 1;
    } while (var_8 != 0xffffffff);
    var_5 = var_5 + 2;
  }
  var_9(var_6 + var_5,",0x",4);
  var_2 = var_1(bn);
  if (0 < var_2) {
    var_2 = var_2 + 3 >> 2;
    var_4 = var_2 - 1;
    var_7 = var_6 + var_5 + 3;
    do {
      var_10 = var_3(bn,(int)var_4 >> 1);
      var_8 = var_4 - 1;
      *var_7 = "0123456789abcdef"[var_10 >> (sbyte)((var_4 & 1) << 2) & 0xf];
      var_4 = var_8;
      var_7 = var_7 + 1;
    } while (var_8 != 0xffffffff);
    var_6[var_2 + 3 + var_5] = '\0';
    return;
  }
  var_4 = var_3(bn,0);
  var_6[var_5 + 3] = "0123456789abcdef"[var_4 & 0xf];
  var_6[var_5 + 4] = '\0';
  return;
}


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

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

void MASKED(undefined2 *param_1,int param_2)

{
  undefined4 uVar1;
  undefined4 uVar2;
  int iVar3;
  int iVar4;
  uint uVar5;
  uint uVar6;
  char *pcVar7;
  int local_24;
  
  uVar1 = *(undefined4 *)(param_2 + 8);
  uVar2 = *(undefined4 *)(param_2 + 0xc);
  *param_1 = 0x7830;
  *(undefined1 *)(param_1 + 1) = 0;
  iVar3 = FUN_000277a0(uVar2);
  if (iVar3 < 1) {
    uVar5 = FUN_00027890(uVar2,0);
    local_24 = 3;
    *(char *)(param_1 + 1) = "0123456789abcdef"[uVar5 & 0xf];
  }
  else {
    local_24 = iVar3 + 3 >> 2;
    uVar5 = local_24 - 1;
    pcVar7 = (char *)(param_1 + 1);
    do {
      iVar3 = FUN_00027890(uVar2,(int)uVar5 >> 1);
      uVar6 = uVar5 - 1;
      *pcVar7 = "0123456789abcdef"[iVar3 >> (sbyte)((uVar5 & 1) << 2) & 0xf];
      uVar5 = uVar6;
      pcVar7 = pcVar7 + 1;
    } while (uVar6 != 0xffffffff);
    local_24 = local_24 + 2;
  }
  *(undefined4 *)((int)param_1 + local_24) = 0x78302c;
  iVar3 = FUN_000277a0(uVar1);
  if (0 < iVar3) {
    iVar3 = iVar3 + 3 >> 2;
    uVar5 = iVar3 - 1;
    pcVar7 = (char *)(local_24 + 3 + (int)param_1);
    do {
      iVar4 = FUN_00027890(uVar1,(int)uVar5 >> 1);
      uVar6 = uVar5 - 1;
      *pcVar7 = "0123456789abcdef"[iVar4 >> (sbyte)((uVar5 & 1) << 2) & 0xf];
      uVar5 = uVar6;
      pcVar7 = pcVar7 + 1;
    } while (uVar6 != 0xffffffff);
    *(undefined1 *)((int)param_1 + iVar3 + 3 + local_24) = 0;
    return;
  }
  uVar5 = FUN_00027890(uVar1,0);
  *(char *)((int)param_1 + local_24 + 3) = "0123456789abcdef"[uVar5 & 0xf];
  *(undefined1 *)((int)param_1 + local_24 + 4) = 0;
  return;
}

