Function at 0x4bf200
Capabilities:
Download and write a file
Query remote server for available data
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x804]
sub esp, 0x804
push 0xffffffffffffffff
push 0x51d760
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x5a4aa8]
xor eax, ebp
mov dword [ebp + 0x800], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x80c]
mov dword [ebp - 0x2c], eax
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x24], 0xffffffff
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 4], edi
cmp eax, edi
je 0x4bf4ab
cmp esi, edi
je 0x4bf4ab
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4bf276
sub eax, edx
sar eax, 1
je 0x4bf4ab
push 0x800
push edi
lea eax, [ebp]
push eax
call fcn.004fd670
push 0x3ff
push esi
push 0x400
lea ecx, [ebp]
push ecx
call fcn.004fa71b
push 0x5c
lea edx, [ebp]
push edx
call fcn.004fa6eb
add esp, 0x24
cmp eax, edi
je 0x4bf2c3
mov word [eax], di
push edi
push edi
lea edx, [ebp]
call fcn.0049d3f0
add esp, 8
mov dword [ebp - 0x14], eax
cmp eax, edi
je 0x4bf301
lea eax, [ebp]
push eax
push str.Could_not_create_directory___s_
mov ecx, 0x649e50
call fcn.004918f0
add esp, 8
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x38], ecx
push 0x5814b0
lea edx, [ebp - 0x38]
push edx
call fcn.004fd5a3
push edi
push 0x80
push 2
push edi
push edi
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x24], eax
cmp eax, 0xffffffff
jne 0x4bf346
push esi
push str.Could_not_create_File___s_
mov ecx, 0x649e50
call fcn.004918f0
add esp, 8
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x34], eax
push 0x5814b0
lea ecx, [ebp - 0x34]
push ecx
call fcn.004fd5a3
mov dword [ebp - 0x18], edi
lea esp, [esp]
mov dword [ebp - 0x20], edi
xor esi, esi
cmp esi, edi
je 0x4bf372
cmp dword [esi], edi
je 0x4bf372
mov dword [ebp - 0x3c], 0x4c7
push 0x5814b0
lea edx, [ebp - 0x3c]
push edx
call fcn.004fd5a3
push edi
push edi
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
cmp eax, edi
je 0x4bf456
mov edx, dword [ebp - 0x18]
push edx
push str.Available_Size___d
mov ecx, 0x649e50
call fcn.004918f0
add esp, 8
mov eax, dword [ebp - 0x18]
cmp eax, edi
jne 0x4bf3b6
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 0xffffffff
jmp 0x4bf4ff
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
mov dword [ebp - 0x1c], ebx
cmp ebx, edi
jne 0x4bf3db
mov dword [ebp - 0x14], 0x7a
mov dword [ebp - 4], 0xffffffff
jmp 0x4bf4ff
cmp esi, edi
je 0x4bf3f8
cmp dword [esi], edi
je 0x4bf3f8
mov dword [ebp - 0x30], 0x4c7
push 0x5814b0
lea eax, [ebp - 0x30]
push eax
call fcn.004fd5a3
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x18]
push edx
push ebx
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x4bf416
push str.Read_file_data_from_URL_fail__
jmp 0x4bf449
mov eax, dword [ebp - 0x20]
cmp eax, edi
jne 0x4bf42c
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 0xffffffff
jmp 0x4bf4ff
mov dword [ebp - 0x28], edi
push edi
lea ecx, [ebp - 0x28]
push ecx
push eax
push ebx
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4bf46b
push str.Write_file_data_fail__
mov ecx, 0x649e50
call fcn.004918f0
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0xffffffff
jmp 0x4bf4ff
xor esi, esi
cmp esi, edi
je 0x4bf49a
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4bf49a
mov eax, dword [ebp - 0x28]
cdq
and edx, 0x3ff
add eax, edx
sar eax, 0xa
push eax
push 1
push 0x80f
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
jmp 0x4bf350
mov eax, 0x57
jmp 0x4bf52a
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x24]
cmp eax, 0xffffffff
je 0x4bf515
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, edi
je 0x4bf520
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x800]
xor ecx, ebp
call fcn.004fa103
add ebp, 0x804
mov esp, ebp
pop ebp
ret 4