Function at 0x140008a20
Capabilities:
Get http content length
Read data from internet
Receive data

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x148]
sub rsp, 0x210
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x14009f1b0]
xor rax, rsp
mov qword [rbp + 0x108], rax
mov r14, rdx
mov rdi, rcx
xor esi, esi
cmp qword [rcx + 0x180], rsi
jne 0x140008a72
xor al, al
jmp 0x140008f2f
mov r15d, 1
mov ecx, r15d
mov dword [rbp + 0x9c], ecx
mov qword [rbp + 0xe0], rsi
lea r12d, [r15 + 0xe]
mov qword [rbp + 0xe8], r12
mov byte [rbp + 0xd0], sil
mov rax, qword [rdi + 0x48]
mov rbx, qword [rax]
cmp rbx, rax
je 0x140008c2e
lea rsi, [rbx + 0x40]
test ecx, ecx
je 0x140008abb
and dword [rbp + 0x9c], 0
jmp 0x140008ad1
mov r8, r15
lea rdx, [0x140088c14]
lea rcx, [rbp + 0xd0]
call fcn.14001813c
lea r8, [0x140088658]
lea rdx, [rbx + 0x20]
lea rcx, [rsp + 0x60]
call fcn.14001b940
nop
mov r8, qword [rsi + 0x10]
cmp qword [rsi + 0x18], 0x10
jb 0x140008af5
mov rsi, qword [rsi]
mov rdx, rsi
mov rcx, rax
call fcn.14001813c
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x30], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x40], xmm1
xor esi, esi
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], r12
mov byte [rax], sil
lea rdx, [rsp + 0x30]
movq rcx, xmm0
movdqa xmm0, xmm1
psrldq xmm0, 8
movq rax, xmm0
cmp rax, 0x10
cmovae rdx, rcx
movq r8, xmm1
lea rcx, [rbp + 0xd0]
call fcn.14001813c
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x140008b8e
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140008b88
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140008f5f
call fcn.14004b054
nop
mov rdx, qword [rsp + 0x78]
cmp rdx, 0x10
jb 0x140008bcb
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140008bc6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140008f65
call fcn.14004b054
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], sil
je 0x140008bf3
mov rax, qword [rbx + 8]
jmp 0x140008be8
cmp rbx, qword [rax + 0x10]
jne 0x140008bee
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], sil
je 0x140008bdb
mov rbx, rax
jmp 0x140008c0e
mov rbx, rax
mov rcx, qword [rax]
cmp byte [rcx + 0x19], sil
jne 0x140008c0e
mov rbx, rcx
mov rax, qword [rcx]
mov rcx, rax
cmp byte [rax + 0x19], sil
je 0x140008bff
mov rax, qword [rdi + 0x48]
mov qword [rsp + 0x58], rax
cmp rbx, rax
je 0x140008c27
mov ecx, dword [rbp + 0x9c]
jmp 0x140008aaa
mov r12, qword [rbp + 0xe8]
mov dword [rdi + 0x168], r15d
mov rax, qword [r14 + 0x10]
cmp qword [r14 + 0x18], 0x10
jb 0x140008c43
mov r14, qword [r14]
lea rdx, [rbp + 0xd0]
cmp r12, 0x10
cmovae rdx, qword [rbp + 0xd0]
mov dword [rsp + 0x20], eax
mov r9, r14
mov r8d, dword [rbp + 0xe0]
mov rcx, qword [rdi + 0x180]
call qword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x140008cbd
lea r12, [rdi + 0x138]
mov ebx, 4
mov dword [rbp + 0xa0], ebx
mov dword [rbp + 0x9c], esi
mov dword [r12], esi
lea rax, [rbp + 0x9c]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0xa0]
mov r8, r12
mov edx, 0x20000013
mov rcx, qword [rdi + 0x180]
call qword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x140008cd1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi + 0x140], eax
mov r15b, sil
jmp 0x140008eef
lea r13, [rdi + 0x13c]
mov dword [rbp + 0xa8], ebx
mov dword [rbp + 0xa4], esi
mov dword [r13], esi
lea rax, [rbp + 0xa4]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0xa8]
mov r8, r13
mov edx, 0x20000005
mov rcx, qword [rdi + 0x180]
call qword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x140008d20
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi + 0x140], eax
lea rbx, [rdi + 0x148]
mov r8, rbx
mov rcx, rdi
call fcn.140009148
mov qword [rbp + 0xc8], rsi
cmp qword [rbx + 0x18], 0x10
jb 0x140008d43
mov rbx, qword [rbx]
lea rax, [rbp - 0x78]
mov qword [rbp - 0x80], rax
mov r8d, 3
mov rdx, rbx
lea rcx, [rbp - 0x80]
call fcn.140017e14
nop
mov rdx, qword [rbp - 0x80]
lea rcx, [rbp + 0xc8]
call fcn.140014a6c
nop
lea rax, [rbp - 0x78]
mov rcx, qword [rbp - 0x80]
cmp rcx, rax
je 0x140008d81
call fcn.14005af90
xor eax, eax
mov qword [rbp + 0xf0], rax
mov qword [rbp + 0xf8], rax
mov qword [rbp + 0x100], rax
mov ebx, 0x2800
mov edx, ebx
lea rcx, [rbp + 0xf0]
call fcn.140014838
nop
mov dword [rbp + 0x98], esi
mov r14d, esi
mov r8d, ebx
mov rsi, qword [rbp + 0xf0]
lea r9, [rbp + 0x98]
mov rdx, rsi
mov rcx, qword [rdi + 0x180]
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x140008e86
mov eax, dword [rbp + 0x98]
test eax, eax
je 0x140008e86
lea rbx, [rdi + 0x120]
lea edx, [r14 + rax]
mov rcx, rbx
call fcn.14001cb48
mov ecx, r14d
add rcx, qword [rbx]
mov r8d, dword [rbp + 0x98]
mov rdx, rsi
call fcn.14004cf60
add r14d, dword [rbp + 0x98]
mov rcx, qword [rdi + 0x1c0]
test rcx, rcx
je 0x140008e7b
mov eax, dword [r12]
mov dword [rbp + 0xb0], eax
mov eax, dword [r13]
mov dword [rbp + 0xb8], eax
mov rax, qword [rbp + 0xc8]
mov qword [rbp + 0x90], rax
mov dword [rbp + 0xc0], r14d
mov rax, qword [rcx]
lea rdx, [rbp + 0x90]
mov qword [rsp + 0x20], rdx
lea r9, [rbp + 0xb0]
lea r8, [rbp + 0xb8]
lea rdx, [rbp + 0xc0]
call qword [rax + 0x10]
test al, al
je 0x140008e86
mov r8d, 0x2800
jmp 0x140008dbf
mov dword [rdi + 0x168], 4
test rsi, rsi
je 0x140008ecd
mov rdx, qword [rbp + 0x100]
sub rdx, rsi
mov rax, rsi
cmp rdx, 0x1000
jb 0x140008ec4
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140008f6b
mov rcx, rsi
call fcn.14004b054
nop
mov rdx, qword [rbp + 0xc8]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140008eef
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rbp + 0xe8]
cmp rdx, 0x10
jb 0x140008f2c
inc rdx
mov rcx, qword [rbp + 0xd0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140008f27
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140008f59
call fcn.14004b054
mov al, r15b
mov rcx, qword [rbp + 0x108]
xor rcx, rsp
call fcn.14004b030
mov rbx, qword [rsp + 0x260]
add rsp, 0x210
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.14005adc4
nop
call fcn.14005adc4
nop
call fcn.14005adc4
nop
call fcn.14005adc4
int3