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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5088b6
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x556754]
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 edi, dword [ebp + 8]
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x230], eax
mov eax, dword [ebp + 0x10]
push 1
push eax
lea eax, [ebp - 0x220]
mov dword [ebp - 0x224], edi
push eax
mov dword [ebp - 0x238], edi
mov dword [ebp - 0x234], ebx
call fcn.004bb850
add esp, 0xc
mov dword [ebp - 4], 0
call fcn.0040b050
mov ecx, eax
test ecx, ecx
je 0x423cb4
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x228], esi
push dword [ebp - 0x230]
mov byte [ebp - 4], 1
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov dword [ebp - 0x22c], eax
test eax, eax
je 0x423b15
push eax
push dword [ebp - 0x220]
lea eax, [ebp - 0x228]
push str._s_s
push eax
call fcn.00409580
mov esi, dword [ebp - 0x228]
add esp, 0x10
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x423aea
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x423aea
push eax
call fcn.004dfa63
push eax
push dword [ebp - 0x22c]
lea eax, [ebp - 0x228]
push dword [ebp - 0x220]
push str._s_s__d
push eax
call fcn.00409580
mov esi, dword [ebp - 0x228]
add esp, 0x18
push 0
push esi
push dword [ebp - 0x230]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x423bee
call fcn.0040b050
mov ecx, eax
test ecx, ecx
je 0x423cbe
jmp 0x423bb9
push 0x20a
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.004d5900
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0
push 0x518198
push dword [ebp - 0x220]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x423aea
push 0x515448
mov ecx, edi
call fcn.004076c0
or edi, 0xffffffff
mov byte [ebp - 4], 0
mov eax, edi
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x423b73
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 0x423b95
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x224]
mov eax, esi
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.004b5d96
mov esp, ebp
pop ebp
ret
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
push 0x515448
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.0040f500
test al, al
jne 0x423b55
push 0
push 0x515448
mov ecx, edi
call fcn.0040b860
jmp 0x423b55
or edi, 0xffffffff
test ebx, ebx
je 0x423c5a
mov eax, dword [ebp - 0x220]
mov ebx, dword [ebx]
sub ebx, 0x10
lea edx, [eax - 0x10]
cmp edx, ebx
je 0x423c5a
cmp dword [ebx + 0xc], 0
jl 0x423c4b
mov ecx, dword [edx]
cmp ecx, dword [ebx]
jne 0x423c4b
push edx
call fcn.0040f630
add esp, 4
mov dword [ebp - 0x22c], eax
mov ecx, edi
lea edx, [ebx + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x423c3e
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x22c]
mov ecx, dword [ebp - 0x234]
add eax, 0x10
mov dword [ecx], eax
jmp 0x423c5a
push dword [eax - 0xc]
mov ecx, dword [ebp - 0x234]
push eax
call fcn.0040b860
lea ebx, [esi - 0x10]
push ebx
call fcn.0040f630
mov esi, dword [ebp - 0x224]
add eax, 0x10
add esp, 4
mov byte [ebp - 4], 0
mov dword [esi], eax
mov eax, edi
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x423c89
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
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 0x423b9b
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
jmp 0x423b9b
push 0x80004005
call fcn.00404b30
push 0x80004005
call fcn.00404b30
int3