Function at 0x180037db0
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x370]
sub rsp, 0x470
mov rax, qword [0x1800d4040]
xor rax, rsp
mov qword [rbp + 0x360], rax
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
mov qword [rsp + 0x38], rcx
xor r13d, r13d
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
lea edx, [r13 + 1]
lea rcx, str.CarbonLauncher.WINDOWS64
call qword [sym.imp.WININET.dll_InternetOpenA]
mov r12, rax
test rax, rax
jne 0x180037e5d
lea rdx, str.Failed_to_initialize_WinINet
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.18003def0
lea rdx, [0x18000e170]
mov rcx, rax
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__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], r13
mov qword [rsi + 0x18], r13
xor r8d, r8d
lea rdx, [0x1800b1a26]
mov rcx, rsi
call fcn.18001d5d0
jmp 0x180037fdd
mov r9d, dword [rbx + 0x10]
cmp qword [rbx + 0x18], 0xf
jbe 0x180037e6b
mov rbx, qword [rbx]
cmp qword [rdi + 0x18], 0xf
jbe 0x180037e75
mov rdi, qword [rdi]
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], 0x80000000
mov r8, rbx
mov rdx, rdi
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov r15, rax
test rax, rax
jne 0x180037eca
lea rdx, str.Failed_to_open_URL
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.18003def0
lea rdx, [0x18000e170]
mov rcx, rax
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__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x180037e38
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov rbx, r13
mov qword [rsp + 0x50], rbx
mov r14d, 0xf
mov qword [rsp + 0x58], r14
mov byte [rsp + 0x40], bl
lea r9, [rsp + 0x38]
mov r8d, 0x400
lea rdx, [rsp + 0x60]
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x180037f9d
nop word [rax + rax]
mov eax, dword [rsp + 0x38]
test eax, eax
je 0x180037f9d
mov edi, eax
mov rax, r14
sub rax, rbx
cmp rdi, rax
ja 0x180037f5a
lea rax, [rdi + rbx]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x40]
cmp r14, 0xf
cmova rax, qword [rsp + 0x40]
add rbx, rax
mov r8d, edi
lea rdx, [rsp + 0x60]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + rdi], 0
jmp 0x180037f71
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x60]
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.18001f460
lea r9, [rsp + 0x38]
mov r8d, 0x400
lea rdx, [rsp + 0x60]
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x180037f9d
mov r14, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
jmp 0x180037f10
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetCloseHandle]
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rsi], xmm0
movups xmm1, xmmword [rsp + 0x50]
movups xmmword [rsi + 0x10], xmm1
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x58], socket
mov byte [rsp + 0x40], 0
lea rcx, [rsp + 0x40]
call fcn.18001faf0
mov rax, rsi
mov rcx, qword [rbp + 0x360]
xor rcx, rsp
call fcn.180086e20
mov rbx, qword [rsp + 0x4c8]
add rsp, 0x470
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret