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

Disassembly:
push rbp
push rdi
push r14
lea rbp, [rsp - 0xf90]
mov eax, 0x1090
call fcn.1402414f0
sub rsp, rax
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rsp + 0x10c0], rbx
mov qword [rsp + 0x10c8], rsi
mov rax, qword [0x1403e39c0]
xor rax, rsp
mov qword [rbp + 0xf80], rax
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x60], rcx
and dword [rsp + 0x50], 0
xor eax, eax
mov qword [rcx], rax
mov qword [rcx + 8], rax
mov qword [rcx + 0x10], rax
and qword [rcx], rax
and qword [rcx + 8], rax
and qword [rcx + 0x10], rax
mov dword [rsp + 0x50], 1
and dword [rsp + 0x20], eax
xor r9d, r9d
xor r8d, r8d
lea edx, [rax + 1]
lea rcx, str.MyApp
call qword [sym.imp.WININET.dll_InternetOpenW]
mov r14, rax
test rax, rax
jne 0x140009b70
lea rax, vtable.std::exception.0
mov qword [rsp + 0x38], rax
xor eax, eax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
lea rax, str.InternetOpen_failed
mov qword [rsp + 0x70], rax
mov byte [rsp + 0x78], 1
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x70]
call fcn.140272734
lea rax, vtable.std::runtime_error.0
mov qword [rsp + 0x38], rax
lea rdx, [0x1403dbd08]
lea rcx, [rsp + 0x38]
call fcn.1402727ec
int3
and qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x80000000
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.WININET.dll_InternetOpenUrlW]
mov rsi, rax
test rax, rax
jne 0x140009bf7
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetCloseHandle]
lea rax, vtable.std::exception.0
mov qword [rsp + 0x38], rax
xor eax, eax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
lea rax, str.InternetOpenUrl_failed
mov qword [rsp + 0x70], rax
mov byte [rsp + 0x78], 1
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x70]
call fcn.140272734
lea rax, vtable.std::runtime_error.0
mov qword [rsp + 0x38], rax
lea rdx, [0x1403dbd08]
lea rcx, [rsp + 0x38]
call fcn.1402727ec
int3
mov bl, byte [rsp + 0x30]
lea r9, [rsp + 0x68]
mov r8d, 0x1000
lea rdx, [rbp - 0x80]
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x140009c54
mov ecx, dword [rsp + 0x68]
lea r9, [rbp - 0x80]
add r9, rcx
mov byte [rsp + 0x20], bl
lea r8, [rbp - 0x80]
mov rdx, qword [rdi + 8]
mov rcx, rdi
call fcn.1400086c8
cmp dword [rsp + 0x68], 0
ja 0x140009bfb
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rax, rdi
jmp 0x140009cbc
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetCloseHandle]
lea rax, vtable.std::exception.0
mov qword [rsp + 0x38], rax
xor eax, eax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
lea rax, str.InternetReadFile_failed
mov qword [rsp + 0x70], rax
mov byte [rsp + 0x78], 1
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x70]
call fcn.140272734
lea rax, vtable.std::runtime_error.0
mov qword [rsp + 0x38], rax
lea rdx, [0x1403dbd08]
lea rcx, [rsp + 0x38]
call fcn.1402727ec
nop
mov rcx, qword [rbp + 0xf80]
xor rcx, rsp
call fcn.1402410d0
lea r11, [rsp + 0x1090]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret