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

Disassembly:
push rbp
push rbx
sub rsp, 0xc8
lea rbp, [rsp + 0xc0]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov dword [rbp + 0x30], r8d
mov qword [rbp + 0x38], r9
lea rax, [rbp - 0x70]
mov rcx, rax
call fcn.14000a5f0
mov dword [rbp - 0x74], 0
mov dword [rbp - 0x78], 0
mov qword [rbp - 0x28], 0
mov dword [rbp - 4], 0
mov qword [rbp - 0x30], 0
mov qword [rbp - 0x10], 0
mov qword [rbp - 0x18], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov edx, 0
lea rax, str.WinHTTP_Example_1.0
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpOpen]
call rax
mov qword [rbp - 0x30], rax
cmp qword [rbp - 0x30], 0
je 0x140001616
mov eax, dword [rbp + 0x30]
movzx ecx, ax
mov rdx, qword [rbp + 0x28]
mov rax, qword [rbp - 0x30]
mov r9d, 0
mov r8d, ecx
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpConnect]
call rax
mov qword [rbp - 0x10], rax
jmp 0x140001630
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.Failed___in_WinHttpConnect___u__n
mov rcx, rax
call dbg.__mingw_printf
cmp qword [rbp - 0x10], 0
je 0x14000167b
mov rdx, qword [rbp + 0x38]
mov rax, qword [rbp - 0x10]
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8, rdx
lea rdx, [0x14000c04a]
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
call rax
mov qword [rbp - 0x18], rax
jmp 0x140001695
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.Failed___in_WinHttpOpenRequest___u__n
mov rcx, rax
call dbg.__mingw_printf
cmp qword [rbp - 0x18], 0
je 0x1400016db
mov rax, qword [rbp - 0x18]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
call rax
mov dword [rbp - 4], eax
jmp 0x1400016f5
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.Failed___in_WinHttpSendRequest___u__n
mov rcx, rax
call dbg.__mingw_printf
cmp dword [rbp - 4], 0
je 0x140001715
mov rax, qword [rbp - 0x18]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
call rax
mov dword [rbp - 4], eax
jmp 0x14000172f
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.Failed___in_WinHttpReceiveResponse___u__n
mov rcx, rax
call dbg.__mingw_printf
cmp dword [rbp - 4], 0
je 0x140001874
mov dword [rbp - 0x74], 0
lea rdx, [rbp - 0x74]
mov rax, qword [rbp - 0x18]
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
call rax
test eax, eax
sete al
test al, al
je 0x140001777
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.Error__u_in_WinHttpQueryDataAvailable___u__n
mov rcx, rax
call dbg.__mingw_printf
mov eax, dword [rbp - 0x74]
add eax, 1
mov eax, eax
mov rcx, rax
call sym.operator_new___unsigned_long_long_
mov qword [rbp - 0x28], rax
cmp qword [rbp - 0x28], 0
jne 0x1400017ad
lea rax, str.Out_of_memory_n
mov rcx, rax
call dbg.__mingw_printf
mov dword [rbp - 0x74], 0
jmp 0x140001869
mov eax, dword [rbp - 0x74]
add eax, 1
mov edx, eax
mov rax, qword [rbp - 0x28]
mov r8, rdx
mov edx, 0
mov rcx, rax
call sym.memset
mov ecx, dword [rbp - 0x74]
lea r8, [rbp - 0x78]
mov rdx, qword [rbp - 0x28]
mov rax, qword [rbp - 0x18]
mov r9, r8
mov r8d, ecx
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpReadData]
call rax
test eax, eax
sete al
test al, al
je 0x14000180f
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.Error__u_in_WinHttpReadData._n
mov rcx, rax
call dbg.__mingw_printf
jmp 0x140001856
mov eax, dword [rbp - 0x78]
mov edx, eax
mov rax, qword [rbp - 0x28]
lea rbx, [rdx + rax]
lea rax, [rbp - 0x70]
mov rcx, rax
call method.std::vector_unsigned_char__std::allocator_unsigned_char___.end__
mov qword [rbp - 0x48], rax
lea rdx, [rbp - 0x48]
lea rax, [rbp - 0x50]
mov rcx, rax
call method.__gnu_cxx::__normal_iterator_unsigned_char_const__std::vector_unsigned_char__std::allocator_unsigned_char_____.__normal_iterator_unsigned_char__void____gnu_cxx::__normal_iterator_unsigned_char__std::vector_unsigned_char__std::allocator_unsigned_
mov rcx, qword [rbp - 0x28]
mov rdx, qword [rbp - 0x50]
lea rax, [rbp - 0x70]
mov r9, rbx
mov r8, rcx
mov rcx, rax
call method.__gnu_cxx::__normal_iterator_unsigned_char__std::vector_unsigned_char__std::allocator_unsigned_char______std::vector_unsigned_char__std::allocator_unsigned_char___.insert_char__void____gnu_cxx::__normal_iterator_unsigned_char_const__std::vector_
cmp qword [rbp - 0x28], 0
je 0x140001869
mov rax, qword [rbp - 0x28]
mov rcx, rax
call sym.operator_delete___void_
mov eax, dword [rbp - 0x74]
test eax, eax
jne 0x140001739
lea rax, [rbp - 0x70]
mov rcx, rax
call method.std::vector_unsigned_char__std::allocator_unsigned_char___.empty___const
movzx eax, al
cmp eax, 1
sete al
test al, al
je 0x14000189c
lea rax, str.Failed___in_retrieving_the_File
mov rcx, rax
call dbg.__mingw_printf
cmp dword [rbp - 4], 0
jne 0x1400018bc
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.Error__d_has_occurred._n
mov rcx, rax
call dbg.__mingw_printf
cmp qword [rbp - 0x18], 0
je 0x1400018d3
mov rax, qword [rbp - 0x18]
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call rax
cmp qword [rbp - 0x10], 0
je 0x1400018ea
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call rax
cmp qword [rbp - 0x30], 0
je 0x140001901
mov rax, qword [rbp - 0x30]
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call rax
lea rax, [rbp - 0x70]
mov rcx, rax
call method.std::vector_unsigned_char__std::allocator_unsigned_char___.size___const
mov qword [rbp - 0x38], rax
mov rax, qword [rbp - 0x38]
mov rcx, rax
call sym.malloc
mov qword [rbp - 0x40], rax
mov dword [rbp - 0x1c], 0
jmp 0x140001954
mov eax, dword [rbp - 0x1c]
movsxd rdx, eax
lea rax, [rbp - 0x70]
mov rcx, rax
call method.std::vector_unsigned_char__std::allocator_unsigned_char___.operator___unsigned_long_long_
movzx ecx, byte [rax]
mov eax, dword [rbp - 0x1c]
movsxd rdx, eax
mov rax, qword [rbp - 0x40]
add rax, rdx
mov edx, ecx
mov byte [rax], dl
add dword [rbp - 0x1c], 1
mov eax, dword [rbp - 0x1c]
movsxd rbx, eax
lea rax, [rbp - 0x70]
mov rcx, rax
call method.std::vector_unsigned_char__std::allocator_unsigned_char___.size___const
cmp rbx, rax
setb al
test al, al
jne 0x14000192a
mov rax, qword [rbp + 0x20]
mov rdx, qword [rbp - 0x40]
mov qword [rax], rdx
mov rax, qword [rbp + 0x20]
mov rdx, qword [rbp - 0x38]
mov qword [rax + 8], rdx
nop
lea rax, [rbp - 0x70]
mov rcx, rax
call method.std::vector_unsigned_char__std::allocator_unsigned_char___.vector__
jmp 0x1400019b0
mov rax, qword [rbp + 0x20]
add rsp, 0xc8
pop rbx
pop rbp
ret