Function at 0x422bc0
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 0x597141
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x6073a4]
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 0x422e8e
call fcn.00427660
mov ecx, eax
test ecx, ecx
jne 0x422c16
push 0x80004005
call fcn.00427410
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 str._s_s
push eax
call fcn.00425da0
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 0x422c70
push 0
lea ecx, [ebp - 0x220]
call fcn.00427130
mov esi, dword [ebp - 0x220]
push esi
lea ecx, [ebp - 0x21c]
call fcn.00427350
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x422c99
test al, 0x10
je 0x422c99
or ebx, 0xffffffff
jmp 0x422e55
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 0x422cb9
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 0x422cd8
push 0
lea ecx, [ebp - 0x220]
call fcn.00427130
mov esi, dword [ebp - 0x220]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x422e72
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.004cbb60
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.00424fd0
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 0x422d66
push 0
lea ecx, [ebp - 0x21c]
call fcn.00427130
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 0x422d85
push 0
lea ecx, [ebp - 0x220]
call fcn.00427130
mov esi, dword [ebp - 0x220]
push dword [ebp - 0x224]
push esi
call fcn.004d2d81
add esp, 8
call fcn.00427660
mov ecx, eax
test ecx, ecx
jne 0x422da9
push 0x80004005
call fcn.00427410
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.00425da0
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 0x422e0b
push 0
lea ecx, [ebp - 0x224]
call fcn.00427130
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 0x422e2e
push 0
lea ecx, [ebp - 0x21c]
call fcn.00427130
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 0x422e51
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 0x422e72
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 0x422e8e
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.004c8d78
mov esp, ebp
pop ebp
ret 4