Function at 0x7ff698f50580
Capabilities:
Create http request
Read data from internet
Receive data
Reference http user-agent string

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x7d0]
sub rsp, 0x8d0
mov rax, qword [0x7ff69902b080]
xor rax, rsp
mov qword [rbp + 0x7c0], rax
mov rbx, rdx
mov qword [rbp - 0x80], rcx
mov qword [rbp - 0x38], rcx
mov dword [rbp - 0x38], 1
xor r13d, r13d
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
lea edx, [r13 + 1]
lea rcx, [0x7ff699013378]
call qword [sym.imp.wininet.dll_InternetOpenA]
mov r12, rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
mov edi, r13d
mov qword [rbp - 0x20], r13
mov r14d, 0xf
mov qword [rbp - 0x18], r14
mov byte [rbp - 0x30], dil
test rax, rax
je 0x7ff698f50867
cmp qword [rbx + 0x18], r14
jbe 0x7ff698f50612
mov rbx, qword [rbx]
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, r12
call qword [sym.imp.wininet.dll_InternetOpenUrlA]
mov r15, rax
test rax, rax
je 0x7ff698f50867
movzx ebx, byte [rsp + 0x30]
nop
lea r9, [rbp - 0x38]
mov r8d, 0x7d0
lea rdx, [rbp - 0x10]
mov rcx, r15
call qword [sym.imp.wininet.dll_InternetReadFile]
mov esi, dword [rbp - 0x38]
mov rax, r14
sub rax, rdi
cmp rsi, rax
ja 0x7ff698f50692
lea rax, [rdi + rsi]
mov qword [rbp - 0x20], rax
lea rax, [rbp - 0x30]
cmp r14, 0xf
cmova rax, qword [rbp - 0x30]
add rdi, rax
mov r8d, esi
lea rdx, [rbp - 0x10]
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy_1
mov byte [rdi + rsi], 0
jmp 0x7ff698f506ab
mov qword [rsp + 0x20], rsi
lea r9, [rbp - 0x10]
movzx r8d, bl
mov rdx, rsi
lea rcx, [rbp - 0x30]
call fcn.7ff698f3ffe0
xor edx, edx
mov r8d, 0x7d0
lea rcx, [rbp - 0x10]
call sub.VCRUNTIME140.dll_memset
cmp dword [rbp - 0x38], 0
je 0x7ff698f506cf
mov r14, qword [rbp - 0x18]
mov rdi, qword [rbp - 0x20]
jmp 0x7ff698f50640
mov rcx, r12
call qword [sym.imp.wininet.dll_InternetCloseHandle]
mov rcx, r15
call qword [sym.imp.wininet.dll_InternetCloseHandle]
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x50], r13
mov r8d, 2
lea rdx, [0x7ff698ffe814]
lea rcx, [rsp + 0x38]
call fcn.7ff698f3fda0
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], r13
mov qword [rsp + 0x70], r13
mov r8d, 2
lea rdx, [0x7ff699013384]
lea rcx, [rsp + 0x58]
call fcn.7ff698f3fda0
nop
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x78]
call fcn.7ff698f4b2b0
mov r14, rax
mov qword [rsp + 0x78], rax
mov rbx, r13
mov rdi, qword [rsp + 0x68]
lea rsi, [rsp + 0x58]
cmp qword [rsp + 0x70], 0xf
cmova rsi, qword [rsp + 0x58]
mov rax, qword [r14 + 0x10]
mov r13, r14
cmp qword [r14 + 0x18], 0xf
jbe 0x7ff698f50774
mov r13, qword [r14]
cmp rdi, rax
ja 0x7ff698f507df
sub rax, rdi
cmp rbx, rax
ja 0x7ff698f507df
test rdi, rdi
je 0x7ff698f5082e
lea r15, [rax + r13]
lea rcx, [rbx + r13]
movsx r12d, byte [rsi]
lea r8, [r15 + 1]
sub r8, rcx
mov edx, r12d
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
je 0x7ff698f507df
nop dword [rax]
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x7ff698f5082b
inc rbx
lea r8, [r15 + 1]
sub r8, rbx
mov edx, r12d
mov rcx, rbx
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
jne 0x7ff698f507b0
xorps xmm0, xmm0
mov rbx, qword [rbp - 0x80]
movups xmmword [rbx], xmm0
xor eax, eax
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], rax
movups xmm0, xmmword [r14]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [r14 + 0x10]
movups xmmword [rbx + 0x10], xmm1
mov qword [r14 + 0x10], rax
mov qword [r14 + 0x18], 0xf
mov byte [r14], al
mov rcx, r14
call fcn.7ff698f3d390
nop
lea rcx, [rsp + 0x58]
call fcn.7ff698f3d390
nop
jmp 0x7ff698f509ba
sub rbx, r13
cmp rbx, 0xffffffffffffffff
je 0x7ff698f507df
lea r9, [rsp + 0x38]
cmp qword [rsp + 0x50], 0xf
cmova r9, qword [rsp + 0x38]
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r8, rdi
mov rdx, rbx
mov rcx, r14
call fcn.7ff698f4e4f0
add rbx, qword [rsp + 0x48]
jmp 0x7ff698f50752
mov rcx, r12
call qword [sym.imp.wininet.dll_InternetCloseHandle]
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x50], r13
mov r8d, 2
lea rdx, [0x7ff698ffe814]
lea rcx, [rsp + 0x38]
call fcn.7ff698f3fda0
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], r13
mov qword [rsp + 0x70], r13
mov r8d, 2
lea rdx, [0x7ff699013384]
lea rcx, [rsp + 0x58]
call fcn.7ff698f3fda0
nop
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x58]
call fcn.7ff698f4b2b0
mov r14, rax
mov qword [rsp + 0x78], rax
mov rbx, r13
mov rdi, qword [rsp + 0x68]
lea rsi, [rsp + 0x58]
cmp qword [rsp + 0x70], 0xf
cmova rsi, qword [rsp + 0x58]
mov rax, qword [r14 + 0x10]
mov r13, r14
cmp qword [r14 + 0x18], 0xf
jbe 0x7ff698f50903
mov r13, qword [r14]
cmp rdi, rax
ja 0x7ff698f50973
sub rax, rdi
cmp rbx, rax
ja 0x7ff698f50973
test rdi, rdi
je 0x7ff698f509fe
lea r15, [rax + r13]
lea rcx, [rbx + r13]
movsx r12d, byte [rsi]
lea r8, [r15 + 1]
sub r8, rcx
mov edx, r12d
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
je 0x7ff698f50973
nop dword [rax]
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x7ff698f509fb
inc rbx
lea r8, [r15 + 1]
sub r8, rbx
mov edx, r12d
mov rcx, rbx
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
jne 0x7ff698f50940
xorps xmm0, xmm0
mov rbx, qword [rbp - 0x80]
movups xmmword [rbx], xmm0
xor eax, eax
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], rax
movups xmm0, xmmword [r14]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [r14 + 0x10]
movups xmmword [rbx + 0x10], xmm1
mov qword [r14 + 0x10], rax
mov qword [r14 + 0x18], 0xf
mov byte [r14], al
mov rcx, r14
call fcn.7ff698f3d390
nop
lea rcx, [rsp + 0x58]
call fcn.7ff698f3d390
nop
lea rcx, [rsp + 0x38]
call fcn.7ff698f3d390
nop
lea rcx, [rbp - 0x30]
call fcn.7ff698f3d390
mov rax, rbx
mov rcx, qword [rbp + 0x7c0]
xor rcx, rsp
call fcn.7ff698fe98c0
mov rbx, qword [rsp + 0x920]
add rsp, 0x8d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
sub rbx, r13
cmp rbx, 0xffffffffffffffff
je 0x7ff698f50973
lea r9, [rsp + 0x38]
cmp qword [rsp + 0x50], 0xf
cmova r9, qword [rsp + 0x38]
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r8, rdi
mov rdx, rbx
mov rcx, r14
call fcn.7ff698f4e4f0
add rbx, qword [rsp + 0x48]
jmp 0x7ff698f508e1