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

void __regparm3 statResetCsr(StatCursor *pCsr)

{
  StatPage *p;
  StatPage *pSVar1;
  
  sqlite3_reset(pCsr->pStmt);
  p = pCsr->aPage;
  do {
    pSVar1 = p + 1;
    statClearPage(p);
    p = pSVar1;
  } while (pSVar1 != (StatPage *)&pCsr->iPage);
  pCsr->iPage = 0;
  sqlite3_free(pCsr->zPath);
  pCsr->isEof = 0;
  pCsr->zPath = (char *)0x0;
  return;
}



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

void __regparm3 FUN_0008ea70(int param_1)

{
  int iVar1;
  
  iVar1 = param_1 + 0x10;
  FUN_0008e650(*(undefined4 *)(param_1 + 4));
  do {
    iVar1 = iVar1 + 0x28;
    FUN_000321f0();
  } while (iVar1 != param_1 + 0x510);
  *(undefined4 *)(param_1 + 0x510) = 0;
  FUN_00024cc0(*(undefined4 *)(param_1 + 0x518));
  *(undefined4 *)(param_1 + 8) = 0;
  *(undefined4 *)(param_1 + 0x518) = 0;
  return;
}


PUSH EBP
MOV EBP,EAX
PUSH EDI
LEA EDI,[EBP + 0x510]
PUSH ESI
LEA ESI,[EBP + 0x10]
PUSH EBX
CALL 0x00014cf0
ADD EBX,0xba450
SUB ESP,0x18
PUSH dword ptr [EAX + 0x4]
CALL 0x0008e650
ADD ESP,0x10
LEA ESI,[ESI]
NOP
MOV EAX,ESI
ADD ESI,0x28
CALL 0x000321f0
CMP ESI,EDI
JNZ 0x0008eaa0
MOV dword ptr [EBP + 0x510],0x0
SUB ESP,0xc
PUSH dword ptr [EBP + 0x518]
CALL 0x00024cc0
MOV dword ptr [EBP + 0x8],0x0
MOV dword ptr [EBP + 0x518],0x0
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 FUN_0008ea70(int param_1)\n\n{\n  int iVar1;\n  \n  iVar1 = param_1 + 0x10;\n  FUN_0008e650(*(undefined4 *)(param_1 + 4));\n  do {\n    iVar1 = iVar1 + 0x28;\n    FUN_000321f0();\n  } while (iVar1 != param_1 + 0x510);\n  *(undefined4 *)(param_1 + 0x510) = 0;\n  FUN_00024cc0(*(undefined4 *)(param_1 + 0x518));\n  *(undefined4 *)(param_1 + 8) = 0;\n  *(undefined4 *)(param_1 + 0x518) = 0;\n  return;\n}\n\n" comment (function_definition "void __regparm3 FUN_0008ea70(int param_1)\n\n{\n  int iVar1;\n  \n  iVar1 = param_1 + 0x10;\n  FUN_0008e650(*(undefined4 *)(param_1 + 4));\n  do {\n    iVar1 = iVar1 + 0x28;\n    FUN_000321f0();\n  } while (iVar1 != param_1 + 0x510);\n  *(undefined4 *)(param_1 + 0x510) = 0;\n  FUN_00024cc0(*(undefined4 *)(param_1 + 0x518));\n  *(undefined4 *)(param_1 + 8) = 0;\n  *(undefined4 *)(param_1 + 0x518) = 0;\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0008ea70(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = param_1 + 0x10;\n  FUN_0008e650(*(undefined4 *)(param_1 + 4));\n  do {\n    iVar1 = iVar1 + 0x28;\n    FUN_000321f0();\n  } while (iVar1 != param_1 + 0x510);\n  *(undefined4 *)(param_1 + 0x510) = 0;\n  FUN_00024cc0(*(undefined4 *)(param_1 + 0x518));\n  *(undefined4 *)(param_1 + 8) = 0;\n  *(undefined4 *)(param_1 + 0x518) = 0;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = param_1 + 0x10;" (assignment_expression "iVar1 = param_1 + 0x10" identifier = (binary_expression "param_1 + 0x10" identifier + number_literal)) ;) (expression_statement "FUN_0008e650(*(undefined4 *)(param_1 + 4));" (call_expression "FUN_0008e650(*(undefined4 *)(param_1 + 4))" identifier (argument_list "(*(undefined4 *)(param_1 + 4))" ( (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) ))) ;) (do_statement "do {\n    iVar1 = iVar1 + 0x28;\n    FUN_000321f0();\n  } while (iVar1 != param_1 + 0x510);" do (compound_statement "{\n    iVar1 = iVar1 + 0x28;\n    FUN_000321f0();\n  }" { (expression_statement "iVar1 = iVar1 + 0x28;" (assignment_expression "iVar1 = iVar1 + 0x28" identifier = (binary_expression "iVar1 + 0x28" identifier + number_literal)) ;) (expression_statement "FUN_000321f0();" (call_expression "FUN_000321f0()" identifier (argument_list "()" ( ))) ;) }) while (parenthesized_expression "(iVar1 != param_1 + 0x510)" ( (binary_expression "iVar1 != param_1 + 0x510" identifier != (binary_expression "param_1 + 0x510" identifier + number_literal)) )) ;) (expression_statement "*(undefined4 *)(param_1 + 0x510) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x510) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x510)" * (cast_expression "(undefined4 *)(param_1 + 0x510)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x510)" ( (binary_expression "param_1 + 0x510" identifier + number_literal) )))) = number_literal) ;) (expression_statement "FUN_00024cc0(*(undefined4 *)(param_1 + 0x518));" (call_expression "FUN_00024cc0(*(undefined4 *)(param_1 + 0x518))" identifier (argument_list "(*(undefined4 *)(param_1 + 0x518))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x518)" * (cast_expression "(undefined4 *)(param_1 + 0x518)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x518)" ( (binary_expression "param_1 + 0x518" identifier + number_literal) )))) ))) ;) (expression_statement "*(undefined4 *)(param_1 + 8) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 8) = 0" (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x518) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x518) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x518)" * (cast_expression "(undefined4 *)(param_1 + 0x518)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x518)" ( (binary_expression "param_1 + 0x518" 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\nvoid __regparm3 statResetCsr(StatCursor *pCsr)\n\n{\n  StatPage *p;\n  StatPage *pSVar1;\n  \n  sqlite3_reset(pCsr->pStmt);\n  p = pCsr->aPage;\n  do {\n    pSVar1 = p + 1;\n    statClearPage(p);\n    p = pSVar1;\n  } while (pSVar1 != (StatPage *)&pCsr->iPage);\n  pCsr->iPage = 0;\n  sqlite3_free(pCsr->zPath);\n  pCsr->isEof = 0;\n  pCsr->zPath = (char *)0x0;\n  return;\n}\n\n" comment (function_definition "void __regparm3 statResetCsr(StatCursor *pCsr)\n\n{\n  StatPage *p;\n  StatPage *pSVar1;\n  \n  sqlite3_reset(pCsr->pStmt);\n  p = pCsr->aPage;\n  do {\n    pSVar1 = p + 1;\n    statClearPage(p);\n    p = pSVar1;\n  } while (pSVar1 != (StatPage *)&pCsr->iPage);\n  pCsr->iPage = 0;\n  sqlite3_free(pCsr->zPath);\n  pCsr->isEof = 0;\n  pCsr->zPath = (char *)0x0;\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "statResetCsr(StatCursor *pCsr)" identifier (parameter_list "(StatCursor *pCsr)" ( (parameter_declaration "StatCursor *pCsr" type_identifier (pointer_declarator "*pCsr" * identifier)) ))) (compound_statement "{\n  StatPage *p;\n  StatPage *pSVar1;\n  \n  sqlite3_reset(pCsr->pStmt);\n  p = pCsr->aPage;\n  do {\n    pSVar1 = p + 1;\n    statClearPage(p);\n    p = pSVar1;\n  } while (pSVar1 != (StatPage *)&pCsr->iPage);\n  pCsr->iPage = 0;\n  sqlite3_free(pCsr->zPath);\n  pCsr->isEof = 0;\n  pCsr->zPath = (char *)0x0;\n  return;\n}" { (declaration "StatPage *p;" type_identifier (pointer_declarator "*p" * identifier) ;) (declaration "StatPage *pSVar1;" type_identifier (pointer_declarator "*pSVar1" * identifier) ;) (expression_statement "sqlite3_reset(pCsr->pStmt);" (call_expression "sqlite3_reset(pCsr->pStmt)" identifier (argument_list "(pCsr->pStmt)" ( (field_expression "pCsr->pStmt" identifier -> field_identifier) ))) ;) (expression_statement "p = pCsr->aPage;" (assignment_expression "p = pCsr->aPage" identifier = (field_expression "pCsr->aPage" identifier -> field_identifier)) ;) (do_statement "do {\n    pSVar1 = p + 1;\n    statClearPage(p);\n    p = pSVar1;\n  } while (pSVar1 != (StatPage *)&pCsr->iPage);" do (compound_statement "{\n    pSVar1 = p + 1;\n    statClearPage(p);\n    p = pSVar1;\n  }" { (expression_statement "pSVar1 = p + 1;" (assignment_expression "pSVar1 = p + 1" identifier = (binary_expression "p + 1" identifier + number_literal)) ;) (expression_statement "statClearPage(p);" (call_expression "statClearPage(p)" identifier (argument_list "(p)" ( identifier ))) ;) (expression_statement "p = pSVar1;" (assignment_expression "p = pSVar1" identifier = identifier) ;) }) while (parenthesized_expression "(pSVar1 != (StatPage *)&pCsr->iPage)" ( (binary_expression "pSVar1 != (StatPage *)&pCsr->iPage" identifier != (cast_expression "(StatPage *)&pCsr->iPage" ( (type_descriptor "StatPage *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&pCsr->iPage" & (field_expression "pCsr->iPage" identifier -> field_identifier)))) )) ;) (expression_statement "pCsr->iPage = 0;" (assignment_expression "pCsr->iPage = 0" (field_expression "pCsr->iPage" identifier -> field_identifier) = number_literal) ;) (expression_statement "sqlite3_free(pCsr->zPath);" (call_expression "sqlite3_free(pCsr->zPath)" identifier (argument_list "(pCsr->zPath)" ( (field_expression "pCsr->zPath" identifier -> field_identifier) ))) ;) (expression_statement "pCsr->isEof = 0;" (assignment_expression "pCsr->isEof = 0" (field_expression "pCsr->isEof" identifier -> field_identifier) = number_literal) ;) (expression_statement "pCsr->zPath = (char *)0x0;" (assignment_expression "pCsr->zPath = (char *)0x0" (field_expression "pCsr->zPath" identifier -> field_identifier) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3 FUN_0008ea70(int param_1)\n\n{\n  int iVar1;\n  \n  iVar1 = param_1 + 0x10;\n  FUN_0008e650(*(undefined4 *)(param_1 + 4));\n  do {\n    iVar1 = iVar1 + 0x28;\n    FUN_000321f0();\n  } while (iVar1 != param_1 + 0x510);\n  *(undefined4 *)(param_1 + 0x510) = 0;\n  FUN_00024cc0(*(undefined4 *)(param_1 + 0x518));\n  *(undefined4 *)(param_1 + 8) = 0;\n  *(undefined4 *)(param_1 + 0x518) = 0;\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_0008ea70(int param_1)\n\n{\n  int iVar1;\n  \n  iVar1 = param_1 + 0x10;\n  FUN_0008e650(*(undefined4 *)(param_1 + 4));\n  do {\n    iVar1 = iVar1 + 0x28;\n    FUN_000321f0();\n  } while (iVar1 != param_1 + 0x510);\n  *(undefined4 *)(param_1 + 0x510) = 0;\n  FUN_00024cc0(*(undefined4 *)(param_1 + 0x518));\n  *(undefined4 *)(param_1 + 8) = 0;\n  *(undefined4 *)(param_1 + 0x518) = 0;\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0008ea70(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = param_1 + 0x10;\n  FUN_0008e650(*(undefined4 *)(param_1 + 4));\n  do {\n    iVar1 = iVar1 + 0x28;\n    FUN_000321f0();\n  } while (iVar1 != param_1 + 0x510);\n  *(undefined4 *)(param_1 + 0x510) = 0;\n  FUN_00024cc0(*(undefined4 *)(param_1 + 0x518));\n  *(undefined4 *)(param_1 + 8) = 0;\n  *(undefined4 *)(param_1 + 0x518) = 0;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = param_1 + 0x10;" (assignment_expression "iVar1 = param_1 + 0x10" identifier = (binary_expression "param_1 + 0x10" identifier + number_literal)) ;) (expression_statement "FUN_0008e650(*(undefined4 *)(param_1 + 4));" (call_expression "FUN_0008e650(*(undefined4 *)(param_1 + 4))" identifier (argument_list "(*(undefined4 *)(param_1 + 4))" ( (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) ))) ;) (do_statement "do {\n    iVar1 = iVar1 + 0x28;\n    FUN_000321f0();\n  } while (iVar1 != param_1 + 0x510);" do (compound_statement "{\n    iVar1 = iVar1 + 0x28;\n    FUN_000321f0();\n  }" { (expression_statement "iVar1 = iVar1 + 0x28;" (assignment_expression "iVar1 = iVar1 + 0x28" identifier = (binary_expression "iVar1 + 0x28" identifier + number_literal)) ;) (expression_statement "FUN_000321f0();" (call_expression "FUN_000321f0()" identifier (argument_list "()" ( ))) ;) }) while (parenthesized_expression "(iVar1 != param_1 + 0x510)" ( (binary_expression "iVar1 != param_1 + 0x510" identifier != (binary_expression "param_1 + 0x510" identifier + number_literal)) )) ;) (expression_statement "*(undefined4 *)(param_1 + 0x510) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x510) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x510)" * (cast_expression "(undefined4 *)(param_1 + 0x510)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x510)" ( (binary_expression "param_1 + 0x510" identifier + number_literal) )))) = number_literal) ;) (expression_statement "FUN_00024cc0(*(undefined4 *)(param_1 + 0x518));" (call_expression "FUN_00024cc0(*(undefined4 *)(param_1 + 0x518))" identifier (argument_list "(*(undefined4 *)(param_1 + 0x518))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x518)" * (cast_expression "(undefined4 *)(param_1 + 0x518)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x518)" ( (binary_expression "param_1 + 0x518" identifier + number_literal) )))) ))) ;) (expression_statement "*(undefined4 *)(param_1 + 8) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 8) = 0" (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x518) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x518) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x518)" * (cast_expression "(undefined4 *)(param_1 + 0x518)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x518)" ( (binary_expression "param_1 + 0x518" identifier + number_literal) )))) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (binary_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 (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (return_statement return ;) })))
(function_definition "void __regparm3 FUN_0008ea70(int param_1)\n\n{\n  int iVar1;\n  \n  iVar1 = param_1 + 0x10;\n  FUN_0008e650(*(undefined4 *)(param_1 + 4));\n  do {\n    iVar1 = iVar1 + 0x28;\n    FUN_000321f0();\n  } while (iVar1 != param_1 + 0x510);\n  *(undefined4 *)(param_1 + 0x510) = 0;\n  FUN_00024cc0(*(undefined4 *)(param_1 + 0x518));\n  *(undefined4 *)(param_1 + 8) = 0;\n  *(undefined4 *)(param_1 + 0x518) = 0;\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_0008ea70(int param_1)" (identifier "FUN_0008ea70") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = param_1 + 0x10;\n  FUN_0008e650(*(undefined4 *)(param_1 + 4));\n  do {\n    iVar1 = iVar1 + 0x28;\n    FUN_000321f0();\n  } while (iVar1 != param_1 + 0x510);\n  *(undefined4 *)(param_1 + 0x510) = 0;\n  FUN_00024cc0(*(undefined4 *)(param_1 + 0x518));\n  *(undefined4 *)(param_1 + 8) = 0;\n  *(undefined4 *)(param_1 + 0x518) = 0;\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (expression_statement "iVar1 = param_1 + 0x10;" (assignment_expression "iVar1 = param_1 + 0x10" (identifier "iVar1") (= "=") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10"))) (; ";")) (expression_statement "FUN_0008e650(*(undefined4 *)(param_1 + 4));" (call_expression "FUN_0008e650(*(undefined4 *)(param_1 + 4))" (identifier "FUN_0008e650") (argument_list "(*(undefined4 *)(param_1 + 4))" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 4)" (* "*") (cast_expression "(undefined4 *)(param_1 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) () ")"))) (; ";")) (do_statement "do {\n    iVar1 = iVar1 + 0x28;\n    FUN_000321f0();\n  } while (iVar1 != param_1 + 0x510);" (do "do") (compound_statement "{\n    iVar1 = iVar1 + 0x28;\n    FUN_000321f0();\n  }" ({ "{") (expression_statement "iVar1 = iVar1 + 0x28;" (assignment_expression "iVar1 = iVar1 + 0x28" (identifier "iVar1") (= "=") (binary_expression "iVar1 + 0x28" (identifier "iVar1") (+ "+") (number_literal "0x28"))) (; ";")) (expression_statement "FUN_000321f0();" (call_expression "FUN_000321f0()" (identifier "FUN_000321f0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar1 != param_1 + 0x510)" (( "(") (binary_expression "iVar1 != param_1 + 0x510" (identifier "iVar1") (!= "!=") (binary_expression "param_1 + 0x510" (identifier "param_1") (+ "+") (number_literal "0x510"))) () ")")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x510) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x510) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x510)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x510)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x510)" (( "(") (binary_expression "param_1 + 0x510" (identifier "param_1") (+ "+") (number_literal "0x510")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "FUN_00024cc0(*(undefined4 *)(param_1 + 0x518));" (call_expression "FUN_00024cc0(*(undefined4 *)(param_1 + 0x518))" (identifier "FUN_00024cc0") (argument_list "(*(undefined4 *)(param_1 + 0x518))" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x518)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x518)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x518)" (( "(") (binary_expression "param_1 + 0x518" (identifier "param_1") (+ "+") (number_literal "0x518")) () ")")))) () ")"))) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 8) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 8) = 0" (pointer_expression "*(undefined4 *)(param_1 + 8)" (* "*") (cast_expression "(undefined4 *)(param_1 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x518) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x518) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x518)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x518)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x518)" (( "(") (binary_expression "param_1 + 0x518" (identifier "param_1") (+ "+") (number_literal "0x518")) () ")")))) (= "=") (number_literal "0")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void __regparm3 function_1(type_1 *pCsr)

{
  type_2 *var_2;
  type_2 *var_4;
  
  var_1(pCsr->pStmt);
  var_2 = pCsr->aPage;
  do {
    var_4 = var_2 + 1;
    var_3(var_2);
    var_2 = var_4;
  } while (var_4 != (type_2 *)&pCsr->iPage);
  pCsr->iPage = 0;
  var_5(pCsr->zPath);
  pCsr->isEof = 0;
  pCsr->zPath = (char *)0x0;
  return;
}


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

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

void __regparm3 MASKED(int param_1)

{
  int iVar1;
  
  iVar1 = param_1 + 0x10;
  FUN_0008e650(*(undefined4 *)(param_1 + 4));
  do {
    iVar1 = iVar1 + 0x28;
    FUN_000321f0();
  } while (iVar1 != param_1 + 0x510);
  *(undefined4 *)(param_1 + 0x510) = 0;
  FUN_00024cc0(*(undefined4 *)(param_1 + 0x518));
  *(undefined4 *)(param_1 + 8) = 0;
  *(undefined4 *)(param_1 + 0x518) = 0;
  return;
}

