Function at 0x409560
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x830
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov ecx, dword [esi + 4]
push 3
lea eax, [esp + 0x14]
lea ebx, [esi + 4]
push eax
push ecx
call fcn.004212d1
push 3
lea edx, [esp + 0x20]
push 0x4479f4
push edx
call fcn.00421e10
add esp, 0x18
test eax, eax
je 0x4095d6
push str.Update_error
push 0x45e664
call fcn.004023e0
add esp, 8
push 0x18
push str.:_data_header_file_error
mov ecx, 0x45e664
call fcn.00402290
push 3
push 0x447a78
mov ecx, 0x45e664
call fcn.00402290
jmp 0x409770
mov ecx, dword [ebx]
push 4
lea eax, [esi + 0x88]
push eax
push ecx
call fcn.004212d1
mov edx, dword [ebx]
lea eax, [esi + 0x80]
push 4
push eax
push edx
call fcn.004212d1
mov ecx, dword [ebx]
push 0x28
lea eax, [esp + 0x34]
push eax
push ecx
call fcn.004212d1
mov edx, dword [esi + 0x60]
add esp, 0x24
push edx
push ebx
mov ecx, esi
call fcn.00408800
push ebx
mov ecx, esi
call fcn.00408d20
lea eax, [esi + 0x9c]
push 4
push eax
mov dword [eax], 0
mov eax, dword [ebx]
push eax
call fcn.004212d1
mov edx, dword [esi + 0xc]
push 3
lea ecx, [esp + 0x20]
lea ebp, [esi + 0xc]
push ecx
push edx
call fcn.004212d1
push 3
lea eax, [esp + 0x2c]
push 0x4479f4
push eax
call fcn.00421e10
add esp, 0x24
test eax, eax
je 0x409699
push str.Update_error
push 0x45e664
call fcn.004023e0
add esp, 8
push 0x1a
push str.:_update_header_file_error
mov ecx, 0x45e664
call fcn.00402290
push 3
push 0x447a58
mov ecx, 0x45e664
call fcn.00402290
jmp 0x409770
lea eax, [esi + 0x8c]
push 4
push eax
mov eax, dword [ebp]
push eax
call fcn.004212d1
mov ecx, dword [ebp]
lea eax, [esi + 0x84]
push 4
push eax
push ecx
call fcn.004212d1
mov edx, dword [ebp]
lea eax, [esi + 0x14]
push 0x28
push eax
push edx
call fcn.004212d1
mov eax, dword [esi + 0x64]
add esp, 0x24
push eax
push ebp
mov ecx, esi
call fcn.00408800
mov edx, dword [esi + 0x64]
xor eax, eax
mov ecx, 0x200
lea edi, [esp + 0x40]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x40]
push ecx
push edx
mov ecx, esi
call fcn.00408b90
mov eax, dword [esi + 0x84]
mov ecx, dword [0x45c630]
push 0
push eax
push 0
push 0
add ecx, 0x580
call fcn.00401640
mov ecx, dword [0x45c630]
push 0
push 0
add ecx, 0x580
call fcn.004019c0
mov ecx, esi
mov dword [esi + 0x94], 0
call fcn.00409420
test al, al
jne 0x4097b1
push str.Update_error
push 0x45e664
call fcn.004023e0
add esp, 8
push str.:_update_fail
mov ecx, 0x45e664
call fcn.00402400
push 0x447a44
mov ecx, 0x45e664
call fcn.00402400
mov eax, dword [0x45e664]
mov esi, dword [eax - 4]
mov edx, dword [eax - 8]
mov ecx, 1
sub ecx, esi
or ecx, edx
jge 0x409797
push 0
mov ecx, 0x45e664
call fcn.00402210
mov eax, dword [0x45e664]
mov edx, dword [0x45c630]
push eax
push edx
call fcn.00402850
add esp, 8
xor al, al
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x45c630]
call fcn.00402aa0
mov eax, dword [ebx]
cmp eax, 0xffffffff
je 0x4097cc
push eax
call fcn.0042105b
add esp, 4
push 0x80
push 0x8301
push 0
lea ecx, [esi + 0x40]
mov dword [ebx], 0xffffffff
call fcn.00402260
push eax
call fcn.00421a30
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebx], eax
jne 0x40984b
push str.Update_error
push 0x45e664
call fcn.004023e0
add esp, 8
push str.:_saveheader
mov ecx, 0x45e664
call fcn.00402400
push 0x447a30
mov ecx, 0x45e664
call fcn.00402400
push 0
mov ecx, 0x45e664
call fcn.00402260
push eax
mov eax, dword [0x45c630]
push eax
call fcn.00402850
add esp, 8
xor al, al
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
push 3
push 0x4479f4
push eax
call fcn.0042154a
mov ecx, dword [ebx]
push 4
lea eax, [esi + 0x8c]
push eax
push ecx
call fcn.0042154a
mov edx, dword [esi + 0x84]
mov edi, dword [esi + 0x80]
mov ecx, dword [ebx]
push 4
lea eax, [esp + 0x30]
push eax
add edx, edi
push ecx
mov dword [esp + 0x38], edx
call fcn.0042154a
mov edx, dword [ebx]
push 0x28
lea eax, [esi + 0x14]
push eax
push edx
call fcn.0042154a
mov eax, dword [esi + 0x60]
add esp, 0x30
push eax
mov ecx, esi
call fcn.00407b70
push ebx
mov ecx, esi
call fcn.00407ac0
mov ecx, dword [ebx]
push 4
lea eax, [esi + 0x9c]
push eax
push ecx
call fcn.0042154a
mov eax, dword [esi]
add esp, 0xc
cmp eax, 0xffffffff
je 0x4098d2
push eax
call fcn.0042105b
add esp, 4
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
mov dword [esi], 0xffffffff
je 0x4098e9
push eax
call fcn.0042105b
add esp, 4
mov eax, dword [ebx]
cmp eax, 0xffffffff
mov dword [esi + 8], 0xffffffff
je 0x409900
push eax
call fcn.0042105b
add esp, 4
mov eax, dword [ebp]
cmp eax, 0xffffffff
mov dword [ebx], 0xffffffff
je 0x409917
push eax
call fcn.0042105b
add esp, 4
mov dword [ebp], 0xffffffff
mov ecx, dword [0x45c630]
call fcn.00402af0
push 0
lea ecx, [esi + 0x44]
call fcn.00402260
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push eax
call edi
push 0
lea ecx, [esi + 0x48]
call fcn.00402260
push eax
call edi
push 0
lea ecx, [esi + 0x4c]
call fcn.00402260
push eax
call edi
pop edi
mov al, 1
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret