Function at 0x140087650
Capabilities:
Create http request
Query remote server for available data
Read data from internet
Receive data

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x40]
sub rsp, 0x140
mov rax, qword [0x1400fec00]
xor rax, rsp
mov qword [rbp + 0x30], rax
mov rbx, rdx
mov r14, rcx
mov qword [rsp + 0x40], rcx
xor esi, esi
mov dword [rsp + 0x30], esi
mov ecx, 4
mov rax, qword gs:[0x58]
mov rax, qword [rax]
lea rdi, [0x1401065e0]
mov eax, dword [rcx + rax]
cmp dword [0x1401064f0], eax
jle 0x140087864
lea rcx, [0x1401064f0]
call fcn.1400b4020
cmp dword [0x1401064f0], 0xffffffff
jne 0x140087864
movabs rax, 0x5f7c99896656aab4
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x60], rax
movabs rax, 0x3402f1a320ee973a
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x68], rax
movabs rax, 0xf05908929fcc8beb
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x70], rax
movabs rax, 0x63e31f3ca3aa18f0
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x78], rax
movabs rax, 0xfcdc9965c7b50af6
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rbp - 0x80], rax
movabs rcx, 0xffac6f98df248542
mov qword [rsp + 0x48], rcx
mov rax, qword [rsp + 0x48]
mov qword [rbp - 0x78], rax
movabs rax, 0x7f46edf90335c9f5
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rbp - 0x50], rax
movabs rax, 0x5976998c5496f24e
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rbp - 0x48], rax
movabs rax, 0xdf2d70f7ebecb087
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rbp - 0x40], rax
movabs rax, 0x49c32452cacb7480
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rbp - 0x38], rax
movabs rax, 0xfcdc9965c7b520d9
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rbp - 0x30], rax
mov qword [rsp + 0x48], rcx
mov rax, qword [rsp + 0x48]
mov qword [rbp - 0x28], rax
movdqa xmm0, xmmword [rsp + 0x60]
xorps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rsp + 0x60], xmm0
movdqa xmm1, xmmword [rsp + 0x70]
xorps xmm1, xmmword [rbp - 0x40]
movdqa xmmword [rsp + 0x70], xmm1
movdqa xmm0, xmmword [rbp - 0x80]
xorps xmm0, xmmword [rbp - 0x30]
movdqa xmmword [rbp - 0x80], xmm0
xorps xmm0, xmm0
movups xmmword [0x1401065e0], xmm0
xorps xmm1, xmm1
movdqu xmmword [0x1401065f0], xmm1
lea rax, [rsp + 0x60]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x140087834
lea rdx, [rsp + 0x60]
mov rcx, rdi
call fcn.14002fe70
lea rcx, [0x1400d3d80]
call fcn.1400b43cc
nop
lea rcx, [0x1401064f0]
call fcn.1400b3fb4
mov qword [rsp + 0x48], rsi
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.WININET.dll_InternetOpenA]
mov r15, rax
mov qword [rsp + 0x48], rax
test rax, rax
jne 0x1400878ad
xorps xmm0, xmm0
movups xmmword [r14], xmm0
mov qword [r14 + 0x10], rsi
mov qword [r14 + 0x18], send
mov byte [r14], al
mov dword [rsp + 0x30], 1
jmp 0x140087c5f
mov qword [rbp - 0x60], rsi
cmp qword [0x1401065f8], 0xf
cmova rdi, qword [0x1401065e0]
cmp qword [rbx + 0x18], 0xf
jbe 0x1400878cb
mov rbx, qword [rbx]
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], 0x84880100
mov r9d, dword [0x1401065f0]
mov r8, rdi
mov rdx, rbx
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov r12, rax
mov qword [rbp - 0x60], rax
test rax, rax
jne 0x140087920
xorps xmm0, xmm0
movups xmmword [r14], xmm0
mov qword [r14 + 0x10], rsi
mov qword [r14 + 0x18], send
mov byte [r14], al
mov dword [rsp + 0x30], 1
mov rcx, r15
jmp 0x140087c56
mov qword [rbp - 0x20], rsi
mov dword [rbp - 0x70], 8
mov qword [rsp + 0x20], rsi
lea r9, [rbp - 0x70]
lea r8, [rbp - 0x20]
mov edx, reloc.WS2_32.dll_send
mov rcx, r12
call qword [sym.imp.WININET.dll_HttpQueryInfoW]
xorps xmm0, xmm0
test eax, eax
jne 0x14008797d
movups xmmword [r14], xmm0
mov qword [r14 + 0x10], rsi
mov qword [r14 + 0x18], send
mov byte [r14], al
mov dword [rsp + 0x30], 1
mov rcx, r12
mov rax, qword [0x1400e4fd8]
call rax
nop
mov rcx, r15
jmp 0x140087c56
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], rsi
mov r15, rsi
mov qword [rsp + 0x70], rsi
mov r13d, send
mov qword [rsp + 0x78], r13
mov byte [rsp + 0x60], r15b
movups xmmword [rbp - 0x10], xmm0
movups xmmword [rbp], xmm0
movups xmmword [rbp + 0x10], xmm0
movups xmmword [rbp + 0x20], xmm0
mov dword [rbp - 0x6c], 0x40
mov qword [rsp + 0x20], rsi
lea r9, [rbp - 0x6c]
lea r8, [rbp - 0x10]
mov edx, 5
mov rcx, r12
call qword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x140087a06
xor edx, edx
mov r8d, 0xa
lea rcx, [rbp - 0x10]
call fcn.14009bf20
mov edx, eax
cmp rdx, r13
jbe 0x140087a06
lea rcx, [rsp + 0x60]
call fcn.140044e60
mov qword [rsp + 0x70], rsi
mov r13, qword [rsp + 0x78]
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x50]
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
je 0x140087c03
movzx ebx, byte [rsp + 0x34]
nop word [rax + rax]
mov eax, dword [rsp + 0x50]
test eax, eax
je 0x140087c03
xorps xmm0, xmm0
xor ecx, ecx
movups xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x40], rcx
mov edi, eax
movdqu xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x40], rsi
test eax, eax
je 0x140087ac9
cmp rax, 0x1000
jb 0x140087a8c
lea rcx, [rax + 0x27]
cmp rcx, rax
jbe 0x140087c8f
call fcn.1400b4098
mov rcx, rax
test rax, rax
je 0x140087c89
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x140087a94
mov rcx, rdi
call fcn.1400b4098
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rax
add rax, rdi
mov qword [rbp - 0x40], rax
lea rax, [rbp - 0x50]
mov qword [rsp + 0x38], rax
mov rcx, qword [rbp - 0x50]
lea rsi, [rdi + rcx]
mov r8, rdi
xor edx, edx
call fcn.1400c1030
mov qword [rbp - 0x48], rsi
xor esi, esi
mov qword [rsp + 0x38], rsi
lea r9, [rbp - 0x68]
mov r8d, dword [rsp + 0x50]
mov rdx, qword [rbp - 0x50]
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x140087bbd
mov eax, dword [rbp - 0x68]
test eax, eax
je 0x140087bbd
mov esi, eax
mov rax, r13
sub rax, r15
cmp rsi, rax
ja 0x140087b2f
lea rax, [rsi + r15]
mov qword [rsp + 0x70], rax
lea rdi, [rsp + 0x60]
cmp r13, 0xf
cmova rdi, qword [rsp + 0x60]
add rdi, r15
mov r8d, esi
mov rdx, qword [rbp - 0x50]
mov rcx, rdi
call fcn.1400c0990
mov byte [rsi + rdi], 0
jmp 0x140087b4a
mov qword [rsp + 0x20], rsi
mov r9, qword [rbp - 0x50]
movzx r8d, bl
mov rdx, rsi
lea rcx, [rsp + 0x60]
call fcn.140045830
nop
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x140087b94
mov rdx, qword [rbp - 0x40]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140087b7f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140087c89
call fcn.1400b3f70
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x50], xmm0
xor esi, esi
mov qword [rbp - 0x40], rsi
jmp 0x140087b96
xor esi, esi
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x50]
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
je 0x140087c03
mov r13, qword [rsp + 0x78]
mov r15, qword [rsp + 0x70]
jmp 0x140087a30
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x140087c03
mov rdx, qword [rbp - 0x40]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140087bf2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140087c89
call fcn.1400b3f70
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x40], rsi
movups xmm0, xmmword [rsp + 0x60]
movups xmmword [r14], xmm0
movups xmm1, xmmword [rsp + 0x70]
movups xmmword [r14 + 0x10], xmm1
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], send
mov byte [rsp + 0x60], 0
mov dword [rsp + 0x30], 1
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], send
mov byte [rsp + 0x60], 0
mov rcx, r12
mov rax, qword [0x1400e4fd8]
call rax
nop
mov rcx, qword [rsp + 0x48]
mov rax, qword [0x1400e4fd8]
call rax
mov rax, r14
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.1400b3f50
mov rbx, qword [rsp + 0x190]
add rsp, 0x140
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.140097c38
int3
call fcn.14002b320
int3