Function at 0x10001e30
Capabilities:
Connect to http server
Create http request
Get number of processors
Query remote server for available data
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push 0xffffffffffffffff
push 0x10021066
mov eax, dword fs:[0]
push eax
sub esp, 0xe0
mov eax, dword [0x100280f0]
xor eax, esp
mov dword [esp + 0xd8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100280f0]
xor eax, esp
push eax
lea eax, [esp + 0xf4]
mov dword fs:[0], eax
mov eax, dword [esp + 0x104]
mov edi, edx
mov dword [esp + 0x34], eax
mov dword [esp + 0x20], edi
mov dword [esp + 0x38], ecx
xor ebx, ebx
push 0x7f
lea edx, [esp + 0x71]
push ebx
mov dword [esp + 0x104], 1
push edx
mov dword [esp + 0x30], ebx
mov byte [esp + 0x78], bl
call fcn.1000f430
add esp, 0xc
push ebx
push ebx
push ebx
push ebx
push ebx
mov dword [esp + 0x58], 0x80
mov dword [esp + 0x5c], str.Accept:_
mov dword [esp + 0x60], ebx
call dword [sym.imp.WININET.dll_InternetOpenW]
cmp dword [esp + 0x120], 0x10
mov esi, eax
mov eax, dword [esp + 0x10c]
mov dword [esp + 0x28], esi
jae 0x10001ee2
lea eax, [esp + 0x10c]
mov ecx, dword [esp + 0x144]
push ebx
push connect
push 3
push 0x10024592
push 0x10024592
push ecx
push eax
push esi
call dword [sym.imp.WININET.dll_InternetConnectA]
mov ebp, eax
cmp ebp, ebx
mov dword [esp + 0x40], ebp
jne 0x10001f82
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp edi, ebx
je 0x10001f2b
push 4
push 0x100245f4
push ebx
push 3
call edi
mov esi, 0x10
cmp dword [esp + 0x120], esi
jb 0x10001f49
mov edx, dword [esp + 0x10c]
push edx
call fcn.1000dcfa
add esp, 4
cmp dword [esp + 0x13c], esi
mov dword [esp + 0x120], 0xf
mov dword [esp + 0x11c], ebx
mov byte [esp + 0x10c], bl
jb 0x10001f7b
mov eax, dword [esp + 0x128]
push eax
call fcn.1000dcfa
add esp, 4
xor eax, eax
jmp 0x10002313
cmp dword [esp + 0x13c], 0x10
mov eax, dword [esp + 0x128]
jae 0x10001f9a
lea eax, [esp + 0x128]
push ebx
push 0x84400000
lea ecx, [esp + 0x50]
push ecx
push ebx
push str.HTTP_1.1
push eax
push ebx
push ebp
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov esi, eax
cmp esi, ebx
mov dword [esp + 0x18], esi
jne 0x10002043
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebp
call esi
mov edx, dword [esp + 0x28]
push edx
call esi
cmp edi, ebx
je 0x10001fe8
push 4
push 0x100245f4
push ebx
push 3
call edi
mov esi, 0x10
cmp dword [esp + 0x120], esi
jb 0x10002006
mov eax, dword [esp + 0x10c]
push eax
call fcn.1000dcfa
add esp, 4
cmp dword [esp + 0x13c], esi
mov dword [esp + 0x120], 0xf
mov dword [esp + 0x11c], ebx
mov byte [esp + 0x10c], bl
jb 0x10001f7b
mov ecx, dword [esp + 0x128]
push ecx
call fcn.1000dcfa
add esp, 4
xor eax, eax
jmp 0x10002313
push ebx
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x10002066
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
jmp 0x10001fce
push 4
lea edx, [esp + 0x144]
push edx
push 6
push esi
call dword [sym.imp.WININET.dll_InternetSetOptionA]
push ebx
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x74]
push ecx
push 5
push esi
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x10002286
lea edx, [esp + 0x6c]
push edx
xor ebp, ebp
call fcn.1000dcff
add esp, 4
push 0x10024592
lea ecx, [esp + 0x54]
mov dword [esp + 0x28], eax
call fcn.10001360
mov ecx, dword [esp + 0x34]
add ecx, 0xc
lea eax, [esp + 0x50]
mov byte [esp + 0xfc], 2
call fcn.10002590
lea ecx, [esp + 0x50]
mov byte [esp + 0xfc], 1
call fcn.100013a0
cmp edi, ebx
je 0x100020ef
push 4
push 0x10024600
push ebx
push 1
call edi
push ebx
push ebx
lea eax, [esp + 0x38]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
je 0x10002275
jmp 0x10002110
mov edi, dword [esp + 0x30]
cmp edi, ebx
jbe 0x1000226d
mov byte [esp + 0x1f], bl
lea ebx, [esp + 0x1f]
lea esi, [esp + 0x50]
call fcn.10002600
mov byte [esp + 0xfc], 3
mov edi, dword [esp + 0x54]
test edi, edi
mov esi, dword [esp + 0x58]
je 0x10002147
mov ecx, esi
sub ecx, edi
jne 0x1000214c
call fcn.1000e205
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x2c]
push edx
push eax
push edi
push ecx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x10002250
cmp dword [esp + 0x2c], 0
je 0x10002250
test edi, edi
je 0x1000217d
sub esi, edi
jne 0x10002182
call fcn.1000e205
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x2c]
push edi
add edx, 8
push edx
call fcn.100023f0
add ebp, dword [esp + 0x2c]
mov ebx, dword [esp + 0x24]
mov eax, ebp
imul eax, eax, 0x64
xor edx, edx
div ebx
mov esi, eax
cmp esi, dword [0x100323e4]
je 0x100021d3
cmp esi, 0x64
jbe 0x100021b9
mov esi, 0x64
mov eax, dword [esp + 0x20]
test eax, eax
je 0x100021cd
push 3
push 0x1002460c
push esi
push 1
call eax
mov dword [0x100323e4], esi
mov esi, dword [esp + 0x38]
test esi, esi
je 0x1000220b
mov eax, dword [esi]
mov edx, dword [eax]
mov ecx, esi
call edx
test al, al
jne 0x10002256
cmp dword [esp + 0x13c], 0x10
mov eax, dword [esp + 0x128]
jae 0x100021ff
lea eax, [esp + 0x128]
mov edx, dword [esi]
push ebp
push ebx
push eax
mov eax, dword [edx + 4]
mov ecx, esi
call eax
cmp ebp, ebx
mov byte [esp + 0xfc], 1
jae 0x1000225e
test edi, edi
je 0x10002224
push edi
call fcn.1000dcfa
add esp, 4
mov edx, dword [esp + 0x18]
xor eax, eax
push eax
push eax
lea ecx, [esp + 0x38]
push ecx
push edx
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
xor ebx, ebx
test eax, eax
jne 0x10002110
jmp 0x1000226d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [esp + 0xfc], 1
test edi, edi
je 0x1000226b
push edi
call fcn.1000dcfa
add esp, 4
xor ebx, ebx
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x18]
xor eax, eax
cmp ebp, dword [esp + 0x24]
mov ebp, dword [esp + 0x40]
sete al
mov dword [esp + 0x24], eax
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push ebp
call esi
mov ecx, dword [esp + 0x28]
push ecx
call esi
mov ebp, dword [esp + 0x24]
cmp ebp, ebx
jne 0x100022b1
cmp edi, ebx
je 0x100022c1
push 4
push 0x100245f4
push ebx
push 3
jmp 0x100022bf
cmp edi, ebx
je 0x100022c1
push 4
push 0x10024614
push ebx
push 2
call edi
mov esi, 0x10
cmp dword [esp + 0x120], esi
jb 0x100022df
mov edx, dword [esp + 0x10c]
push edx
call fcn.1000dcfa
add esp, 4
cmp dword [esp + 0x13c], esi
mov dword [esp + 0x120], 0xf
mov dword [esp + 0x11c], ebx
mov byte [esp + 0x10c], bl
jb 0x10002311
mov eax, dword [esp + 0x128]
push eax
call fcn.1000dcfa
add esp, 4
mov eax, ebp
mov ecx, dword [esp + 0xf4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xd8]
xor ecx, esp
call fcn.1000dec6
add esp, 0xec
ret