Function at 0x10001fc1
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
mov eax, 0x1148
call fcn.10017970
mov eax, dword [0x1002d010]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1128], eax
mov eax, dword [ebp + 0xc]
push 0xc13
mov dword [ebp - 0x1134], eax
lea eax, [ebp - 0x1123]
push ebx
push eax
mov edi, ecx
mov dword [ebp - 0x1144], 0x10029564
mov dword [ebp - 0x1140], ebx
mov dword [ebp - 0x113c], 0x100
mov dword [ebp - 0x1130], ebx
mov dword [ebp - 0x112c], ebx
mov dword [ebp - 0x1138], ebx
mov byte [ebp - 0x1124], bl
call fcn.10017a30
add esp, 0xc
push 0x3ff
lea eax, [ebp - 0x50b]
push ebx
push eax
mov byte [ebp - 0x50c], bl
call fcn.10017a30
mov eax, dword [edi + 4]
add esp, 0xc
lea esi, [ebp - 0x1124]
call fcn.100079b4
push dword [ebp - 0x1128]
mov esi, 0x400
push 0x1002955c
lea eax, [ebp - 0x924]
push esi
push eax
call fcn.10014523
add esp, 0x10
push ebx
push ebx
push dword [edi + 4]
lea eax, [edi + 8]
push eax
push 0xc
pop edx
call fcn.100087fb
push eax
lea ecx, [ebp - 0x1124]
call fcn.100073ba
lea eax, [ebp - 0xd24]
add esp, 0x14
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x100020aa
sub eax, ecx
jne 0x100020d3
lea eax, [ebp - 0x924]
push eax
push 0x1002955c
lea eax, [ebp - 0x50c]
push esi
push eax
call fcn.10014523
add esp, 0x10
jmp 0x100020f6
lea eax, [ebp - 0xd24]
push eax
lea eax, [ebp - 0x924]
push eax
push 0x1002956c
lea eax, [ebp - 0x50c]
push esi
push eax
call fcn.10014523
add esp, 0x14
xor edx, edx
push ebx
inc edx
call fcn.100087d8
and al, 8
xor ecx, ecx
cmp al, 8
setne cl
lea eax, [ebp - 0x1144]
dec ecx
and ecx, 0x803000
add ecx, 0x84680200
push ecx
push eax
push ebx
push ebx
lea eax, [ebp - 0x50c]
push eax
push 0x1002957c
push dword [0x1003908c]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
push eax
mov dword [ebp - 0x1128], eax
call fcn.10001d06
lea eax, [ebp - 0x1124]
pop ecx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1000214d
push ebx
push ebx
sub eax, esi
push eax
lea eax, [ebp - 0x1124]
push eax
push dword [ebp - 0x1128]
call dword [sym.imp.WININET.dll_HttpSendRequestA]
mov eax, dword [edi + 4]
lea esi, [ebp - 0x1124]
call fcn.10007a5a
mov esi, dword [ebp - 0x1128]
push ebx
lea eax, [ebp - 0x113c]
push eax
lea eax, [ebp - 0x10c]
push eax
push 0x13
push esi
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x100021ab
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
or eax, 0xffffffff
jmp 0x10002283
lea eax, [ebp - 0x10c]
push eax
call fcn.10014d1b
pop ecx
cmp eax, 0xc8
je 0x100021d5
or ebx, 0xffffffff
push dword [ebp - 0x1128]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, ebx
jmp 0x10002283
push ebx
push ebx
lea eax, [ebp - 0x1130]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
je 0x1000227a
cmp dword [ebp - 0x1130], ebx
jbe 0x1000227a
mov edi, dword [ebp + 0x10]
cmp dword [ebp - 0x1130], edi
jae 0x1000227a
cmp edi, ebx
jbe 0x100021c2
mov esi, dword [ebp - 0x1138]
lea eax, [ebp - 0x112c]
push eax
mov eax, dword [ebp - 0x1134]
push 0x1000
add eax, esi
push eax
push dword [ebp - 0x1128]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x1000224b
cmp dword [ebp - 0x112c], ebx
je 0x1000224b
add esi, dword [ebp - 0x112c]
mov dword [ebp - 0x1138], esi
cmp esi, edi
jb 0x10002208
cmp esi, edi
jae 0x100021c2
push dword [ebp - 0x1128]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
push 0xb
pop edx
call fcn.100087fb
mov ebx, dword [ebp - 0x1134]
push eax
mov ecx, esi
call fcn.1000787a
pop ecx
pop ecx
jmp 0x10002283
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001436d
leave
ret