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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x530]
sub rsp, 0x630
mov rax, qword [0x140016020]
xor rax, rsp
mov qword [rbp + 0x520], rax
mov r15, r8
mov qword [rsp + 0x48], r8
mov rbx, rdx
mov rdi, rcx
mov qword [rbp - 0x30], rcx
xor r14d, r14d
mov dword [rsp + 0x40], r14d
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
lea edx, [r14 + 1]
lea rcx, str.Fetch_JSON_Example
call qword [sym.imp.WININET.dll_InternetOpenW]
mov rsi, rax
test rax, rax
jne 0x140002011
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.140004510
mov rcx, rax
lea rdx, [0x1400046e0]
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 [rdi], xmm0
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], r14
xor r8d, r8d
lea rdx, [0x140010621]
mov rcx, rdi
call fcn.140004b30
jmp 0x140002627
cmp qword [rbx + 0x18], 8
jb 0x14000201b
mov rbx, qword [rbx]
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], 0x80000000
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetOpenUrlW]
mov rbx, rax
test rax, rax
jne 0x140002073
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.140004510
mov rcx, rax
lea rdx, [0x1400046e0]
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, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x140001fec
xor edx, edx
mov r8d, 0xf8
lea rcx, [rbp + 0x20]
call sub.VCRUNTIME140.dll_memset
lea rax, [0x140011040]
mov qword [rbp + 0x20], rax
lea rax, [0x140010e00]
mov qword [rbp + 0x30], rax
lea rcx, [rbp + 0xb8]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
mov dword [rsp + 0x40], 2
xor r8d, r8d
lea rdx, [rbp + 0x38]
lea rcx, [rbp + 0x20]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_iostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64____ptr64]
nop
mov rax, qword [rbp + 0x20]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + rcx + 0x20], rax
mov rax, qword [rbp + 0x20]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rbp + rcx + 0x1c], edx
lea rcx, [rbp + 0x38]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
lea rax, vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + 0x38], rax
mov qword [rbp + 0xa0], r14
mov dword [rbp + 0xa8], r14d
lea r9, [rbp - 0x30]
mov r8d, 0x400
lea rdx, [rbp + 0x120]
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x140002169
nop dword [rax]
mov eax, dword [rbp - 0x30]
test eax, eax
je 0x140002169
mov r8d, eax
lea rdx, [rbp + 0x120]
lea rcx, [rbp + 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 - 0x30]
mov r8d, 0x400
lea rdx, [rbp + 0x120]
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x140002130
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x50], xmm0
mov rbx, r14
mov qword [rbp - 0x40], rbx
mov r12d, 0xf
mov qword [rbp - 0x38], r12
mov byte [rbp - 0x50], bl
mov dword [rsp + 0x40], 0xa
xor eax, eax
movups xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], rax
mov ecx, dword [rbp + 0xa8]
mov eax, ecx
and al, 0x22
cmp al, 2
je 0x1400021ea
mov rax, qword [rbp + 0x78]
mov r8, qword [rax]
test r8, r8
je 0x1400021ea
mov rax, qword [rbp + 0x58]
mov rdx, qword [rax]
mov qword [rsp + 0x58], rdx
cmp r8, qword [rbp + 0xa0]
cmovb r8, qword [rbp + 0xa0]
sub r8, rdx
mov qword [rsp + 0x60], r8
jmp 0x140002228
test cl, 4
jne 0x14000221e
mov rax, qword [rbp + 0x70]
mov rcx, qword [rax]
test rcx, rcx
je 0x14000221e
mov rax, qword [rbp + 0x50]
mov rdx, qword [rax]
mov qword [rsp + 0x58], rdx
mov rax, qword [rbp + 0x88]
movsxd r8, dword [rax]
add r8, rcx
sub r8, rdx
mov qword [rsp + 0x60], r8
jmp 0x140002228
mov r8, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x58]
test rdx, rdx
je 0x14000223e
lea rcx, [rbp - 0x50]
call fcn.140004280
mov r12, qword [rbp - 0x38]
mov rbx, qword [rbp - 0x40]
lea r14, [rbp - 0x50]
cmp r12, 0x10
cmovae r14, qword [rbp - 0x50]
mov rsi, 0xffffffffffffffff
cmp rbx, 1
jb 0x1400022a8
lea r15, [rbx + r14]
mov r8, rbx
lea edx, [rsi + 0x7c]
mov rcx, r14
call sub.VCRUNTIME140.dll_memchr
mov rcx, rax
test rax, rax
je 0x1400022a3
cmp byte [rcx], 0x7b
jne 0x14000227b
xor eax, eax
jmp 0x140002280
sbb eax, eax
or eax, 1
test eax, eax
je 0x14000232b
inc rcx
mov r8, r15
sub r8, rcx
mov edx, 0x7b
call sub.VCRUNTIME140.dll_memchr
mov rcx, rax
test rax, rax
jne 0x140002272
mov r15, qword [rsp + 0x48]
mov rcx, rsi
xorps xmm0, xmm0
cmp rcx, rsi
je 0x140002573
movups xmmword [rbp - 0x70], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x60], xmm1
cmp rbx, rcx
jb 0x14000264b
sub rbx, rcx
mov r8, rsi
cmp rbx, rsi
cmovb r8, rbx
lea rdx, [rbp - 0x50]
cmp r12, 0x10
cmovae rdx, qword [rbp - 0x50]
add rdx, rcx
lea rcx, [rbp - 0x70]
call fcn.140004b30
mov rdx, qword [rbp - 0x38]
cmp rdx, 0x10
jb 0x14000233d
inc rdx
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002338
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002338
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
sub rcx, r14
mov r15, qword [rsp + 0x48]
jmp 0x1400022ab
call fcn.14000e80c
movups xmm0, xmmword [rbp - 0x70]
movups xmmword [rbp - 0x50], xmm0
movups xmm1, xmmword [rbp - 0x60]
movups xmmword [rbp - 0x40], xmm1
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x28], xmm0
movups xmmword [rbp - 0x18], xmm0
mov qword [rbp - 8], rax
xor r14d, r14d
mov qword [rbp - 0x28], r14
lea rax, [rbp - 0x20]
mov qword [rsp + 0x50], rax
mov cl, 1
call qword [sym.imp.MSVCP140.dll_private:_static_class_std::locale::_Locimp____ptr64___cdecl_std::locale::_Init_bool_]
mov qword [rbp - 8], rax
lea rcx, [rbp - 0x10]
call fcn.140005140
mov qword [rbp - 0x20], rax
lea rcx, [rbp - 0x10]
call fcn.140004400
mov qword [rbp - 0x18], rax
lea r8, [0x140010708]
lea rdx, str.__n_t_
lea rcx, [rbp - 0x28]
call fcn.1400048b0
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
movdqa xmm1, xmmword [0x140011070]
movdqu xmmword [rbp - 0x80], xmm1
mov byte [rsp + 0x70], r14b
mov dword [rsp + 0x40], 0x36
movups xmmword [rbp], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x10], xmm1
xor r8d, r8d
lea rdx, [0x140010621]
lea rcx, [rbp]
call fcn.140004b30
nop
lea rdx, [rbp - 0x50]
cmp qword [rbp - 0x38], 0x10
cmovae rdx, qword [rbp - 0x50]
mov r9, qword [rbp - 0x40]
add r9, rdx
lea r8, [rbp - 0x50]
cmp qword [rbp - 0x38], 0x10
cmovae r8, qword [rbp - 0x50]
lea rcx, [rbp]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp - 0x28]
mov qword [rsp + 0x20], rcx
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x50]
call fcn.140006670
nop
mov rdx, qword [rbp + 0x18]
cmp rdx, 0x10
jb 0x140002471
inc rdx
mov rcx, qword [rbp]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000246c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000246c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000e80c
mov rdx, qword [rbp - 0x38]
cmp rdx, 0x10
jb 0x1400024af
inc rdx
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400024aa
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400024aa
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000e80c
movups xmm0, xmmword [rsp + 0x70]
movups xmmword [rbp - 0x50], xmm0
movups xmm1, xmmword [rbp - 0x80]
movups xmmword [rbp - 0x40], xmm1
mov r8, r15
lea rdx, [rbp - 0x50]
mov rcx, rdi
call fcn.1400017a0
nop
mov rax, qword [rbp - 0x28]
test rax, rax
je 0x140002508
lock xadd dword [rax + 0x2c], esi
cmp esi, 1
jne 0x140002508
mov rbx, qword [rbp - 0x28]
test rbx, rbx
je 0x140002508
mov rcx, rbx
lea rax, [rbx + 0x10]
mov rbx, qword [rax]
mov qword [rax], r14
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
test rbx, rbx
jne 0x1400024ec
mov qword [rbp - 0x28], r14
mov rcx, qword [rbp - 8]
test rcx, rcx
je 0x14000252f
mov rax, qword [rcx]
call qword [rax + 0x10]
test rax, rax
je 0x14000252f
mov r8, qword [rax]
mov edx, 1
mov rcx, rax
call qword [r8]
nop
mov rdx, qword [rbp - 0x38]
cmp rdx, 0x10
jb 0x14000256d
inc rdx
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002568
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002568
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000e80c
mov qword [rbp - 0x40], r14
jmp 0x1400025d5
movups xmmword [rdi], xmm0
xor ebx, ebx
mov qword [rdi + 0x10], rbx
mov qword [rdi + 0x18], rbx
xor r8d, r8d
lea rdx, [0x140010621]
mov rcx, rdi
call fcn.140004b30
nop
mov rdx, qword [rbp - 0x38]
cmp rdx, 0x10
jb 0x1400025d1
inc rdx
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400025cc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400025cc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000e80c
mov qword [rbp - 0x40], rbx
mov byte [rbp - 0x50], 0
mov qword [rbp - 0x38], 0xf
mov rax, qword [rbp + 0x20]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + rcx + 0x20], rax
mov rax, qword [rbp + 0x20]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rbp + rcx + 0x1c], edx
lea rcx, [rbp + 0x38]
call fcn.140003a70
lea rcx, [rbp + 0x40]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_iostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0xb8]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
mov rax, rdi
mov rcx, qword [rbp + 0x520]
xor rcx, rsp
call fcn.14000e6e0
add rsp, 0x630
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.1400043e0
nop
int3