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

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x1800aa080]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov r12, r9
mov esi, r8d
mov rdi, rdx
mov r13, rcx
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x28], xmm1
xor ebx, ebx
mov qword [rbp - 0x18], rbx
mov dword [rbp - 0x30], ebx
mov dword [rbp - 0x2c], ebx
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.WinHTTP_Example_1.0
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov r15, rax
test rax, rax
je 0x1800137a5
xor r9d, r9d
movzx r8d, si
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov r14, rax
test rax, rax
je 0x18001379c
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
xor r9d, r9d
mov r8, r12
lea rdx, [0x180097610]
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov rsi, rax
test rax, rax
je 0x180013793
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, rax
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x18001378a
xor edx, edx
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x18001378a
nop dword [rax]
nop word [rax + rax]
mov dword [rbp - 0x30], ebx
lea rdx, [rbp - 0x30]
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
mov ecx, dword [rbp - 0x30]
inc ecx
call fcn.1800848d4
mov rdi, rax
mov r8d, dword [rbp - 0x30]
inc r8d
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
lea r9, [rbp - 0x2c]
mov r8d, dword [rbp - 0x30]
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x18001377a
mov r9d, dword [rbp - 0x2c]
mov r8, rdi
mov rdx, qword [rbp - 0x20]
lea rcx, [rbp - 0x28]
call fcn.180025100
mov rcx, rdi
call fcn.180084330
cmp dword [rbp - 0x30], 0
ja 0x180013720
jmp 0x180013793
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rdi, qword [rbp - 0x20]
sub rdi, qword [rbp - 0x28]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r10, rax
mov r9, qword [rbp - 0x20]
mov r8, qword [rbp - 0x28]
sub r9, r8
je 0x1800137e4
mov rcx, rax
mov rdx, r8
sub rdx, rax
nop
movzx eax, byte [rcx + rdx]
mov byte [rcx], al
inc ebx
lea rcx, [rcx + 1]
movsxd rax, ebx
cmp rax, r9
jb 0x1800137d0
mov qword [rbp - 0x40], r10
mov qword [rbp - 0x38], rdi
movups xmm0, xmmword [rbp - 0x40]
movups xmmword [r13], xmm0
test r8, r8
je 0x180013831
mov rdx, qword [rbp - 0x18]
sub rdx, r8
mov rax, r8
cmp rdx, 0x1000
jb 0x180013829
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180013829
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r8
call fcn.180084330
mov rax, r13
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.180084310
mov rbx, qword [rsp + 0xc0]
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret