Function at 0x402af0
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 0x437786
mov eax, dword fs:[0]
push eax
mov eax, 0x754c
call fcn.00423530
mov eax, dword [0x4466c0]
xor eax, esp
mov dword [esp + 0x7548], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4466c0]
xor eax, esp
push eax
lea eax, [esp + 0x7560]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], 0
push 0x752f
lea eax, [esp + 0x31]
mov ebx, 1
push 0
mov dword [esp + 0x7570], ebx
push eax
mov byte [esp + 0x38], 0
call fcn.00422820
add esp, 0xc
call fcn.00406cc2
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x402b7c
push 0x80004005
call fcn.00401230
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
push 0
push 0
push 0
push 0
push str.HTTP
mov byte [esp + 0x757c], 2
call dword [sym.imp.WININET.dll_InternetOpenA]
test eax, eax
mov dword [esp + 0x1c], eax
jne 0x402c42
push 0x43daf3
mov ecx, edi
call fcn.00401410
lea eax, [esi - 0x10]
mov byte [esp + 0x7568], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402be2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x7568], 0
mov eax, dword [esp + 0x7570]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402c0d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x7568], 0xffffffff
mov eax, dword [esp + 0x7574]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402c3b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
jmp 0x402e2b
mov ebp, dword [esp + 0x7570]
push 0
push 0
push 3
push 0x43daf3
push 0x43daf3
push 0
push ebp
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
test eax, eax
mov dword [esp + 0x28], eax
jne 0x402caa
push 0x43daf3
mov ecx, edi
call fcn.00401410
lea eax, [esi - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x7568], bl
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402c9a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x7568], 0
lea eax, [ebp - 0x10]
jmp 0x402bf4
mov ecx, dword [esp + 0x7574]
push 0
push 0
push 0
push 0
push 0
push ecx
push 0x43d964
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov edi, eax
test edi, edi
jne 0x402cf7
mov edi, dword [esp + 0x18]
push 0x43daf3
mov ecx, edi
call fcn.00401410
lea eax, [esi - 0x10]
mov byte [esp + 0x7568], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x402c8e
push 0
push 0
push 0
push 0
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x402d13
mov edi, dword [esp + 0x18]
jmp 0x402c6b
mov esi, dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
mov ebx, dword [sym.imp.WININET.dll_InternetReadFile]
nop
push 0
push 0
lea ecx, [esp + 0x2c]
push ecx
push edi
call esi
test eax, eax
je 0x402e55
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x20]
push edx
push eax
lea ecx, [esp + 0x34]
push ecx
push edi
call ebx
test eax, eax
je 0x402e55
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x2c]
mov byte [esp + edx + 0x2c], 0
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x402d60
sub eax, edx
push eax
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x1c]
call fcn.00404120
cmp dword [esp + 0x20], 0
jne 0x402d20
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call esi
mov ecx, dword [esp + 0x28]
push ecx
call esi
mov edx, dword [esp + 0x1c]
push edx
call esi
lea eax, [esp + 0x14]
push 0x43daf3
push eax
call fcn.00403f30
add esp, 8
test al, al
je 0x402df8
cmp dword [esp + 0x7578], 0
je 0x402df8
push 0x13
push ecx
lea edx, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
call fcn.00404590
lea eax, [esp + 0x24]
push eax
call fcn.00402a00
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x756c], 3
call fcn.00404470
lea ecx, [esp + 0x1c]
mov byte [esp + 0x7568], 2
call fcn.004013f0
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
call fcn.00404590
lea ecx, [esp + 0x14]
call fcn.004013f0
lea ecx, [esp + 0x7570]
call fcn.004013f0
lea ecx, [esp + 0x7574]
call fcn.004013f0
mov eax, esi
mov ecx, dword [esp + 0x7560]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x7548]
xor ecx, esp
call fcn.00420360
add esp, 0x7558
ret 0xc
mov esi, dword [esp + 0x18]
push 0x43daf3
mov ecx, esi
call fcn.00401410
jmp 0x402e08