Function at 0x14000bd10
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
sub rsp, 0x1a0
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov rax, qword [0x14025a030]
xor rax, rsp
mov qword [rsp + 0x198], rax
xor r13d, r13d
mov dword [rsp + 0x54], r13d
mov dword [rsp + 0x44], 0x78
lea r9, [rsp + 0x44]
lea r8, [rsp + 0x54]
lea rdx, str._DNSMonitor::IsInternetWorks_
lea rcx, [rsp + 0x60]
call fcn.140001d10
nop
mov rcx, qword [0x140260548]
test rcx, rcx
je 0x14000be6b
mov rax, qword [rcx]
mov edx, 0x7d0
call qword [rax + 0x10]
test eax, eax
je 0x14000be6b
lea edx, [r13 + 2]
lea r8d, [r13 + 1]
lea rcx, [rsp + 0x80]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_int____ptr64]
nop
call qword [sym.imp.MSVCP90.dll_public:_static_class_std::locale_const____ptr64___cdecl_std::locale::classic_void_]
mov r8, rax
mov rax, qword [rsp + 0x80]
movsxd rcx, dword [rax + 4]
lea rcx, [rsp + rcx + 0x80]
lea rdx, [rsp + 0x48]
call qword [sym.imp.MSVCP90.dll_public:_class_std::locale___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::imbue_class_std::locale_const____ptr64____ptr64]
lea rcx, [rsp + 0x48]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::locale::destructor_void____ptr64]
lea rdx, str._DNSMonitor::IsInternetWorks_
lea rcx, [rsp + 0x80]
call fcn.140002150
mov rcx, rax
lea rdx, [0x1401b8794]
call fcn.140002150
lea rdx, [rsp + 0x170]
lea rcx, [rsp + 0x80]
call qword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::str_void____ptr64]
nop
lea r8, [rsp + 0x178]
cmp qword [rsp + 0x190], 8
cmovae r8, qword [rsp + 0x178]
mov rcx, qword [0x140260548]
mov rax, qword [rcx]
mov r9, qword [rsp + 0x188]
mov edx, 0x7d0
call qword [rax + 0x20]
nop
lea rcx, [rsp + 0x170]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x80]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::vbase_dtor_void____ptr64]
xor sil, sil
mov dword [rsp + 0x40], r13d
mov dword [rsp + 0x50], r13d
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.WinHTTP_Example_1.0
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov rbp, rax
test rax, rax
je 0x14000bfb2
mov r8d, 0x1bb
xor r9d, r9d
lea rdx, str.www.google.com
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov r12, rax
test rax, rax
je 0x14000bfa9
mov dword [rsp + 0x30], 0x800000
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x1401b87e8]
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov rdi, rax
test rax, rax
je 0x14000bfa0
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x14000bf97
xor edx, edx
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x14000bf97
nop
mov dword [rsp + 0x40], r13d
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
mov ecx, dword [rsp + 0x40]
inc ecx
call fcn.14015562c
mov rbx, rax
test rax, rax
je 0x14000bf92
mov r8d, dword [rsp + 0x40]
inc r8d
xor edx, edx
mov rcx, rax
call sub.MSVCR90.dll_memset
lea r9, [rsp + 0x50]
mov r8d, dword [rsp + 0x40]
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
mov sil, 1
mov rcx, rbx
call sub.MSVCR90.dll_void___cdecl_operator_delete___void____ptr64_
cmp dword [rsp + 0x40], 0
jbe 0x14000bf97
jmp 0x14000bf30
mov dword [rsp + 0x40], r13d
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, rbp
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, qword [0x140260548]
test rcx, rcx
je 0x14000c0ba
mov rax, qword [rcx]
mov edx, 0x7d0
call qword [rax + 0x10]
test eax, eax
je 0x14000c0ba
mov edx, 2
lea r8d, [rdx - 1]
lea rcx, [rsp + 0x80]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_int____ptr64]
nop
call qword [sym.imp.MSVCP90.dll_public:_static_class_std::locale_const____ptr64___cdecl_std::locale::classic_void_]
mov r8, rax
mov rax, qword [rsp + 0x80]
movsxd rcx, dword [rax + 4]
lea rcx, [rsp + rcx + 0x80]
lea rdx, [rsp + 0x48]
call qword [sym.imp.MSVCP90.dll_public:_class_std::locale___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::imbue_class_std::locale_const____ptr64____ptr64]
lea rcx, [rsp + 0x48]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::locale::destructor_void____ptr64]
lea rdx, str._DNSMonitor::IsInternetWorks_
lea rcx, [rsp + 0x80]
call fcn.140002150
mov rcx, rax
lea rdx, str.out._works:
call fcn.140002150
mov rcx, rax
movzx edx, sil
call qword [sym.imp.MSVCP90.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___bool____ptr64]
lea rdx, [rsp + 0x170]
lea rcx, [rsp + 0x80]
call qword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::str_void____ptr64]
nop
lea r8, [rsp + 0x178]
cmp qword [rsp + 0x190], 8
cmovae r8, qword [rsp + 0x178]
mov rcx, qword [0x140260548]
mov rax, qword [rcx]
mov r9, qword [rsp + 0x188]
mov edx, 0x7d0
call qword [rax + 0x20]
nop
lea rcx, [rsp + 0x170]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x80]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::vbase_dtor_void____ptr64]
nop
lea rcx, [rsp + 0x60]
call fcn.140001e50
nop
mov ecx, dword [rsp + 0x44]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov al, sil
mov rcx, qword [rsp + 0x198]
xor rcx, rsp
call fcn.140155650
lea r11, [rsp + 0x1a0]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r13
pop r12
pop rdi
ret