Function at 0x10001e53
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, 0x54c
mov eax, dword [0x10030010]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
push 8
mov esi, ecx
pop ecx
mov dword [ebp - 0x518], eax
xor eax, eax
lea edi, [ebp - 0x53c]
push 0x3ff
mov dword [ebp - 0x540], ebx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x507]
push ebx
push eax
mov dword [ebp - 0x548], 0x1002c55c
mov dword [ebp - 0x544], ebx
mov dword [ebp - 0x51c], 0x100
mov dword [ebp - 0x514], ebx
mov dword [ebp - 0x50c], ebx
mov dword [ebp - 0x510], ebx
mov byte [ebp - 0x508], bl
call fcn.1001bf50
mov eax, dword [0x100398a4]
add esp, 0xc
lea edi, [ebp - 0x540]
call fcn.10008281
push esi
mov esi, 0x1002c558
push esi
mov edi, 0x400
push edi
push dword [ebp - 0x538]
call fcn.100142a6
add esp, 0x10
push ebx
push ebx
push dword [0x100398a4]
push 0x100398a8
push 0xc
pop edx
call fcn.10009c20
push eax
lea ecx, [ebp - 0x540]
call fcn.10007bb7
mov eax, dword [ebp - 0x53c]
add esp, 0x14
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x10001f28
sub eax, ecx
lea eax, [ebp - 0x508]
jne 0x10001f4c
push dword [ebp - 0x538]
push esi
push edi
push eax
call fcn.100142a6
add esp, 0x10
jmp 0x10001f67
push dword [ebp - 0x53c]
push dword [ebp - 0x538]
push 0x1002c564
push edi
push eax
call fcn.100142a6
add esp, 0x14
push 0x10032c58
push dword [0x10032c5c]
lea eax, [ebp - 0x548]
push eax
push ebx
push ebx
lea eax, [ebp - 0x508]
push eax
push 0x1a
pop edx
call fcn.10009c20
push eax
push dword [0x10035fa0]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov edi, eax
push edi
call fcn.10001bbe
mov eax, dword [ebp - 0x540]
pop ecx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10001fa9
push dword [ebp - 0x530]
sub eax, esi
push dword [ebp - 0x534]
push eax
push dword [ebp - 0x540]
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
lea eax, [ebp - 0x540]
call fcn.100082fa
push ebx
lea eax, [ebp - 0x51c]
push eax
lea eax, [ebp - 0x108]
push eax
push 0x13
push edi
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x10002002
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
or eax, 0xffffffff
jmp 0x100020c0
lea eax, [ebp - 0x108]
push eax
call fcn.1001473f
pop ecx
cmp eax, 0xc8
je 0x10002027
or ebx, 0xffffffff
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, ebx
jmp 0x100020c0
push ebx
push ebx
lea eax, [ebp - 0x514]
push eax
push edi
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
je 0x100020b7
mov eax, dword [ebp - 0x514]
cmp eax, ebx
jbe 0x100020b7
cmp eax, dword [ebp + 0xc]
jae 0x100020b7
cmp dword [ebp + 0xc], ebx
jbe 0x10002019
mov esi, dword [ebp - 0x510]
lea eax, [ebp - 0x50c]
push eax
mov eax, dword [ebp - 0x518]
push 0x1000
add eax, esi
push eax
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x1000208e
cmp dword [ebp - 0x50c], ebx
je 0x1000208e
add esi, dword [ebp - 0x50c]
mov dword [ebp - 0x510], esi
cmp esi, dword [ebp + 0xc]
jb 0x1000204f
cmp esi, dword [ebp + 0xc]
jae 0x10002019
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [ebp + 0xc]
push 0xb
pop edx
call fcn.10009c20
mov ebx, dword [ebp - 0x518]
push eax
mov ecx, esi
call fcn.1000810f
pop ecx
pop ecx
jmp 0x100020c0
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10014062
leave
ret