Function at 0x140004ac0
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 - 0x1060]
mov eax, 0x1160
call fcn.14002a6f0
sub rsp, rax
mov rax, qword [0x14006f058]
xor rax, rsp
mov qword [rbp + 0x1050], 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 0x140004b3d
lea rdx, str.InternetOpen_failed.
lea rcx, [0x140070e40]
call fcn.14000bd20
mov rcx, rax
call fcn.14000bf80
xor al, al
jmp 0x140004d15
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 0x140004b93
lea rdx, str.InternetOpenUrlA_failed.
lea rcx, [0x140070e40]
call fcn.14000bd20
mov rcx, rax
call fcn.14000bf80
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
xor al, al
jmp 0x140004d15
xor edx, edx
mov r8d, 0x108
lea rcx, [rsp + 0x30]
call fcn.14002c5c0
mov r8d, 0x20
lea rdx, str.offsets.json
lea rcx, [rsp + 0x30]
call fcn.140007a00
nop
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
test byte [rsp + rcx + 0x40], 6
je 0x140004c01
lea rdx, str.Failed_to_create_local_file.
lea rcx, [0x140070e40]
call fcn.14000bd20
mov rcx, rax
call fcn.14000bf80
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
xor bl, bl
jmp 0x140004ca4
lea r9, [rbp + 0x40]
mov r8d, 0x1000
lea rdx, [rbp + 0x50]
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x140004c53
nop dword [rax]
mov eax, dword [rbp + 0x40]
test eax, eax
je 0x140004c53
mov r8d, eax
lea rdx, [rbp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.1400087d0
lea r9, [rbp + 0x40]
mov r8d, 0x1000
lea rdx, [rbp + 0x50]
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x140004c20
lea rcx, [rsp + 0x38]
call fcn.14000a130
test rax, rax
jne 0x140004c90
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea r9, [rsp + 0x30]
add rcx, r9
mov edx, 6
mov eax, 2
cmp qword [rcx + 0x48], 0
cmovne edx, eax
or edx, dword [rcx + 0x10]
xor r8d, r8d
call fcn.1400023d0
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 + 0x30]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x30], rax
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x2c], edx
lea rcx, [rsp + 0x38]
call fcn.140007950
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x30], rax
mov rcx, qword [rsp + 0x30]
movsxd rdx, dword [rcx + 4]
lea r8d, [rdx - 0x10]
mov dword [rsp + rdx + 0x2c], r8d
lea rax, vtable.std::ios_base.0
mov qword [rbp - 0x28], rax
lea rcx, [rbp - 0x28]
call fcn.140028dc8
nop
movzx eax, bl
mov rcx, qword [rbp + 0x1050]
xor rcx, rsp
call fcn.140029fb0
lea r11, [rsp + 0x1160]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret