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

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0xb8]
sub rsp, 0x1a0
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
mov rax, qword [0x1402d9850]
xor rax, rsp
mov qword [rbp + 0x90], rax
xor r12d, r12d
mov dword [rsp + 0x48], r12d
mov dword [rsp + 0x44], 0x78
lea r9, [rsp + 0x44]
lea r8, [rsp + 0x48]
lea rdx, [0x14025d868]
lea rcx, [rsp + 0x68]
call fcn.14003fda0
nop
mov ebx, 0x7d0
lea rdi, vtable.std::ios_base.0
mov rcx, qword [0x1402de630]
test rcx, rcx
je 0x1400775e2
mov rax, qword [rcx]
mov edx, ebx
call qword [rax + 0x10]
test eax, eax
je 0x1400775e2
lea edx, [r12 + 2]
lea r8d, [r12 + 1]
lea rcx, [rbp - 0x80]
call fcn.140040070
nop
call fcn.14010ab78
mov r8, rax
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x80]
add rcx, rax
lea rdx, [rsp + 0x50]
call fcn.140040f30
nop
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140077566
mov rax, qword [rcx]
call qword [rax + 0x10]
test rax, rax
je 0x140077566
mov r8, qword [rax]
lea edx, [r12 + 1]
mov rcx, rax
call qword [r8]
nop
lea rdx, [0x14025d868]
lea rcx, [rbp - 0x80]
call fcn.140043d80
mov rcx, rax
lea rdx, [0x14021d9c8]
call fcn.140043d80
lea rdx, [rbp + 0x70]
lea rcx, [rbp - 0x80]
call fcn.14003ffc0
nop
lea r8, [rbp + 0x70]
cmp qword [rbp + 0x88], 8
cmovae r8, qword [rbp + 0x70]
mov rcx, qword [0x1402de630]
mov rax, qword [rcx]
mov r9, qword [rbp + 0x80]
mov edx, ebx
call qword [rax + 0x20]
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x70]
call fcn.140006e40
nop
lea rcx, [rbp + 8]
call fcn.14003fff0
nop
mov qword [rbp + 8], rdi
lea rcx, [rbp + 8]
call fcn.14010acb0
nop
mov r15b, r12b
mov dword [rsp + 0x40], r12d
mov dword [rsp + 0x4c], r12d
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.WinHTTP_Example_1.0
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov rsi, rax
test rax, rax
je 0x14007772f
mov r8d, 0x1bb
xor r9d, r9d
lea rdx, str.www.google.com
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov r14, rax
test rax, rax
je 0x140077726
mov dword [rsp + 0x30], 0x800000
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x14025f2d8]
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov rbx, rax
test rax, rax
je 0x140077718
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x14007770f
xor edx, edx
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x14007770f
mov dword [rsp + 0x40], r12d
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
mov ecx, dword [rsp + 0x40]
inc ecx
call fcn.14012a230
mov rdi, rax
test rax, rax
je 0x140077703
mov r8d, dword [rsp + 0x40]
inc r8d
xor edx, edx
mov rcx, rax
call fcn.14012d3f0
lea r9, [rsp + 0x4c]
mov r8d, dword [rsp + 0x40]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
mov r15b, 1
mov rcx, rdi
call fcn.14012a238
cmp dword [rsp + 0x40], r12d
jbe 0x140077708
jmp 0x1400776a1
mov dword [rsp + 0x40], r12d
lea rdi, vtable.std::ios_base.0
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov ebx, 0x7d0
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, qword [0x1402de630]
test rcx, rcx
je 0x14007782f
mov rax, qword [rcx]
mov edx, ebx
call qword [rax + 0x10]
test eax, eax
je 0x14007782f
mov edx, 2
lea r8d, [rdx - 1]
lea rcx, [rbp - 0x80]
call fcn.140040070
nop
call fcn.14010ab78
mov r8, rax
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x80]
add rcx, rax
lea rdx, [rsp + 0x50]
call fcn.140040f30
nop
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1400777a8
mov rax, qword [rcx]
call qword [rax + 0x10]
test rax, rax
je 0x1400777a8
mov r8, qword [rax]
mov edx, 1
mov rcx, rax
call qword [r8]
nop
lea rdx, [0x14025d868]
lea rcx, [rbp - 0x80]
call fcn.140043d80
mov rcx, rax
lea rdx, str.out._works:
call fcn.140043d80
mov rcx, rax
mov dl, r15b
call fcn.14006dfc4
lea rdx, [rbp + 0x70]
lea rcx, [rbp - 0x80]
call fcn.14003ffc0
nop
lea r8, [rbp + 0x70]
cmp qword [rbp + 0x88], 8
cmovae r8, qword [rbp + 0x70]
mov rcx, qword [0x1402de630]
mov rax, qword [rcx]
mov r9, qword [rbp + 0x80]
mov edx, ebx
call qword [rax + 0x20]
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x70]
call fcn.140006e40
nop
lea rcx, [rbp + 8]
call fcn.14003fff0
nop
mov qword [rbp + 8], rdi
lea rcx, [rbp + 8]
call fcn.14010acb0
nop
lea rcx, [rsp + 0x68]
call fcn.14003fbb0
nop
mov ecx, dword [rsp + 0x44]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov al, r15b
mov rcx, qword [rbp + 0x90]
xor rcx, rsp
call fcn.14012a1e0
lea r11, [rsp + 0x1a0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret