
size_t __regparm3 unicode_strwidth(char *string)

{
  int iVar1;
  int in_GS_OFFSET;
  uni_stat_t uni_stat;
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  printable_string2(&uni_stat,string);
  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {
    return uni_stat.unicode_width;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



undefined4 FUN_000b2772(void)

{
  int iVar1;
  int in_GS_OFFSET;
  undefined4 local_14;
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  FUN_000ae3ff();
  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {
    return local_14;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00017e10();
}


SUB ESP,0x1c
MOV EDX,EAX
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0xc],EAX
XOR EAX,EAX
MOV EAX,ESP
CALL 0x000ae3ff
MOV EAX,dword ptr [ESP + 0x8]
MOV ECX,dword ptr [ESP + 0xc]
XOR ECX,dword ptr GS:[0x14]
JNZ 0x000b279f
ADD ESP,0x1c
RET
CALL 0x00017e10
(translation_unit "undefined4 FUN_000b2772(void)\n\n{\n  int iVar1;\n  int in_GS_OFFSET;\n  undefined4 local_14;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  FUN_000ae3ff();\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return local_14;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00017e10();\n}\n\n" (function_definition "undefined4 FUN_000b2772(void)\n\n{\n  int iVar1;\n  int in_GS_OFFSET;\n  undefined4 local_14;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  FUN_000ae3ff();\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return local_14;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00017e10();\n}" type_identifier (function_declarator "FUN_000b2772(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  int in_GS_OFFSET;\n  undefined4 local_14;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  FUN_000ae3ff();\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return local_14;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00017e10();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined4 local_14;" type_identifier identifier ;) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "FUN_000ae3ff();" (call_expression "FUN_000ae3ff()" identifier (argument_list "()" ( ))) ;) (if_statement "if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return local_14;\n  }" if (parenthesized_expression "(iVar1 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar1 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return local_14;\n  }" { (return_statement "return local_14;" return identifier ;) })) comment (expression_statement "FUN_00017e10();" (call_expression "FUN_00017e10()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "size_t __regparm3 unicode_strwidth(char *string)\n\n{\n  int iVar1;\n  int in_GS_OFFSET;\n  uni_stat_t uni_stat;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  printable_string2(&uni_stat,string);\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uni_stat.unicode_width;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}\n\n" (function_definition "size_t __regparm3 unicode_strwidth(char *string)\n\n{\n  int iVar1;\n  int in_GS_OFFSET;\n  uni_stat_t uni_stat;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  printable_string2(&uni_stat,string);\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uni_stat.unicode_width;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "unicode_strwidth(char *string)" identifier (parameter_list "(char *string)" ( (parameter_declaration "char *string" primitive_type (pointer_declarator "*string" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int in_GS_OFFSET;\n  uni_stat_t uni_stat;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  printable_string2(&uni_stat,string);\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uni_stat.unicode_width;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "uni_stat_t uni_stat;" type_identifier identifier ;) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "printable_string2(&uni_stat,string);" (call_expression "printable_string2(&uni_stat,string)" identifier (argument_list "(&uni_stat,string)" ( (pointer_expression "&uni_stat" & identifier) , identifier ))) ;) (if_statement "if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uni_stat.unicode_width;\n  }" if (parenthesized_expression "(iVar1 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar1 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return uni_stat.unicode_width;\n  }" { (return_statement "return uni_stat.unicode_width;" return (field_expression "uni_stat.unicode_width" identifier . field_identifier) ;) })) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "undefined4 FUN_000b2772(void)\n\n{\n  int iVar1;\n  int in_GS_OFFSET;\n  undefined4 local_14;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  FUN_000ae3ff();\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return local_14;\n  }\n                    \n  FUN_00017e10();\n}\n\n" (function_definition "undefined4 FUN_000b2772(void)\n\n{\n  int iVar1;\n  int in_GS_OFFSET;\n  undefined4 local_14;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  FUN_000ae3ff();\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return local_14;\n  }\n                    \n  FUN_00017e10();\n}" type_identifier (function_declarator "FUN_000b2772(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  int in_GS_OFFSET;\n  undefined4 local_14;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  FUN_000ae3ff();\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return local_14;\n  }\n                    \n  FUN_00017e10();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined4 local_14;" type_identifier identifier ;) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "FUN_000ae3ff();" (call_expression "FUN_000ae3ff()" identifier (argument_list "()" ( ))) ;) (if_statement "if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return local_14;\n  }" if (parenthesized_expression "(iVar1 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar1 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return local_14;\n  }" { (return_statement "return local_14;" return identifier ;) })) (expression_statement "FUN_00017e10();" (call_expression "FUN_00017e10()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE 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 (call_expression IDENT (argument_list ( ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "undefined4 FUN_000b2772(void)\n\n{\n  int iVar1;\n  int in_GS_OFFSET;\n  undefined4 local_14;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  FUN_000ae3ff();\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return local_14;\n  }\n                    \n  FUN_00017e10();\n}" (type_identifier "undefined4") (function_declarator "FUN_000b2772(void)" (identifier "FUN_000b2772") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  int iVar1;\n  int in_GS_OFFSET;\n  undefined4 local_14;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  FUN_000ae3ff();\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return local_14;\n  }\n                    \n  FUN_00017e10();\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "undefined4 local_14;" (type_identifier "undefined4") (identifier "local_14") (; ";")) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "FUN_000ae3ff();" (call_expression "FUN_000ae3ff()" (identifier "FUN_000ae3ff") (argument_list "()" (( "(") () ")"))) (; ";")) (if_statement "if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return local_14;\n  }" (if "if") (parenthesized_expression "(iVar1 == *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "iVar1 == *(int *)(in_GS_OFFSET + 0x14)" (identifier "iVar1") (== "==") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n    return local_14;\n  }" ({ "{") (return_statement "return local_14;" (return "return") (identifier "local_14") (; ";")) (} "}"))) (expression_statement "FUN_00017e10();" (call_expression "FUN_00017e10()" (identifier "FUN_00017e10") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

size_t __regparm3 function_1(char *string)

{
  int var_3;
  int var_1;
  type_1 uni_stat;
  
  var_3 = *(int *)(var_1 + 0x14);
  var_2(&uni_stat,string);
  if (var_3 == *(int *)(var_1 + 0x14)) {
    return uni_stat.unicode_width;
  }
                    /* WARNING: Subroutine does not return */
  var_4();
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (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))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (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))))))) consequence: (compound_statement (return_statement (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))))))

undefined4 MASKED(void)

{
  int iVar1;
  int in_GS_OFFSET;
  undefined4 local_14;
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  FUN_000ae3ff();
  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {
    return local_14;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00017e10();
}

