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

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x6a0
mov rax, qword [0x14000f010]
xor rax, rsp
mov qword [rsp + 0x690], rax
mov r14, rdx
mov qword [r11 - 0x5d0], rdx
xor ebx, ebx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rbx
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x100], xmm0
movups xmmword [rsp + 0x110], xmm0
movups xmmword [rsp + 0x120], xmm0
movups xmmword [rsp + 0x130], xmm0
movups xmmword [rsp + 0x140], xmm0
movups xmmword [rsp + 0x150], xmm0
mov qword [r11 - 0x568], rax
mov dword [rsp + 0x100], WSAGetLastError
lea rax, [r11 - 0x438]
mov qword [r11 - 0x5b0], rax
mov dword [rsp + 0x120], pe_nt_image_headers64
lea rax, [r11 - 0x238]
mov qword [r11 - 0x580], rax
mov dword [rsp + 0x150], pe_nt_image_headers64
mov rdx, 0xffffffffffffffff
nop dword [rax + rax]
inc rdx
cmp word [rcx + rdx*2], 0
jne 0x1400014a0
lea r9, [rsp + 0x100]
xor r8d, r8d
call qword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
je 0x14000180e
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.A_WinHTTP_Example_Program_1.0
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov r12, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x140001830
xor r9d, r9d
movzx r8d, word [rsp + 0x124]
lea rdx, [rsp + 0x290]
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov r13, rax
mov qword [rsp + 0x48], rax
test rax, rax
je 0x140001852
mov eax, ebx
mov ecx, 0x800000
cmp dword [rsp + 0x114], 2
cmove eax, ecx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
xor r9d, r9d
lea r8, [rsp + 0x490]
lea rdx, [0x14000a828]
mov rcx, r13
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov rsi, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x14000187a
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x1400018a2
xor edx, edx
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x1400018ca
xor edx, edx
mov r8d, 0x108
lea rcx, [rsp + 0x180]
call sub.VCRUNTIME140.dll_memset
mov rdx, r14
lea rcx, [rsp + 0x180]
call fcn.1400059e0
nop
mov dword [rsp + 0x170], ebx
nop dword [rax]
mov dword [rsp + 0xf0], ebx
lea rdx, [rsp + 0xf0]
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x140001632
lea rdx, str.Error
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140006600
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rdi
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___unsigned_long_int____ptr64]
lea rdx, str._in_WinHttpQueryDataAvailable.
mov rcx, rax
call fcn.140006600
lea rdx, [0x1400067d0]
mov rcx, rax
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 ecx, dword [rsp + 0xf0]
inc ecx
call fcn.140007d50
mov rdi, rax
mov r8d, dword [rsp + 0xf0]
inc r8d
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
lea r9, [rsp + 0x170]
mov r8d, dword [rsp + 0xf0]
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x1400016c0
lea rdx, str.Error
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140006600
mov r15, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, r15
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___unsigned_long_int____ptr64]
lea rdx, str._in_WinHttpReadData.
mov rcx, rax
call fcn.140006600
lea rdx, [0x1400067d0]
mov rcx, rax
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]
jmp 0x1400016d9
mov r8d, dword [rsp + 0x170]
mov rdx, rdi
lea rcx, [rsp + 0x180]
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]
mov rcx, rdi
call fcn.140007b90
cmp dword [rsp + 0xf0], 0
ja 0x1400015d0
lea rcx, [rsp + 0x188]
call fcn.140006220
test rax, rax
jne 0x140001726
mov rax, qword [rsp + 0x180]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x180]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
nop
lea rcx, [rsp + 0x180]
call fcn.140001900
nop
mov rcx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000176e
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test r13, r13
je 0x140001785
mov rcx, r13
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test r12, r12
je 0x140001794
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
mov rdx, qword [r14 + 0x18]
cmp rdx, 0x10
jb 0x1400017ca
inc rdx
mov rcx, qword [r14]
cmp rdx, 0x1000
jb 0x1400017c5
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140001807
mov rcx, r8
call fcn.140007b90
mov qword [r14 + 0x10], rbx
mov qword [r14 + 0x18], setsockopt
mov byte [r14], 0
mov rcx, qword [rsp + 0x690]
xor rcx, rsp
call fcn.140007b70
lea r11, [rsp + 0x6a0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
lea rdx, str.Error_in_WinHttpCrackUrl
lea rcx, [rsp + 0x60]
call fcn.140001240
lea rdx, [0x14000c888]
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140.dll__CxxThrowException
lea rdx, str.Error_in_WinHttpOpen
lea rcx, [rsp + 0x78]
call fcn.140001240
lea rdx, [0x14000c888]
lea rcx, [rsp + 0x78]
call sub.VCRUNTIME140.dll__CxxThrowException
lea rdx, str.Error_in_WinHttpConnect
lea rcx, [rsp + 0x90]
call fcn.140001240
lea rdx, [0x14000c888]
lea rcx, [rsp + 0x90]
call sub.VCRUNTIME140.dll__CxxThrowException
lea rdx, str.Error_in_WinHttpOpenRequest
lea rcx, [rsp + 0xa8]
call fcn.140001240
lea rdx, [0x14000c888]
lea rcx, [rsp + 0xa8]
call sub.VCRUNTIME140.dll__CxxThrowException
lea rdx, str.Error_in_WinHttpSendRequest
lea rcx, [rsp + 0xc0]
call fcn.140001240
lea rdx, [0x14000c888]
lea rcx, [rsp + 0xc0]
call sub.VCRUNTIME140.dll__CxxThrowException
lea rdx, str.Error_in_WinHttpReceiveResponse
lea rcx, [rsp + 0xd8]
call fcn.140001240
lea rdx, [0x14000c888]
lea rcx, [rsp + 0xd8]
call sub.VCRUNTIME140.dll__CxxThrowException
int3