Function at 0x4011b0
Capabilities:
Check http status code
Connect to http server
Get http content length
Read data from internet
Receive data
Send data
Send http request

Disassembly:
mov edx, dword [esp + 0xc]
sub esp, 0x510
test edx, edx
push ebx
push ebp
push esi
push edi
mov ebp, ecx
je 0x4011d9
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
mov ecx, ebp
call fcn.00401520
mov edx, dword [esp + 0x530]
test edx, edx
je 0x4011fa
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [ebp + 0x10]
call fcn.00401520
mov edx, dword [esp + 0x534]
test edx, edx
je 0x40121b
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [ebp + 0x20]
call fcn.00401520
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x401506
mov eax, dword [ebp + 0x28]
test eax, eax
je 0x401506
mov ecx, dword [ebp + 4]
test ecx, ecx
jne 0x40123d
mov ecx, 0x410280
mov edx, dword [esp + 0x528]
mov eax, dword [ebp + 0x30]
push 0
push 0
push 3
push edx
mov edx, dword [esp + 0x534]
push edx
push 0
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x14], ebx
jne 0x40127c
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
add esp, 0x510
ret 0x14
mov eax, dword [ebp + 0x14]
test eax, eax
jne 0x401288
mov eax, 0x410280
push 0
push 0x480000
push 0
push 0
push str.HTTP_1.0
push eax
push 0x412074
push ebx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov esi, eax
test esi, esi
jne 0x4012c4
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x510
ret 0x14
mov edi, str.Accept:__
or ecx, 0xffffffff
xor eax, eax
push 0x20000000
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.Accept:__
push esi
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
test eax, eax
jne 0x401307
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push ebx
call esi
pop edi
pop esi
pop ebp
mov eax, 4
pop ebx
add esp, 0x510
ret 0x14
push 0
push 0
push 0
push 0
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x401338
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push ebx
call esi
pop edi
pop esi
pop ebp
mov eax, 8
pop ebx
add esp, 0x510
ret 0x14
mov edi, dword [sym.imp.WININET.dll_HttpQueryInfoA]
lea eax, [esp + 0x18]
push 0
lea ecx, [esp + 0x14]
push eax
push ecx
push 0x20000013
push esi
mov dword [esp + 0x24], 0xffffffff
mov dword [esp + 0x2c], 4
call edi
mov ebx, dword [esp + 0x10]
cmp ebx, 0xc8
je 0x401395
cmp ebx, 0xce
je 0x401395
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
mov edx, dword [esp + 0x14]
push edx
call esi
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x510
ret 0x14
lea eax, [esp + 0x18]
push 0
lea ecx, [esp + 0x14]
push eax
push ecx
or ebx, 0xffffffff
push 0x20000005
push esi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x2c], 4
call edi
cmp dword [esp + 0x10], ebx
jne 0x4013e0
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
mov edx, dword [esp + 0x14]
push edx
call esi
pop edi
pop esi
pop ebp
mov eax, 6
pop ebx
add esp, 0x510
ret 0x14
lea eax, [esp + 0x10]
push 0
lea ecx, [esp + 0x24]
push eax
push ecx
push 0x35
push esi
mov dword [esp + 0x24], pe_nt_image_headers32
call edi
test eax, eax
je 0x401457
mov eax, dword [esp + 0x10]
test eax, eax
je 0x401457
lea edx, [esp + 0x20]
push str.bytes
push edx
call fcn.00405ef0
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x401457
add ebx, 6
push 0x2d
push ebx
call fcn.00405e30
mov edi, eax
add esp, 8
test edi, edi
je 0x401457
push ebx
mov byte [edi], 0
call fcn.00405d7f
inc edi
push 0x2f
push edi
call fcn.00405e30
add esp, 0xc
test eax, eax
jne 0x40144d
push edi
jmp 0x40144f
inc eax
push eax
call fcn.00405d7f
add esp, 4
mov eax, dword [ebp + 0x24]
test eax, eax
jne 0x401463
mov eax, 0x410280
push 0x41205c
push eax
call fcn.00405d6c
mov edi, eax
add esp, 8
test edi, edi
jne 0x401499
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
mov eax, dword [esp + 0x14]
push eax
call esi
pop edi
pop esi
pop ebp
mov eax, 0xa
pop ebx
add esp, 0x510
ret 0x14
mov ebx, dword [sym.imp.WININET.dll_InternetReadFile]
mov dword [esp + 0x1c], 0
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x120]
push ecx
push 0x400
push edx
push esi
call ebx
test eax, eax
je 0x4014de
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4014de
push edi
push eax
lea eax, [esp + 0x128]
push 1
push eax
call fcn.00405c02
add esp, 0x10
jmp 0x4014a7
push edi
call fcn.00405b85
add esp, 4
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
mov ecx, dword [esp + 0x14]
push ecx
call esi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x510
ret 0x14
pop edi
pop esi
pop ebp
mov eax, 9
pop ebx
add esp, 0x510
ret 0x14