Function at 0x401ff0
Capabilities:
Connect to http server
Create http request
Query remote server for available data
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push 0xffffffffffffffff
push 0x4387db
mov eax, dword fs:[0]
push eax
mov eax, 0x7544
call fcn.00424780
mov eax, dword [0x4475e0]
xor eax, esp
mov dword [esp + 0x7540], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4475e0]
xor eax, esp
push eax
lea eax, [esp + 0x7558]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
mov dword [esp + 0x14], esi
mov dword [esp + 0x20], ebx
push 0x752f
lea eax, [esp + 0x29]
push ebx
mov dword [esp + 0x7568], 1
push eax
mov byte [esp + 0x30], bl
call fcn.00423db0
add esp, 0xc
push ebx
push ebx
push ebx
push ebx
push str.bluch
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ebp, eax
cmp ebp, ebx
jne 0x402083
push str.cant_open
mov ecx, esi
call fcn.004013a0
jmp 0x402250
mov esi, dword [esp + 0x7568]
push ebx
push ebx
push 3
push 0x43e998
push 0x43e998
push ebx
push esi
push ebp
call dword [sym.imp.WININET.dll_InternetConnectA]
mov edi, eax
cmp edi, ebx
jne 0x40210f
mov edi, dword [esp + 0x14]
push str.cant_connet
mov ecx, edi
call fcn.004013a0
lea eax, [esi - 0x10]
mov byte [esp + 0x7560], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4020da
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x7560], 0xffffffff
mov eax, dword [esp + 0x756c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402108
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
jmp 0x4022aa
mov ecx, dword [esp + 0x756c]
push ebx
push ebx
push ebx
push ebx
push ebx
push ecx
push 0x43e614
push edi
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov esi, eax
cmp esi, ebx
jne 0x402161
mov esi, dword [esp + 0x14]
push str.cant_openrequest
mov ecx, esi
call fcn.004013a0
mov byte [esp + 0x7560], bl
mov eax, dword [esp + 0x7568]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x40226e
push ebx
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x402185
mov esi, dword [esp + 0x14]
push str.cant_sendrequest
mov ecx, esi
call fcn.004013a0
jmp 0x402250
push 0x43e998
lea ecx, [esp + 0x1c]
call fcn.004013a0
mov byte [esp + 0x7560], 2
jmp 0x4021a0
push ebx
push ebx
lea ecx, [esp + 0x28]
push ecx
push esi
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
je 0x402200
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x1c]
push edx
push eax
lea ecx, [esp + 0x2c]
push ecx
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x402200
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x24]
mov byte [esp + edx + 0x24], bl
lea edx, [eax + 1]
jmp 0x4021e0
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x4021e0
sub eax, edx
push eax
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x20]
call fcn.00404b10
cmp dword [esp + 0x1c], ebx
jne 0x4021a0
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push edi
call esi
push ebp
call esi
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
push eax
call fcn.00404dd0
mov esi, dword [esp + 0x18]
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0x7564], 1
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402250
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x7560], bl
mov eax, dword [esp + 0x7568]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40227a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x7560], 0xffffffff
mov eax, dword [esp + 0x756c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4022a8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x7558]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x7540]
xor ecx, esp
call fcn.004217b1
add esp, 0x7550
ret 8