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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x46d750]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
call dword [0x46eaf4]
push 0xa
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x10], eax
call fcn.00429689
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x3c]
push eax
push ecx
add ebx, 0xfffffff0
mov dword [ebp - 0xc], esp
mov esi, esp
push ebx
call fcn.004020e0
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.0040b770
add esp, 8
cmp eax, 2
je 0x40c76d
lea ecx, [ebp - 0xc]
push str._Copy__Invalid_arguments__nArg_2_:
push ecx
lea ecx, [ebp + 8]
call fcn.00401eb0
mov edi, dword [eax]
xor esi, esi
add esp, 8
cmp edi, esi
jne 0x40c722
mov dword [ebp - 8], esi
jmp 0x40c753
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cmp eax, 0x3fffffff
jle 0x40c738
mov dword [ebp - 8], esi
jmp 0x40c753
lea esi, [eax + eax]
mov eax, esi
call fcn.00440090
mov edx, dword [ebp - 0x10]
mov eax, esp
push edx
push esi
push edi
push eax
call fcn.00408150
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0043920e
push 0x467390
lea ecx, [ebp - 0x1c]
push ecx
call fcn.0043b69a
push 0
lea ecx, [ebp - 0x3c]
call fcn.00429665
test eax, eax
jne 0x40c780
jmp fcn.004232a7
mov eax, dword [eax + 8]
sub eax, 0x10
push eax
call fcn.004020e0
mov esi, eax
add esp, 4
add esi, 0x10
push 1
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0xc], esi
call fcn.00429665
test eax, eax
jne 0x40c7aa
jmp fcn.004232a7
mov eax, dword [eax + 8]
sub eax, 0x10
push eax
call fcn.004020e0
add esp, 4
mov edi, eax
push 0
add edi, 0x10
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x40c843
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40c843
lea edx, [ebp - 0x20]
push str._Copy__Source_file_or_path_not_found:
push edx
lea ecx, [ebp - 0xc]
call fcn.00401eb0
mov edi, dword [eax]
xor esi, esi
add esp, 8
cmp edi, esi
jne 0x40c7f8
mov dword [ebp - 8], esi
jmp 0x40c829
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cmp eax, 0x3fffffff
jle 0x40c80e
mov dword [ebp - 8], esi
jmp 0x40c829
lea esi, [eax + eax]
mov eax, esi
call fcn.00440090
mov ecx, dword [ebp - 0x10]
mov eax, esp
push ecx
push esi
push edi
push eax
call fcn.00408150
mov dword [ebp - 8], eax
lea edx, [ebp - 8]
push edx
lea ecx, [ebp - 0x1c]
call fcn.0043920e
push 0x467390
lea eax, [ebp - 0x1c]
push eax
call fcn.0043b69a
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c85f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c87b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x3c]
call fcn.004297c1
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c89c
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
lea esp, [ebp - 0x48]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438dc7
mov esp, ebp
pop ebp
ret