Function at 0x460a50
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404b74
mov eax, dword [ebp - 8]
call fcn.00404b74
xor eax, eax
push ebp
push 0x460cbe
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.0040ca84
mov edi, dword [ebp - 0x1c]
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 8]
call fcn.0040ca84
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x24], edi
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x460aba
sub ebx, 4
mov ebx, dword [ebx]
mov esi, dword [ebp - 0x18]
test esi, esi
je 0x460ac6
sub esi, 4
mov esi, dword [esi]
push esi
mov eax, dword [ebp - 0x18]
call fcn.00404b84
push eax
push ebx
mov dword [ebp - 0x24], edi
mov eax, dword [ebp - 0x24]
call fcn.00404b84
push eax
push 0
push 0x400
call sub.kernel32.dll_CompareStringA_1
sub eax, 2
test eax, eax
jne 0x460afd
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00404758
jmp 0x460b1e
push 0
mov eax, dword [ebp - 8]
call fcn.00404b84
push eax
mov eax, dword [ebp - 4]
call fcn.00404b84
push eax
call sub.kernel32.dll_CopyFileA
test eax, eax
je 0x460c8e
xor eax, eax
push ebp
push 0x460b4a
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x22
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x4127c8]
call fcn.00416908
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x460b5e
xor edx, edx
push ebp
push 0x460c6b
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx]
mov ecx, eax
xor edx, edx
mov eax, dword [ebp - 0x10]
call fcn.004605c0
mov ebx, eax
mov esi, 0x464c34
push 8
lea eax, [ebp - 0x14]
push eax
mov ecx, esi
xor edx, edx
mov eax, dword [ebp - 0x10]
call fcn.004608dc
test al, al
je 0x460c61
push 0
mov ecx, dword [ebp - 0x14]
add ecx, 8
xor edx, edx
mov eax, dword [ebp - 0x10]
call fcn.004605c0
mov esi, eax
mov ecx, dword [ebp - 0x14]
mov edx, ebx
mov eax, dword [ebp - 0x10]
call fcn.00460a10
push 0
mov ecx, dword [ebp - 0x14]
add ecx, 4
xor edx, edx
mov eax, dword [ebp - 0x10]
call fcn.004605c0
push esi
mov edx, dword [ebp - 0x14]
add edx, 4
mov ecx, eax
mov eax, dword [ebp - 0x10]
call fcn.004607f8
push 0
mov ecx, dword [ebp - 0x14]
add ecx, 8
xor edx, edx
mov eax, dword [ebp - 0x10]
call fcn.004605c0
cmp esi, eax
je 0x460c10
mov ecx, 0x156
mov edx, 0x460cd8
mov eax, 0x460d20
call fcn.004046a0
push 0
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx]
mov ecx, eax
xor edx, edx
mov eax, dword [ebp - 0x10]
call fcn.004605c0
mov esi, eax
cmp esi, ebx
je 0x460c61
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x34], 0
mov dword [ebp - 0x30], esi
mov byte [ebp - 0x2c], 0
lea edx, [ebp - 0x38]
mov ecx, 1
mov eax, 0x460d50
call fcn.0040948c
mov eax, dword [ebp - 0x28]
mov ecx, 0x15a
mov edx, 0x460cd8
call fcn.004046a0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x460c82
mov eax, dword [ebp - 0x10]
call fcn.00403874
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x460cc5
lea eax, [ebp - 0x28]
call fcn.004046c0
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.004046e4
lea eax, [ebp - 8]
mov edx, 2
call fcn.004046e4
ret