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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x2060]
mov eax, 0x2160
call fcn.140160a20
sub rsp, rax
mov rax, qword [0x1401fdf00]
xor rax, rsp
mov qword [rbp + 0x2050], rax
mov rsi, rdx
mov rbx, rcx
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 1
lea rcx, str.Loader
call qword [sym.imp.WININET.dll_InternetOpenA]
mov rdi, rax
test rax, rax
je 0x14003a1ba
cmp qword [rbx + 0x18], 0xf
jbe 0x14003a186
mov rbx, qword [rbx]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x80000000
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov rbx, rax
test rax, rax
jne 0x14003a1c1
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
xor al, al
jmp 0x14003a32d
xor edx, edx
mov r8d, 0x108
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
cmp qword [rsi + 0x18], 0xf
jbe 0x14003a1dd
mov rsi, qword [rsi]
mov dword [rsp + 0x20], 1
mov r9d, 0x40
mov r8d, 0x20
mov rdx, rsi
lea rcx, [rsp + 0x30]
call fcn.1400442f0
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea rsi, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x30], rsi
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x2c], edx
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x30]
add rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::operator__void_const___ptr64]
mov rcx, rbx
test al, al
je 0x14003a25a
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
xor bl, bl
jmp 0x14003a2e8
lea r9, [rbp + 0x40]
mov r8d, 0x2000
lea rdx, [rbp + 0x50]
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x14003a2a6
mov eax, dword [rbp + 0x40]
test eax, eax
je 0x14003a2a6
mov r8d, eax
lea rdx, [rbp + 0x50]
lea rcx, [rsp + 0x30]
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]
lea r9, [rbp + 0x40]
mov r8d, 0x2000
lea rdx, [rbp + 0x50]
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x14003a272
lea rcx, [rsp + 0x38]
call fcn.140045430
test rax, rax
jne 0x14003a2d4
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x30]
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, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov bl, 1
mov rcx, qword [rsp + 0x30]
movsxd rdx, dword [rcx + 4]
mov qword [rsp + rdx + 0x30], rsi
mov rcx, qword [rsp + 0x30]
movsxd rdx, dword [rcx + 4]
lea r8d, [rdx - 0xa8]
mov dword [rsp + rdx + 0x2c], r8d
lea rcx, [rsp + 0x38]
call fcn.1400441f0
lea rcx, [rsp + 0x40]
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 - 0x28]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
movzx eax, bl
mov rcx, qword [rbp + 0x2050]
xor rcx, rsp
call fcn.14015ff50
mov rbx, qword [rsp + 0x2190]
add rsp, 0x2160
pop rdi
pop rsi
pop rbp
ret