Function at 0x409550
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.00421343
push 3
lea edx, [esp + 0x20]
push 0x4479e4
push edx
call fcn.00421e80
add esp, 0x18
test eax, eax
je 0x4095c6
push str.Update_error
push 0x45e664
call fcn.004023f0
add esp, 8
push 0x18
push str.:_data_header_file_error
mov ecx, 0x45e664
call fcn.004022a0
push 3
push 0x447a68
mov ecx, 0x45e664
call fcn.004022a0
jmp 0x409760
mov ecx, dword [ebx]
push 4
lea eax, [esi + 0x88]
push eax
push ecx
call fcn.00421343
mov edx, dword [ebx]
lea eax, [esi + 0x80]
push 4
push eax
push edx
call fcn.00421343
mov ecx, dword [ebx]
push 0x28
lea eax, [esp + 0x34]
push eax
push ecx
call fcn.00421343
mov edx, dword [esi + 0x60]
add esp, 0x24
push edx
push ebx
mov ecx, esi
call fcn.004087f0
push ebx
mov ecx, esi
call fcn.00408d10
lea eax, [esi + 0x9c]
push 4
push eax
mov dword [eax], 0
mov eax, dword [ebx]
push eax
call fcn.00421343
mov edx, dword [esi + 0xc]
push 3
lea ecx, [esp + 0x20]
lea ebp, [esi + 0xc]
push ecx
push edx
call fcn.00421343
push 3
lea eax, [esp + 0x2c]
push 0x4479e4
push eax
call fcn.00421e80
add esp, 0x24
test eax, eax
je 0x409689
push str.Update_error
push 0x45e664
call fcn.004023f0
add esp, 8
push 0x1a
push str.:_update_header_file_error
mov ecx, 0x45e664
call fcn.004022a0
push 3
push 0x447a48
mov ecx, 0x45e664
call fcn.004022a0
jmp 0x409760
lea eax, [esi + 0x8c]
push 4
push eax
mov eax, dword [ebp]
push eax
call fcn.00421343
mov ecx, dword [ebp]
lea eax, [esi + 0x84]
push 4
push eax
push ecx
call fcn.00421343
mov edx, dword [ebp]
lea eax, [esi + 0x14]
push 0x28
push eax
push edx
call fcn.00421343
mov eax, dword [esi + 0x64]
add esp, 0x24
push eax
push ebp
mov ecx, esi
call fcn.004087f0
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.00408b80
mov eax, dword [esi + 0x84]
mov ecx, dword [0x45c630]
push 0
push eax
push 0
push 0
add ecx, 0x580
call fcn.00401610
mov ecx, dword [0x45c630]
push 0
push 0
add ecx, 0x580
call fcn.00401990
mov ecx, esi
mov dword [esi + 0x94], 0
call fcn.00409410
test al, al
jne 0x4097a1
push str.Update_error
push 0x45e664
call fcn.004023f0
add esp, 8
push str.:_update_fail
mov ecx, 0x45e664
call fcn.00402410
push 0x447a34
mov ecx, 0x45e664
call fcn.00402410
mov eax, dword [0x45e664]
mov esi, dword [eax - 4]
mov edx, dword [eax - 8]
mov ecx, 1
sub ecx, esi
or ecx, edx
jge 0x409787
push 0
mov ecx, 0x45e664
call fcn.00402220
mov eax, dword [0x45e664]
mov edx, dword [0x45c630]
push eax
push edx
call fcn.00402860
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.00402ab0
mov eax, dword [ebx]
cmp eax, 0xffffffff
je 0x4097bc
push eax
call fcn.004210cb
add esp, 4
push 0x80
push 0x8301
push 0
lea ecx, [esi + 0x40]
mov dword [ebx], 0xffffffff
call fcn.00402270
push eax
call fcn.00421a90
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebx], eax
jne 0x40983b
push str.Update_error
push 0x45e664
call fcn.004023f0
add esp, 8
push str.:_saveheader
mov ecx, 0x45e664
call fcn.00402410
push 0x447a20
mov ecx, 0x45e664
call fcn.00402410
push 0
mov ecx, 0x45e664
call fcn.00402270
push eax
mov eax, dword [0x45c630]
push eax
call fcn.00402860
add esp, 8
xor al, al
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
push 3
push 0x4479e4
push eax
call fcn.004215aa
mov ecx, dword [ebx]
push 4
lea eax, [esi + 0x8c]
push eax
push ecx
call fcn.004215aa
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.004215aa
mov edx, dword [ebx]
push 0x28
lea eax, [esi + 0x14]
push eax
push edx
call fcn.004215aa
mov eax, dword [esi + 0x60]
add esp, 0x30
push eax
mov ecx, esi
call fcn.00407b60
push ebx
mov ecx, esi
call fcn.00407ab0
mov ecx, dword [ebx]
push 4
lea eax, [esi + 0x9c]
push eax
push ecx
call fcn.004215aa
mov eax, dword [esi]
add esp, 0xc
cmp eax, 0xffffffff
je 0x4098c2
push eax
call fcn.004210cb
add esp, 4
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
mov dword [esi], 0xffffffff
je 0x4098d9
push eax
call fcn.004210cb
add esp, 4
mov eax, dword [ebx]
cmp eax, 0xffffffff
mov dword [esi + 8], 0xffffffff
je 0x4098f0
push eax
call fcn.004210cb
add esp, 4
mov eax, dword [ebp]
cmp eax, 0xffffffff
mov dword [ebx], 0xffffffff
je 0x409907
push eax
call fcn.004210cb
add esp, 4
mov dword [ebp], 0xffffffff
mov ecx, dword [0x45c630]
call fcn.00402b00
push 0
lea ecx, [esi + 0x44]
call fcn.00402270
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push eax
call edi
push 0
lea ecx, [esi + 0x48]
call fcn.00402270
push eax
call edi
push 0
lea ecx, [esi + 0x4c]
call fcn.00402270
push eax
call edi
pop edi
mov al, 1
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret