Function at 0x4010c3
Capabilities:
Create http request
Get http content length
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], esp
push 0
push 0
push 0
push 0
push str.HTTPREAD
call dword [sym.imp.WININET.dll_InternetOpenA]
nop
nop
nop
nop
cmp dword [ebp - 0x28], esp
je 0x401143
push 6
call fcn.004014ad
add esp, 4
mov dword [ebp - 4], eax
mov dword [ebp - 0x28], esp
push 0
push 0x80000002
push 0
push 0
mov ebx, dword [ebp + 8]
push dword [ebx]
push dword [ebp - 4]
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
nop
nop
nop
nop
cmp dword [ebp - 0x28], esp
je 0x401181
push 6
call fcn.004014ad
add esp, 4
mov dword [ebp - 8], eax
push 0x80000301
push 0
push 0
push 1
mov ebx, 0x9e0
call fcn.004016e0
add esp, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
push 0x80000301
push 0
push 4
push 1
mov ebx, 0x334
call fcn.00401780
add esp, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x28], esp
push 0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x20000005
push dword [ebp - 8]
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
nop
nop
nop
nop
cmp dword [ebp - 0x28], esp
je 0x4011fd
push 6
call fcn.004014ad
add esp, 4
cmp dword [ebp - 0x10], 0
jne 0x401207
cmp dword [ebp - 0xc], 0
je 0x4012ac
push 0x80000301
push 0
push dword [ebp - 0x10]
push 1
mov ebx, 0x1bc
call fcn.004017d0
add esp, 0x10
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x401240
push ebx
call fcn.004014a1
add esp, 4
pop eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x28], esp
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x10]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x401258
add eax, 8
push eax
push dword [ebp - 8]
call dword [sym.imp.WININET.dll_InternetReadFile]
nop
nop
nop
nop
cmp dword [ebp - 0x28], esp
je 0x401278
push 6
call fcn.004014ad
add esp, 4
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x401292
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.004014a7
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x4012a3
push ebx
call fcn.004014a1
add esp, 4
pop eax
mov dword [ebp - 0x20], eax
jmp 0x4013c0
push 0x80000301
push 0
push 0x800
push 1
mov ebx, 0x1bc
call fcn.004017d0
add esp, 0x10
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x4012e1
push ebx
call fcn.004014a1
add esp, 4
pop eax
mov dword [ebp - 0x18], eax
push 0x80000005
push 0
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x4012f8
mov eax, 0x407247
push eax
push 1
mov ebx, 0x194
call fcn.00401800
add esp, 0x10
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], esp
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x28]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x401322
add eax, 8
push eax
push dword [ebp - 8]
call dword [sym.imp.WININET.dll_InternetReadFile]
nop
nop
nop
nop
cmp dword [ebp - 0x2c], esp
je 0x401342
push 6
call fcn.004014ad
add esp, 4
mov dword [ebp - 0x24], eax
push 0x80000301
push 0
push dword [ebp - 0x1c]
push 0x80000005
push 0
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x401362
mov eax, 0x407247
push eax
push 2
mov ebx, 0x1a0
call fcn.00401810
add esp, 0x1c
mov dword [ebp - 0x28], eax
push dword [ebp - 0x28]
push dword [ebp - 0x20]
mov ecx, 2
call fcn.0040106c
add esp, 8
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x40139e
push ebx
call fcn.004014a1
add esp, 4
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x4013b2
push ebx
call fcn.004014a1
add esp, 4
pop eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4012e5
cmp dword [ebp - 8], 0
je 0x4013ec
mov dword [ebp - 0x28], esp
push dword [ebp - 8]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x28], esp
je 0x4013ec
push 6
call fcn.004014ad
add esp, 4
cmp dword [ebp - 4], 0
je 0x401418
mov dword [ebp - 0x28], esp
push dword [ebp - 4]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x28], esp
je 0x401418
push 6
call fcn.004014ad
add esp, 4
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x401432
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.004014a7
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x401437
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x401448
push ebx
call fcn.004014a1
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x401458
push ebx
call fcn.004014a1
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4