Function at 0x459cf0
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.00404bac
mov eax, dword [ebp - 8]
call fcn.00404bac
xor eax, eax
push ebp
push 0x459f5e
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.0040ca54
mov edi, dword [ebp - 0x1c]
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 8]
call fcn.0040ca54
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x24], edi
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x459d5a
sub ebx, 4
mov ebx, dword [ebx]
mov esi, dword [ebp - 0x18]
test esi, esi
je 0x459d66
sub esi, 4
mov esi, dword [esi]
push esi
mov eax, dword [ebp - 0x18]
call fcn.00404bbc
push eax
push ebx
mov dword [ebp - 0x24], edi
mov eax, dword [ebp - 0x24]
call fcn.00404bbc
push eax
push 0
push 0x400
call sub.kernel32.dll_CompareStringA_1
sub eax, 2
test eax, eax
jne 0x459d9d
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00404790
jmp 0x459dbe
push 0
mov eax, dword [ebp - 8]
call fcn.00404bbc
push eax
mov eax, dword [ebp - 4]
call fcn.00404bbc
push eax
call sub.kernel32.dll_CopyFileA
test eax, eax
je 0x459f2e
xor eax, eax
push ebp
push 0x459dea
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x22
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x412798]
call fcn.004168d8
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x459dfe
xor edx, edx
push ebp
push 0x459f0b
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.00459860
mov ebx, eax
mov esi, 0x461b64
push 8
lea eax, [ebp - 0x14]
push eax
mov ecx, esi
xor edx, edx
mov eax, dword [ebp - 0x10]
call fcn.00459b7c
test al, al
je 0x459f01
push 0
mov ecx, dword [ebp - 0x14]
add ecx, 8
xor edx, edx
mov eax, dword [ebp - 0x10]
call fcn.00459860
mov esi, eax
mov ecx, dword [ebp - 0x14]
mov edx, ebx
mov eax, dword [ebp - 0x10]
call fcn.00459cb0
push 0
mov ecx, dword [ebp - 0x14]
add ecx, 4
xor edx, edx
mov eax, dword [ebp - 0x10]
call fcn.00459860
push esi
mov edx, dword [ebp - 0x14]
add edx, 4
mov ecx, eax
mov eax, dword [ebp - 0x10]
call fcn.00459a98
push 0
mov ecx, dword [ebp - 0x14]
add ecx, 8
xor edx, edx
mov eax, dword [ebp - 0x10]
call fcn.00459860
cmp esi, eax
je 0x459eb0
mov ecx, 0x156
mov edx, 0x459f78
mov eax, 0x459fc8
call fcn.004046d8
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.00459860
mov esi, eax
cmp esi, ebx
je 0x459f01
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, 0x459ff8
call fcn.0040945c
mov eax, dword [ebp - 0x28]
mov ecx, 0x15a
mov edx, 0x459f78
call fcn.004046d8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x459f22
mov eax, dword [ebp - 0x10]
call fcn.004038ac
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x459f65
lea eax, [ebp - 0x28]
call fcn.004046f8
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.0040471c
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040471c
ret