Function at 0x4b4c00
Capabilities:
Check for time delay via gettickcount
Check if file exists
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57c4c0
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [0x5c8128]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov eax, ecx
mov dword [ebp - 0x30], eax
test eax, eax
je 0x4b4e6c
test ebx, ebx
je 0x4b4e6c
mov edi, dword [ebp + 8]
test edi, edi
je 0x4b4e6c
push 0x5cd194
push 0x100
call fcn.004f5d14
xor esi, esi
mov dword [ebp - 0x4c], vtable.CxAutoArray_unsigned_char_.0
add esp, 8
mov dword [ebp - 0x48], esi
test eax, eax
je 0x4b4c78
mov esi, eax
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x48], esi
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.004b3620
push edi
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], edx
call fcn.00407900
lea edx, [ebp - 0x18]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.0049b700
mov byte [ebp - 4], 3
or eax, 0xffffffff
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4b4cc3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x1c]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4b4cd8
lea ecx, [ebp - 0x1c]
call fcn.0049b190
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
sub esp, 0xc
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x40]
push 4
push 2
push 0x40000000
push edi
call fcn.004651b0
mov edi, dword [ebp - 0x40]
test eax, eax
js 0x4b4e1d
cmp edi, 0xffffffff
je 0x4b4e1d
sub esp, 0xc
lea ecx, [ebp - 0x40]
call fcn.004b35e0
mov ecx, ebx
call fcn.004a0f30
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebx + 0x10]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x14]
push eax
push 0x100
push esi
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x38], 0
push dword [ecx]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x4b4e1d
nop word [eax + eax]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4b4e65
push 0
lea ecx, [ebp - 0x18]
push ecx
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4b4d9b
call fcn.004650a0
test eax, eax
js 0x4b4e1d
mov eax, dword [ebp - 0x14]
cmp dword [ebp - 0x18], eax
jne 0x4b4e1d
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
add ecx, eax
mov dword [ebp - 0x20], ecx
adc edx, 0
cmp dword [ebp + 0xc], 0
mov dword [ebp - 0x24], edx
je 0x4b4dd7
push eax
push edx
push ecx
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp + 8]
push dword [ebp + 0x10]
push ebx
push dword [ebp - 0x30]
call dword [ebp + 0xc]
add esp, 0x24
test eax, eax
je 0x4b4e1d
cmp dword [ebp + 0x18], 0xffffffff
je 0x4b4deb
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x34]
cmp eax, dword [ebp + 0x18]
jae 0x4b4e1d
mov eax, dword [ebx + 0x10]
lea ecx, [ebp - 0x14]
push ecx
push 0x100
push esi
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x38], 0
push dword [eax]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x4b4d70
xor esi, esi
test edi, edi
je 0x4b4e2a
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 0
or ecx, 0xffffffff
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x4b4e49
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
lea ecx, [ebp - 0x4c]
call fcn.004415d0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, 1
jmp 0x4b4e1f
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret