Function at 0x6648ec
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 6
push 0
push 0
dec ecx
jne 0x6648f5
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 8]
call fcn.004053a4
xor eax, eax
push ebp
push 0x664b65
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 6
mov esi, dword [ebx + 0x4f4]
mov eax, dword [ebx + 0x4c0]
mov byte [eax + 0xd0], 1
mov edx, dword [ebx + 0x4f4]
mov dword [eax + 0xd4], edx
lea ecx, [ebp - 0x10]
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.00663fa0
cmp dword [ebp - 0x10], 0
jne 0x664966
mov dword [ebp - 0xc], 2
jmp 0x664b3c
mov eax, dword [ebp - 0x10]
call fcn.0040a414
test al, al
je 0x66498d
mov eax, 0x664b80
call fcn.00649ed4
cmp eax, 2
jne 0x66498d
mov dword [ebp - 0xc], 2
jmp 0x664b42
mov eax, dword [ebx + 0x4c0]
mov eax, dword [eax + 0xd4]
mov dword [ebx + 0x4f4], eax
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 0x10]
call fcn.0040a7bc
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x18]
call fcn.004098f0
mov eax, dword [ebp - 0x18]
push eax
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.0040a7bc
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.004098f0
mov edx, dword [ebp - 0x20]
pop eax
call fcn.00405300
jne 0x664a2b
cmp dword [ebx + 0x534], 1
jg 0x6649f1
mov eax, dword [ebp - 0x10]
call fcn.0064b1b8
test al, al
jne 0x664a2b
push 0xffffffffffffffff
mov eax, dword [ebp - 0x10]
call fcn.004053b4
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.004053b4
push eax
call sub.kernel32.dll_CopyFileA
test eax, eax
jne 0x664a1f
mov eax, 0x664ba8
call fcn.00649e54
jmp 0x664b42
mov byte [ebx + 0x511], 0
jmp 0x664b3c
mov eax, dword [ebp - 0x10]
call fcn.0064b1b8
test al, al
je 0x664b30
push 1
mov edx, dword [ebp - 4]
mov edx, dword [edx]
mov ecx, dword [ebp - 0x10]
mov eax, ebx
call fcn.00664724
test al, al
je 0x664b3c
mov eax, dword [ebx + 0x508]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x664a8b
lea ecx, [ebp - 0x2c]
xor edx, edx
mov eax, dword [ebx + 0x508]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x28]
call fcn.0040a668
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x14]
call fcn.004098f0
jmp 0x664a93
lea eax, [ebp - 0x14]
call fcn.00404ef4
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
call fcn.00404f48
lea edx, [ebp - 0x10]
mov eax, ebx
call fcn.00662240
test al, al
je 0x664ace
mov edx, dword [ebx + 0x51c]
mov eax, dword [ebx + 0x308]
call fcn.00468294
mov edx, dword [ebx + 0x520]
mov eax, dword [ebx + 0x310]
call fcn.00468294
lea edx, [ebp - 0x34]
mov eax, dword [0x698dd8]
mov eax, dword [eax]
call fcn.00460d94
push dword [ebp - 0x34]
push 0x664bbc
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.0040a784
push dword [ebp - 0x38]
lea eax, [ebp - 0x30]
mov edx, 3
call fcn.00405274
mov edx, dword [ebp - 0x30]
mov eax, ebx
call fcn.00468294
mov edx, dword [ebp - 4]
mov edx, dword [edx]
mov eax, dword [ebx + 0x318]
call fcn.00468294
xor eax, eax
mov dword [ebx + 0x530], eax
mov dword [ebx + 0x534], 1
jmp 0x664b3c
mov eax, 0x664bc8
call fcn.00649e54
jmp 0x664b42
mov dword [ebx + 0x4f4], esi
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x664b6c
lea eax, [ebp - 0x38]
mov edx, 0xb
call fcn.00404f18
lea eax, [ebp - 8]
call fcn.00404ef4
ret