Function at 0x4bf6b0
Capabilities:
Check if file exists
Copy file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5a8648
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5f13cc]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov ebp, ecx
mov ecx, dword [ebp + 4]
push 0x5c8df4
lea eax, [esp + 0x20]
push eax
push ecx
mov dword [ebp + 8], 2
call fcn.004ae540
xor ebx, ebx
mov dword [esp + 0x30], ebx
mov ecx, dword [ebp + 4]
mov edx, dword [ecx]
mov edx, dword [edx + 4]
mov esi, 1
push esi
lea eax, [esp + 0x1c]
push eax
call edx
mov byte [esp + 0x30], 1
mov edx, dword [esp + 0x18]
mov eax, dword [edx - 0xc]
cmp eax, ebx
jle 0x4bf74c
lea ecx, [eax - 1]
cmp ecx, ebx
jl 0x4bf85b
cmp ecx, eax
jg 0x4bf85b
movzx eax, word [edx + ecx*2]
cmp ax, 0x5c
je 0x4bf74c
push 0x5c
lea edi, [esp + 0x1c]
call fcn.00404400
push 9
push str.local.dat
lea eax, [esp + 0x20]
push eax
call fcn.00403fc0
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
push ebx
je 0x4bf870
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov eax, dword [esp + 0x1c]
push eax
push eax
call fcn.004ae680
add esp, 8
cmp eax, ebx
push ebx
jl 0x4bf870
mov eax, dword [esp + 0x1c]
push 0x80
push 4
push ebx
push 7
push 0x40000000
xor edi, edi
push eax
mov dword [esp + 0x3c], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x4bf865
call fcn.004129d0
cmp eax, ebx
jl 0x4bf7e0
push ebx
push ebx
lea esi, [esp + 0x28]
call fcn.00497690
cmp edi, ebx
je 0x4bf7e0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [0x5fcd20]
mov eax, dword [edx + 0xc]
mov ecx, 0x5fcd20
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
mov byte [esp + 0x30], 2
mov ecx, dword [ebp + 4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
call eax
push eax
push str.qpy__u_uinp.log
lea edi, [esp + 0x28]
call fcn.004126f0
mov eax, dword [esp + 0x24]
mov ecx, dword [ebp + 4]
mov esi, dword [esp + 0x28]
mov edx, dword [ecx]
mov edx, dword [edx + 0x10]
add esp, 8
push eax
push esi
push ebp
call edx
lea eax, [esi - 0x10]
mov dword [ebp + 8], 2
mov byte [esp + 0x30], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4bf855
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x30], bl
jmp 0x4bf898
push 0x80070057
call fcn.00404550
mov edi, eax
mov dword [esp + 0x20], edi
jmp 0x4bf7ca
push 0x5c7d24
mov ecx, ebp
call fcn.004aee70
mov edx, dword [ebp]
mov eax, dword [edx + 0x18]
add esp, 8
mov ecx, ebp
call eax
fld1
mov byte [esp + 0x30], bl
fstp dword [ebp + 0xc]
mov dword [ebp + 8], esi
mov dword [ebp + 0x14], ebx
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4bf8b8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x30], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4bf8e0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret