Function at 0x10001f91
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.1001c5b0
mov eax, dword [0x10032010]
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], 0x1002d598
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.1001c790
add esp, 0xc
push 0x3ff
lea eax, [ebp - 0x50b]
push ebx
push eax
mov byte [ebp - 0x50c], bl
call fcn.1001c790
mov eax, dword [edi + 4]
add esp, 0xc
lea esi, [ebp - 0x1124]
call fcn.10008c20
push dword [ebp - 0x1128]
mov esi, 0x400
push 0x1002d590
lea eax, [ebp - 0x924]
push esi
push eax
call fcn.10014b26
add esp, 0x10
push ebx
push ebx
push dword [edi + 4]
lea eax, [edi + 8]
push eax
push 0xc
pop edx
call fcn.1000a566
push eax
lea ecx, [ebp - 0x1124]
call fcn.1000859a
lea eax, [ebp - 0xd24]
add esp, 0x14
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x1000207a
sub eax, ecx
jne 0x100020a3
lea eax, [ebp - 0x924]
push eax
push 0x1002d590
lea eax, [ebp - 0x50c]
push esi
push eax
call fcn.10014b26
add esp, 0x10
jmp 0x100020c6
lea eax, [ebp - 0xd24]
push eax
lea eax, [ebp - 0x924]
push eax
push 0x1002d5a0
lea eax, [ebp - 0x50c]
push esi
push eax
call fcn.10014b26
add esp, 0x14
xor edx, edx
push ebx
inc edx
call fcn.1000a521
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 0x1a
pop edx
call fcn.1000a566
push eax
push dword [0x1003e098]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
push eax
mov dword [ebp - 0x1128], eax
call fcn.10001ccb
lea eax, [ebp - 0x1124]
pop ecx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10002121
push dword [ebp - 0x520]
sub eax, esi
push dword [ebp - 0x524]
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.10008cc5
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 0x10002189
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
or eax, 0xffffffff
jmp 0x10002261
lea eax, [ebp - 0x10c]
push eax
call fcn.10014fbf
pop ecx
cmp eax, 0xc8
je 0x100021b3
or ebx, 0xffffffff
push dword [ebp - 0x1128]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, ebx
jmp 0x10002261
push ebx
push ebx
lea eax, [ebp - 0x1130]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
je 0x10002258
cmp dword [ebp - 0x1130], ebx
jbe 0x10002258
mov edi, dword [ebp + 0x10]
cmp dword [ebp - 0x1130], edi
jae 0x10002258
cmp edi, ebx
jbe 0x100021a0
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 0x10002229
cmp dword [ebp - 0x112c], ebx
je 0x10002229
add esi, dword [ebp - 0x112c]
mov dword [ebp - 0x1138], esi
cmp esi, edi
jb 0x100021e6
cmp esi, edi
jae 0x100021a0
push dword [ebp - 0x1128]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
push 0xb
pop edx
call fcn.1000a566
mov ebx, dword [ebp - 0x1134]
push eax
mov ecx, esi
call fcn.10008aae
pop ecx
pop ecx
jmp 0x10002261
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.100148e0
leave
ret