Function at 0x40ba40
Capabilities:
Delete file
Read file on windows

Disassembly:
sub esp, 0x834
mov eax, dword [0x473204]
xor eax, esp
mov dword [esp + 0x830], eax
push esi
push edi
mov esi, ecx
mov ecx, dword [esi + 4]
push 3
lea eax, [esp + 0xc]
lea edi, [esi + 4]
push eax
push ecx
call fcn.004409c7
push 3
lea edx, [esp + 0x18]
push 0x45cfd0
push edx
call fcn.0044188b
add esp, 0x18
test eax, eax
je 0x40bb0c
call fcn.00402e90
movzx eax, ax
push eax
push 0x7e
push 0
mov ecx, 0x475f4c
call fcn.004026b0
push 0x18
push str.:_data_header_file_error
mov ecx, 0x475f4c
call fcn.00402770
push 3
push 0x45d054
mov ecx, 0x475f4c
call fcn.00402770
mov eax, dword [0x475f4c]
mov ecx, 1
sub ecx, dword [eax - 4]
or ecx, dword [eax - 8]
jge 0x40bae3
push 0
mov ecx, 0x475f4c
call fcn.00401510
mov eax, dword [0x475f4c]
mov edx, dword [0x475f44]
push eax
push edx
call fcn.00403120
add esp, 8
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x830]
xor ecx, esp
call fcn.0043e7e7
add esp, 0x834
ret
mov ecx, dword [edi]
push ebx
push 4
lea eax, [esi + 0x88]
push eax
push ecx
call fcn.004409c7
mov edx, dword [edi]
lea eax, [esi + 0x80]
push 4
push eax
push edx
call fcn.004409c7
mov ecx, dword [edi]
push 0x28
lea eax, [esp + 0x30]
push eax
push ecx
call fcn.004409c7
mov edx, dword [esi + 0x60]
add esp, 0x24
push edx
push edi
mov ecx, esi
call fcn.0040ace0
push edi
mov ecx, esi
call fcn.0040b1e0
push edi
mov ecx, esi
call fcn.00409d90
mov ecx, dword [esi + 0xc]
push 3
lea eax, [esp + 0x10]
lea ebx, [esi + 0xc]
push eax
push ecx
call fcn.004409c7
push 3
lea edx, [esp + 0x1c]
push 0x45cfd0
push edx
call fcn.0044188b
add esp, 0x18
test eax, eax
je 0x40bc12
call fcn.00402e90
movzx eax, ax
push eax
push 0x7e
push 0
mov ecx, 0x475f4c
call fcn.004026b0
push 0x1a
push str.:_update_header_file_error
mov ecx, 0x475f4c
call fcn.00402770
push 3
push 0x45d034
mov ecx, 0x475f4c
call fcn.00402770
mov eax, dword [0x475f4c]
mov ecx, 1
sub ecx, dword [eax - 4]
or ecx, dword [eax - 8]
jge 0x40bbe8
push 0
mov ecx, 0x475f4c
call fcn.00401510
mov eax, dword [0x475f4c]
mov edx, dword [0x475f44]
push eax
push edx
call fcn.00403120
add esp, 8
pop ebx
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x830]
xor ecx, esp
call fcn.0043e7e7
add esp, 0x834
ret
push ebp
lea eax, [esi + 0x8c]
push 4
push eax
mov eax, dword [ebx]
push eax
call fcn.004409c7
mov ecx, dword [ebx]
push 4
lea ebp, [esi + 0x84]
push ebp
push ecx
call fcn.004409c7
mov edx, dword [ebx]
lea eax, [esi + 0x14]
push 0x28
push eax
push edx
call fcn.004409c7
mov eax, dword [esi + 0x64]
add esp, 0x24
push eax
push ebx
mov ecx, esi
call fcn.0040ace0
push 0x800
lea ecx, [esp + 0x44]
push 0
push ecx
call fcn.0043edd0
mov eax, dword [esi + 0x64]
add esp, 0xc
lea edx, [esp + 0x40]
push edx
push eax
mov ecx, esi
call fcn.0040b050
mov ecx, dword [ebp]
push 0
push ecx
mov ecx, dword [0x475f44]
push 0
push 0
add ecx, 0x5c8
call fcn.00401cc0
mov ecx, dword [0x475f44]
push 0
push 0
add ecx, 0x5c8
call fcn.00401f90
mov ecx, esi
mov dword [esi + 0x94], 0
call fcn.0040b8f0
test al, al
jne 0x40bd2a
call fcn.00402e90
movzx edx, ax
push edx
push 0x7e
push 0
mov ecx, 0x475f4c
call fcn.004026b0
push str.:_update_fail
mov ecx, 0x475f4c
call fcn.00402880
push 0x45d020
mov ecx, 0x475f4c
call fcn.00402880
mov eax, dword [0x475f4c]
mov ecx, 1
sub ecx, dword [eax - 4]
or ecx, dword [eax - 8]
jge 0x40bd13
push 0
mov ecx, 0x475f4c
call fcn.00401510
mov eax, dword [0x475f4c]
mov edx, dword [0x475f44]
push eax
push edx
call fcn.00403120
add esp, 8
xor al, al
jmp 0x40bed7
mov ecx, dword [0x475f44]
call fcn.004033a0
mov eax, dword [edi]
cmp eax, 0xffffffff
je 0x40bd45
push eax
call fcn.00440338
add esp, 4
mov dword [edi], 0xffffffff
mov eax, dword [esi + 0x40]
lea ecx, [esi + 0x40]
sub eax, 0x10
mov edx, 1
sub edx, dword [eax + 0xc]
or edx, dword [eax + 8]
jge 0x40bd68
push 0
call fcn.00401510
mov eax, dword [esi + 0x40]
push 0x80
push 0x8301
push eax
call fcn.00441489
add esp, 0xc
mov dword [edi], eax
cmp eax, 0xffffffff
jne 0x40bddd
call fcn.00402e90
movzx eax, ax
push eax
push 0x7e
push 0
mov ecx, 0x475f4c
call fcn.004026b0
push str.:_saveheader
mov ecx, 0x475f4c
call fcn.00402880
push 0x45d00c
mov ecx, 0x475f4c
call fcn.00402880
push 0
mov ecx, 0x475f4c
call fcn.004015b0
mov ecx, dword [0x475f44]
push eax
push ecx
call fcn.00403120
add esp, 8
xor al, al
jmp 0x40bed7
push 3
push 0x45cfd0
push eax
call fcn.004411f7
mov edx, dword [edi]
push 4
lea eax, [esi + 0x8c]
push eax
push edx
call fcn.004411f7
mov eax, dword [esi + 0x80]
add eax, dword [ebp]
mov edx, dword [edi]
push 4
lea ecx, [esp + 0x30]
push ecx
push edx
mov dword [esp + 0x38], eax
call fcn.004411f7
push 0x28
lea eax, [esi + 0x14]
push eax
mov eax, dword [edi]
push eax
call fcn.004411f7
mov ecx, dword [esi + 0x60]
add esp, 0x30
push ecx
mov ecx, esi
call fcn.0040a2f0
push edi
mov ecx, esi
call fcn.0040a240
push edi
mov ecx, esi
call fcn.00409dc0
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x40be53
push eax
call fcn.00440338
add esp, 4
mov eax, dword [esi + 8]
mov dword [esi], 0xffffffff
cmp eax, 0xffffffff
je 0x40be6a
push eax
call fcn.00440338
add esp, 4
mov eax, dword [edi]
mov dword [esi + 8], 0xffffffff
cmp eax, 0xffffffff
je 0x40be81
push eax
call fcn.00440338
add esp, 4
mov eax, dword [ebx]
mov dword [edi], 0xffffffff
cmp eax, 0xffffffff
je 0x40be97
push eax
call fcn.00440338
add esp, 4
mov dword [ebx], 0xffffffff
mov ecx, dword [0x475f44]
call fcn.00403400
push 0
lea ecx, [esi + 0x44]
call fcn.004015b0
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push eax
call edi
push 0
lea ecx, [esi + 0x48]
call fcn.004015b0
push eax
call edi
push 0
lea ecx, [esi + 0x4c]
call fcn.004015b0
push eax
call edi
mov al, 1
mov ecx, dword [esp + 0x840]
pop ebp
pop ebx
pop edi
pop esi
xor ecx, esp
call fcn.0043e7e7
add esp, 0x834
ret