Function at 0x10001ec0
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2940
call fcn.10009bf0
mov eax, dword [0x100360e4]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x291c], ecx
mov ecx, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x2918], ecx
xor ecx, ecx
push edi
mov dword [ebp - 0x2920], edx
mov dword [ebp - 0x2910], 0
mov dword [ebp - 0x290c], 1
mov dword [ebp - 0x2908], 3
mov dword [ebp - 0x2914], ecx
nop dword [eax + eax]
cmp dword [edx + 0x14], 0x10
mov eax, edx
jb 0x10001f2a
mov eax, dword [edx]
push 0
push 0
push 0
push dword [ebp + ecx*4 - 0x2910]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ebx, eax
mov dword [ebp - 0x2924], ebx
test ebx, ebx
je 0x100023ba
push 4
lea eax, [ebp - 0x2938]
mov dword [ebp - 0x2938], 0x1770
push eax
push 2
push ebx
call dword [sym.imp.WININET.dll_InternetSetOptionA]
cmp dword [esi + 0x14], 0x10
mov edi, esi
jb 0x10001f74
mov edi, dword [esi]
mov eax, dword [esi + 0x10]
cmp eax, 8
jb 0x10001fc9
lea ebx, [eax + edi]
lea eax, [ebx - 7]
sub eax, edi
push eax
push 0x68
push edi
call fcn.1000b080
mov ecx, eax
add esp, 0xc
test ecx, ecx
je 0x10001fc3
cmp dword [ecx], 0x70747468
jne 0x10001fab
cmp dword [ecx + 4], 0x2f2f3a73
je 0x10002034
inc ecx
lea eax, [ebx - 7]
sub eax, ecx
push eax
push 0x68
push ecx
call fcn.1000b080
mov ecx, eax
add esp, 0xc
test ecx, ecx
jne 0x10001f96
mov ebx, dword [ebp - 0x2924]
or ecx, 0xffffffff
cmp ecx, 0xffffffff
mov eax, 0x80ff9200
mov ecx, 0x807f9200
cmove eax, ecx
cmp dword [esi + 0x14], 0x10
mov ecx, esi
jb 0x10001fe6
mov ecx, dword [esi]
push 0
push eax
push 0
push 0
push ecx
push ebx
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov ebx, eax
mov dword [ebp - 0x2928], ebx
test ebx, ebx
jne 0x1000203e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x2924]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 0x2914]
inc ecx
mov dword [ebp - 0x2914], ecx
cmp ecx, 3
jge 0x100023ba
mov edx, dword [ebp - 0x2920]
jmp 0x10001f20
mov ebx, dword [ebp - 0x2924]
sub ecx, edi
jmp 0x10001fcc
push 0
lea eax, [ebp - 0x293c]
mov dword [ebp - 0x292c], 0
push eax
lea eax, [ebp - 0x292c]
mov dword [ebp - 0x293c], 4
push eax
push 0x13
push ebx
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
lea eax, [ebp - 0x292c]
push eax
call fcn.1000f7ae
mov edi, dword [ebp - 0x291c]
push 0x100
push 0
mov dword [edi], eax
lea eax, [ebp - 0x104]
push eax
call fcn.1000b6b0
add esp, 0x10
mov dword [ebp - 0x2940], 0x100
lea eax, [ebp - 0x2940]
push 0
push eax
lea eax, [ebp - 0x104]
push eax
push 1
push ebx
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
lea esi, [ebp - 0x104]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x100020c1
sub esi, ecx
mov ecx, dword [edi + 0x18]
mov dword [ebp - 0x291c], ecx
cmp esi, ecx
ja 0x100020ff
lea ebx, [edi + 4]
cmp ecx, 0x10
jb 0x100020e2
mov ebx, dword [edi + 4]
push esi
lea eax, [ebp - 0x104]
mov dword [edi + 0x14], esi
push eax
push ebx
call fcn.1000b130
add esp, 0xc
mov byte [ebx + esi], 0
jmp 0x100021ac
cmp esi, 0x7fffffff
ja 0x100023d0
mov ebx, esi
or ebx, 0xf
cmp ebx, 0x7fffffff
jbe 0x1000211f
mov ebx, 0x7fffffff
jmp 0x1000213d
mov edx, ecx
mov eax, 0x7fffffff
shr edx, 1
sub eax, edx
cmp ecx, eax
jbe 0x10002135
mov ebx, 0x7fffffff
jmp 0x1000213d
lea eax, [edx + ecx]
cmp ebx, eax
cmovb ebx, eax
lea eax, [ebx + 1]
push eax
lea ecx, [edi + 4]
call fcn.10002b80
mov dword [ebp - 0x2920], eax
lea eax, [ebp - 0x104]
push esi
mov dword [edi + 0x18], ebx
mov ebx, dword [ebp - 0x2920]
push eax
push ebx
mov dword [edi + 0x14], esi
call fcn.1000b130
mov eax, dword [ebp - 0x291c]
add esp, 0xc
mov byte [ebx + esi], 0
cmp eax, 0x10
jb 0x100021a9
lea ecx, [eax + 1]
mov eax, dword [edi + 4]
cmp ecx, 0x1000
jb 0x1000219f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100023d5
mov eax, edx
push ecx
push eax
call fcn.10009b96
add esp, 8
mov dword [edi + 4], ebx
push 0x2800
lea eax, [ebp - 0x2904]
push 0
push eax
call fcn.1000b6b0
add esp, 0xc
mov dword [ebp - 0x2914], 0
lea eax, [ebp - 0x2914]
push eax
push 0x2800
lea eax, [ebp - 0x2904]
push eax
push dword [ebp - 0x2928]
call dword [sym.imp.WININET.dll_InternetReadFile]
mov edi, dword [ebp - 0x2914]
test edi, edi
je 0x1000238d
mov esi, dword [ebp - 0x2918]
nop
mov ecx, dword [esi + 0x14]
mov eax, ecx
mov ebx, dword [esi + 0x10]
sub eax, ebx
mov dword [ebp - 0x2930], ecx
cmp edi, eax
ja 0x10002246
lea eax, [ebx + edi]
mov dword [esi + 0x10], eax
mov eax, esi
cmp ecx, 0x10
jb 0x10002223
mov eax, dword [esi]
lea esi, [eax + ebx]
push edi
lea eax, [ebp - 0x2904]
push eax
push esi
call fcn.1000b130
mov byte [edi + esi], 0
add esp, 0xc
mov esi, dword [ebp - 0x2918]
jmp 0x10002356
mov eax, 0x7fffffff
sub eax, ebx
cmp eax, edi
jb 0x100023d0
lea esi, [edi + ebx]
or esi, 0xf
cmp esi, 0x7fffffff
jbe 0x1000226a
mov esi, 0x7fffffff
jmp 0x10002288
mov edx, ecx
mov eax, 0x7fffffff
shr edx, 1
sub eax, edx
cmp ecx, eax
jbe 0x10002280
mov esi, 0x7fffffff
jmp 0x10002288
lea eax, [edx + ecx]
cmp esi, eax
cmovb esi, eax
mov ecx, dword [ebp - 0x2918]
lea eax, [esi + 1]
push eax
call fcn.10002b80
mov ecx, dword [ebp - 0x2918]
lea edx, [edi + ebx]
mov dword [ebp - 0x2920], eax
push ebx
mov dword [ecx + 0x10], edx
lea edx, [eax + ebx]
mov dword [ebp - 0x2934], edx
add edx, edi
cmp dword [ebp - 0x2930], 0x10
mov dword [ecx + 0x14], esi
mov dword [ebp - 0x291c], edx
jb 0x10002326
mov esi, dword [ecx]
push esi
push eax
call fcn.1000b130
push edi
lea eax, [ebp - 0x2904]
push eax
push dword [ebp - 0x2934]
call fcn.1000b130
mov eax, dword [ebp - 0x291c]
add esp, 0x18
mov ecx, dword [ebp - 0x2930]
inc ecx
mov byte [eax], 0
cmp ecx, 0x1000
jb 0x10002314
mov edx, dword [esi - 4]
add ecx, 0x23
sub esi, edx
lea eax, [esi - 4]
cmp eax, 0x1f
ja 0x100023d5
mov esi, edx
push ecx
push esi
call fcn.10009b96
mov esi, dword [ebp - 0x2918]
add esp, 8
jmp 0x1000234e
mov esi, ecx
push esi
push eax
call fcn.1000b130
push edi
lea eax, [ebp - 0x2904]
push eax
push dword [ebp - 0x2934]
call fcn.1000b130
mov eax, dword [ebp - 0x291c]
add esp, 0x18
mov byte [eax], 0
mov eax, dword [ebp - 0x2920]
mov dword [esi], eax
lea eax, [ebp - 0x2914]
mov dword [ebp - 0x2914], 0
push eax
push 0x2800
lea eax, [ebp - 0x2904]
push eax
push dword [ebp - 0x2928]
call dword [sym.imp.WININET.dll_InternetReadFile]
mov edi, dword [ebp - 0x2914]
test edi, edi
jne 0x10002200
push dword [ebp - 0x2928]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [ebp - 0x2924]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10009ba4
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10009ba4
mov esp, ebp
pop ebp
ret 0xc
call fcn.10002b60
call fcn.1000ed4f
int3