Function at 0x4fe3f8
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x33
push 0
push 0
dec ecx
jne 0x4fe401
xchg dword [ebp - 4], ecx
push ebx
mov byte [ebp - 9], cl
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040569c
mov eax, dword [ebp - 8]
call fcn.0040569c
lea eax, [ebp - 0x170]
mov edx, dword [0x4089b4]
call fcn.00405e24
xor eax, eax
push ebp
push 0x4fe6ad
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x174]
mov eax, dword [ebp - 4]
call fcn.0040ead0
mov edx, dword [ebp - 0x174]
lea eax, [ebp - 4]
call fcn.00405280
lea edx, [ebp - 0x178]
mov eax, dword [ebp - 8]
call fcn.0040ead0
mov edx, dword [ebp - 0x178]
lea eax, [ebp - 8]
call fcn.00405280
mov eax, dword [ebp - 8]
call fcn.0040a2f0
cmp byte [ebp - 9], 0
je 0x4fe4b8
lea eax, [ebp - 0x17c]
mov ecx, 0x4fe6c4
mov edx, dword [ebp - 4]
call fcn.004054f8
mov eax, dword [ebp - 0x17c]
lea ecx, [ebp - 0x170]
mov edx, 0x3f
call fcn.0040a550
mov dword [ebp - 0x10], eax
jmp 0x4fe4e4
lea eax, [ebp - 0x180]
mov ecx, 0x4fe6d4
mov edx, dword [ebp - 4]
call fcn.004054f8
mov eax, dword [ebp - 0x180]
lea ecx, [ebp - 0x170]
mov edx, 0x3f
call fcn.0040a550
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4fe666
test byte [ebp - 0x160], 8
jne 0x4fe64e
test byte [ebp - 0x160], 0x10
je 0x4fe594
mov eax, dword [ebp - 0x15c]
mov edx, 0x4fe6e0
call fcn.004055f8
je 0x4fe64e
mov eax, dword [ebp - 0x15c]
mov edx, 0x4fe6ec
call fcn.004055f8
je 0x4fe64e
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 0x15c]
call fcn.004fd5c4
test al, al
jne 0x4fe64e
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x184]
mov ecx, dword [ebp - 0x15c]
mov edx, dword [ebp - 8]
call fcn.004054f8
mov eax, dword [ebp - 0x184]
push eax
lea eax, [ebp - 0x188]
mov ecx, dword [ebp - 0x15c]
mov edx, dword [ebp - 4]
call fcn.004054f8
mov eax, dword [ebp - 0x188]
xor ecx, ecx
pop edx
call fcn.004fe3f8
pop ecx
jmp 0x4fe64e
lea eax, [ebp - 0x18c]
mov ecx, dword [ebp - 0x15c]
mov edx, dword [ebp - 4]
call fcn.004054f8
mov eax, dword [ebp - 0x18c]
call fcn.0047b848
mov ebx, eax
lea eax, [ebp - 0x190]
mov ecx, dword [ebp - 0x15c]
mov edx, dword [ebp - 8]
call fcn.004054f8
mov eax, dword [ebp - 0x190]
call fcn.0047b848
cmp ebx, eax
je 0x4fe64e
push 0x4fe6f8
push dword [ebp - 8]
push dword [ebp - 0x15c]
lea eax, [ebp - 0x194]
mov edx, 3
call fcn.0040556c
mov edx, dword [ebp - 0x194]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.00511784
push 0
lea eax, [ebp - 0x198]
mov ecx, dword [ebp - 0x15c]
mov edx, dword [ebp - 8]
call fcn.004054f8
mov eax, dword [ebp - 0x198]
call fcn.004056ac
push eax
lea eax, [ebp - 0x19c]
mov ecx, dword [ebp - 0x15c]
mov edx, dword [ebp - 4]
call fcn.004054f8
mov eax, dword [ebp - 0x19c]
call fcn.004056ac
push eax
call sub.kernel32.dll_CopyFileA
lea eax, [ebp - 0x170]
call fcn.0040a5a0
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4fe4ee
lea eax, [ebp - 0x170]
call fcn.0040a5c4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fe6b4
lea eax, [ebp - 0x19c]
mov edx, 0xb
call fcn.0040520c
lea eax, [ebp - 0x170]
mov edx, dword [0x4089b4]
call fcn.00405ef4
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040520c
ret