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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
mov dword [ebp - 0x18], ecx
push 0x401
push str.inet.cpp
mov eax, dword [ebp - 0x18]
push eax
call fcn.1006f210
push 1
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10050d26
test eax, eax
jne 0x100c00a2
push 0x402
push str.inet.cpp
call fcn.100b0670
test eax, eax
je 0x100c00a2
int3
xor eax, eax
test eax, eax
jne 0x100c007b
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + 0x14], 0
jne 0x100c00c5
push 0x403
push str.inet.cpp
call fcn.100b0670
test eax, eax
je 0x100c00c5
int3
xor edx, edx
test edx, edx
jne 0x100c00a8
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x18], 0
jne 0x100c00e8
push 0x404
push str.inet.cpp
call fcn.100b0670
test eax, eax
je 0x100c00e8
int3
xor ecx, ecx
test ecx, ecx
jne 0x100c00cb
mov edx, dword [ebp - 0x18]
cmp dword [edx + 0x18], 0
je 0x100c0100
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x14], 0
jne 0x100c010e
push 6
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x1c]
push edx
call fcn.100c4b29
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x3c], 0
jne 0x100c014a
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x14]
push edx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x100c0142
push 0
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x1c]
push ecx
call fcn.100c4b29
mov eax, dword [ebp - 8]
jmp 0x100c031a
mov edx, dword [ebp + 8]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [eax + 0x34]
jb 0x100c01f5
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
mov ecx, dword [edx + 0x40]
sub ecx, dword [eax + 0x38]
test ecx, ecx
jge 0x100c0178
mov dword [ebp - 0x1c], 0
jmp 0x100c0187
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
mov ecx, dword [edx + 0x40]
sub ecx, dword [eax + 0x38]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x3c]
mov eax, dword [ebp - 0x18]
add edx, dword [eax + 0x38]
push edx
mov ecx, dword [ebp + 8]
push ecx
call fcn.100223f0
add esp, 0xc
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x34]
mov dword [edx + 0x38], ecx
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x14]
push eax
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x100c01e7
push 0
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x1c]
push edx
call fcn.100c4b29
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
jmp 0x100c0317
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x38]
add edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x18]
cmp edx, dword [eax + 0x40]
jb 0x100c02e5
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x18]
mov eax, dword [ecx + 0x40]
sub eax, dword [edx + 0x38]
test eax, eax
jge 0x100c0223
mov dword [ebp - 0x20], 0
jmp 0x100c0232
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x18]
mov eax, dword [ecx + 0x40]
sub eax, dword [edx + 0x38]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x3c]
mov edx, dword [ebp - 0x18]
add ecx, dword [edx + 0x38]
push ecx
mov eax, dword [ebp - 4]
push eax
call fcn.100223f0
add esp, 0xc
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x34]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x3c]
push edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x14]
push ecx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x100c0286
push 0
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x1c]
push eax
call fcn.100c4b29
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x10]
mov dword [ecx + 0x40], edx
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
cmp eax, dword [ecx + 0x40]
jae 0x100c02a8
mov edx, dword [ebp + 0xc]
sub edx, dword [ebp - 0x14]
mov dword [ebp - 0x24], edx
jmp 0x100c02b1
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x40]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x3c]
push edx
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x14]
push eax
call fcn.100223f0
add esp, 0xc
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x10]
mov dword [ecx + 0x38], edx
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
jmp 0x100c0317
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x3c]
mov ecx, dword [ebp - 0x18]
add eax, dword [ecx + 0x38]
push eax
mov edx, dword [ebp - 4]
push edx
call fcn.100223f0
add esp, 0xc
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x38]
add ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x38], ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8