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

Disassembly:
push 0xffffffffffffffff
push 0x41b73b
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 0x4069ee
cmp ecx, esi
je 0x4069ee
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 0x406824
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.0040ef40
add esp, 0xc
lea eax, [esp + 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x4068ab
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.00403bb0
mov eax, dword [esp + 0x84]
lea ecx, [esp + 0x12c]
call fcn.00406700
mov eax, dword [esp + 0x84]
lea ecx, [esp + 0x88]
cmp eax, ecx
je 0x4068ab
push eax
call fcn.0040d4ce
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.00403bb0
mov dword [esp + 0x244], 0
mov ecx, dword [esp + 0x84]
push ecx
call fcn.0040a280
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 0x40691f
push eax
call fcn.0040d4ce
mov edx, dword [esp + 0x1c]
add esp, 4
test edx, edx
je 0x4069dd
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.0040a390
add esp, 4
test eax, eax
jne 0x4069cd
mov eax, dword [esp + 0x14]
lea esi, [esp + 0x24]
lea ebx, [esp + 0x14]
call fcn.00401f70
mov esi, dword [esp + 0x14]
test esi, esi
je 0x4069c0
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
mov ecx, esi
call fcn.0040a9e0
test eax, eax
jne 0x4069b7
mov dword [esp + 0x1c], 1
push esi
call fcn.0040d141
add esp, 4
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0040aac0
add esp, 4
mov esi, dword [esp + 0x18]
call fcn.0040adb0
cmp dword [esp + 0x1c], 0
jne 0x4069e8
mov edx, dword [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esp + 0x1c]
jmp 0x4069f0
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.0040cec7
add esp, 0x234
ret