Function at 0x4096f0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1030
call fcn.00421510
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.004219c7
push 3
lea edx, [esp + 0x20]
push 0x44b44c
push edx
call fcn.004224b0
add esp, 0x18
test eax, eax
je 0x4097c2
mov esi, dword [str.Update_error]
test esi, esi
jne 0x409743
xor eax, eax
jmp 0x40974c
push esi
call fcn.004206a1
add esp, 4
push eax
push esi
mov ecx, 0x462bac
call fcn.004022d0
push str.:_Data_header_file_error.
call fcn.004206a1
add esp, 4
push eax
push str.:_Data_header_file_error.
mov ecx, 0x462bac
call fcn.00402390
push 0x44b52c
call fcn.004206a1
add esp, 4
push eax
push 0x44b52c
mov ecx, 0x462bac
call fcn.00402390
mov eax, dword [0x462bac]
mov esi, dword [eax - 4]
mov edx, dword [eax - 8]
mov ecx, 1
sub ecx, esi
or ecx, edx
jge 0x409a70
push 0
mov ecx, 0x462bac
call fcn.00402250
mov eax, dword [0x462bac]
jmp 0x409a70
mov ecx, dword [ebx]
push 4
lea eax, [esi + 0x84]
push eax
push ecx
call fcn.004219c7
mov edx, dword [ebx]
lea eax, [esi + 0x7c]
push 4
push eax
push edx
call fcn.004219c7
mov ecx, dword [ebx]
push 0x28
lea eax, [esp + 0x34]
push eax
push ecx
call fcn.004219c7
mov edx, dword [esi + 0x5c]
add esp, 0x24
push edx
push ebx
mov ecx, esi
call fcn.00408940
push ebx
mov ecx, esi
call fcn.00408eb0
lea eax, [esi + 0x98]
push 4
push eax
mov dword [eax], 0
mov eax, dword [ebx]
push eax
call fcn.004219c7
mov edx, dword [esi + 0xc]
push 3
lea ecx, [esp + 0x20]
lea ebp, [esi + 0xc]
push ecx
push edx
call fcn.004219c7
push 3
lea eax, [esp + 0x2c]
push 0x44b44c
push eax
call fcn.004224b0
add esp, 0x24
test eax, eax
je 0x4098da
mov esi, dword [str.Update_error]
test esi, esi
jne 0x40985b
xor eax, eax
jmp 0x409864
push esi
call fcn.004206a1
add esp, 4
push eax
push esi
mov ecx, 0x462bac
call fcn.004022d0
push str.:_update_header_file_error
call fcn.004206a1
add esp, 4
push eax
push str.:_update_header_file_error
mov ecx, 0x462bac
call fcn.00402390
push 0x44b4ec
call fcn.004206a1
add esp, 4
push eax
push 0x44b4ec
mov ecx, 0x462bac
call fcn.00402390
mov eax, dword [0x462bac]
mov esi, dword [eax - 4]
mov edx, dword [eax - 8]
mov ecx, 1
sub ecx, esi
or ecx, edx
jge 0x409a70
push 0
mov ecx, 0x462bac
call fcn.00402250
mov eax, dword [0x462bac]
jmp 0x409a70
lea eax, [esi + 0x88]
push 4
push eax
mov eax, dword [ebp]
push eax
call fcn.004219c7
mov ecx, dword [ebp]
lea eax, [esi + 0x80]
push 4
push eax
push ecx
call fcn.004219c7
mov edx, dword [ebp]
lea eax, [esi + 0x14]
push 0x28
push eax
push edx
call fcn.004219c7
mov eax, dword [esi + 0x60]
add esp, 0x24
push eax
push ebp
mov ecx, esi
call fcn.00408940
mov edx, dword [esi + 0x60]
xor eax, eax
mov ecx, 0x400
lea edi, [esp + 0x40]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x40]
push ecx
push edx
mov ecx, esi
call fcn.00408d20
mov eax, dword [esi + 0x80]
mov ecx, dword [0x460b7c]
push 0
push eax
push 0
push 0
add ecx, 0x580
call fcn.00401620
mov ecx, dword [0x460b7c]
push 0
push 0
add ecx, 0x580
call fcn.004019a0
mov ecx, esi
mov dword [esi + 0x90], 0
call fcn.004095b0
test al, al
jne 0x4099f0
mov ecx, dword [str.Update_error]
push ecx
mov ecx, 0x462bac
call fcn.00402470
push str.:_update_fail
mov ecx, 0x462bac
call fcn.00402430
push 0x44b4c8
mov ecx, 0x462bac
call fcn.00402430
mov eax, dword [0x462bac]
mov esi, dword [eax - 4]
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, esi
or edx, ecx
jge 0x4099d7
push 0
mov ecx, 0x462bac
call fcn.00402250
mov eax, dword [0x462bac]
push eax
mov eax, dword [0x460b7c]
push eax
call fcn.00402900
add esp, 8
xor al, al
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x460b7c]
call fcn.00402b50
mov eax, dword [ebx]
cmp eax, 0xffffffff
je 0x409a0b
push eax
call fcn.0042174f
add esp, 4
push 0x80
push 0x8301
push 0
lea ecx, [esi + 0x40]
mov dword [ebx], 0xffffffff
call fcn.004022a0
push eax
call fcn.00422115
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebx], eax
jne 0x409a8a
mov ecx, dword [str.Update_error]
push ecx
mov ecx, 0x462bac
call fcn.00402470
push str.:_saveheader
mov ecx, 0x462bac
call fcn.00402430
push 0x44b4a4
mov ecx, 0x462bac
call fcn.00402430
push 0
mov ecx, 0x462bac
call fcn.004022a0
mov edx, dword [0x460b7c]
push eax
push edx
call fcn.00402900
add esp, 8
xor al, al
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
push 3
push 0x44b44c
push eax
call fcn.00421c2e
push 4
lea eax, [esi + 0x88]
push eax
mov eax, dword [ebx]
push eax
call fcn.00421c2e
mov edx, dword [esi + 0x7c]
mov ecx, dword [esi + 0x80]
mov eax, dword [ebx]
add ecx, edx
push 4
lea edx, [esp + 0x30]
push edx
push eax
mov dword [esp + 0x38], ecx
call fcn.00421c2e
mov ecx, dword [ebx]
push 0x28
lea eax, [esi + 0x14]
push eax
push ecx
call fcn.00421c2e
mov edx, dword [esi + 0x5c]
add esp, 0x30
push edx
mov ecx, esi
call fcn.00407cb0
push ebx
mov ecx, esi
call fcn.00407bd0
push 4
lea eax, [esi + 0x98]
push eax
mov eax, dword [ebx]
push eax
call fcn.00421c2e
mov eax, dword [esi]
add esp, 0xc
cmp eax, 0xffffffff
je 0x409b0e
push eax
call fcn.0042174f
add esp, 4
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
mov dword [esi], 0xffffffff
je 0x409b25
push eax
call fcn.0042174f
add esp, 4
mov eax, dword [ebx]
cmp eax, 0xffffffff
mov dword [esi + 8], 0xffffffff
je 0x409b3c
push eax
call fcn.0042174f
add esp, 4
mov eax, dword [ebp]
cmp eax, 0xffffffff
mov dword [ebx], 0xffffffff
je 0x409b53
push eax
call fcn.0042174f
add esp, 4
mov dword [ebp], 0xffffffff
mov ecx, dword [0x460b7c]
call fcn.00402ba0
push 0
lea ecx, [esi + 0x44]
call fcn.004022a0
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call edi
push 0
lea ecx, [esi + 0x48]
call fcn.004022a0
push eax
call edi
pop edi
mov al, 1
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret