Function at 0x48bd20
Capabilities:
Check http status code
Connect to http server
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff7d0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.00404ca0
xor eax, eax
push ebp
push 0x48bf64
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [edi + 4]
xor edx, edx
mov dword [eax + 0x38], edx
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x1c]
mov edx, dword [ebp - 4]
mov eax, edi
call fcn.0048c234
mov esi, 0x84000000
mov eax, dword [ebp - 0x1c]
mov edx, 0x48bf7c
call fcn.00404bfc
jne 0x48bd94
mov esi, 0x80f000
cmp byte [edi + 0xc], 0
jne 0x48bda0
or esi, 0x200000
push 0
push 0
push 3
push 0x48bf84
push 0x48bf84
mov ax, word [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x20]
call fcn.00404cb0
push eax
mov eax, dword [edi + 0x18]
push eax
call sub.wininet.dll_InternetConnectA
mov dword [ebp - 0xc], eax
push 0
push esi
push 0
push 0x48bf84
push 0x48bf88
mov eax, dword [ebp - 0x24]
call fcn.00404cb0
push eax
push 0x48bf94
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_HttpOpenRequestA
mov esi, eax
push 4
lea eax, [edi + 0x10]
push eax
push 2
push esi
call sub.wininet.dll_InternetSetOptionA
push 4
lea eax, [edi + 0x10]
push eax
push 5
push esi
call sub.wininet.dll_InternetSetOptionA
push 4
lea eax, [edi + 0x10]
push eax
push 6
push esi
call sub.wininet.dll_InternetSetOptionA
mov eax, dword [edi + 4]
xor edx, edx
mov dword [eax + 0x2c], edx
mov ecx, 0x48bfa0
mov edx, esi
mov eax, edi
call fcn.0048c3d0
xor eax, eax
mov dword [edi + 0x14], eax
push 0
push 0
push 0
push 0x48bf84
push esi
call sub.wininet.dll_HttpSendRequestA
test eax, eax
jne 0x48be59
call sub.kernel32.dll_GetLastError_1
mov dword [edi + 0x14], eax
jmp 0x48bf41
xor eax, eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0x16
push esi
call sub.wininet.dll_HttpQueryInfoA
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x14]
call fcn.00404e3c
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x28]
call fcn.00404cb0
push eax
push 0x16
push esi
call sub.wininet.dll_HttpQueryInfoA
mov edx, dword [ebp - 0x28]
mov eax, dword [edi + 8]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 4
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x20000013
push esi
call sub.wininet.dll_HttpQueryInfoA
cmp dword [ebp - 0x10], 0xc8
je 0x48bed4
cmp dword [ebp - 0x10], 0x12e
jne 0x48bf32
mov bl, 1
lea eax, [ebp - 0x82d]
xor ecx, ecx
mov edx, 0x800
call fcn.004031fc
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.0041cabc
jmp 0x48bf18
cmp dword [ebp - 0x14], 0
je 0x48bf32
mov eax, dword [ebp - 0x14]
mov byte [ebp + eax - 0x82d], 0
lea edx, [ebp - 0x82d]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
mov edi, dword [eax]
call dword [edi + 0x10]
lea eax, [ebp - 0x14]
push eax
push 0x800
lea eax, [ebp - 0x82d]
push eax
push esi
call sub.wininet.dll_InternetReadFile
test eax, eax
jne 0x48bef6
push esi
call sub.wininet.dll_InternetCloseHandle
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_InternetCloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48bf6b
lea eax, [ebp - 0x28]
mov edx, 4
call fcn.00404814
lea eax, [ebp - 4]
call fcn.004047f0
ret