Function at 0x470614
Capabilities:
Copy file
Move file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 8
push 0
push 0
dec ecx
jne 0x47061d
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4708e8
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x11], 0
mov eax, dword [ebp - 0xc]
call fcn.004703dc
test al, al
je 0x4708c0
xor eax, eax
push ebp
push 0x4708b6
push dword fs:[eax]
mov dword fs:[eax], esp
test bl, bl
je 0x4706f4
mov eax, dword [0x4e9b84]
cmp dword [eax], 2
jne 0x470698
push 0xb
mov eax, dword [ebp - 0x10]
call fcn.004088f4
push eax
mov eax, dword [ebp - 0xc]
call fcn.004088f4
push eax
call sub.kernel32.dll_MoveFileExW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x11], al
jmp 0x4706f4
mov eax, dword [ebp - 0x10]
call fcn.0041e61c
mov dl, 1
mov eax, dword [ebp - 0x10]
call fcn.0041e0a0
test al, al
jne 0x4706f4
push 0
mov eax, dword [ebp - 0x10]
call fcn.004088f4
push eax
mov eax, dword [ebp - 0xc]
call fcn.004088f4
mov ebx, eax
push ebx
call sub.kernel32.dll_CopyFileW
test eax, eax
je 0x4706f4
mov edx, ebx
lea eax, [ebp - 0x1c]
call fcn.0040894c
mov eax, dword [ebp - 0x1c]
call fcn.0041e61c
test al, al
je 0x4706f4
mov byte [ebp - 0x11], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4708c0
mov eax, dword [0x4e9b84]
cmp dword [eax], 2
jne 0x47071c
push 5
mov eax, dword [ebp - 0x10]
call fcn.004088f4
push eax
mov eax, dword [ebp - 0xc]
call fcn.004088f4
push eax
call sub.kernel32.dll_MoveFileExW
jmp 0x4708ac
mov dl, 1
mov eax, dword [0x4396b0]
call fcn.00444dd4
mov dword [ebp - 0x18], eax
lea eax, [ebp - 4]
call fcn.0046bd50
xor eax, eax
push ebp
push 0x470792
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 4]
call fcn.004248f4
lea eax, [ebp - 0x20]
mov edx, 0x470908
call fcn.00408af8
mov eax, dword [ebp - 0x20]
call fcn.004703dc
test al, al
je 0x470788
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 4]
call fcn.004248f4
lea eax, [ebp - 0x24]
mov edx, 0x470908
call fcn.00408af8
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x68]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4707a4
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x28]
call fcn.0041ccc8
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov edx, 0x47092c
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x54]
inc eax
jne 0x4707e2
mov edx, 0x47092c
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 0x10]
call fcn.004703dc
test al, al
jne 0x470842
lea edx, [ebp - 8]
mov eax, dword [ebp - 0x10]
call fcn.0041e82c
mov dl, 1
mov eax, dword [ebp - 8]
call fcn.0041e138
test al, al
jne 0x47080f
mov eax, dword [ebp - 8]
call fcn.0041e208
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 0x10]
call fcn.0041e984
mov eax, dword [ebp - 0x30]
push eax
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 8]
call fcn.0041ead4
mov eax, dword [ebp - 0x38]
lea edx, [ebp - 0x34]
call fcn.004248f4
mov edx, dword [ebp - 0x34]
lea eax, [ebp - 8]
pop ecx
call fcn.00408b50
jmp 0x47084d
lea edx, [ebp - 8]
mov eax, dword [ebp - 0x10]
call fcn.0041ead4
cmp dword [ebp - 8], 0
je 0x470881
push dword [ebp - 8]
push 0x47094c
lea edx, [ebp - 0x40]
mov eax, dword [ebp - 0xc]
call fcn.0041ead4
push dword [ebp - 0x40]
lea eax, [ebp - 0x3c]
mov edx, 3
call fcn.00408bd8
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea edx, [ebp - 0x44]
mov eax, dword [ebp - 4]
call fcn.004248f4
lea eax, [ebp - 0x44]
mov edx, 0x470908
call fcn.00408af8
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x7c]
mov eax, dword [ebp - 0x18]
call fcn.00405e74
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4708c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4708ef
lea eax, [ebp - 0x44]
mov edx, 0xb
call fcn.00407ac0
lea eax, [ebp - 8]
mov edx, 2
call fcn.00407ac0
ret