Function at 0x180035230
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x1800ad040]
xor rax, rsp
mov qword [rsp + 0x68], rax
xor esi, esi
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.C_WinHTTP_Example_1.0
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov r12, rax
test rax, rax
je 0x180035465
mov r8d, 0x1bb
xor r9d, r9d
lea rdx, str.pastebin.com
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov r13, rax
test rax, rax
je 0x18003545c
mov dword [rsp + 0x30], 0x800000
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
xor r9d, r9d
lea r8, str._raw_308Npv2h
lea rdx, [0x1800a4b00]
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov rdi, rax
test rax, rax
je 0x180035453
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x18003544a
xor edx, edx
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x18003544a
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], 0xf
mov byte [rsp + 0x48], sil
mov dword [rsp + 0x40], esi
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x180035396
lea ecx, [rax + 1]
call fcn.180038a8c
mov rbx, rax
lea r9, [rsp + 0x44]
mov r8d, dword [rsp + 0x40]
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x180035387
mov ecx, dword [rsp + 0x44]
mov byte [rcx + rbx], 0
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.180036be0
mov rcx, rbx
call fcn.180038400
cmp dword [rsp + 0x40], 0
ja 0x180035333
lea rsi, [rsp + 0x48]
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x60]
cmp rbp, 0xf
cmova rsi, rbx
mov rax, qword [rsp + 0x58]
cmp rax, 1
jb 0x1800353fe
lea r14, [rsi + rax]
movsx r15d, byte [0x18003bbf8]
mov r8, r14
sub r8, rsi
mov edx, r15d
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x1800353fe
nop word [rax + rax]
cmp byte [rax], 0x31
je 0x180035407
inc rax
mov r8, r14
sub r8, rax
mov edx, r15d
mov rcx, rax
call sub.VCRUNTIME140.dll_memchr
test rax, rax
jne 0x1800353e0
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
sub rax, rsi
cmp rax, 0xffffffffffffffff
je 0x1800353fe
cmp rbp, 0xf
jbe 0x18003544a
lea rdx, [rbp + 1]
mov rax, rbx
cmp rdx, 0x1000
jb 0x180035442
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180035442
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbx
call fcn.180038400
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r13
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.180038310
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret