Function at 0x4f7dc8
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 9
push 0
push 0
dec ecx
jne 0x4f7dd0
push ebx
push esi
push edi
mov edi, eax
xor eax, eax
push ebp
push 0x4f80cc
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
lea eax, [ebp - 8]
mov ecx, 0x4f80e8
mov edx, dword [edi + 0x6c]
call fcn.00404d38
lea eax, [ebp - 0x20]
push eax
mov ecx, 2
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.00404f4c
mov eax, dword [ebp - 0x20]
mov edx, 0x4f80f8
call fcn.00404e38
je 0x4f7e33
lea eax, [ebp - 8]
mov ecx, dword [ebp - 8]
mov edx, 0x4f80f8
call fcn.00404d38
mov eax, dword [ebp - 8]
call fcn.00409a2c
test al, al
jne 0x4f7f51
call sub.kernel32.dll_GetLastError_1
mov esi, eax
cmp esi, 5
jne 0x4f7e9a
cmp dword [edi + 0x7c], 1
jne 0x4f7e9a
push 0x4f80f8
push dword [edi + 0x6c]
push 0x4f8104
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00404dac
push 0
push 0
mov eax, dword [ebp - 0x10]
call fcn.00404eec
push eax
call sub.mpr.dll_WNetCancelConnection2A
mov esi, eax
test esi, esi
jne 0x4f7e9a
mov eax, dword [ebp - 8]
call fcn.00409a2c
test al, al
jne 0x4f7e9a
call sub.kernel32.dll_GetLastError_1
mov esi, eax
test esi, esi
je 0x4f7f51
lea ecx, [ebp - 0x24]
mov edx, 0x4f8114
mov eax, 0x4f8124
call fcn.00510c34
mov edx, dword [ebp - 0x24]
lea eax, [edi + 0x74]
call fcn.00404a80
lea eax, [ebp - 0x28]
push eax
mov eax, dword [edi + 0x6c]
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x2c], 0xb
lea edx, [ebp - 0x30]
xor ecx, ecx
mov eax, dword [edi + 0x74]
call fcn.0040a674
mov edx, dword [ebp - 0x28]
lea eax, [edi + 0x74]
call fcn.00404a80
lea edx, [ebp - 0x34]
mov eax, esi
call fcn.0040d718
push dword [ebp - 0x34]
push 0x4f8134
push dword [edi + 0x74]
lea eax, [edi + 0x74]
mov edx, 3
call fcn.00404dac
lea ecx, [ebp - 0x10]
mov edx, 0x4f8140
mov eax, 0x4f8124
call fcn.00510c34
push dword [edi + 0x74]
push 0x4f8150
lea eax, [ebp - 0x38]
push eax
mov eax, dword [edi + 0x6c]
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x2c], 0xb
lea edx, [ebp - 0x30]
xor ecx, ecx
mov eax, dword [ebp - 0x10]
call fcn.0040a674
push dword [ebp - 0x38]
lea eax, [edi + 0x74]
mov edx, 3
call fcn.00404dac
jmp 0x4f8097
mov bl, 1
lea edx, [ebp - 0x40]
mov eax, dword [0x54447c]
mov eax, dword [eax]
call fcn.004a0d90
mov eax, dword [ebp - 0x40]
lea edx, [ebp - 0x3c]
call fcn.00409ce8
mov edx, dword [ebp - 0x3c]
lea eax, [ebp - 0xc]
mov ecx, 0x4f815c
call fcn.00404d38
push dword [ebp - 8]
push 0x4f8170
push 0x4f815c
lea eax, [ebp - 8]
mov edx, 3
call fcn.00404dac
mov eax, dword [ebp - 8]
call fcn.00409a1c
test al, al
jne 0x4f7fcd
push 0
mov eax, dword [ebp - 8]
call fcn.00404eec
push eax
mov eax, dword [ebp - 0xc]
call fcn.00404eec
push eax
call sub.kernel32.dll_CopyFileA
test eax, eax
je 0x4f7fc9
mov byte [ebp - 1], 1
jmp 0x4f804a
xor ebx, ebx
jmp 0x4f804a
xor eax, eax
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x1c], eax
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 8]
call fcn.004d4010
test al, al
je 0x4f802b
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.004d4010
test al, al
je 0x4f802b
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x1c]
jl 0x4f8003
mov byte [ebp - 1], 1
jmp 0x4f8025
push 0
mov eax, dword [ebp - 8]
call fcn.00404eec
push eax
mov eax, dword [ebp - 0xc]
call fcn.00404eec
push eax
call sub.kernel32.dll_CopyFileA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x11], al
cmp byte [ebp - 0x11], 0
jmp 0x4f804a
push 0
mov eax, dword [ebp - 8]
call fcn.00404eec
push eax
mov eax, dword [ebp - 0xc]
call fcn.00404eec
push eax
call sub.kernel32.dll_CopyFileA
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x4f8093
lea ecx, [ebp - 0x44]
mov edx, 0x4f817c
mov eax, 0x4f8124
call fcn.00510c34
mov edx, dword [ebp - 0x44]
lea eax, [edi + 0x74]
call fcn.00404a80
lea eax, [ebp - 0x48]
push eax
mov eax, dword [edi + 0x6c]
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x2c], 0xb
lea edx, [ebp - 0x30]
xor ecx, ecx
mov eax, dword [edi + 0x74]
call fcn.0040a674
mov edx, dword [ebp - 0x48]
lea eax, [edi + 0x74]
call fcn.00404a80
jmp 0x4f8097
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f80d3
lea eax, [ebp - 0x48]
mov edx, 6
call fcn.00404a50
lea eax, [ebp - 0x28]
mov edx, 3
call fcn.00404a50
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00404a50
ret