
/* WARNING: Unknown calling convention */

void aes_iv(void *handle,uchar *iv)

{
  *(uint *)((int)handle + 0x3c8) =
       (uint)iv[1] << 0x10 | (uint)*iv << 0x18 | (uint)iv[3] | (uint)iv[2] << 8;
  *(uint *)((int)handle + 0x3cc) =
       (uint)iv[4] << 0x18 | (uint)iv[7] | (uint)iv[5] << 0x10 | (uint)iv[6] << 8;
  *(uint *)((int)handle + 0x3d0) =
       (uint)iv[8] << 0x18 | (uint)iv[0xb] | (uint)iv[9] << 0x10 | (uint)iv[10] << 8;
  *(uint *)((int)handle + 0x3d4) =
       (uint)iv[0xe] << 8 | (uint)iv[0xc] << 0x18 | (uint)iv[0xf] | (uint)iv[0xd] << 0x10;
  return;
}



void FUN_00050a60(int param_1,byte *param_2)

{
  *(uint *)(param_1 + 0x3c8) =
       (uint)param_2[1] << 0x10 | (uint)*param_2 << 0x18 | (uint)param_2[3] | (uint)param_2[2] << 8;
  *(uint *)(param_1 + 0x3cc) =
       (uint)param_2[4] << 0x18 | (uint)param_2[7] | (uint)param_2[5] << 0x10 |
       (uint)param_2[6] << 8;
  *(uint *)(param_1 + 0x3d0) =
       (uint)param_2[8] << 0x18 | (uint)param_2[0xb] | (uint)param_2[9] << 0x10 |
       (uint)param_2[10] << 8;
  *(uint *)(param_1 + 0x3d4) =
       (uint)param_2[0xe] << 8 |
       (uint)param_2[0xc] << 0x18 | (uint)param_2[0xf] | (uint)param_2[0xd] << 0x10;
  return;
}


PUSH EBX
MOV EAX,dword ptr [ESP + 0xc]
MOV ECX,dword ptr [ESP + 0x8]
MOVZX EDX,byte ptr [EAX + 0x1]
MOVZX EBX,byte ptr [EAX]
SHL EDX,0x10
SHL EBX,0x18
OR EDX,EBX
MOVZX EBX,byte ptr [EAX + 0x3]
OR EDX,EBX
MOVZX EBX,byte ptr [EAX + 0x2]
SHL EBX,0x8
OR EDX,EBX
MOV dword ptr [ECX + 0x3c8],EDX
MOVZX EDX,byte ptr [EAX + 0x4]
MOVZX EBX,byte ptr [EAX + 0x7]
SHL EDX,0x18
OR EDX,EBX
MOVZX EBX,byte ptr [EAX + 0x5]
SHL EBX,0x10
OR EDX,EBX
MOVZX EBX,byte ptr [EAX + 0x6]
SHL EBX,0x8
OR EDX,EBX
MOV dword ptr [ECX + 0x3cc],EDX
MOVZX EDX,byte ptr [EAX + 0x8]
MOVZX EBX,byte ptr [EAX + 0xb]
SHL EDX,0x18
OR EDX,EBX
MOVZX EBX,byte ptr [EAX + 0x9]
SHL EBX,0x10
OR EDX,EBX
MOVZX EBX,byte ptr [EAX + 0xa]
SHL EBX,0x8
OR EDX,EBX
MOV dword ptr [ECX + 0x3d0],EDX
MOVZX EDX,byte ptr [EAX + 0xc]
MOVZX EBX,byte ptr [EAX + 0xf]
SHL EDX,0x18
OR EDX,EBX
MOVZX EBX,byte ptr [EAX + 0xd]
MOVZX EAX,byte ptr [EAX + 0xe]
SHL EBX,0x10
SHL EAX,0x8
OR EDX,EBX
OR EAX,EDX
MOV dword ptr [ECX + 0x3d4],EAX
POP EBX
RET
(translation_unit "void FUN_00050a60(int param_1,byte *param_2)\n\n{\n  *(uint *)(param_1 + 0x3c8) =\n       (uint)param_2[1] << 0x10 | (uint)*param_2 << 0x18 | (uint)param_2[3] | (uint)param_2[2] << 8;\n  *(uint *)(param_1 + 0x3cc) =\n       (uint)param_2[4] << 0x18 | (uint)param_2[7] | (uint)param_2[5] << 0x10 |\n       (uint)param_2[6] << 8;\n  *(uint *)(param_1 + 0x3d0) =\n       (uint)param_2[8] << 0x18 | (uint)param_2[0xb] | (uint)param_2[9] << 0x10 |\n       (uint)param_2[10] << 8;\n  *(uint *)(param_1 + 0x3d4) =\n       (uint)param_2[0xe] << 8 |\n       (uint)param_2[0xc] << 0x18 | (uint)param_2[0xf] | (uint)param_2[0xd] << 0x10;\n  return;\n}\n\n" (function_definition "void FUN_00050a60(int param_1,byte *param_2)\n\n{\n  *(uint *)(param_1 + 0x3c8) =\n       (uint)param_2[1] << 0x10 | (uint)*param_2 << 0x18 | (uint)param_2[3] | (uint)param_2[2] << 8;\n  *(uint *)(param_1 + 0x3cc) =\n       (uint)param_2[4] << 0x18 | (uint)param_2[7] | (uint)param_2[5] << 0x10 |\n       (uint)param_2[6] << 8;\n  *(uint *)(param_1 + 0x3d0) =\n       (uint)param_2[8] << 0x18 | (uint)param_2[0xb] | (uint)param_2[9] << 0x10 |\n       (uint)param_2[10] << 8;\n  *(uint *)(param_1 + 0x3d4) =\n       (uint)param_2[0xe] << 8 |\n       (uint)param_2[0xc] << 0x18 | (uint)param_2[0xf] | (uint)param_2[0xd] << 0x10;\n  return;\n}" primitive_type (function_declarator "FUN_00050a60(int param_1,byte *param_2)" identifier (parameter_list "(int param_1,byte *param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "byte *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  *(uint *)(param_1 + 0x3c8) =\n       (uint)param_2[1] << 0x10 | (uint)*param_2 << 0x18 | (uint)param_2[3] | (uint)param_2[2] << 8;\n  *(uint *)(param_1 + 0x3cc) =\n       (uint)param_2[4] << 0x18 | (uint)param_2[7] | (uint)param_2[5] << 0x10 |\n       (uint)param_2[6] << 8;\n  *(uint *)(param_1 + 0x3d0) =\n       (uint)param_2[8] << 0x18 | (uint)param_2[0xb] | (uint)param_2[9] << 0x10 |\n       (uint)param_2[10] << 8;\n  *(uint *)(param_1 + 0x3d4) =\n       (uint)param_2[0xe] << 8 |\n       (uint)param_2[0xc] << 0x18 | (uint)param_2[0xf] | (uint)param_2[0xd] << 0x10;\n  return;\n}" { (expression_statement "*(uint *)(param_1 + 0x3c8) =\n       (uint)param_2[1] << 0x10 | (uint)*param_2 << 0x18 | (uint)param_2[3] | (uint)param_2[2] << 8;" (assignment_expression "*(uint *)(param_1 + 0x3c8) =\n       (uint)param_2[1] << 0x10 | (uint)*param_2 << 0x18 | (uint)param_2[3] | (uint)param_2[2] << 8" (pointer_expression "*(uint *)(param_1 + 0x3c8)" * (cast_expression "(uint *)(param_1 + 0x3c8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3c8)" ( (binary_expression "param_1 + 0x3c8" identifier + number_literal) )))) = (binary_expression "(uint)param_2[1] << 0x10 | (uint)*param_2 << 0x18 | (uint)param_2[3] | (uint)param_2[2] << 8" (binary_expression "(uint)param_2[1] << 0x10 | (uint)*param_2 << 0x18 | (uint)param_2[3]" (binary_expression "(uint)param_2[1] << 0x10 | (uint)*param_2 << 0x18" (binary_expression "(uint)param_2[1] << 0x10" (cast_expression "(uint)param_2[1]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_2[1]" identifier [ number_literal ])) << number_literal) | (binary_expression "(uint)*param_2 << 0x18" (binary_expression "(uint)*param_2" (parenthesized_expression "(uint)" ( identifier )) * identifier) << number_literal)) | (cast_expression "(uint)param_2[3]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_2[3]" identifier [ number_literal ]))) | (binary_expression "(uint)param_2[2] << 8" (cast_expression "(uint)param_2[2]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_2[2]" identifier [ number_literal ])) << number_literal))) ;) (expression_statement "*(uint *)(param_1 + 0x3cc) =\n       (uint)param_2[4] << 0x18 | (uint)param_2[7] | (uint)param_2[5] << 0x10 |\n       (uint)param_2[6] << 8;" (assignment_expression "*(uint *)(param_1 + 0x3cc) =\n       (uint)param_2[4] << 0x18 | (uint)param_2[7] | (uint)param_2[5] << 0x10 |\n       (uint)param_2[6] << 8" (pointer_expression "*(uint *)(param_1 + 0x3cc)" * (cast_expression "(uint *)(param_1 + 0x3cc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3cc)" ( (binary_expression "param_1 + 0x3cc" identifier + number_literal) )))) = (binary_expression "(uint)param_2[4] << 0x18 | (uint)param_2[7] | (uint)param_2[5] << 0x10 |\n       (uint)param_2[6] << 8" (binary_expression "(uint)param_2[4] << 0x18 | (uint)param_2[7] | (uint)param_2[5] << 0x10" (binary_expression "(uint)param_2[4] << 0x18 | (uint)param_2[7]" (binary_expression "(uint)param_2[4] << 0x18" (cast_expression "(uint)param_2[4]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_2[4]" identifier [ number_literal ])) << number_literal) | (cast_expression "(uint)param_2[7]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_2[7]" identifier [ number_literal ]))) | (binary_expression "(uint)param_2[5] << 0x10" (cast_expression "(uint)param_2[5]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_2[5]" identifier [ number_literal ])) << number_literal)) | (binary_expression "(uint)param_2[6] << 8" (cast_expression "(uint)param_2[6]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_2[6]" identifier [ number_literal ])) << number_literal))) ;) (expression_statement "*(uint *)(param_1 + 0x3d0) =\n       (uint)param_2[8] << 0x18 | (uint)param_2[0xb] | (uint)param_2[9] << 0x10 |\n       (uint)param_2[10] << 8;" (assignment_expression "*(uint *)(param_1 + 0x3d0) =\n       (uint)param_2[8] << 0x18 | (uint)param_2[0xb] | (uint)param_2[9] << 0x10 |\n       (uint)param_2[10] << 8" (pointer_expression "*(uint *)(param_1 + 0x3d0)" * (cast_expression "(uint *)(param_1 + 0x3d0)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3d0)" ( (binary_expression "param_1 + 0x3d0" identifier + number_literal) )))) = (binary_expression "(uint)param_2[8] << 0x18 | (uint)param_2[0xb] | (uint)param_2[9] << 0x10 |\n       (uint)param_2[10] << 8" (binary_expression "(uint)param_2[8] << 0x18 | (uint)param_2[0xb] | (uint)param_2[9] << 0x10" (binary_expression "(uint)param_2[8] << 0x18 | (uint)param_2[0xb]" (binary_expression "(uint)param_2[8] << 0x18" (cast_expression "(uint)param_2[8]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_2[8]" identifier [ number_literal ])) << number_literal) | (cast_expression "(uint)param_2[0xb]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_2[0xb]" identifier [ number_literal ]))) | (binary_expression "(uint)param_2[9] << 0x10" (cast_expression "(uint)param_2[9]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_2[9]" identifier [ number_literal ])) << number_literal)) | (binary_expression "(uint)param_2[10] << 8" (cast_expression "(uint)param_2[10]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_2[10]" identifier [ number_literal ])) << number_literal))) ;) (expression_statement "*(uint *)(param_1 + 0x3d4) =\n       (uint)param_2[0xe] << 8 |\n       (uint)param_2[0xc] << 0x18 | (uint)param_2[0xf] | (uint)param_2[0xd] << 0x10;" (assignment_expression "*(uint *)(param_1 + 0x3d4) =\n       (uint)param_2[0xe] << 8 |\n       (uint)param_2[0xc] << 0x18 | (uint)param_2[0xf] | (uint)param_2[0xd] << 0x10" (pointer_expression "*(uint *)(param_1 + 0x3d4)" * (cast_expression "(uint *)(param_1 + 0x3d4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3d4)" ( (binary_expression "param_1 + 0x3d4" identifier + number_literal) )))) = (binary_expression "(uint)param_2[0xe] << 8 |\n       (uint)param_2[0xc] << 0x18 | (uint)param_2[0xf] | (uint)param_2[0xd] << 0x10" (binary_expression "(uint)param_2[0xe] << 8 |\n       (uint)param_2[0xc] << 0x18 | (uint)param_2[0xf]" (binary_expression "(uint)param_2[0xe] << 8 |\n       (uint)param_2[0xc] << 0x18" (binary_expression "(uint)param_2[0xe] << 8" (cast_expression "(uint)param_2[0xe]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_2[0xe]" identifier [ number_literal ])) << number_literal) | (binary_expression "(uint)param_2[0xc] << 0x18" (cast_expression "(uint)param_2[0xc]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_2[0xc]" identifier [ number_literal ])) << number_literal)) | (cast_expression "(uint)param_2[0xf]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_2[0xf]" identifier [ number_literal ]))) | (binary_expression "(uint)param_2[0xd] << 0x10" (cast_expression "(uint)param_2[0xd]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_2[0xd]" identifier [ number_literal ])) << number_literal))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Unknown calling convention */\n\nvoid aes_iv(void *handle,uchar *iv)\n\n{\n  *(uint *)((int)handle + 0x3c8) =\n       (uint)iv[1] << 0x10 | (uint)*iv << 0x18 | (uint)iv[3] | (uint)iv[2] << 8;\n  *(uint *)((int)handle + 0x3cc) =\n       (uint)iv[4] << 0x18 | (uint)iv[7] | (uint)iv[5] << 0x10 | (uint)iv[6] << 8;\n  *(uint *)((int)handle + 0x3d0) =\n       (uint)iv[8] << 0x18 | (uint)iv[0xb] | (uint)iv[9] << 0x10 | (uint)iv[10] << 8;\n  *(uint *)((int)handle + 0x3d4) =\n       (uint)iv[0xe] << 8 | (uint)iv[0xc] << 0x18 | (uint)iv[0xf] | (uint)iv[0xd] << 0x10;\n  return;\n}\n\n" comment (function_definition "void aes_iv(void *handle,uchar *iv)\n\n{\n  *(uint *)((int)handle + 0x3c8) =\n       (uint)iv[1] << 0x10 | (uint)*iv << 0x18 | (uint)iv[3] | (uint)iv[2] << 8;\n  *(uint *)((int)handle + 0x3cc) =\n       (uint)iv[4] << 0x18 | (uint)iv[7] | (uint)iv[5] << 0x10 | (uint)iv[6] << 8;\n  *(uint *)((int)handle + 0x3d0) =\n       (uint)iv[8] << 0x18 | (uint)iv[0xb] | (uint)iv[9] << 0x10 | (uint)iv[10] << 8;\n  *(uint *)((int)handle + 0x3d4) =\n       (uint)iv[0xe] << 8 | (uint)iv[0xc] << 0x18 | (uint)iv[0xf] | (uint)iv[0xd] << 0x10;\n  return;\n}" primitive_type (function_declarator "aes_iv(void *handle,uchar *iv)" identifier (parameter_list "(void *handle,uchar *iv)" ( (parameter_declaration "void *handle" primitive_type (pointer_declarator "*handle" * identifier)) , (parameter_declaration "uchar *iv" type_identifier (pointer_declarator "*iv" * identifier)) ))) (compound_statement "{\n  *(uint *)((int)handle + 0x3c8) =\n       (uint)iv[1] << 0x10 | (uint)*iv << 0x18 | (uint)iv[3] | (uint)iv[2] << 8;\n  *(uint *)((int)handle + 0x3cc) =\n       (uint)iv[4] << 0x18 | (uint)iv[7] | (uint)iv[5] << 0x10 | (uint)iv[6] << 8;\n  *(uint *)((int)handle + 0x3d0) =\n       (uint)iv[8] << 0x18 | (uint)iv[0xb] | (uint)iv[9] << 0x10 | (uint)iv[10] << 8;\n  *(uint *)((int)handle + 0x3d4) =\n       (uint)iv[0xe] << 8 | (uint)iv[0xc] << 0x18 | (uint)iv[0xf] | (uint)iv[0xd] << 0x10;\n  return;\n}" { (expression_statement "*(uint *)((int)handle + 0x3c8) =\n       (uint)iv[1] << 0x10 | (uint)*iv << 0x18 | (uint)iv[3] | (uint)iv[2] << 8;" (assignment_expression "*(uint *)((int)handle + 0x3c8) =\n       (uint)iv[1] << 0x10 | (uint)*iv << 0x18 | (uint)iv[3] | (uint)iv[2] << 8" (pointer_expression "*(uint *)((int)handle + 0x3c8)" * (cast_expression "(uint *)((int)handle + 0x3c8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)handle + 0x3c8)" ( (binary_expression "(int)handle + 0x3c8" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (binary_expression "(uint)iv[1] << 0x10 | (uint)*iv << 0x18 | (uint)iv[3] | (uint)iv[2] << 8" (binary_expression "(uint)iv[1] << 0x10 | (uint)*iv << 0x18 | (uint)iv[3]" (binary_expression "(uint)iv[1] << 0x10 | (uint)*iv << 0x18" (binary_expression "(uint)iv[1] << 0x10" (cast_expression "(uint)iv[1]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "iv[1]" identifier [ number_literal ])) << number_literal) | (binary_expression "(uint)*iv << 0x18" (binary_expression "(uint)*iv" (parenthesized_expression "(uint)" ( identifier )) * identifier) << number_literal)) | (cast_expression "(uint)iv[3]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "iv[3]" identifier [ number_literal ]))) | (binary_expression "(uint)iv[2] << 8" (cast_expression "(uint)iv[2]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "iv[2]" identifier [ number_literal ])) << number_literal))) ;) (expression_statement "*(uint *)((int)handle + 0x3cc) =\n       (uint)iv[4] << 0x18 | (uint)iv[7] | (uint)iv[5] << 0x10 | (uint)iv[6] << 8;" (assignment_expression "*(uint *)((int)handle + 0x3cc) =\n       (uint)iv[4] << 0x18 | (uint)iv[7] | (uint)iv[5] << 0x10 | (uint)iv[6] << 8" (pointer_expression "*(uint *)((int)handle + 0x3cc)" * (cast_expression "(uint *)((int)handle + 0x3cc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)handle + 0x3cc)" ( (binary_expression "(int)handle + 0x3cc" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (binary_expression "(uint)iv[4] << 0x18 | (uint)iv[7] | (uint)iv[5] << 0x10 | (uint)iv[6] << 8" (binary_expression "(uint)iv[4] << 0x18 | (uint)iv[7] | (uint)iv[5] << 0x10" (binary_expression "(uint)iv[4] << 0x18 | (uint)iv[7]" (binary_expression "(uint)iv[4] << 0x18" (cast_expression "(uint)iv[4]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "iv[4]" identifier [ number_literal ])) << number_literal) | (cast_expression "(uint)iv[7]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "iv[7]" identifier [ number_literal ]))) | (binary_expression "(uint)iv[5] << 0x10" (cast_expression "(uint)iv[5]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "iv[5]" identifier [ number_literal ])) << number_literal)) | (binary_expression "(uint)iv[6] << 8" (cast_expression "(uint)iv[6]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "iv[6]" identifier [ number_literal ])) << number_literal))) ;) (expression_statement "*(uint *)((int)handle + 0x3d0) =\n       (uint)iv[8] << 0x18 | (uint)iv[0xb] | (uint)iv[9] << 0x10 | (uint)iv[10] << 8;" (assignment_expression "*(uint *)((int)handle + 0x3d0) =\n       (uint)iv[8] << 0x18 | (uint)iv[0xb] | (uint)iv[9] << 0x10 | (uint)iv[10] << 8" (pointer_expression "*(uint *)((int)handle + 0x3d0)" * (cast_expression "(uint *)((int)handle + 0x3d0)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)handle + 0x3d0)" ( (binary_expression "(int)handle + 0x3d0" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (binary_expression "(uint)iv[8] << 0x18 | (uint)iv[0xb] | (uint)iv[9] << 0x10 | (uint)iv[10] << 8" (binary_expression "(uint)iv[8] << 0x18 | (uint)iv[0xb] | (uint)iv[9] << 0x10" (binary_expression "(uint)iv[8] << 0x18 | (uint)iv[0xb]" (binary_expression "(uint)iv[8] << 0x18" (cast_expression "(uint)iv[8]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "iv[8]" identifier [ number_literal ])) << number_literal) | (cast_expression "(uint)iv[0xb]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "iv[0xb]" identifier [ number_literal ]))) | (binary_expression "(uint)iv[9] << 0x10" (cast_expression "(uint)iv[9]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "iv[9]" identifier [ number_literal ])) << number_literal)) | (binary_expression "(uint)iv[10] << 8" (cast_expression "(uint)iv[10]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "iv[10]" identifier [ number_literal ])) << number_literal))) ;) (expression_statement "*(uint *)((int)handle + 0x3d4) =\n       (uint)iv[0xe] << 8 | (uint)iv[0xc] << 0x18 | (uint)iv[0xf] | (uint)iv[0xd] << 0x10;" (assignment_expression "*(uint *)((int)handle + 0x3d4) =\n       (uint)iv[0xe] << 8 | (uint)iv[0xc] << 0x18 | (uint)iv[0xf] | (uint)iv[0xd] << 0x10" (pointer_expression "*(uint *)((int)handle + 0x3d4)" * (cast_expression "(uint *)((int)handle + 0x3d4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)handle + 0x3d4)" ( (binary_expression "(int)handle + 0x3d4" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (binary_expression "(uint)iv[0xe] << 8 | (uint)iv[0xc] << 0x18 | (uint)iv[0xf] | (uint)iv[0xd] << 0x10" (binary_expression "(uint)iv[0xe] << 8 | (uint)iv[0xc] << 0x18 | (uint)iv[0xf]" (binary_expression "(uint)iv[0xe] << 8 | (uint)iv[0xc] << 0x18" (binary_expression "(uint)iv[0xe] << 8" (cast_expression "(uint)iv[0xe]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "iv[0xe]" identifier [ number_literal ])) << number_literal) | (binary_expression "(uint)iv[0xc] << 0x18" (cast_expression "(uint)iv[0xc]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "iv[0xc]" identifier [ number_literal ])) << number_literal)) | (cast_expression "(uint)iv[0xf]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "iv[0xf]" identifier [ number_literal ]))) | (binary_expression "(uint)iv[0xd] << 0x10" (cast_expression "(uint)iv[0xd]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "iv[0xd]" identifier [ number_literal ])) << number_literal))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00050a60(int param_1,byte *param_2)\n\n{\n  *(uint *)(param_1 + 0x3c8) =\n       (uint)param_2[1] << 0x10 | (uint)*param_2 << 0x18 | (uint)param_2[3] | (uint)param_2[2] << 8;\n  *(uint *)(param_1 + 0x3cc) =\n       (uint)param_2[4] << 0x18 | (uint)param_2[7] | (uint)param_2[5] << 0x10 |\n       (uint)param_2[6] << 8;\n  *(uint *)(param_1 + 0x3d0) =\n       (uint)param_2[8] << 0x18 | (uint)param_2[0xb] | (uint)param_2[9] << 0x10 |\n       (uint)param_2[10] << 8;\n  *(uint *)(param_1 + 0x3d4) =\n       (uint)param_2[0xe] << 8 |\n       (uint)param_2[0xc] << 0x18 | (uint)param_2[0xf] | (uint)param_2[0xd] << 0x10;\n  return;\n}\n\n" (function_definition "void FUN_00050a60(int param_1,byte *param_2)\n\n{\n  *(uint *)(param_1 + 0x3c8) =\n       (uint)param_2[1] << 0x10 | (uint)*param_2 << 0x18 | (uint)param_2[3] | (uint)param_2[2] << 8;\n  *(uint *)(param_1 + 0x3cc) =\n       (uint)param_2[4] << 0x18 | (uint)param_2[7] | (uint)param_2[5] << 0x10 |\n       (uint)param_2[6] << 8;\n  *(uint *)(param_1 + 0x3d0) =\n       (uint)param_2[8] << 0x18 | (uint)param_2[0xb] | (uint)param_2[9] << 0x10 |\n       (uint)param_2[10] << 8;\n  *(uint *)(param_1 + 0x3d4) =\n       (uint)param_2[0xe] << 8 |\n       (uint)param_2[0xc] << 0x18 | (uint)param_2[0xf] | (uint)param_2[0xd] << 0x10;\n  return;\n}" primitive_type (function_declarator "FUN_00050a60(int param_1,byte *param_2)" identifier (parameter_list "(int param_1,byte *param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "byte *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  *(uint *)(param_1 + 0x3c8) =\n       (uint)param_2[1] << 0x10 | (uint)*param_2 << 0x18 | (uint)param_2[3] | (uint)param_2[2] << 8;\n  *(uint *)(param_1 + 0x3cc) =\n       (uint)param_2[4] << 0x18 | (uint)param_2[7] | (uint)param_2[5] << 0x10 |\n       (uint)param_2[6] << 8;\n  *(uint *)(param_1 + 0x3d0) =\n       (uint)param_2[8] << 0x18 | (uint)param_2[0xb] | (uint)param_2[9] << 0x10 |\n       (uint)param_2[10] << 8;\n  *(uint *)(param_1 + 0x3d4) =\n       (uint)param_2[0xe] << 8 |\n       (uint)param_2[0xc] << 0x18 | (uint)param_2[0xf] | (uint)param_2[0xd] << 0x10;\n  return;\n}" { (expression_statement "*(uint *)(param_1 + 0x3c8) =\n       (uint)param_2[1] << 0x10 | (uint)*param_2 << 0x18 | (uint)param_2[3] | (uint)param_2[2] << 8;" (assignment_expression "*(uint *)(param_1 + 0x3c8) =\n       (uint)param_2[1] << 0x10 | (uint)*param_2 << 0x18 | (uint)param_2[3] | (uint)param_2[2] << 8" (pointer_expression "*(uint *)(param_1 + 0x3c8)" * (cast_expression "(uint *)(param_1 + 0x3c8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3c8)" ( (binary_expression "param_1 + 0x3c8" identifier + number_literal) )))) = (binary_expression "(uint)param_2[1] << 0x10 | (uint)*param_2 << 0x18 | (uint)param_2[3] | (uint)param_2[2] << 8" (binary_expression "(uint)param_2[1] << 0x10 | (uint)*param_2 << 0x18 | (uint)param_2[3]" (binary_expression "(uint)param_2[1] << 0x10 | (uint)*param_2 << 0x18" (binary_expression "(uint)param_2[1] << 0x10" (cast_expression "(uint)param_2[1]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_2[1]" identifier [ number_literal ])) << number_literal) | (binary_expression "(uint)*param_2 << 0x18" (binary_expression "(uint)*param_2" (parenthesized_expression "(uint)" ( identifier )) * identifier) << number_literal)) | (cast_expression "(uint)param_2[3]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_2[3]" identifier [ number_literal ]))) | (binary_expression "(uint)param_2[2] << 8" (cast_expression "(uint)param_2[2]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_2[2]" identifier [ number_literal ])) << number_literal))) ;) (expression_statement "*(uint *)(param_1 + 0x3cc) =\n       (uint)param_2[4] << 0x18 | (uint)param_2[7] | (uint)param_2[5] << 0x10 |\n       (uint)param_2[6] << 8;" (assignment_expression "*(uint *)(param_1 + 0x3cc) =\n       (uint)param_2[4] << 0x18 | (uint)param_2[7] | (uint)param_2[5] << 0x10 |\n       (uint)param_2[6] << 8" (pointer_expression "*(uint *)(param_1 + 0x3cc)" * (cast_expression "(uint *)(param_1 + 0x3cc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3cc)" ( (binary_expression "param_1 + 0x3cc" identifier + number_literal) )))) = (binary_expression "(uint)param_2[4] << 0x18 | (uint)param_2[7] | (uint)param_2[5] << 0x10 |\n       (uint)param_2[6] << 8" (binary_expression "(uint)param_2[4] << 0x18 | (uint)param_2[7] | (uint)param_2[5] << 0x10" (binary_expression "(uint)param_2[4] << 0x18 | (uint)param_2[7]" (binary_expression "(uint)param_2[4] << 0x18" (cast_expression "(uint)param_2[4]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_2[4]" identifier [ number_literal ])) << number_literal) | (cast_expression "(uint)param_2[7]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_2[7]" identifier [ number_literal ]))) | (binary_expression "(uint)param_2[5] << 0x10" (cast_expression "(uint)param_2[5]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_2[5]" identifier [ number_literal ])) << number_literal)) | (binary_expression "(uint)param_2[6] << 8" (cast_expression "(uint)param_2[6]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_2[6]" identifier [ number_literal ])) << number_literal))) ;) (expression_statement "*(uint *)(param_1 + 0x3d0) =\n       (uint)param_2[8] << 0x18 | (uint)param_2[0xb] | (uint)param_2[9] << 0x10 |\n       (uint)param_2[10] << 8;" (assignment_expression "*(uint *)(param_1 + 0x3d0) =\n       (uint)param_2[8] << 0x18 | (uint)param_2[0xb] | (uint)param_2[9] << 0x10 |\n       (uint)param_2[10] << 8" (pointer_expression "*(uint *)(param_1 + 0x3d0)" * (cast_expression "(uint *)(param_1 + 0x3d0)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3d0)" ( (binary_expression "param_1 + 0x3d0" identifier + number_literal) )))) = (binary_expression "(uint)param_2[8] << 0x18 | (uint)param_2[0xb] | (uint)param_2[9] << 0x10 |\n       (uint)param_2[10] << 8" (binary_expression "(uint)param_2[8] << 0x18 | (uint)param_2[0xb] | (uint)param_2[9] << 0x10" (binary_expression "(uint)param_2[8] << 0x18 | (uint)param_2[0xb]" (binary_expression "(uint)param_2[8] << 0x18" (cast_expression "(uint)param_2[8]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_2[8]" identifier [ number_literal ])) << number_literal) | (cast_expression "(uint)param_2[0xb]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_2[0xb]" identifier [ number_literal ]))) | (binary_expression "(uint)param_2[9] << 0x10" (cast_expression "(uint)param_2[9]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_2[9]" identifier [ number_literal ])) << number_literal)) | (binary_expression "(uint)param_2[10] << 8" (cast_expression "(uint)param_2[10]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_2[10]" identifier [ number_literal ])) << number_literal))) ;) (expression_statement "*(uint *)(param_1 + 0x3d4) =\n       (uint)param_2[0xe] << 8 |\n       (uint)param_2[0xc] << 0x18 | (uint)param_2[0xf] | (uint)param_2[0xd] << 0x10;" (assignment_expression "*(uint *)(param_1 + 0x3d4) =\n       (uint)param_2[0xe] << 8 |\n       (uint)param_2[0xc] << 0x18 | (uint)param_2[0xf] | (uint)param_2[0xd] << 0x10" (pointer_expression "*(uint *)(param_1 + 0x3d4)" * (cast_expression "(uint *)(param_1 + 0x3d4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3d4)" ( (binary_expression "param_1 + 0x3d4" identifier + number_literal) )))) = (binary_expression "(uint)param_2[0xe] << 8 |\n       (uint)param_2[0xc] << 0x18 | (uint)param_2[0xf] | (uint)param_2[0xd] << 0x10" (binary_expression "(uint)param_2[0xe] << 8 |\n       (uint)param_2[0xc] << 0x18 | (uint)param_2[0xf]" (binary_expression "(uint)param_2[0xe] << 8 |\n       (uint)param_2[0xc] << 0x18" (binary_expression "(uint)param_2[0xe] << 8" (cast_expression "(uint)param_2[0xe]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_2[0xe]" identifier [ number_literal ])) << number_literal) | (binary_expression "(uint)param_2[0xc] << 0x18" (cast_expression "(uint)param_2[0xc]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_2[0xc]" identifier [ number_literal ])) << number_literal)) | (cast_expression "(uint)param_2[0xf]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_2[0xf]" identifier [ number_literal ]))) | (binary_expression "(uint)param_2[0xd] << 0x10" (cast_expression "(uint)param_2[0xd]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_2[0xd]" identifier [ number_literal ])) << number_literal))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (binary_expression (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) << LIT) | (binary_expression (binary_expression (parenthesized_expression ( IDENT )) * IDENT) << LIT)) | (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ]))) | (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) << LIT))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (binary_expression (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) << LIT) | (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ]))) | (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) << LIT)) | (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) << LIT))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (binary_expression (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) << LIT) | (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ]))) | (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) << LIT)) | (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) << LIT))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (binary_expression (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) << LIT) | (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) << LIT)) | (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ]))) | (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) << LIT))) ;) (return_statement return ;) })))
(function_definition "void FUN_00050a60(int param_1,byte *param_2)\n\n{\n  *(uint *)(param_1 + 0x3c8) =\n       (uint)param_2[1] << 0x10 | (uint)*param_2 << 0x18 | (uint)param_2[3] | (uint)param_2[2] << 8;\n  *(uint *)(param_1 + 0x3cc) =\n       (uint)param_2[4] << 0x18 | (uint)param_2[7] | (uint)param_2[5] << 0x10 |\n       (uint)param_2[6] << 8;\n  *(uint *)(param_1 + 0x3d0) =\n       (uint)param_2[8] << 0x18 | (uint)param_2[0xb] | (uint)param_2[9] << 0x10 |\n       (uint)param_2[10] << 8;\n  *(uint *)(param_1 + 0x3d4) =\n       (uint)param_2[0xe] << 8 |\n       (uint)param_2[0xc] << 0x18 | (uint)param_2[0xf] | (uint)param_2[0xd] << 0x10;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00050a60(int param_1,byte *param_2)" (identifier "FUN_00050a60") (parameter_list "(int param_1,byte *param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "byte *param_2" (type_identifier "byte") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  *(uint *)(param_1 + 0x3c8) =\n       (uint)param_2[1] << 0x10 | (uint)*param_2 << 0x18 | (uint)param_2[3] | (uint)param_2[2] << 8;\n  *(uint *)(param_1 + 0x3cc) =\n       (uint)param_2[4] << 0x18 | (uint)param_2[7] | (uint)param_2[5] << 0x10 |\n       (uint)param_2[6] << 8;\n  *(uint *)(param_1 + 0x3d0) =\n       (uint)param_2[8] << 0x18 | (uint)param_2[0xb] | (uint)param_2[9] << 0x10 |\n       (uint)param_2[10] << 8;\n  *(uint *)(param_1 + 0x3d4) =\n       (uint)param_2[0xe] << 8 |\n       (uint)param_2[0xc] << 0x18 | (uint)param_2[0xf] | (uint)param_2[0xd] << 0x10;\n  return;\n}" ({ "{") (expression_statement "*(uint *)(param_1 + 0x3c8) =\n       (uint)param_2[1] << 0x10 | (uint)*param_2 << 0x18 | (uint)param_2[3] | (uint)param_2[2] << 8;" (assignment_expression "*(uint *)(param_1 + 0x3c8) =\n       (uint)param_2[1] << 0x10 | (uint)*param_2 << 0x18 | (uint)param_2[3] | (uint)param_2[2] << 8" (pointer_expression "*(uint *)(param_1 + 0x3c8)" (* "*") (cast_expression "(uint *)(param_1 + 0x3c8)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x3c8)" (( "(") (binary_expression "param_1 + 0x3c8" (identifier "param_1") (+ "+") (number_literal "0x3c8")) () ")")))) (= "=") (binary_expression "(uint)param_2[1] << 0x10 | (uint)*param_2 << 0x18 | (uint)param_2[3] | (uint)param_2[2] << 8" (binary_expression "(uint)param_2[1] << 0x10 | (uint)*param_2 << 0x18 | (uint)param_2[3]" (binary_expression "(uint)param_2[1] << 0x10 | (uint)*param_2 << 0x18" (binary_expression "(uint)param_2[1] << 0x10" (cast_expression "(uint)param_2[1]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]"))) (<< "<<") (number_literal "0x10")) (| "|") (binary_expression "(uint)*param_2 << 0x18" (binary_expression "(uint)*param_2" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (identifier "param_2")) (<< "<<") (number_literal "0x18"))) (| "|") (cast_expression "(uint)param_2[3]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "param_2[3]" (identifier "param_2") ([ "[") (number_literal "3") (] "]")))) (| "|") (binary_expression "(uint)param_2[2] << 8" (cast_expression "(uint)param_2[2]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "param_2[2]" (identifier "param_2") ([ "[") (number_literal "2") (] "]"))) (<< "<<") (number_literal "8")))) (; ";")) (expression_statement "*(uint *)(param_1 + 0x3cc) =\n       (uint)param_2[4] << 0x18 | (uint)param_2[7] | (uint)param_2[5] << 0x10 |\n       (uint)param_2[6] << 8;" (assignment_expression "*(uint *)(param_1 + 0x3cc) =\n       (uint)param_2[4] << 0x18 | (uint)param_2[7] | (uint)param_2[5] << 0x10 |\n       (uint)param_2[6] << 8" (pointer_expression "*(uint *)(param_1 + 0x3cc)" (* "*") (cast_expression "(uint *)(param_1 + 0x3cc)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x3cc)" (( "(") (binary_expression "param_1 + 0x3cc" (identifier "param_1") (+ "+") (number_literal "0x3cc")) () ")")))) (= "=") (binary_expression "(uint)param_2[4] << 0x18 | (uint)param_2[7] | (uint)param_2[5] << 0x10 |\n       (uint)param_2[6] << 8" (binary_expression "(uint)param_2[4] << 0x18 | (uint)param_2[7] | (uint)param_2[5] << 0x10" (binary_expression "(uint)param_2[4] << 0x18 | (uint)param_2[7]" (binary_expression "(uint)param_2[4] << 0x18" (cast_expression "(uint)param_2[4]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "param_2[4]" (identifier "param_2") ([ "[") (number_literal "4") (] "]"))) (<< "<<") (number_literal "0x18")) (| "|") (cast_expression "(uint)param_2[7]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "param_2[7]" (identifier "param_2") ([ "[") (number_literal "7") (] "]")))) (| "|") (binary_expression "(uint)param_2[5] << 0x10" (cast_expression "(uint)param_2[5]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "param_2[5]" (identifier "param_2") ([ "[") (number_literal "5") (] "]"))) (<< "<<") (number_literal "0x10"))) (| "|") (binary_expression "(uint)param_2[6] << 8" (cast_expression "(uint)param_2[6]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "param_2[6]" (identifier "param_2") ([ "[") (number_literal "6") (] "]"))) (<< "<<") (number_literal "8")))) (; ";")) (expression_statement "*(uint *)(param_1 + 0x3d0) =\n       (uint)param_2[8] << 0x18 | (uint)param_2[0xb] | (uint)param_2[9] << 0x10 |\n       (uint)param_2[10] << 8;" (assignment_expression "*(uint *)(param_1 + 0x3d0) =\n       (uint)param_2[8] << 0x18 | (uint)param_2[0xb] | (uint)param_2[9] << 0x10 |\n       (uint)param_2[10] << 8" (pointer_expression "*(uint *)(param_1 + 0x3d0)" (* "*") (cast_expression "(uint *)(param_1 + 0x3d0)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x3d0)" (( "(") (binary_expression "param_1 + 0x3d0" (identifier "param_1") (+ "+") (number_literal "0x3d0")) () ")")))) (= "=") (binary_expression "(uint)param_2[8] << 0x18 | (uint)param_2[0xb] | (uint)param_2[9] << 0x10 |\n       (uint)param_2[10] << 8" (binary_expression "(uint)param_2[8] << 0x18 | (uint)param_2[0xb] | (uint)param_2[9] << 0x10" (binary_expression "(uint)param_2[8] << 0x18 | (uint)param_2[0xb]" (binary_expression "(uint)param_2[8] << 0x18" (cast_expression "(uint)param_2[8]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "param_2[8]" (identifier "param_2") ([ "[") (number_literal "8") (] "]"))) (<< "<<") (number_literal "0x18")) (| "|") (cast_expression "(uint)param_2[0xb]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "param_2[0xb]" (identifier "param_2") ([ "[") (number_literal "0xb") (] "]")))) (| "|") (binary_expression "(uint)param_2[9] << 0x10" (cast_expression "(uint)param_2[9]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "param_2[9]" (identifier "param_2") ([ "[") (number_literal "9") (] "]"))) (<< "<<") (number_literal "0x10"))) (| "|") (binary_expression "(uint)param_2[10] << 8" (cast_expression "(uint)param_2[10]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "param_2[10]" (identifier "param_2") ([ "[") (number_literal "10") (] "]"))) (<< "<<") (number_literal "8")))) (; ";")) (expression_statement "*(uint *)(param_1 + 0x3d4) =\n       (uint)param_2[0xe] << 8 |\n       (uint)param_2[0xc] << 0x18 | (uint)param_2[0xf] | (uint)param_2[0xd] << 0x10;" (assignment_expression "*(uint *)(param_1 + 0x3d4) =\n       (uint)param_2[0xe] << 8 |\n       (uint)param_2[0xc] << 0x18 | (uint)param_2[0xf] | (uint)param_2[0xd] << 0x10" (pointer_expression "*(uint *)(param_1 + 0x3d4)" (* "*") (cast_expression "(uint *)(param_1 + 0x3d4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x3d4)" (( "(") (binary_expression "param_1 + 0x3d4" (identifier "param_1") (+ "+") (number_literal "0x3d4")) () ")")))) (= "=") (binary_expression "(uint)param_2[0xe] << 8 |\n       (uint)param_2[0xc] << 0x18 | (uint)param_2[0xf] | (uint)param_2[0xd] << 0x10" (binary_expression "(uint)param_2[0xe] << 8 |\n       (uint)param_2[0xc] << 0x18 | (uint)param_2[0xf]" (binary_expression "(uint)param_2[0xe] << 8 |\n       (uint)param_2[0xc] << 0x18" (binary_expression "(uint)param_2[0xe] << 8" (cast_expression "(uint)param_2[0xe]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "param_2[0xe]" (identifier "param_2") ([ "[") (number_literal "0xe") (] "]"))) (<< "<<") (number_literal "8")) (| "|") (binary_expression "(uint)param_2[0xc] << 0x18" (cast_expression "(uint)param_2[0xc]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "param_2[0xc]" (identifier "param_2") ([ "[") (number_literal "0xc") (] "]"))) (<< "<<") (number_literal "0x18"))) (| "|") (cast_expression "(uint)param_2[0xf]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "param_2[0xf]" (identifier "param_2") ([ "[") (number_literal "0xf") (] "]")))) (| "|") (binary_expression "(uint)param_2[0xd] << 0x10" (cast_expression "(uint)param_2[0xd]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "param_2[0xd]" (identifier "param_2") ([ "[") (number_literal "0xd") (] "]"))) (<< "<<") (number_literal "0x10")))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Unknown calling convention */

void function_1(void *handle,type_1 *var_1)

{
  *(type_2 *)((int)handle + 0x3c8) =
       (type_2)var_1[1] << 0x10 | (type_2)*var_1 << 0x18 | (type_2)var_1[3] | (type_2)var_1[2] << 8;
  *(type_2 *)((int)handle + 0x3cc) =
       (type_2)var_1[4] << 0x18 | (type_2)var_1[7] | (type_2)var_1[5] << 0x10 | (type_2)var_1[6] << 8;
  *(type_2 *)((int)handle + 0x3d0) =
       (type_2)var_1[8] << 0x18 | (type_2)var_1[0xb] | (type_2)var_1[9] << 0x10 | (type_2)var_1[10] << 8;
  *(type_2 *)((int)handle + 0x3d4) =
       (type_2)var_1[0xe] << 8 | (type_2)var_1[0xc] << 0x18 | (type_2)var_1[0xf] | (type_2)var_1[0xd] << 0x10;
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (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: (binary_expression left: (binary_expression left: (binary_expression left: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (subscript_expression argument: (identifier) index: (number_literal))) right: (number_literal)) right: (binary_expression left: (binary_expression left: (parenthesized_expression (identifier)) right: (identifier)) right: (number_literal))) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (subscript_expression argument: (identifier) index: (number_literal)))) right: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (subscript_expression argument: (identifier) index: (number_literal))) 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: (binary_expression left: (binary_expression left: (binary_expression left: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (subscript_expression argument: (identifier) index: (number_literal))) right: (number_literal)) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (subscript_expression argument: (identifier) index: (number_literal)))) right: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (subscript_expression argument: (identifier) index: (number_literal))) right: (number_literal))) right: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (subscript_expression argument: (identifier) index: (number_literal))) 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: (binary_expression left: (binary_expression left: (binary_expression left: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (subscript_expression argument: (identifier) index: (number_literal))) right: (number_literal)) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (subscript_expression argument: (identifier) index: (number_literal)))) right: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (subscript_expression argument: (identifier) index: (number_literal))) right: (number_literal))) right: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (subscript_expression argument: (identifier) index: (number_literal))) 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: (binary_expression left: (binary_expression left: (binary_expression left: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (subscript_expression argument: (identifier) index: (number_literal))) right: (number_literal)) right: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (subscript_expression argument: (identifier) index: (number_literal))) right: (number_literal))) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (subscript_expression argument: (identifier) index: (number_literal)))) right: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (subscript_expression argument: (identifier) index: (number_literal))) right: (number_literal))))) (return_statement))))

void MASKED(int param_1,byte *param_2)

{
  *(uint *)(param_1 + 0x3c8) =
       (uint)param_2[1] << 0x10 | (uint)*param_2 << 0x18 | (uint)param_2[3] | (uint)param_2[2] << 8;
  *(uint *)(param_1 + 0x3cc) =
       (uint)param_2[4] << 0x18 | (uint)param_2[7] | (uint)param_2[5] << 0x10 |
       (uint)param_2[6] << 8;
  *(uint *)(param_1 + 0x3d0) =
       (uint)param_2[8] << 0x18 | (uint)param_2[0xb] | (uint)param_2[9] << 0x10 |
       (uint)param_2[10] << 8;
  *(uint *)(param_1 + 0x3d4) =
       (uint)param_2[0xe] << 8 |
       (uint)param_2[0xc] << 0x18 | (uint)param_2[0xf] | (uint)param_2[0xd] << 0x10;
  return;
}

