Function at 0x42e3f0
Capabilities:
Check if file exists
Copy file
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e1542
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x524a60]
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 eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x230], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x240], ecx
lea ecx, [ebp - 0x228]
push eax
mov dword [ebp - 0x238], ebx
call fcn.00403650
push 1
lea eax, [ebp - 0x228]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.0042fb10
add esp, 0xc
mov edx, dword [ebp - 0x228]
or edi, 0xffffffff
mov byte [ebp - 4], 2
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42e48b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x220]
cmp dword [eax - 0xc], 0
jne 0x42e4fd
call fcn.004045a0
mov ecx, eax
test ecx, ecx
je 0x42e6ef
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
push 0x4e8ad8
mov ecx, ebx
mov byte [ebp - 4], 3
call fcn.004040f0
test al, al
jne 0x42e4d2
push 0
push 0x4e8ad8
mov ecx, ebx
call fcn.00404e90
mov eax, dword [ebp - 0x220]
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x42e6d1
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
jmp 0x42e6d1
call fcn.004045a0
mov ecx, eax
test ecx, ecx
je 0x42e6f9
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x224], esi
push dword [ebp - 0x230]
mov byte [ebp - 4], 4
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov dword [ebp - 0x22c], eax
test eax, eax
je 0x42e629
push 0x4eaa20
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x238]
push eax
call fcn.0040bda0
push dword [ebp - 0x22c]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.0040bda0
add esp, 0x18
push eax
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 6
call fcn.00403aa0
mov edx, dword [ebp - 0x234]
mov eax, edi
mov byte [ebp - 4], 5
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42e59b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x238]
mov eax, edi
mov byte [ebp - 4], 4
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42e5bc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x224]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42e605
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x42e605
push eax
call fcn.004b8119
push eax
push dword [ebp - 0x22c]
lea eax, [ebp - 0x224]
push dword [ebp - 0x220]
push str._s_s__d
push eax
call fcn.00407c50
mov esi, dword [ebp - 0x224]
add esp, 0x18
push 0
push esi
push dword [ebp - 0x230]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x42e66e
push 0x4e8ad8
mov ecx, ebx
call fcn.00403650
add esi, 0xfffffff0
jmp 0x42e697
push 0x20a
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.004b1030
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0
push 0x4f0304
push dword [ebp - 0x220]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x42e605
push 0x4e8ad8
mov ecx, ebx
call fcn.00403650
add esi, 0xfffffff0
jmp 0x42e697
mov eax, dword [ebp - 0x240]
test eax, eax
je 0x42e686
lea ecx, [ebp - 0x220]
push ecx
mov ecx, eax
call fcn.00403aa0
add esi, 0xfffffff0
push esi
call fcn.00404230
add esp, 4
add eax, 0x10
mov dword [ebx], eax
mov byte [ebp - 4], 2
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x42e6af
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x220]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x42e6d1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, ebx
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.004a1588
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00403f90
push 0x80004005
call fcn.00403f90
int3