Function at 0x100022f4
Capabilities:
Check http status code
Query remote server for available data
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x548
push ebx
push esi
push edi
xor ebx, ebx
push 8
pop ecx
xor eax, eax
lea edi, [ebp - 0x34]
push 0x3ff
mov dword [ebp - 0x38], ebx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x543]
push ebx
push eax
mov dword [ebp - 0x40], 0x1002c52c
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x14], 0x100
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov byte [ebp - 0x544], bl
call fcn.1001b930
mov eax, dword [0x100398a4]
add esp, 0xc
lea esi, [ebp - 0x38]
call fcn.10007e91
push dword [ebp + 8]
mov edi, 0x1002c520
push edi
mov esi, 0x400
push esi
push dword [ebp - 0x30]
call fcn.10013db6
add esp, 0x10
push ebx
push ebx
push dword [0x100398a4]
lea eax, [ebp - 0x38]
push 0x100398a8
push eax
push 0xc
pop edx
call fcn.1000973f
push eax
call fcn.1000783e
mov eax, dword [ebp - 0x34]
add esp, 0x18
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x10002393
sub eax, ecx
lea eax, [ebp - 0x544]
jne 0x100023b4
push dword [ebp - 0x30]
push edi
push esi
push eax
call fcn.10013db6
add esp, 0x10
jmp 0x100023c9
push dword [ebp - 0x34]
push dword [ebp - 0x30]
push 0x1002c534
push esi
push eax
call fcn.10013db6
add esp, 0x14
push 0x10032c60
push dword [0x10032c64]
lea eax, [ebp - 0x40]
push eax
push ebx
push ebx
lea eax, [ebp - 0x544]
push eax
push 0x1a
pop edx
call fcn.1000973f
push eax
push dword [0x10035fa8]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov edi, eax
push edi
call fcn.100020a5
mov eax, dword [ebp - 0x38]
pop ecx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10002405
push dword [ebp - 0x28]
sub eax, esi
push dword [ebp - 0x2c]
push eax
push dword [ebp - 0x38]
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
lea eax, [ebp - 0x38]
call fcn.10007f0e
push ebx
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x144]
push eax
push 0x13
push edi
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x1000244f
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
or eax, 0xffffffff
jmp 0x100024ef
lea eax, [ebp - 0x144]
push eax
call fcn.1001424f
pop ecx
cmp eax, 0xc8
je 0x10002471
or ebx, 0xffffffff
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, ebx
jmp 0x100024ef
push ebx
push ebx
lea eax, [ebp - 0x10]
push eax
push edi
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
je 0x100024e6
mov eax, dword [ebp - 0x10]
cmp eax, ebx
jbe 0x100024e6
cmp eax, dword [ebp + 0x10]
jae 0x100024e6
cmp dword [ebp + 0x10], ebx
jbe 0x10002466
mov esi, dword [ebp - 0xc]
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 0xc]
push 0x1000
add eax, esi
push eax
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x100024c0
cmp dword [ebp - 8], ebx
je 0x100024c0
add esi, dword [ebp - 8]
mov dword [ebp - 0xc], esi
cmp esi, dword [ebp + 0x10]
jb 0x10002493
cmp esi, dword [ebp + 0x10]
jae 0x10002466
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [ebp + 0x10]
push 0xb
pop edx
call fcn.1000973f
mov ecx, dword [ebp + 0xc]
push eax
mov eax, esi
call fcn.10007d46
pop ecx
pop ecx
jmp 0x100024ef
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret