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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5a6e28
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x5f13cc]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov eax, dword [0x5fcd20]
mov edx, dword [eax + 0xc]
mov ecx, 0x5fcd20
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x28], 0
mov eax, dword [0x5fcd20]
mov edx, dword [eax + 0xc]
mov ecx, 0x5fcd20
call edx
add eax, 0x10
mov dword [esp + 0xc], eax
mov edi, dword [ebp + 8]
push ebx
lea ecx, [esp + 0x18]
mov esi, edi
mov byte [esp + 0x2c], 1
call fcn.00496b60
mov ecx, dword [ebx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 0x14]
call edx
xor esi, esi
cmp edi, esi
jne 0x49645a
push str.fixdefault
jmp 0x496464
cmp edi, 1
jne 0x49647b
push str.fixabc
push eax
push str.qpy__u__s
lea edi, [esp + 0x18]
call fcn.004126f0
mov edi, dword [ebp + 8]
add esp, 0xc
xor esi, esi
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov edx, dword [ebx + 4]
push 0x5c65a8
lea ecx, [esp + 0x14]
push ecx
push edx
je 0x4964eb
call fcn.004ae540
mov byte [esp + 0x28], 2
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push esi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x49661a
mov eax, dword [esp + 0x10]
push eax
push eax
call fcn.004ae680
add esp, 8
test eax, eax
jne 0x49661a
mov eax, dword [esp + 0x10]
mov ecx, dword [ebx + 4]
mov edx, dword [ecx]
mov edx, dword [edx + 0x10]
push eax
mov eax, dword [esp + 0x10]
push eax
push ebx
call edx
jmp 0x49656f
call fcn.004ae540
mov dword [esp + 0x18], esi
push esi
push 0x80
push 2
push esi
push 1
mov byte [esp + 0x3c], 4
mov eax, dword [esp + 0x24]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x4965f5
call fcn.004129d0
cmp eax, esi
jl 0x49661a
push esi
push esi
lea esi, [esp + 0x20]
call fcn.00497690
mov eax, dword [esp + 0x10]
push eax
push eax
call fcn.004ae680
add esp, 8
test eax, eax
jne 0x4965fe
mov eax, dword [esp + 0x10]
mov ecx, dword [ebx + 4]
mov edx, dword [ecx]
mov edx, dword [edx + 0x10]
push eax
mov eax, dword [esp + 0x10]
push eax
push ebx
call edx
mov eax, dword [esp + 0x18]
test eax, eax
je 0x49656f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esp + 0x28], 1
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x496594
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x28], 0
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4965b9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4965e1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov dword [esp + 0x18], eax
jmp 0x49652a
mov esi, ebx
mov dword [ebx + edi*4 + 0x20], 0
mov dword [ebx + edi*4 + 0x28], 1
call fcn.00496640
jmp 0x496560
mov dword [ebx + edi*4 + 0x20], esi
mov esi, ebx
mov dword [ebx + edi*4 + 0x28], 1
call fcn.00496640
jmp 0x49656f