Function at 0x65a7e0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd64
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x298], ecx
mov dword [ebp - 0x29c], ecx
mov dword [ebp - 0x290], ecx
mov dword [ebp - 0x294], ecx
mov dword [ebp - 0x288], ecx
mov dword [ebp - 0x28c], ecx
mov dword [ebp - 0x280], ecx
mov dword [ebp - 0x284], ecx
mov dword [ebp - 0x27c], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406ec4
mov eax, dword [ebp - 8]
call fcn.00406ec4
lea eax, [ebp - 0x278]
mov edx, dword [0x46e9ac]
call fcn.004078ec
xor eax, eax
push ebp
push 0x65ab1f
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x65aad9
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
call fcn.004717dc
test al, al
je 0x65aacf
mov eax, dword [ebp - 8]
call fcn.004717dc
test al, al
jne 0x65a88b
mov eax, dword [ebp - 8]
call fcn.00471800
lea eax, [ebp - 0x27c]
mov ecx, 0x65ab3c
mov edx, dword [ebp - 4]
call fcn.004072b0
mov eax, dword [ebp - 0x27c]
lea ecx, [ebp - 0x278]
mov edx, 0x1ff
call fcn.004719c0
test eax, eax
jne 0x65aacf
mov eax, dword [ebp - 0x264]
mov edx, 0x65ab50
call fcn.00407528
je 0x65aab1
mov eax, dword [ebp - 0x264]
mov edx, 0x65ab60
call fcn.00407528
je 0x65aab1
mov eax, dword [ebp - 0x268]
mov edx, eax
or edx, 0x10
cmp edx, eax
jne 0x65a94b
push dword [ebp - 8]
push dword [ebp - 0x264]
push 0x65ab74
lea eax, [ebp - 0x280]
mov edx, 3
call fcn.00407380
mov eax, dword [ebp - 0x280]
push eax
push dword [ebp - 4]
push dword [ebp - 0x264]
push 0x65ab74
lea eax, [ebp - 0x284]
mov edx, 3
call fcn.00407380
mov eax, dword [ebp - 0x284]
pop edx
call fcn.0065a7e0
jmp 0x65aab1
xor eax, eax
push ebp
push 0x65a9ad
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
lea eax, [ebp - 0x288]
mov ecx, dword [ebp - 0x264]
mov edx, dword [ebp - 8]
call fcn.004072b0
mov eax, dword [ebp - 0x288]
call fcn.00406f68
push eax
lea eax, [ebp - 0x28c]
mov ecx, dword [ebp - 0x264]
mov edx, dword [ebp - 4]
call fcn.004072b0
mov eax, dword [ebp - 0x28c]
call fcn.00406f68
push eax
call sub.KERNEL32.DLL_CopyFileW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x65aab1
mov eax, dword [ebp - 0x264]
mov edx, 0x65ab50
call fcn.00407528
je 0x65aab1
mov eax, dword [ebp - 0x264]
mov edx, 0x65ab60
call fcn.00407528
je 0x65aab1
mov ebx, dword [ebp - 0x268]
mov eax, ebx
or eax, 0x10
cmp eax, ebx
jne 0x65aa48
push dword [ebp - 8]
push dword [ebp - 0x264]
push 0x65ab74
lea eax, [ebp - 0x290]
mov edx, 3
call fcn.00407380
mov eax, dword [ebp - 0x290]
push eax
push dword [ebp - 4]
push dword [ebp - 0x264]
push 0x65ab74
lea eax, [ebp - 0x294]
mov edx, 3
call fcn.00407380
mov eax, dword [ebp - 0x294]
pop edx
call fcn.0065a7e0
jmp 0x65aab1
xor eax, eax
push ebp
push 0x65aaa7
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
lea eax, [ebp - 0x298]
mov ecx, dword [ebp - 0x264]
mov edx, dword [ebp - 8]
call fcn.004072b0
mov eax, dword [ebp - 0x298]
call fcn.00406f68
push eax
lea eax, [ebp - 0x29c]
mov ecx, dword [ebp - 0x264]
mov edx, dword [ebp - 4]
call fcn.004072b0
mov eax, dword [ebp - 0x29c]
call fcn.00406f68
push eax
call sub.KERNEL32.DLL_CopyFileW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x65aab1
lea eax, [ebp - 0x278]
call fcn.00471a10
test eax, eax
je 0x65a9bc
lea eax, [ebp - 0x278]
call fcn.00471a34
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x65aae3
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x65ab26
lea eax, [ebp - 0x29c]
mov edx, 9
call fcn.00406ed4
lea eax, [ebp - 0x278]
mov edx, dword [0x46e9ac]
call fcn.004079c4
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406ed4
ret