Function at 0x40f590
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4ba25e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
mov eax, dword [0x4f5b3c]
push ebx
push esi
push edi
mov dword [esp + 0xc], eax
xor esi, esi
mov dword [esp + 0x10], eax
mov dword [esp + 0x58], esi
mov dword [esp + 0x14], eax
mov eax, dword [0x4eed9c]
mov byte [esp + 0x58], 2
cmp eax, esi
je 0x40f833
push str.unstall.log
lea eax, [esp + 0x20]
push 0x4ff318
push eax
mov dword [0x4eed9c], esi
call fcn.004a9e68
mov eax, dword [eax]
lea ecx, [esp + 0xc]
push eax
mov byte [esp + 0x5c], 3
call fcn.004a9d5c
lea ecx, [esp + 0x1c]
mov byte [esp + 0x58], 2
call fcn.004a9c1f
push esi
lea ecx, [esp + 0x10]
call fcn.00434b80
test eax, eax
jne 0x40f64b
lea ecx, [esp + 0xc]
push str._does_not_exist.__Cannot_recover.
lea edx, [esp + 0x20]
push ecx
push edx
call fcn.004a9e68
push eax
mov byte [esp + 0x5c], 4
call fcn.0045db50
add esp, 4
mov byte [esp + 0x58], 2
lea ecx, [esp + 0x1c]
jmp 0x40f82e
cmp dword [0x4fef78], esi
jl 0x40f676
cmp dword [0x4fef7c], esi
je 0x40f676
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x4ff044
call fcn.004a9994
mov ecx, 0x4ff028
call fcn.00451310
mov ecx, 0x4ff028
call fcn.004503c0
mov ecx, 0x4ff028
call fcn.004505d0
mov ecx, 0x4ff028
call fcn.00450c30
push str.recover.log
lea eax, [esp + 0x20]
push 0x4ff318
push eax
call fcn.004a9e68
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x1c]
call fcn.004a9c1f
lea ecx, [esp + 0x24]
call fcn.0040cef0
mov dword [esp + 0x24], 0x4ca91c
push str.zch.TMP
lea ecx, [esp + 0x20]
mov bl, 5
push 0x4ff318
push ecx
mov byte [esp + 0x64], bl
call fcn.004a9e68
mov eax, dword [eax]
lea ecx, [esp + 0x14]
push eax
mov byte [esp + 0x5c], 6
call fcn.004a9d5c
lea ecx, [esp + 0x1c]
mov byte [esp + 0x58], bl
call fcn.004a9c1f
push ecx
lea edx, [esp + 0x18]
mov dword [esp + 0x24], esp
mov ecx, esp
push edx
call fcn.004a9994
lea ecx, [esp + 0x28]
call fcn.0042ae50
push 0x4fef08
lea eax, [esp + 0x20]
push 0x4ff318
push eax
call fcn.004a9e02
mov eax, dword [eax]
lea ecx, [esp + 0xc]
push eax
mov byte [esp + 0x5c], 7
call fcn.004a9d5c
lea ecx, [esp + 0x1c]
mov byte [esp + 0x58], bl
call fcn.004a9c1f
push 0x4fef04
lea ecx, [esp + 0x24]
push 0x4ff318
push ecx
call fcn.004a9e02
mov eax, dword [eax]
lea ecx, [esp + 0x10]
push eax
mov byte [esp + 0x5c], 8
call fcn.004a9d5c
lea ecx, [esp + 0x20]
mov byte [esp + 0x58], bl
call fcn.004a9c1f
push str.__Ai__An
lea ecx, [esp + 0x1c]
call fcn.004a9c8d
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov byte [esp + 0x58], 9
mov eax, dword [edx - 8]
mov esi, dword [ecx - 8]
mov edx, dword [esp + 0xc]
push eax
lea ecx, [esp + 0x1c]
mov edi, dword [edx - 8]
call fcn.004aa003
push eax
push esi
lea ecx, [esp + 0x18]
call fcn.004aa003
push eax
push edi
lea ecx, [esp + 0x18]
call fcn.004aa003
push eax
call fcn.0040f2e0
add esp, 0xc
test eax, eax
je 0x40f7e4
push 0x4fc5e4
lea ecx, [esp + 0x10]
call fcn.004a9d5c
lea ecx, [esp + 0x18]
mov byte [esp + 0x58], bl
call fcn.004a9c1f
lea ecx, [esp + 0x34]
mov byte [esp + 0x58], 0xc
call fcn.004a7ff7
lea ecx, [esp + 0x30]
mov byte [esp + 0x58], 0xb
call fcn.004a9c1f
lea ecx, [esp + 0x2c]
mov byte [esp + 0x58], 0xa
call fcn.004a9c1f
lea ecx, [esp + 0x24]
lea eax, [esp + 0x28]
neg ecx
sbb ecx, ecx
mov byte [esp + 0x58], 2
and ecx, eax
call fcn.004a9c1f
lea ecx, [esp + 0x14]
mov byte [esp + 0x58], 1
call fcn.004a9c1f
lea ecx, [esp + 0x10]
mov byte [esp + 0x58], 0
call fcn.004a9c1f
lea ecx, [esp + 0xc]
mov dword [esp + 0x58], 0xffffffff
call fcn.004a9c1f
mov ecx, dword [esp + 0x50]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x50
ret