Function at 0x18001d2e0
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 - 0x7e0]
sub rsp, 0x8e0
mov rax, qword [0x180106040]
xor rax, rsp
mov qword [rbp + 0x7d0], rax
mov rdi, rdx
mov qword [rbp - 0x80], rdx
mov qword [rsp + 0x78], rcx
mov qword [rbp - 0x30], rcx
mov qword [rbp - 0x38], rdx
mov dword [rbp - 0x30], 1
xor r12d, r12d
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
lea edx, [r12 + 1]
lea rcx, str.Mozilla_5.0
call qword [sym.imp.WININET.dll_InternetOpenA]
mov r15, rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x28], xmm0
mov ebx, r12d
mov qword [rbp - 0x18], rbx
mov esi, 0xf
mov qword [rbp - 0x10], rsi
mov byte [rbp - 0x28], bl
test rax, rax
je 0x18001d5d0
mov rdx, rdi
cmp qword [rdi + 0x18], rsi
jbe 0x18001d37d
mov rdx, qword [rdi]
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov r14, rax
test rax, rax
je 0x18001d5d0
lea r9, [rbp - 0x30]
mov r8d, 0x7d0
lea rdx, [rbp]
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetReadFile]
mov edi, dword [rbp - 0x30]
mov rax, rsi
sub rax, rbx
cmp rdi, rax
ja 0x18001d3f4
lea rax, [rbx + rdi]
mov qword [rbp - 0x18], rax
lea rax, [rbp - 0x28]
cmp rsi, 0xf
cmova rax, qword [rbp - 0x28]
add rbx, rax
mov r8d, edi
lea rdx, [rbp]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + rdi], 0
jmp 0x18001d409
mov qword [rsp + 0x20], rdi
lea r9, [rbp]
mov rdx, rdi
lea rcx, [rbp - 0x28]
call fcn.18003f140
xor edx, edx
mov r8d, 0x7d0
lea rcx, [rbp]
call sub.VCRUNTIME140.dll_memset
cmp dword [rbp - 0x30], 0
je 0x18001d42d
mov rsi, qword [rbp - 0x10]
mov rbx, qword [rbp - 0x18]
jmp 0x18001d3a2
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetCloseHandle]
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x48], r12
mov r8d, 2
lea rdx, [0x1800e38ec]
lea rcx, [rsp + 0x30]
call fcn.180004390
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x68], r12
mov r8d, 2
lea rdx, [0x1800e38f0]
lea rcx, [rsp + 0x50]
call fcn.180004390
nop
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x78]
call fcn.180008290
mov r14, rax
mov qword [rsp + 0x70], rax
mov rbx, r12
mov rdi, qword [rsp + 0x60]
lea rsi, [rsp + 0x50]
cmp qword [rsp + 0x68], 0xf
cmova rsi, qword [rsp + 0x50]
mov rax, qword [r14 + 0x10]
mov r13, r14
cmp qword [r14 + 0x18], 0xf
jbe 0x18001d4d2
mov r13, qword [r14]
cmp rdi, rax
ja 0x18001d53f
sub rax, rdi
cmp rbx, rax
ja 0x18001d53f
test rdi, rdi
je 0x18001d597
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 0x18001d53f
nop dword [rax + rax]
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x18001d594
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 0x18001d510
xorps xmm0, xmm0
mov r12, qword [rsp + 0x78]
movups xmmword [r12], xmm0
xor eax, eax
mov qword [r12 + 0x10], rax
mov qword [r12 + 0x18], rax
movups xmm0, xmmword [r14]
movups xmmword [r12], xmm0
movups xmm1, xmmword [r14 + 0x10]
movups xmmword [r12 + 0x10], xmm1
mov qword [r14 + 0x10], rax
mov qword [r14 + 0x18], 0xf
mov byte [r14], al
mov rcx, r14
call fcn.180004080
nop
lea rcx, [rsp + 0x50]
call fcn.180004080
nop
jmp 0x18001d733
sub rbx, r13
cmp rbx, 0xffffffffffffffff
je 0x18001d53f
lea r9, [rsp + 0x30]
cmp qword [rsp + 0x48], 0xf
cmova r9, qword [rsp + 0x30]
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r8, rdi
mov rdx, rbx
mov rcx, r14
call fcn.18002ebd0
add rbx, qword [rsp + 0x40]
jmp 0x18001d4b0
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetCloseHandle]
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x48], r12
mov r8d, 2
lea rdx, [0x1800e38ec]
lea rcx, [rsp + 0x30]
call fcn.180004390
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x68], r12
mov r8d, 2
lea rdx, [0x1800e38f0]
lea rcx, [rsp + 0x50]
call fcn.180004390
nop
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x58]
call fcn.180008290
mov r14, rax
mov qword [rsp + 0x70], rax
mov rbx, r12
mov rdi, qword [rsp + 0x60]
nop word [rax + rax]
lea rsi, [rsp + 0x50]
cmp qword [rsp + 0x68], 0xf
cmova rsi, qword [rsp + 0x50]
mov rax, qword [r14 + 0x10]
mov r13, r14
cmp qword [r14 + 0x18], 0xf
jbe 0x18001d672
mov r13, qword [r14]
cmp rdi, rax
ja 0x18001d6e3
sub rax, rdi
cmp rbx, rax
ja 0x18001d6e3
test rdi, rdi
je 0x18001d781
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 0x18001d6e3
nop dword [rax + rax]
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x18001d77e
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 0x18001d6b0
xorps xmm0, xmm0
mov r12, qword [rsp + 0x78]
movups xmmword [r12], xmm0
xor eax, eax
mov qword [r12 + 0x10], rax
mov qword [r12 + 0x18], rax
movups xmm0, xmmword [r14]
movups xmmword [r12], xmm0
movups xmm1, xmmword [r14 + 0x10]
movups xmmword [r12 + 0x10], xmm1
mov qword [r14 + 0x10], rax
mov qword [r14 + 0x18], 0xf
mov byte [r14], al
mov rcx, r14
call fcn.180004080
nop
lea rcx, [rsp + 0x50]
call fcn.180004080
nop
lea rcx, [rsp + 0x30]
call fcn.180004080
nop
lea rcx, [rbp - 0x28]
call fcn.180004080
nop
mov rcx, qword [rbp - 0x80]
call fcn.180004080
mov rax, r12
mov rcx, qword [rbp + 0x7d0]
xor rcx, rsp
call fcn.1800ba130
mov rbx, qword [rsp + 0x930]
add rsp, 0x8e0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
sub rbx, r13
cmp rbx, 0xffffffffffffffff
je 0x18001d6e3
lea r9, [rsp + 0x30]
cmp qword [rsp + 0x48], 0xf
cmova r9, qword [rsp + 0x30]
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r8, rdi
mov rdx, rbx
mov rcx, r14
call fcn.18002ebd0
add rbx, qword [rsp + 0x40]
jmp 0x18001d650