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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x12f0]
mov eax, 0x13f0
call fcn.1400b0100
sub rsp, rax
mov rax, qword [0x140107040]
xor rax, rsp
mov qword [rbp + 0x12e0], rax
mov r14, rdx
mov rbx, rcx
xor sil, sil
xor r13d, r13d
mov dword [rsp + 0x20], r13d
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
test rax, rax
je 0x140003a30
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
mov qword [rbp - 0x50], rax
mov dword [rsp + 0x50], 0x68
mov word [rbp + 0xe0], r13w
xor edx, edx
mov r8d, 0x1fe
lea rcx, [rbp + 0xe2]
call sub.VCRUNTIME140.dll_memset
mov word [rbp + 0x2e0], r13w
xor edx, edx
mov r8d, 0xffe
lea rcx, [rbp + 0x2e2]
call sub.VCRUNTIME140.dll_memset
lea rax, [rbp + 0xe0]
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x70], 0x100
lea rax, [rbp + 0x2e0]
mov qword [rbp - 0x68], rax
mov dword [rbp - 0x60], 0x800
mov rdx, 0xffffffffffffffff
cmp qword [rbx + 0x18], 7
jbe 0x140003852
mov rax, qword [rbx]
inc rdx
cmp word [rax + rdx*2], r13w
jne 0x140003843
mov rbx, rax
jmp 0x14000385c
inc rdx
cmp word [rbx + rdx*2], r13w
jne 0x140003852
lea r9, [rsp + 0x50]
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
mov r8d, 0x50
xor r9d, r9d
mov rdx, qword [rsp + 0x68]
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov r15, rax
test rax, rax
je 0x140003a27
mov dword [rsp + 0x30], r13d
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
xor r9d, r9d
mov r8, qword [rbp - 0x68]
lea rdx, [0x1400cfd30]
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov rdi, rax
test rax, rax
je 0x140003a1e
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 0x140003a15
xor edx, edx
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x140003a15
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp - 0x40]
call sub.VCRUNTIME140.dll_memset
cmp qword [r14 + 0x18], 7
jbe 0x140003918
mov r14, qword [r14]
mov rdx, r14
lea rcx, [rbp - 0x40]
call fcn.14000d2a0
mov rax, qword [rbp - 0x40]
movsxd rcx, dword [rax + 4]
lea r14, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x40], r14
mov rax, qword [rbp - 0x40]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx - 0x44], edx
mov rax, qword [rbp - 0x40]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x40]
add rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::operator_bool_void_const___ptr64]
test al, al
je 0x1400039d9
mov dword [rsp + 0x40], r13d
nop dword [rax + rax]
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x1400039d6
mov ecx, eax
call fcn.1400afb34
mov rbx, rax
mov dword [rbp + 0xd0], r13d
lea r9, [rbp + 0xd0]
mov r8d, dword [rsp + 0x40]
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x1400039c7
mov r8d, dword [rbp + 0xd0]
mov rdx, rbx
lea rcx, [rbp - 0x40]
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, rbx
call fcn.1400af6c0
cmp dword [rsp + 0x40], 0
ja 0x140003970
mov sil, 1
mov rax, qword [rbp - 0x40]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x40], r14
mov rax, qword [rbp - 0x40]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx - 0x44], edx
lea rcx, [rbp - 0x38]
call fcn.14000c590
lea rcx, [rbp - 0x30]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x68]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
movzx eax, sil
mov rcx, qword [rbp + 0x12e0]
xor rcx, rsp
call fcn.1400af6a0
mov rbx, qword [rsp + 0x1440]
add rsp, 0x13f0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret