
/* WARNING: Unknown calling convention */

void blowfish_sesskey(void *handle,uchar *key)

{
  int iVar1;
  undefined4 *puVar2;
  byte bVar3;
  
  bVar3 = 0;
  blowfish_setkey((BlowfishContext *)handle,key,0x20);
  *(undefined4 *)((int)handle + 0x1048) = 0;
  *(undefined4 *)((int)handle + 0x104c) = 0;
  puVar2 = (undefined4 *)((int)handle + 0x1050);
                    /* WARNING: Load size is inaccurate */
  for (iVar1 = 0x414; iVar1 != 0; iVar1 = iVar1 + -1) {
    *puVar2 = *handle;
    handle = (undefined4 *)((int)handle + ((uint)bVar3 * -2 + 1) * 4);
    puVar2 = puVar2 + (uint)bVar3 * -2 + 1;
  }
  return;
}



void FUN_00040020(undefined4 *param_1)

{
  int iVar1;
  undefined4 *puVar2;
  byte bVar3;
  
  bVar3 = 0;
  FUN_0003ff50();
  param_1[0x412] = 0;
  param_1[0x413] = 0;
  puVar2 = param_1 + 0x414;
  for (iVar1 = 0x414; iVar1 != 0; iVar1 = iVar1 + -1) {
    *puVar2 = *param_1;
    param_1 = param_1 + (uint)bVar3 * -2 + 1;
    puVar2 = puVar2 + (uint)bVar3 * -2 + 1;
  }
  return;
}


