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

Disassembly:
push 0xffffffffffffffff
push 0x41baab
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x4261d0]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4261d0]
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 0x406d3e
cmp ecx, esi
je 0x406d3e
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 0x406b74
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.0040f2d0
add esp, 0xc
lea eax, [esp + 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x406bfb
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.00403f10
mov eax, dword [esp + 0x84]
lea ecx, [esp + 0x12c]
call fcn.00406a50
mov eax, dword [esp + 0x84]
lea ecx, [esp + 0x88]
cmp eax, ecx
je 0x406bfb
push eax
call fcn.0040d81c
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.00403f10
mov dword [esp + 0x244], 0
mov ecx, dword [esp + 0x84]
push ecx
call fcn.0040a5d0
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 0x406c6f
push eax
call fcn.0040d81c
mov edx, dword [esp + 0x1c]
add esp, 4
test edx, edx
je 0x406d2d
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.0040a6e0
add esp, 4
test eax, eax
jne 0x406d1d
mov eax, dword [esp + 0x14]
lea esi, [esp + 0x24]
lea ebx, [esp + 0x14]
call fcn.00401fe0
mov esi, dword [esp + 0x14]
test esi, esi
je 0x406d10
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
mov ecx, esi
call fcn.0040ad30
test eax, eax
jne 0x406d07
mov dword [esp + 0x1c], 1
push esi
call fcn.0040d48f
add esp, 4
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0040ae10
add esp, 4
mov esi, dword [esp + 0x18]
call fcn.0040b100
cmp dword [esp + 0x1c], 0
jne 0x406d38
mov edx, dword [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esp + 0x1c]
jmp 0x406d40
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.0040d217
add esp, 0x234
ret