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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x10a0]
mov eax, 0x11a0
call fcn.14002e270
sub rsp, rax
mov rax, qword [0x140071080]
xor rax, rsp
mov qword [rbp + 0x1090], rax
mov rbx, rcx
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
lea rcx, str.AutoUpdater
call qword [sym.imp.WININET.dll_InternetOpenA]
mov rdi, rax
test rax, rax
jne 0x1400055ad
lea rdx, str.InternetOpen_failed.
lea rcx, [0x140072fb0]
call fcn.14000cf00
mov rcx, rax
call fcn.14000d1b0
xor al, al
jmp 0x140005798
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 0x140005603
lea rdx, str.InternetOpenUrlA_failed.
lea rcx, [0x140072fb0]
call fcn.14000cf00
mov rcx, rax
call fcn.14000d1b0
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
xor al, al
jmp 0x140005798
xor edx, edx
mov r8d, 0x108
lea rcx, [rsp + 0x70]
call fcn.1400559b0
mov r8d, 0x20
lea rdx, [0x140064968]
lea rcx, [rsp + 0x70]
call fcn.1400089a0
nop
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
test byte [rbp + rcx - 0x80], 6
je 0x140005671
lea rdx, str.Failed_to_create_local_file.
lea rcx, [0x140072fb0]
call fcn.14000cf00
mov rcx, rax
call fcn.14000d1b0
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
xor bl, bl
jmp 0x140005727
lea r9, [rbp + 0x80]
mov r8d, 0x1000
lea rdx, [rbp + 0x90]
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x1400056d1
mov eax, dword [rbp + 0x80]
test eax, eax
je 0x1400056d1
mov r8d, eax
lea rdx, [rbp + 0x90]
lea rcx, [rsp + 0x70]
call fcn.140009b80
lea r9, [rbp + 0x80]
mov r8d, 0x1000
lea rdx, [rbp + 0x90]
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x140005692
lea rcx, [rsp + 0x78]
call fcn.14000b390
test rax, rax
jne 0x140005713
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
mov eax, 6
mov edx, 2
cmp qword [rbp + rcx - 0x48], 0
cmovne eax, edx
or eax, dword [rbp + rcx - 0x80]
and eax, 0x17
mov dword [rbp + rcx - 0x80], eax
mov edx, dword [rbp + rcx - 0x7c]
and edx, eax
jne 0x1400057bc
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov bl, 1
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x70], rax
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x6c], edx
lea rcx, [rsp + 0x78]
call fcn.1400088f0
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x70], rax
mov rcx, qword [rsp + 0x70]
movsxd rdx, dword [rcx + 4]
lea r8d, [rdx - 0x10]
mov dword [rsp + rdx + 0x6c], r8d
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x18], rax
lea rcx, [rbp + 0x18]
call fcn.14002cac4
nop
movzx eax, bl
mov rcx, qword [rbp + 0x1090]
xor rcx, rsp
call fcn.14002db40
lea r11, [rsp + 0x11a0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
test dl, 4
je 0x1400057ca
lea rbx, str.ios_base::badbit_set
jmp 0x1400057df
test dl, 2
lea rbx, str.ios_base::failbit_set
lea rax, str.ios_base::eofbit_set
cmove rbx, rax
mov edx, 1
lea rcx, [rsp + 0x30]
call fcn.1400022f0
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.140002ea0
lea rdx, [0x14006f778]
lea rcx, [rsp + 0x40]
call fcn.14002f9ac
int3