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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x80
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 r14, rax
test rax, rax
je 0x180048a89
mov r8d, 0x1bb
xor r9d, r9d
lea rdx, str.pastebin.com
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov r15, rax
test rax, rax
je 0x180048a80
mov dword [rsp + 0x30], 0x800000
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
xor r9d, r9d
lea r8, str._raw_9F3VHxkv
lea rdx, [0x1800b84c0]
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov rdi, rax
test rax, rax
je 0x180048a77
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 0x180048a6e
xor edx, edx
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x180048a6e
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x40], sil
nop dword [rax + rax]
mov dword [rsp + 0xb0], esi
lea rdx, [rsp + 0xb0]
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
mov eax, dword [rsp + 0xb0]
test eax, eax
je 0x18004899d
lea ecx, [rax + 1]
call fcn.18009a7cc
mov rbx, rax
lea r9, [rsp + 0xb8]
mov r8d, dword [rsp + 0xb0]
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x180048987
mov ecx, dword [rsp + 0xb8]
mov byte [rcx + rbx], 0
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rbx + r8], 0
jne 0x180048970
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.18003c590
mov rcx, rbx
call fcn.18009a720
cmp dword [rsp + 0xb0], 0
ja 0x180048910
lea rcx, [rsp + 0x60]
call fcn.1800484a0
mov rdx, qword [rax + 0x10]
cmp qword [rax + 0x18], 0xf
jbe 0x1800489b5
mov rax, qword [rax]
lea rcx, [rsp + 0x40]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x58]
cmp rsi, 0xf
cmova rcx, rbx
mov qword [rsp + 0x20], rdx
mov r9, rax
xor r8d, r8d
mov rdx, qword [rsp + 0x50]
call fcn.18003c280
mov rbp, rax
mov rdx, qword [rsp + 0x78]
cmp rdx, 0xf
jbe 0x180048a2e
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180048a1f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180048a1f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18009a720
mov rsi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x40]
cmp rbp, 0xffffffffffffffff
je 0x180048aa0
cmp rsi, 0xf
jbe 0x180048a6e
lea rdx, [rsi + 1]
mov rax, rbx
cmp rdx, 0x1000
jb 0x180048a66
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180048a66
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbx
call fcn.18009a720
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rbx, qword [rsp + 0xc0]
add rsp, 0x80
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3