Function at 0x140008020
Capabilities:
Check http status code
Create http request
Query remote server for available data
Read data from internet
Receive data

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x200
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x28], 0xfffffffffffffffe
mov qword [rbp + 0x228], rbx
mov rax, qword [0x140054100]
xor rax, rbp
mov qword [rbp + 0x1c0], rax
mov rbx, r8
mov rsi, rcx
mov qword [rbp + 0x20], rcx
xor r15d, r15d
mov dword [rbp + 8], r15d
mov qword [rcx], r15
mov dword [rbp + 8], 1
mov rcx, rdx
call qword [0x140041430]
mov r14, rax
test rax, rax
je 0x1400082c7
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetOpenW]
mov r13, rax
test rax, rax
je 0x1400082be
mov qword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0x84000000
xor r9d, r9d
xor r8d, r8d
mov rdx, r14
mov rcx, rax
call qword [sym.imp.WININET.dll_InternetOpenUrlW]
mov r12, rax
test rax, rax
je 0x1400082b5
mov dword [rbp + 4], 0xc8
mov dword [rbp], r15d
mov qword [rsp + 0x20], r15
lea r9, [rbp + 4]
lea r8, [rbp + 0x30]
lea edx, [r15 + 0x13]
mov rcx, rax
call qword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x1400082ac
lea rcx, [rbp + 0x30]
call fcn.140026f88
cmp eax, 0xc8
jne 0x1400082ac
movabs rbx, 0xffffffffffffff0
nop word [rax + rax]
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 4]
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
je 0x1400082ac
mov ecx, dword [rbp + 4]
inc ecx
call fcn.14002660c
mov rdi, rax
lea r9, [rbp]
mov r8d, dword [rbp + 4]
mov rdx, rax
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x14000828a
mov eax, dword [rbp]
mov byte [rax + rdi], 0
cmp dword [rbp], 0
je 0x14000829a
mov rax, qword [rsi]
test rax, rax
je 0x14000819f
mov rcx, qword [rax]
test rcx, rcx
je 0x14000819f
call qword [0x140041438]
test eax, eax
jne 0x1400081d4
movzx ebx, byte [rdi]
test bx, bx
je 0x1400081ca
movzx ecx, bx
call fcn.140026e04
test eax, eax
jne 0x1400081bf
movzx ecx, bx
call fcn.140026df8
test eax, eax
je 0x1400081ca
inc rdi
movzx ebx, byte [rdi]
test bx, bx
jne 0x1400081a7
movabs rbx, 0xffffffffffffff0
test rdi, rdi
jne 0x1400081de
mov rax, r15
jmp 0x14000822d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
lea r8d, [rax + 1]
cmp r8d, 0x3fffffff
jle 0x1400081f9
mov rax, r15
jmp 0x14000822d
movsxd rax, r8d
add rax, rax
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x14000820b
mov rcx, rbx
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.14002a6b0
sub rsp, rcx
lea rcx, [rsp + 0x30]
mov r9d, 3
mov rdx, rdi
call fcn.140004090
mov rdx, rax
lea rcx, [rbp + 0x10]
call fcn.140007700
nop
mov rdx, rax
mov rcx, rsi
call fcn.140007960
nop
mov rbx, qword [rbp + 0x10]
test rbx, rbx
je 0x140008290
or eax, 0xffffffff
lock xadd dword [rbx + 0x10], eax
dec eax
jne 0x140008284
test rbx, rbx
je 0x140008284
mov rcx, qword [rbx]
test rcx, rcx
je 0x14000826e
call qword [0x140041470]
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14000827c
call fcn.1400278f8
mov rcx, rbx
call fcn.140026a84
mov qword [rbp + 0x10], r15
jmp 0x140008290
mov dword [rbp], r15d
jmp 0x14000829a
movabs rbx, 0xffffffffffffff0
mov rcx, rdi
call fcn.1400278f8
cmp dword [rbp], 0
jne 0x140008130
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r13
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r14
call qword [0x140041470]
mov rax, rsi
mov rcx, qword [rbp + 0x1c0]
xor rcx, rbp
call fcn.140026aa0
mov rbx, qword [rbp + 0x228]
lea rsp, [rbp + 0x1d0]
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret