Function at 0x51bcf6
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
push 0x47e
push str.inet.cpp
mov eax, dword [ebp - 0x10]
push eax
call fcn.004b69d0
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 0x14], 0
jne 0x51bd32
push 0x47f
push str.inet.cpp
call fcn.00505a50
test eax, eax
je 0x51bd32
int3
xor edx, edx
test edx, edx
jne 0x51bd15
push 1
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0047f716
test eax, eax
jne 0x51bd5f
push 0x480
push str.inet.cpp
call fcn.00505a50
test eax, eax
je 0x51bd5f
int3
xor edx, edx
test edx, edx
jne 0x51bd38
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x3c], 0
jne 0x51bdca
push 0x1000
mov ecx, dword [ebp - 0x10]
call fcn.0051b19f
test eax, eax
jne 0x51bd86
xor eax, eax
jmp 0x51bebe
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x34]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x3c]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x14]
push ecx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x51bdb7
push 0
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x1c]
push eax
call fcn.005201e3
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
mov dword [ecx + 0x40], edx
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x38], 0
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x3c]
mov eax, dword [ebp - 0x10]
add edx, dword [eax + 0x38]
mov dword [ebp - 4], edx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 0xc]
sub edx, 1
mov dword [ebp + 0xc], edx
cmp dword [ebp + 0xc], 0
je 0x51beb5
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x10]
mov edx, dword [eax + 0x38]
cmp edx, dword [ecx + 0x40]
jb 0x51be6d
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x34]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x3c]
push ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x14]
push eax
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x51be31
push 0
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x1c]
push edx
call fcn.005201e3
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
mov dword [eax + 0x40], ecx
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0x40], 0
jne 0x51be5a
mov eax, dword [ebp - 0xc]
mov byte [eax], 0
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp + 8]
jne 0x51be55
xor eax, eax
jmp 0x51bebe
mov eax, dword [ebp + 8]
jmp 0x51bebe
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x38], 0
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x3c]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
movsx eax, byte [edx]
cmp eax, 0xd
je 0x51be8b
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
mov al, byte [edx]
mov byte [ecx], al
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x38]
add eax, 1
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x38], eax
mov edx, dword [ebp - 4]
movsx eax, byte [edx]
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp eax, 0xa
jne 0x51beb0
jmp 0x51beb5
jmp 0x51bddf
mov edx, dword [ebp - 0xc]
mov byte [edx], 0
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8