PUSH EDI
MOV ECX,0x20
PUSH ESI
SUB ESP,0x4
MOV ESI,dword ptr [ESP + 0x10]
MOV EDX,dword ptr [ESP + 0x14]
MOV EAX,ESI
LEA EDI,[ESI + 0x1050]
CALL 0x0003ff50
MOV ECX,0x414
MOV dword ptr [ESI + 0x1048],0x0
MOV dword ptr [ESI + 0x104c],0x0
MOVSD.REP ES:EDI,ESI
ADD ESP,0x4
POP ESI
POP EDI
RET
(translation_unit "void FUN_00040020(undefined4 *param_1)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  byte bVar3;\n  \n  bVar3 = 0;\n  FUN_0003ff50();\n  param_1[0x412] = 0;\n  param_1[0x413] = 0;\n  puVar2 = param_1 + 0x414;\n  for (iVar1 = 0x414; iVar1 != 0; iVar1 = iVar1 + -1) {\n    *puVar2 = *param_1;\n    param_1 = param_1 + (uint)bVar3 * -2 + 1;\n    puVar2 = puVar2 + (uint)bVar3 * -2 + 1;\n  }\n  return;\n}\n\n" (function_definition "void FUN_00040020(undefined4 *param_1)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  byte bVar3;\n  \n  bVar3 = 0;\n  FUN_0003ff50();\n  param_1[0x412] = 0;\n  param_1[0x413] = 0;\n  puVar2 = param_1 + 0x414;\n  for (iVar1 = 0x414; iVar1 != 0; iVar1 = iVar1 + -1) {\n    *puVar2 = *param_1;\n    param_1 = param_1 + (uint)bVar3 * -2 + 1;\n    puVar2 = puVar2 + (uint)bVar3 * -2 + 1;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00040020(undefined4 *param_1)" identifier (parameter_list "(undefined4 *param_1)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  undefined4 *puVar2;\n  byte bVar3;\n  \n  bVar3 = 0;\n  FUN_0003ff50();\n  param_1[0x412] = 0;\n  param_1[0x413] = 0;\n  puVar2 = param_1 + 0x414;\n  for (iVar1 = 0x414; iVar1 != 0; iVar1 = iVar1 + -1) {\n    *puVar2 = *param_1;\n    param_1 = param_1 + (uint)bVar3 * -2 + 1;\n    puVar2 = puVar2 + (uint)bVar3 * -2 + 1;\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "byte bVar3;" type_identifier identifier ;) (expression_statement "bVar3 = 0;" (assignment_expression "bVar3 = 0" identifier = number_literal) ;) (expression_statement "FUN_0003ff50();" (call_expression "FUN_0003ff50()" identifier (argument_list "()" ( ))) ;) (expression_statement "param_1[0x412] = 0;" (assignment_expression "param_1[0x412] = 0" (subscript_expression "param_1[0x412]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[0x413] = 0;" (assignment_expression "param_1[0x413] = 0" (subscript_expression "param_1[0x413]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar2 = param_1 + 0x414;" (assignment_expression "puVar2 = param_1 + 0x414" identifier = (binary_expression "param_1 + 0x414" identifier + number_literal)) ;) (for_statement "for (iVar1 = 0x414; iVar1 != 0; iVar1 = iVar1 + -1) {\n    *puVar2 = *param_1;\n    param_1 = param_1 + (uint)bVar3 * -2 + 1;\n    puVar2 = puVar2 + (uint)bVar3 * -2 + 1;\n  }" for ( (assignment_expression "iVar1 = 0x414" identifier = number_literal) ; (binary_expression "iVar1 != 0" identifier != number_literal) ; (assignment_expression "iVar1 = iVar1 + -1" identifier = (binary_expression "iVar1 + -1" identifier + number_literal)) ) (compound_statement "{\n    *puVar2 = *param_1;\n    param_1 = param_1 + (uint)bVar3 * -2 + 1;\n    puVar2 = puVar2 + (uint)bVar3 * -2 + 1;\n  }" { (expression_statement "*puVar2 = *param_1;" (assignment_expression "*puVar2 = *param_1" (pointer_expression "*puVar2" * identifier) = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "param_1 = param_1 + (uint)bVar3 * -2 + 1;" (assignment_expression "param_1 = param_1 + (uint)bVar3 * -2 + 1" identifier = (binary_expression "param_1 + (uint)bVar3 * -2 + 1" (binary_expression "param_1 + (uint)bVar3 * -2" identifier + (binary_expression "(uint)bVar3 * -2" (cast_expression "(uint)bVar3" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "puVar2 = puVar2 + (uint)bVar3 * -2 + 1;" (assignment_expression "puVar2 = puVar2 + (uint)bVar3 * -2 + 1" identifier = (binary_expression "puVar2 + (uint)bVar3 * -2 + 1" (binary_expression "puVar2 + (uint)bVar3 * -2" identifier + (binary_expression "(uint)bVar3 * -2" (cast_expression "(uint)bVar3" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Unknown calling convention */\n\nvoid blowfish_sesskey(void *handle,uchar *key)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  byte bVar3;\n  \n  bVar3 = 0;\n  blowfish_setkey((BlowfishContext *)handle,key,0x20);\n  *(undefined4 *)((int)handle + 0x1048) = 0;\n  *(undefined4 *)((int)handle + 0x104c) = 0;\n  puVar2 = (undefined4 *)((int)handle + 0x1050);\n                    /* WARNING: Load size is inaccurate */\n  for (iVar1 = 0x414; iVar1 != 0; iVar1 = iVar1 + -1) {\n    *puVar2 = *handle;\n    handle = (undefined4 *)((int)handle + ((uint)bVar3 * -2 + 1) * 4);\n    puVar2 = puVar2 + (uint)bVar3 * -2 + 1;\n  }\n  return;\n}\n\n" comment (function_definition "void blowfish_sesskey(void *handle,uchar *key)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  byte bVar3;\n  \n  bVar3 = 0;\n  blowfish_setkey((BlowfishContext *)handle,key,0x20);\n  *(undefined4 *)((int)handle + 0x1048) = 0;\n  *(undefined4 *)((int)handle + 0x104c) = 0;\n  puVar2 = (undefined4 *)((int)handle + 0x1050);\n                    /* WARNING: Load size is inaccurate */\n  for (iVar1 = 0x414; iVar1 != 0; iVar1 = iVar1 + -1) {\n    *puVar2 = *handle;\n    handle = (undefined4 *)((int)handle + ((uint)bVar3 * -2 + 1) * 4);\n    puVar2 = puVar2 + (uint)bVar3 * -2 + 1;\n  }\n  return;\n}" primitive_type (function_declarator "blowfish_sesskey(void *handle,uchar *key)" identifier (parameter_list "(void *handle,uchar *key)" ( (parameter_declaration "void *handle" primitive_type (pointer_declarator "*handle" * identifier)) , (parameter_declaration "uchar *key" type_identifier (pointer_declarator "*key" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  undefined4 *puVar2;\n  byte bVar3;\n  \n  bVar3 = 0;\n  blowfish_setkey((BlowfishContext *)handle,key,0x20);\n  *(undefined4 *)((int)handle + 0x1048) = 0;\n  *(undefined4 *)((int)handle + 0x104c) = 0;\n  puVar2 = (undefined4 *)((int)handle + 0x1050);\n                    /* WARNING: Load size is inaccurate */\n  for (iVar1 = 0x414; iVar1 != 0; iVar1 = iVar1 + -1) {\n    *puVar2 = *handle;\n    handle = (undefined4 *)((int)handle + ((uint)bVar3 * -2 + 1) * 4);\n    puVar2 = puVar2 + (uint)bVar3 * -2 + 1;\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "byte bVar3;" type_identifier identifier ;) (expression_statement "bVar3 = 0;" (assignment_expression "bVar3 = 0" identifier = number_literal) ;) (expression_statement "blowfish_setkey((BlowfishContext *)handle,key,0x20);" (call_expression "blowfish_setkey((BlowfishContext *)handle,key,0x20)" identifier (argument_list "((BlowfishContext *)handle,key,0x20)" ( (cast_expression "(BlowfishContext *)handle" ( (type_descriptor "BlowfishContext *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier , number_literal ))) ;) (expression_statement "*(undefined4 *)((int)handle + 0x1048) = 0;" (assignment_expression "*(undefined4 *)((int)handle + 0x1048) = 0" (pointer_expression "*(undefined4 *)((int)handle + 0x1048)" * (cast_expression "(undefined4 *)((int)handle + 0x1048)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)handle + 0x1048)" ( (binary_expression "(int)handle + 0x1048" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)((int)handle + 0x104c) = 0;" (assignment_expression "*(undefined4 *)((int)handle + 0x104c) = 0" (pointer_expression "*(undefined4 *)((int)handle + 0x104c)" * (cast_expression "(undefined4 *)((int)handle + 0x104c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)handle + 0x104c)" ( (binary_expression "(int)handle + 0x104c" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "puVar2 = (undefined4 *)((int)handle + 0x1050);" (assignment_expression "puVar2 = (undefined4 *)((int)handle + 0x1050)" identifier = (cast_expression "(undefined4 *)((int)handle + 0x1050)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)handle + 0x1050)" ( (binary_expression "(int)handle + 0x1050" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) comment (for_statement "for (iVar1 = 0x414; iVar1 != 0; iVar1 = iVar1 + -1) {\n    *puVar2 = *handle;\n    handle = (undefined4 *)((int)handle + ((uint)bVar3 * -2 + 1) * 4);\n    puVar2 = puVar2 + (uint)bVar3 * -2 + 1;\n  }" for ( (assignment_expression "iVar1 = 0x414" identifier = number_literal) ; (binary_expression "iVar1 != 0" identifier != number_literal) ; (assignment_expression "iVar1 = iVar1 + -1" identifier = (binary_expression "iVar1 + -1" identifier + number_literal)) ) (compound_statement "{\n    *puVar2 = *handle;\n    handle = (undefined4 *)((int)handle + ((uint)bVar3 * -2 + 1) * 4);\n    puVar2 = puVar2 + (uint)bVar3 * -2 + 1;\n  }" { (expression_statement "*puVar2 = *handle;" (assignment_expression "*puVar2 = *handle" (pointer_expression "*puVar2" * identifier) = (pointer_expression "*handle" * identifier)) ;) (expression_statement "handle = (undefined4 *)((int)handle + ((uint)bVar3 * -2 + 1) * 4);" (assignment_expression "handle = (undefined4 *)((int)handle + ((uint)bVar3 * -2 + 1) * 4)" identifier = (cast_expression "(undefined4 *)((int)handle + ((uint)bVar3 * -2 + 1) * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)handle + ((uint)bVar3 * -2 + 1) * 4)" ( (binary_expression "(int)handle + ((uint)bVar3 * -2 + 1) * 4" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "((uint)bVar3 * -2 + 1) * 4" (parenthesized_expression "((uint)bVar3 * -2 + 1)" ( (binary_expression "(uint)bVar3 * -2 + 1" (binary_expression "(uint)bVar3 * -2" (cast_expression "(uint)bVar3" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal) + number_literal) )) * number_literal)) )))) ;) (expression_statement "puVar2 = puVar2 + (uint)bVar3 * -2 + 1;" (assignment_expression "puVar2 = puVar2 + (uint)bVar3 * -2 + 1" identifier = (binary_expression "puVar2 + (uint)bVar3 * -2 + 1" (binary_expression "puVar2 + (uint)bVar3 * -2" identifier + (binary_expression "(uint)bVar3 * -2" (cast_expression "(uint)bVar3" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00040020(undefined4 *param_1)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  byte bVar3;\n  \n  bVar3 = 0;\n  FUN_0003ff50();\n  param_1[0x412] = 0;\n  param_1[0x413] = 0;\n  puVar2 = param_1 + 0x414;\n  for (iVar1 = 0x414; iVar1 != 0; iVar1 = iVar1 + -1) {\n    *puVar2 = *param_1;\n    param_1 = param_1 + (uint)bVar3 * -2 + 1;\n    puVar2 = puVar2 + (uint)bVar3 * -2 + 1;\n  }\n  return;\n}\n\n" (function_definition "void FUN_00040020(undefined4 *param_1)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  byte bVar3;\n  \n  bVar3 = 0;\n  FUN_0003ff50();\n  param_1[0x412] = 0;\n  param_1[0x413] = 0;\n  puVar2 = param_1 + 0x414;\n  for (iVar1 = 0x414; iVar1 != 0; iVar1 = iVar1 + -1) {\n    *puVar2 = *param_1;\n    param_1 = param_1 + (uint)bVar3 * -2 + 1;\n    puVar2 = puVar2 + (uint)bVar3 * -2 + 1;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00040020(undefined4 *param_1)" identifier (parameter_list "(undefined4 *param_1)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  undefined4 *puVar2;\n  byte bVar3;\n  \n  bVar3 = 0;\n  FUN_0003ff50();\n  param_1[0x412] = 0;\n  param_1[0x413] = 0;\n  puVar2 = param_1 + 0x414;\n  for (iVar1 = 0x414; iVar1 != 0; iVar1 = iVar1 + -1) {\n    *puVar2 = *param_1;\n    param_1 = param_1 + (uint)bVar3 * -2 + 1;\n    puVar2 = puVar2 + (uint)bVar3 * -2 + 1;\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "byte bVar3;" type_identifier identifier ;) (expression_statement "bVar3 = 0;" (assignment_expression "bVar3 = 0" identifier = number_literal) ;) (expression_statement "FUN_0003ff50();" (call_expression "FUN_0003ff50()" identifier (argument_list "()" ( ))) ;) (expression_statement "param_1[0x412] = 0;" (assignment_expression "param_1[0x412] = 0" (subscript_expression "param_1[0x412]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[0x413] = 0;" (assignment_expression "param_1[0x413] = 0" (subscript_expression "param_1[0x413]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar2 = param_1 + 0x414;" (assignment_expression "puVar2 = param_1 + 0x414" identifier = (binary_expression "param_1 + 0x414" identifier + number_literal)) ;) (for_statement "for (iVar1 = 0x414; iVar1 != 0; iVar1 = iVar1 + -1) {\n    *puVar2 = *param_1;\n    param_1 = param_1 + (uint)bVar3 * -2 + 1;\n    puVar2 = puVar2 + (uint)bVar3 * -2 + 1;\n  }" for ( (assignment_expression "iVar1 = 0x414" identifier = number_literal) ; (binary_expression "iVar1 != 0" identifier != number_literal) ; (assignment_expression "iVar1 = iVar1 + -1" identifier = (binary_expression "iVar1 + -1" identifier + number_literal)) ) (compound_statement "{\n    *puVar2 = *param_1;\n    param_1 = param_1 + (uint)bVar3 * -2 + 1;\n    puVar2 = puVar2 + (uint)bVar3 * -2 + 1;\n  }" { (expression_statement "*puVar2 = *param_1;" (assignment_expression "*puVar2 = *param_1" (pointer_expression "*puVar2" * identifier) = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "param_1 = param_1 + (uint)bVar3 * -2 + 1;" (assignment_expression "param_1 = param_1 + (uint)bVar3 * -2 + 1" identifier = (binary_expression "param_1 + (uint)bVar3 * -2 + 1" (binary_expression "param_1 + (uint)bVar3 * -2" identifier + (binary_expression "(uint)bVar3 * -2" (cast_expression "(uint)bVar3" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "puVar2 = puVar2 + (uint)bVar3 * -2 + 1;" (assignment_expression "puVar2 = puVar2 + (uint)bVar3 * -2 + 1" identifier = (binary_expression "puVar2 + (uint)bVar3 * -2 + 1" (binary_expression "puVar2 + (uint)bVar3 * -2" identifier + (binary_expression "(uint)bVar3 * -2" (cast_expression "(uint)bVar3" ( (type_descriptor "uint" 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)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (for_statement for ( (assignment_expression IDENT = LIT) ; (binary_expression IDENT != LIT) ; (assignment_expression IDENT = (binary_expression IDENT + LIT)) ) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) })) (return_statement return ;) })))
(function_definition "void FUN_00040020(undefined4 *param_1)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  byte bVar3;\n  \n  bVar3 = 0;\n  FUN_0003ff50();\n  param_1[0x412] = 0;\n  param_1[0x413] = 0;\n  puVar2 = param_1 + 0x414;\n  for (iVar1 = 0x414; iVar1 != 0; iVar1 = iVar1 + -1) {\n    *puVar2 = *param_1;\n    param_1 = param_1 + (uint)bVar3 * -2 + 1;\n    puVar2 = puVar2 + (uint)bVar3 * -2 + 1;\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00040020(undefined4 *param_1)" (identifier "FUN_00040020") (parameter_list "(undefined4 *param_1)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 *puVar2;\n  byte bVar3;\n  \n  bVar3 = 0;\n  FUN_0003ff50();\n  param_1[0x412] = 0;\n  param_1[0x413] = 0;\n  puVar2 = param_1 + 0x414;\n  for (iVar1 = 0x414; iVar1 != 0; iVar1 = iVar1 + -1) {\n    *puVar2 = *param_1;\n    param_1 = param_1 + (uint)bVar3 * -2 + 1;\n    puVar2 = puVar2 + (uint)bVar3 * -2 + 1;\n  }\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 *puVar2;" (type_identifier "undefined4") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "byte bVar3;" (type_identifier "byte") (identifier "bVar3") (; ";")) (expression_statement "bVar3 = 0;" (assignment_expression "bVar3 = 0" (identifier "bVar3") (= "=") (number_literal "0")) (; ";")) (expression_statement "FUN_0003ff50();" (call_expression "FUN_0003ff50()" (identifier "FUN_0003ff50") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "param_1[0x412] = 0;" (assignment_expression "param_1[0x412] = 0" (subscript_expression "param_1[0x412]" (identifier "param_1") ([ "[") (number_literal "0x412") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_1[0x413] = 0;" (assignment_expression "param_1[0x413] = 0" (subscript_expression "param_1[0x413]" (identifier "param_1") ([ "[") (number_literal "0x413") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar2 = param_1 + 0x414;" (assignment_expression "puVar2 = param_1 + 0x414" (identifier "puVar2") (= "=") (binary_expression "param_1 + 0x414" (identifier "param_1") (+ "+") (number_literal "0x414"))) (; ";")) (for_statement "for (iVar1 = 0x414; iVar1 != 0; iVar1 = iVar1 + -1) {\n    *puVar2 = *param_1;\n    param_1 = param_1 + (uint)bVar3 * -2 + 1;\n    puVar2 = puVar2 + (uint)bVar3 * -2 + 1;\n  }" (for "for") (( "(") (assignment_expression "iVar1 = 0x414" (identifier "iVar1") (= "=") (number_literal "0x414")) (; ";") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) (; ";") (assignment_expression "iVar1 = iVar1 + -1" (identifier "iVar1") (= "=") (binary_expression "iVar1 + -1" (identifier "iVar1") (+ "+") (number_literal "-1"))) () ")") (compound_statement "{\n    *puVar2 = *param_1;\n    param_1 = param_1 + (uint)bVar3 * -2 + 1;\n    puVar2 = puVar2 + (uint)bVar3 * -2 + 1;\n  }" ({ "{") (expression_statement "*puVar2 = *param_1;" (assignment_expression "*puVar2 = *param_1" (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "param_1 = param_1 + (uint)bVar3 * -2 + 1;" (assignment_expression "param_1 = param_1 + (uint)bVar3 * -2 + 1" (identifier "param_1") (= "=") (binary_expression "param_1 + (uint)bVar3 * -2 + 1" (binary_expression "param_1 + (uint)bVar3 * -2" (identifier "param_1") (+ "+") (binary_expression "(uint)bVar3 * -2" (cast_expression "(uint)bVar3" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar3")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "puVar2 = puVar2 + (uint)bVar3 * -2 + 1;" (assignment_expression "puVar2 = puVar2 + (uint)bVar3 * -2 + 1" (identifier "puVar2") (= "=") (binary_expression "puVar2 + (uint)bVar3 * -2 + 1" (binary_expression "puVar2 + (uint)bVar3 * -2" (identifier "puVar2") (+ "+") (binary_expression "(uint)bVar3 * -2" (cast_expression "(uint)bVar3" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar3")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Unknown calling convention */

void function_1(void *handle,type_1 *key)

{
  int var_2;
  type_2 *var_3;
  type_3 bVar3;
  
  bVar3 = 0;
  var_1((type_4 *)handle,key,0x20);
  *(type_2 *)((int)handle + 0x1048) = 0;
  *(type_2 *)((int)handle + 0x104c) = 0;
  var_3 = (type_2 *)((int)handle + 0x1050);
                    /* WARNING: Load size is inaccurate */
  for (var_2 = 0x414; var_2 != 0; var_2 = var_2 + -1) {
    *var_3 = *handle;
    handle = (type_2 *)((int)handle + ((type_5)bVar3 * -2 + 1) * 4);
    var_3 = var_3 + (type_5)bVar3 * -2 + 1;
  }
  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))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (for_statement initializer: (assignment_expression left: (identifier) right: (number_literal)) condition: (binary_expression left: (identifier) right: (number_literal)) update: (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))) body: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal))) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal))) right: (number_literal)))))) (return_statement))))

void MASKED(undefined4 *param_1)

{
  int iVar1;
  undefined4 *puVar2;
  byte bVar3;
  
  bVar3 = 0;
  FUN_0003ff50();
  param_1[0x412] = 0;
  param_1[0x413] = 0;
  puVar2 = param_1 + 0x414;
  for (iVar1 = 0x414; iVar1 != 0; iVar1 = iVar1 + -1) {
    *puVar2 = *param_1;
    param_1 = param_1 + (uint)bVar3 * -2 + 1;
    puVar2 = puVar2 + (uint)bVar3 * -2 + 1;
  }
  return;
}

