Function at 0x4042a0
Capabilities:
Check if file exists
Delete file
Get common file path
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cee91
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x5053a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x228], ebx
test ebx, ebx
je 0x40456e
call fcn.00408990
mov ecx, eax
test ecx, ecx
jne 0x4042f6
push 0x80004005
call fcn.00408740
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x220], eax
push ebx
mov dword [ebp - 4], 0
lea eax, [ebp - 0x220]
push dword [esi + 0x498]
push 0x4f5b08
push eax
call fcn.00407520
mov esi, dword [ebp - 0x220]
mov edi, 1
mov ecx, edi
add esp, 0x10
sub ecx, dword [esi - 4]
mov eax, dword [esi - 8]
or eax, ecx
jge 0x404350
push 0
lea ecx, [ebp - 0x220]
call fcn.00408460
mov esi, dword [ebp - 0x220]
push esi
lea ecx, [ebp - 0x21c]
call fcn.00408680
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x404379
test al, 0x10
je 0x404379
or ebx, 0xffffffff
jmp 0x404535
mov edx, dword [ebp - 0x21c]
or ebx, 0xffffffff
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x404399
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esi - 8]
mov ecx, edi
sub ecx, dword [esi - 4]
or eax, ecx
jge 0x4043b8
push 0
lea ecx, [ebp - 0x220]
call fcn.00408460
mov esi, dword [ebp - 0x220]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x404552
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.004a7a60
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push str..del
lea edx, [ebp - 0x220]
mov dword [ebp - 0x21c], 0
lea ecx, [ebp - 0x21c]
call fcn.00406600
add esp, 4
mov byte [ebp - 4], 1
mov ecx, edi
mov edx, dword [ebp - 0x21c]
mov dword [ebp - 0x224], edx
sub ecx, dword [edx - 4]
mov eax, dword [edx - 8]
or eax, ecx
jge 0x404446
push 0
lea ecx, [ebp - 0x21c]
call fcn.00408460
mov eax, dword [ebp - 0x21c]
mov dword [ebp - 0x224], eax
mov eax, dword [esi - 8]
mov ecx, edi
sub ecx, dword [esi - 4]
or eax, ecx
jge 0x404465
push 0
lea ecx, [ebp - 0x220]
call fcn.00408460
mov esi, dword [ebp - 0x220]
push dword [ebp - 0x224]
push esi
call fcn.004aec5e
add esp, 8
call fcn.00408990
mov ecx, eax
test ecx, ecx
jne 0x404489
push 0x80004005
call fcn.00408740
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x224], eax
push dword [ebp - 0x228]
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x224]
push str._s_s.del
push eax
call fcn.00407520
mov edi, dword [ebp - 0x224]
mov edx, 1
mov ecx, edx
add esp, 0x10
sub ecx, dword [edi - 4]
mov eax, dword [edi - 8]
or eax, ecx
jge 0x4044eb
push 0
lea ecx, [ebp - 0x224]
call fcn.00408460
mov edi, dword [ebp - 0x224]
mov edx, 1
mov eax, dword [ebp - 0x21c]
sub edx, dword [eax - 4]
mov ecx, dword [eax - 8]
or ecx, edx
jge 0x40450e
push 0
lea ecx, [ebp - 0x21c]
call fcn.00408460
mov eax, dword [ebp - 0x21c]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov byte [ebp - 4], 1
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x404531
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x21c]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x404552
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x40456e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a4bf6
mov esp, ebp
pop ebp
ret 4