Function at 0x10002c3f
Capabilities:
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, 0x448
push ebx
push esi
push edi
xor ebx, ebx
push 8
pop ecx
xor eax, eax
lea edi, [ebp - 0x30]
push 0x3ff
mov dword [ebp - 0x34], ebx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x443]
push ebx
push eax
mov dword [ebp - 0x3c], 0x10031540
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov byte [ebp - 0x444], bl
call fcn.10020520
mov eax, dword [0x10043a24]
add esp, 0xc
lea esi, [ebp - 0x34]
call fcn.10009c49
push dword [ebp + 8]
mov edi, 0x10031534
push edi
mov esi, 0x400
push esi
push dword [ebp - 0x2c]
call fcn.10018956
add esp, 0x10
push ebx
push ebx
push dword [0x10043a24]
lea eax, [ebp - 0x34]
push 0x10043a28
push eax
push 0xc
pop ecx
call fcn.1000c2f3
push eax
call fcn.100095f6
mov eax, dword [0x1003ffc8]
add esp, 0x18
cmp eax, ebx
je 0x10002d06
lea ecx, [eax + 8]
movzx eax, word [eax + 0x48]
push ecx
push eax
lea ebx, [ebp - 0x34]
call fcn.10005eec
mov eax, dword [0x1003ffc8]
lea ecx, [eax + 0x4c]
movzx eax, word [eax + 0x8c]
push ecx
push eax
call fcn.10005fb6
add esp, 0x10
xor ebx, ebx
mov eax, dword [ebp - 0x30]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10002d0c
sub eax, edx
lea eax, [ebp - 0x444]
jne 0x10002d2d
push dword [ebp - 0x2c]
push edi
push esi
push eax
call fcn.10018956
add esp, 0x10
jmp 0x10002d42
push dword [ebp - 0x30]
push dword [ebp - 0x2c]
push 0x10031548
push esi
push eax
call fcn.10018956
add esp, 0x14
push 0x1003ffc4
push dword [0x1003cc58]
lea eax, [ebp - 0x3c]
push eax
push ebx
push ebx
lea eax, [ebp - 0x444]
push eax
push 0x1a
pop ecx
call fcn.1000c2f3
push eax
push dword [0x1003ffb8]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov edi, eax
push edi
call fcn.100028bc
mov eax, dword [ebp - 0x34]
pop ecx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10002d7e
push dword [ebp - 0x24]
sub eax, esi
push dword [ebp - 0x28]
push eax
push dword [ebp - 0x34]
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
lea eax, [ebp - 0x34]
call fcn.10009cc6
push edi
call fcn.1000291b
pop ecx
test eax, eax
jne 0x10002db9
or ebx, 0xffffffff
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, ebx
jmp 0x10002e38
push ebx
push ebx
lea eax, [ebp - 0x10]
push eax
push edi
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
je 0x10002e2e
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0x10]
jae 0x10002e2e
cmp eax, ebx
je 0x10002dae
cmp dword [ebp + 0x10], ebx
jbe 0x10002dab
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 0x10002e08
cmp dword [ebp - 8], ebx
je 0x10002e08
add esi, dword [ebp - 8]
mov dword [ebp - 0xc], esi
cmp esi, dword [ebp + 0x10]
jb 0x10002ddb
cmp esi, dword [ebp + 0x10]
jae 0x10002dab
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [ebp + 0x10]
push 0xb
pop ecx
call fcn.1000c2f3
mov ecx, dword [ebp + 0xc]
push eax
mov eax, esi
call fcn.10009afe
pop ecx
pop ecx
jmp 0x10002e38
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret