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

Disassembly:
push 0xffffffffffffffff
push 0x41b22b
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 0x4065be
cmp ecx, esi
je 0x4065be
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 0x4063f4
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.0040ea40
add esp, 0xc
lea eax, [esp + 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x40647b
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.00403860
mov eax, dword [esp + 0x84]
lea ecx, [esp + 0x12c]
call fcn.004062d0
mov eax, dword [esp + 0x84]
lea ecx, [esp + 0x88]
cmp eax, ecx
je 0x40647b
push eax
call fcn.0040d09c
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.00403860
mov dword [esp + 0x244], 0
mov ecx, dword [esp + 0x84]
push ecx
call fcn.00409e50
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 0x4064ef
push eax
call fcn.0040d09c
mov edx, dword [esp + 0x1c]
add esp, 4
test edx, edx
je 0x4065ad
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.00409f60
add esp, 4
test eax, eax
jne 0x40659d
mov eax, dword [esp + 0x14]
lea esi, [esp + 0x24]
lea ebx, [esp + 0x14]
call fcn.00401f10
mov esi, dword [esp + 0x14]
test esi, esi
je 0x406590
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
mov ecx, esi
call fcn.0040a5b0
test eax, eax
jne 0x406587
mov dword [esp + 0x1c], 1
push esi
call fcn.0040cd0f
add esp, 4
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0040a690
add esp, 4
mov esi, dword [esp + 0x18]
call fcn.0040a980
cmp dword [esp + 0x1c], 0
jne 0x4065b8
mov edx, dword [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esp + 0x1c]
jmp 0x4065c0
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.0040ca97
add esp, 0x234
ret