Function at 0x1001fac0
Capabilities:
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push 0xffffffffffffffff
push 0x1006f198
mov eax, dword fs:[0]
push eax
sub esp, 0x128
mov eax, dword [0x1008ab54]
xor eax, esp
mov dword [esp + 0x124], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1008ab54]
xor eax, esp
push eax
lea eax, [esp + 0x13c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x14c]
mov esi, ecx
lea ecx, [esp + 0x24]
push ecx
mov ecx, 0x10077eb2
mov dword [esp + 0x30], eax
call fcn.100038c0
lea edx, [esp + 0x14]
xor ebx, ebx
push edx
mov ecx, 0x10077eb2
mov dword [esp + 0x148], ebx
call fcn.100038c0
lea eax, [esp + 0x18]
push eax
mov ecx, 0x10077eb2
mov byte [esp + 0x148], 1
call fcn.100038c0
lea ecx, [esp + 0x1c]
push ecx
mov ecx, 0x10077eb2
mov byte [esp + 0x148], 2
call fcn.100038c0
mov byte [esp + 0x144], 3
mov eax, dword [esi]
mov edi, dword [eax - 0xc]
cmp edi, ebx
jl 0x1001fbd9
push str.http:__
push eax
call fcn.10049be9
add esp, 8
cmp eax, ebx
je 0x1001fbd9
sub eax, dword [esi]
sar eax, 1
mov ecx, eax
cmp ecx, 0xffffffff
je 0x1001fbd9
lea edx, [esp + 0x20]
mov eax, edi
sub eax, ecx
push edx
sub eax, 7
push esi
call fcn.1001ffe0
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x148], 4
call fcn.1000d4b0
mov byte [esp + 0x144], 3
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1001fbed
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x1001fbed
mov ecx, dword [esi]
push ecx
push 0x10079a6c
lea edi, [esp + 0x1c]
call fcn.10002190
add esp, 8
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], ebx
jle 0x1001fcbd
push 0x2f
push eax
call fcn.1004b126
add esp, 8
cmp eax, ebx
je 0x1001fcbd
sub eax, dword [esp + 0x14]
sar eax, 1
mov esi, eax
cmp esi, 0xffffffff
je 0x1001fcbd
lea edx, [esp + 0x14]
push edx
lea edi, [esp + 0x24]
call fcn.10008ba0
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x148], 5
call fcn.1000d4b0
mov byte [esp + 0x144], 3
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1001fc66
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx - 0xc]
lea edx, [esp + 0x20]
sub eax, esi
push edx
lea ecx, [esp + 0x18]
sub eax, 1
push ecx
call fcn.1001ffe0
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x148], 6
call fcn.1000d4b0
mov byte [esp + 0x144], 3
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1001fcd9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x1001fcd9
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x1c]
call fcn.1000d4b0
push 0x10077eb2
lea edi, [esp + 0x20]
call fcn.10003bc0
push ebx
push ebx
push ebx
push ebx
push str.TTS_TTK_Application
call dword [sym.imp.WININET.dll_InternetOpenW]
mov esi, eax
cmp esi, ebx
jne 0x1001fd9c
mov byte [esp + 0x144], 2
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
or ecx, 0xffffffff
lea edx, [eax + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1001fd1a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x144], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1001fd42
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x144], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1001fd6a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x144], 0xffffffff
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1001fd95
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x1001ffab
mov eax, dword [esp + 0x18]
mov edi, 1
cmp dword [eax - 4], edi
jle 0x1001fdbb
mov ecx, dword [eax - 0xc]
push ecx
lea ecx, [esp + 0x1c]
call fcn.10001bc0
mov eax, dword [esp + 0x18]
push ebx
push ebx
push 3
push ebx
push ebx
push 0x50
push eax
push esi
call dword [sym.imp.WININET.dll_InternetConnectW]
mov esi, eax
cmp esi, ebx
je 0x1001fcf2
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x30], 0x1007a690
mov dword [esp + 0x34], ebx
cmp dword [eax - 4], edi
jle 0x1001fdfb
mov ecx, dword [eax - 0xc]
push ecx
lea ecx, [esp + 0x20]
call fcn.10001bc0
mov eax, dword [esp + 0x1c]
push ebx
push 0x4000000
lea edx, [esp + 0x38]
push edx
push ebx
push ebx
push eax
push 0x1007a698
push esi
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov ebp, eax
cmp ebp, ebx
jne 0x1001fe3c
mov byte [esp + 0x144], 2
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x1001fd0e
push ebx
push ebx
push ebx
push ebx
push ebp
call dword [sym.imp.WININET.dll_HttpSendRequestW]
cmp eax, ebx
je 0x1001fe1b
push 0xff
lea ecx, [esp + 0x3d]
push ebx
push ecx
mov byte [esp + 0x44], 0
call fcn.1004b150
mov ebx, dword [sym.imp.WININET.dll_InternetReadFile]
add esp, 0xc
mov dword [esp + 0x28], 0xffffffff
cmp dword [esp + 0x28], 0
je 0x1001ff03
push pe_nt_image_headers32
lea edx, [esp + 0x3c]
push 0
push edx
call fcn.1004b150
add esp, 0xc
lea eax, [esp + 0x28]
push eax
push 0xff
lea ecx, [esp + 0x40]
push ecx
push ebp
call ebx
mov edx, dword [esp + 0x28]
push 0x1009087c
mov edi, eax
push edx
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x2c]
call fcn.10020060
mov ecx, dword [esp + 0x2c]
mov byte [esp + 0x144], 7
mov esi, dword [esp + 0x20]
mov eax, dword [esi - 0xc]
push eax
push esi
push ecx
call fcn.10008280
lea eax, [esi - 0x10]
mov byte [esp + 0x144], 3
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1001fefb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test edi, edi
jne 0x1001fe71
mov byte [esp + 0x144], 2
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1001ff2b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x144], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1001ff53
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x144], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1001ff7b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x144], 0xffffffff
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1001ffa6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x13c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x124]
xor ecx, esp
call fcn.10048e2f
add esp, 0x134
ret