Function at 0x140007020
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 [0x140053100]
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 [0x140040430]
mov r14, rax
test rax, rax
je 0x1400072c7
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 0x1400072be
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 0x1400072b5
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 0x1400072ac
lea rcx, [rbp + 0x30]
call fcn.140025f88
cmp eax, 0xc8
jne 0x1400072ac
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 0x1400072ac
mov ecx, dword [rbp + 4]
inc ecx
call fcn.14002560c
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 0x14000728a
mov eax, dword [rbp]
mov byte [rax + rdi], 0
cmp dword [rbp], 0
je 0x14000729a
mov rax, qword [rsi]
test rax, rax
je 0x14000719f
mov rcx, qword [rax]
test rcx, rcx
je 0x14000719f
call qword [0x140040438]
test eax, eax
jne 0x1400071d4
movzx ebx, byte [rdi]
test bx, bx
je 0x1400071ca
movzx ecx, bx
call fcn.140025e04
test eax, eax
jne 0x1400071bf
movzx ecx, bx
call fcn.140025df8
test eax, eax
je 0x1400071ca
inc rdi
movzx ebx, byte [rdi]
test bx, bx
jne 0x1400071a7
movabs rbx, 0xffffffffffffff0
test rdi, rdi
jne 0x1400071de
mov rax, r15
jmp 0x14000722d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
lea r8d, [rax + 1]
cmp r8d, 0x3fffffff
jle 0x1400071f9
mov rax, r15
jmp 0x14000722d
movsxd rax, r8d
add rax, rax
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x14000720b
mov rcx, rbx
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1400296b0
sub rsp, rcx
lea rcx, [rsp + 0x30]
mov r9d, 3
mov rdx, rdi
call fcn.140003090
mov rdx, rax
lea rcx, [rbp + 0x10]
call fcn.140006700
nop
mov rdx, rax
mov rcx, rsi
call fcn.140006960
nop
mov rbx, qword [rbp + 0x10]
test rbx, rbx
je 0x140007290
or eax, 0xffffffff
lock xadd dword [rbx + 0x10], eax
dec eax
jne 0x140007284
test rbx, rbx
je 0x140007284
mov rcx, qword [rbx]
test rcx, rcx
je 0x14000726e
call qword [0x140040470]
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14000727c
call fcn.1400268f8
mov rcx, rbx
call fcn.140025a84
mov qword [rbp + 0x10], r15
jmp 0x140007290
mov dword [rbp], r15d
jmp 0x14000729a
movabs rbx, 0xffffffffffffff0
mov rcx, rdi
call fcn.1400268f8
cmp dword [rbp], 0
jne 0x140007130
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 [0x140040470]
mov rax, rsi
mov rcx, qword [rbp + 0x1c0]
xor rcx, rbp
call fcn.140025aa0
mov rbx, qword [rbp + 0x228]
lea rsp, [rbp + 0x1d0]
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret