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

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x840]
sub rsp, 0x940
mov rax, qword [0x1800e8400]
xor rax, rsp
mov qword [rbp + 0x830], rax
mov rdi, rdx
mov rbx, rcx
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], rdx
xor esi, esi
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
mov edx, 1
lea rcx, str.Mozilla_5.0
call qword [sym.imp.WININET.dll_InternetOpenA]
mov r14, rax
test rax, rax
je 0x18009cf37
mov rdx, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x18009cdc5
mov rdx, qword [rbx]
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov rsi, rax
test rax, rax
je 0x18009cf2d
xor edx, edx
mov r8d, 0x108
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x20
mov rdx, rdi
lea rcx, [rsp + 0x50]
call fcn.180010880
nop
cmp qword [rbp - 0x28], 0
je 0x18009cef0
nop word [rax + rax]
lea r9, [rsp + 0x40]
mov r8d, 0x7d0
lea rdx, [rbp + 0x60]
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetReadFile]
mov r8d, dword [rsp + 0x40]
lea rdx, [rbp + 0x60]
lea rcx, [rsp + 0x50]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::write_char_const____ptr64__long_long___int64_____ptr64]
xor edx, edx
mov r8d, 0x7d0
lea rcx, [rbp + 0x60]
call sub.VCRUNTIME140.dll_memset
cmp dword [rsp + 0x40], 0
jne 0x18009ce20
lea rcx, [rsp + 0x58]
call fcn.1800162e0
test rax, rax
jne 0x18009ce92
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x50]
add rcx, rax
xor r8d, r8d
mov edx, 2
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
nop
mov rax, qword [rsp + 0x50]
movsxd rdx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rdx + 0x50], rax
mov rax, qword [rsp + 0x50]
movsxd rdx, dword [rax + 4]
lea r8d, [rdx - 0xa8]
mov dword [rsp + rdx + 0x4c], r8d
lea rcx, [rsp + 0x58]
call fcn.1800163a0
lea rcx, [rsp + 0x60]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp - 8]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
jmp 0x18009cf37
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
nop
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x50], rax
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x4c], edx
jmp 0x18009cecf
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetCloseHandle]
nop
mov rcx, rbx
call fcn.18001f4d0
nop
mov rcx, rdi
call fcn.18001f4d0
mov rcx, qword [rbp + 0x830]
xor rcx, rsp
call fcn.1800a3dc0
lea r11, [rsp + 0x940]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret