Function at 0x100c05b5
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.1006f210
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 0x14], 0
jne 0x100c05f1
push 0x47f
push str.inet.cpp
call fcn.100b0670
test eax, eax
je 0x100c05f1
int3
xor edx, edx
test edx, edx
jne 0x100c05d4
push 1
mov eax, dword [ebp + 0xc]
shl eax, 1
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.10050d26
test eax, eax
jne 0x100c0620
push 0x480
push str.inet.cpp
call fcn.100b0670
test eax, eax
je 0x100c0620
int3
xor edx, edx
test edx, edx
jne 0x100c05f7
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x3c], 0
jne 0x100c068b
push 0x1000
mov ecx, dword [ebp - 0x10]
call fcn.100bfa15
test eax, eax
jne 0x100c0647
xor eax, eax
jmp 0x100c0789
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 0x100c0678
push 0
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x1c]
push eax
call fcn.100c4b29
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 0x100c077e
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x10]
mov edx, dword [eax + 0x38]
cmp edx, dword [ecx + 0x40]
jb 0x100c0730
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 0x100c06f2
push 0
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x1c]
push edx
call fcn.100c4b29
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 0x100c071d
mov eax, dword [ebp - 0xc]
mov word [eax], 0
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp + 8]
jne 0x100c0718
xor eax, eax
jmp 0x100c0789
mov eax, dword [ebp + 8]
jmp 0x100c0789
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]
xor eax, eax
mov ax, word [edx]
cmp eax, 0xd
je 0x100c0752
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
mov ax, word [edx]
mov word [ecx], ax
mov ecx, dword [ebp - 0xc]
add ecx, 2
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]
xor eax, eax
mov ax, word [edx]
mov ecx, dword [ebp - 4]
add ecx, 2
mov dword [ebp - 4], ecx
cmp eax, 0xa
jne 0x100c0779
jmp 0x100c077e
jmp 0x100c06a0
mov edx, dword [ebp - 0xc]
mov word [edx], 0
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8