Function at 0x405f60
Capabilities:
Delete file
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x41ae7b
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x4251d0]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4251d0]
xor eax, esp
push eax
lea eax, [esp + 0x23c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x24c]
xor esi, esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], ecx
cmp eax, esi
je 0x4061fe
cmp ecx, esi
je 0x4061fe
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x108]
push eax
push esi
push ecx
mov dword [esp + 0x68], esi
mov dword [esp + 0x70], esi
mov ebp, esi
mov edi, esi
mov ebx, esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x406034
lea edx, [esp + 0x74]
push edx
lea eax, [esp + 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x78]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_SystemTimeToTzSpecificLocalTime]
movzx edi, word [esp + 0x2a]
movzx eax, word [esp + 0x30]
movzx ecx, word [esp + 0x34]
movzx ebx, word [esp + 0x28]
movzx ebp, word [esp + 0x2e]
movzx esi, word [esp + 0x32]
dec edi
mov dword [esp + 0x64], eax
mov dword [esp + 0x5c], ecx
push 0x103
lea edx, [esp + 0x131]
push 0
push edx
mov byte [esp + 0x138], 0
call fcn.0040e680
add esp, 0xc
lea eax, [esp + 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x4060bb
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push 3
lea edx, [esp + 0x8c]
push eax
lea eax, [esp + 0x8c]
mov dword [esp + 0x8c], edx
call fcn.004034a0
mov eax, dword [esp + 0x84]
lea ecx, [esp + 0x12c]
call fcn.00405f10
mov eax, dword [esp + 0x84]
lea ecx, [esp + 0x88]
cmp eax, ecx
je 0x4060bb
push eax
call fcn.0040ccdc
add esp, 4
mov eax, dword [esp + 0x20]
push 3
lea edx, [esp + 0x8c]
push eax
lea eax, [esp + 0x8c]
mov dword [esp + 0x24], 0
mov dword [esp + 0x8c], edx
call fcn.004034a0
mov dword [esp + 0x244], 0
mov ecx, dword [esp + 0x84]
push ecx
call fcn.00409a90
mov edx, eax
mov dword [esp + 0x248], 0xffffffff
mov eax, dword [esp + 0x88]
lea ecx, [esp + 0x8c]
add esp, 4
mov dword [esp + 0x18], edx
cmp eax, ecx
je 0x40612f
push eax
call fcn.0040ccdc
mov edx, dword [esp + 0x1c]
add esp, 4
test edx, edx
je 0x4061ed
mov ecx, dword [esp + 0x64]
xor eax, eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x38], eax
lea eax, [esp + 0x12c]
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], ecx
push eax
lea ecx, [esp + 0x3c]
mov esi, edx
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], ebx
call fcn.00409ba0
add esp, 4
test eax, eax
jne 0x4061dd
mov eax, dword [esp + 0x14]
lea esi, [esp + 0x24]
lea ebx, [esp + 0x14]
call fcn.00401f90
mov esi, dword [esp + 0x14]
test esi, esi
je 0x4061d0
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
mov ecx, esi
call fcn.0040a1f0
test eax, eax
jne 0x4061c7
mov dword [esp + 0x1c], 1
push esi
call fcn.0040c94f
add esp, 4
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0040a2d0
add esp, 4
mov esi, dword [esp + 0x18]
call fcn.0040a5c0
cmp dword [esp + 0x1c], 0
jne 0x4061f8
mov edx, dword [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esp + 0x1c]
jmp 0x406200
xor eax, eax
mov ecx, dword [esp + 0x23c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.0040c6d7
add esp, 0x234
ret