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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x530]
sub rsp, 0x630
mov rax, qword [0x140016020]
xor rax, rsp
mov qword [rbp + 0x520], rax
mov r13, r8
mov rbx, rdx
mov rdi, rcx
mov qword [rbp - 0x38], 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 0x14000200c
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.140004470
mov rcx, rax
lea rdx, [0x140004640]
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, [0x140010608]
mov rcx, rdi
call fcn.140004a90
jmp 0x140002617
cmp qword [rbx + 0x18], 8
jb 0x140002016
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 0x14000206e
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.140004470
mov rcx, rax
lea rdx, [0x140004640]
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 0x140001fe7
xor edx, edx
mov r8d, pe_nt_image_headers64
lea rcx, [rbp + 0x20]
call sub.VCRUNTIME140.dll_memset
lea rax, [0x140011020]
mov qword [rbp + 0x20], rax
lea rax, [0x140010de0]
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 - 0x38]
mov r8d, 0x400
lea rdx, [rbp + 0x120]
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x14000215d
mov eax, dword [rbp - 0x38]
test eax, eax
je 0x14000215d
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 - 0x38]
mov r8d, 0x400
lea rdx, [rbp + 0x120]
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x140002124
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 - 0x58], xmm0
mov rbx, r14
mov qword [rbp - 0x48], rbx
mov r15d, 0xf
mov qword [rbp - 0x40], r15
mov byte [rbp - 0x58], bl
mov dword [rsp + 0x40], 0xa
xor eax, eax
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], rax
mov ecx, dword [rbp + 0xa8]
mov eax, ecx
and al, 0x22
cmp al, 2
je 0x1400021de
mov rax, qword [rbp + 0x78]
mov r8, qword [rax]
test r8, r8
je 0x1400021de
mov rax, qword [rbp + 0x58]
mov rdx, qword [rax]
mov qword [rsp + 0x50], rdx
cmp r8, qword [rbp + 0xa0]
cmovb r8, qword [rbp + 0xa0]
sub r8, rdx
mov qword [rsp + 0x58], r8
jmp 0x14000221c
test cl, 4
jne 0x140002212
mov rax, qword [rbp + 0x70]
mov rcx, qword [rax]
test rcx, rcx
je 0x140002212
mov rax, qword [rbp + 0x50]
mov rdx, qword [rax]
mov qword [rsp + 0x50], rdx
mov rax, qword [rbp + 0x88]
movsxd r8, dword [rax]
sub r8, rdx
add r8, rcx
mov qword [rsp + 0x58], r8
jmp 0x14000221c
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x50]
test rdx, rdx
je 0x140002232
lea rcx, [rbp - 0x58]
call fcn.1400041e0
mov r15, qword [rbp - 0x40]
mov rbx, qword [rbp - 0x48]
lea rsi, [rbp - 0x58]
cmp r15, 0x10
cmovae rsi, qword [rbp - 0x58]
cmp rbx, 1
jb 0x140002295
lea r14, [rbx + rsi]
mov r8, rbx
mov edx, 0x7b
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
mov rcx, rax
test rax, rax
je 0x140002292
cmp byte [rcx], 0x7b
jne 0x14000226a
xor eax, eax
jmp 0x14000226f
sbb eax, eax
or eax, 1
test eax, eax
je 0x1400022fb
inc rcx
mov r8, r14
sub r8, rcx
mov edx, 0x7b
call sub.VCRUNTIME140.dll_memchr
mov rcx, rax
test rax, rax
jne 0x140002261
xor r14d, r14d
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], r14
xor r8d, r8d
lea rdx, [0x140010608]
mov rcx, rdi
call fcn.140004a90
nop
mov rdx, qword [rbp - 0x40]
cmp rdx, 0x10
jb 0x1400025c1
inc rdx
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400025bc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400025bc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
sub rcx, rsi
cmp rcx, 0xffffffffffffffff
je 0x140002292
xorps xmm0, xmm0
movups xmmword [rbp - 0x78], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x68], xmm1
cmp rbx, rcx
jb 0x14000263b
sub rbx, rcx
mov rsi, 0xffffffffffffffff
mov r8, rsi
cmp rbx, rsi
cmovb r8, rbx
lea rdx, [rbp - 0x58]
cmp r15, 0x10
cmovae rdx, qword [rbp - 0x58]
add rdx, rcx
lea rcx, [rbp - 0x78]
call fcn.140004a90
mov rdx, qword [rbp - 0x40]
cmp rdx, 0x10
jb 0x140002387
inc rdx
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002382
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002382
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000e7bc
movups xmm0, xmmword [rbp - 0x78]
movups xmmword [rbp - 0x58], xmm0
movups xmm1, xmmword [rbp - 0x68]
movups xmmword [rbp - 0x48], xmm1
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], rax
xor r14d, r14d
mov qword [rbp - 0x30], r14
lea rax, [rbp - 0x28]
mov qword [rsp + 0x48], 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 - 0x10], rax
lea rcx, [rbp - 0x18]
call fcn.1400050a0
mov qword [rbp - 0x28], rax
lea rcx, [rbp - 0x18]
call fcn.140004360
mov qword [rbp - 0x20], rax
lea r8, [0x140010710]
lea rdx, str.__n_t_
lea rcx, [rbp - 0x30]
call fcn.140004810
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x68], xmm0
movdqa xmm1, xmmword [0x140011050]
movdqu xmmword [rsp + 0x78], xmm1
mov byte [rsp + 0x68], r14b
mov dword [rsp + 0x40], 0x36
movups xmmword [rbp - 8], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 8], xmm1
xor r8d, r8d
lea rdx, [0x140010608]
lea rcx, [rbp - 8]
call fcn.140004a90
nop
lea rdx, [rbp - 0x58]
cmp qword [rbp - 0x40], 0x10
cmovae rdx, qword [rbp - 0x58]
mov r9, qword [rbp - 0x48]
add r9, rdx
lea r8, [rbp - 0x58]
cmp qword [rbp - 0x40], 0x10
cmovae r8, qword [rbp - 0x58]
lea rcx, [rbp - 8]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp - 0x30]
mov qword [rsp + 0x20], rcx
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x48]
call fcn.140006610
nop
mov rdx, qword [rbp + 0x10]
cmp rdx, 0x10
jb 0x1400024bc
inc rdx
mov rcx, qword [rbp - 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400024b7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400024b7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000e7bc
mov rdx, qword [rbp - 0x40]
cmp rdx, 0x10
jb 0x1400024fa
inc rdx
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400024f5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400024f5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000e7bc
movups xmm0, xmmword [rsp + 0x68]
movups xmmword [rbp - 0x58], xmm0
movups xmm1, xmmword [rsp + 0x78]
movups xmmword [rbp - 0x48], xmm1
mov r8, r13
lea rdx, [rbp - 0x58]
mov rcx, rdi
call fcn.1400017a0
nop
mov rax, qword [rbp - 0x30]
test rax, rax
je 0x14000255c
lock xadd dword [rax + 0x2c], esi
cmp esi, 1
jne 0x14000255c
mov rbx, qword [rbp - 0x30]
test rbx, rbx
je 0x14000255c
nop dword [rax + rax]
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 0x140002540
mov qword [rbp - 0x30], r14
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x140002583
mov rax, qword [rcx]
call qword [rax + 0x10]
test rax, rax
je 0x140002583
mov r8, qword [rax]
mov edx, 1
mov rcx, rax
call qword [r8]
nop
mov rdx, qword [rbp - 0x40]
cmp rdx, 0x10
jb 0x1400025c1
inc rdx
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400025bc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400025bc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000e7bc
mov byte [rbp - 0x58], 0
mov qword [rbp - 0x40], 0xf
mov qword [rbp - 0x48], r14
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.1400039e0
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.14000e690
add rsp, 0x630
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.140004340
nop
int3