Function at 0x140016220
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response
Set http header

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x90
mov rax, qword [0x140096040]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov rsi, r8
mov rdi, rdx
mov r15, rcx
mov qword [rsp + 0x40], rcx
mov qword [r11 - 0x78], rcx
mov qword [r11 - 0x68], rdx
mov qword [r11 - 0x60], r8
mov r14, qword [rsp + 0xf0]
mov qword [r11 - 0x58], r14
mov rbx, qword [rsp + 0xf8]
mov qword [r11 - 0x50], rbx
mov dword [rsp + 0x48], 1
xor ebp, ebp
mov dword [r11 - 0x48], ebp
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], rbp
mov qword [rcx + 0x18], 0xf
mov byte [rcx], bpl
mov dword [rsp + 0x48], 1
mov dword [rsp + 0x20], ebp
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 r13, rax
test rax, rax
jne 0x140016401
mov rdx, qword [rdi + 0x18]
cmp rdx, 7
jbe 0x14001630c
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
mov rcx, qword [rdi]
jb 0x140016307
mov r8, qword [rcx - 8]
sub rcx, r8
add rdx, 0x27
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140016922
mov rcx, r8
call fcn.140078e88
mov word [rdi], bp
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], rbp
mov rdx, qword [rsi + 0x18]
cmp rdx, 7
jbe 0x14001635a
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
mov rcx, qword [rsi]
jb 0x140016355
mov r8, qword [rcx - 8]
sub rcx, r8
add rdx, 0x27
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140016929
mov rcx, r8
call fcn.140078e88
mov word [rsi], bp
mov qword [rsi + 0x18], 7
mov qword [rsi + 0x10], rbp
mov rdx, qword [r14 + 0x18]
cmp rdx, 0xf
jbe 0x1400163a3
inc rdx
mov rcx, qword [r14]
cmp rdx, 0x1000
jb 0x14001639e
mov r8, qword [rcx - 8]
sub rcx, r8
add rdx, 0x27
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140016930
mov rcx, r8
call fcn.140078e88
mov qword [r14 + 0x10], rbp
mov qword [r14 + 0x18], 0xf
mov byte [r14], 0
mov rdx, qword [rbx + 0x18]
cmp rdx, 7
jbe 0x1400163f2
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
mov rcx, qword [rbx]
jb 0x1400163ed
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140016937
mov rcx, r8
call fcn.140078e88
mov qword [rbx + 0x10], rbp
mov word [rbx], bp
mov rax, r15
jmp 0x1400168ef
mov rdx, rdi
cmp qword [rdi + 0x18], 7
jbe 0x14001640e
mov rdx, qword [rdi]
mov r8d, 0x1bb
xor r9d, r9d
mov rcx, r13
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov r12, rax
test rax, rax
jne 0x140016436
mov rcx, r13
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
jmp 0x1400162cd
mov r8, rsi
cmp qword [rsi + 0x18], 7
jbe 0x140016443
mov r8, qword [rsi]
mov dword [rsp + 0x30], 0x800000
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
xor r9d, r9d
lea rdx, str.POST
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov rbp, rax
test rax, rax
jne 0x14001652a
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r13
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
mov rdx, qword [rdi + 0x18]
cmp rdx, 7
jbe 0x1400164c6
lea rdx, [rdx*2 + 2]
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x1400164c1
mov r8, qword [rcx - 8]
sub rcx, r8
add rdx, 0x27
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140016922
mov rcx, r8
call fcn.140078e88
xor ebp, ebp
mov qword [rdi + 0x10], rbp
mov qword [rdi + 0x18], 7
mov word [rdi], bp
mov rdx, qword [rsi + 0x18]
cmp rdx, 7
jbe 0x140016516
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
mov rcx, qword [rsi]
jb 0x140016511
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140016929
mov rcx, r8
call fcn.140078e88
mov qword [rsi + 0x10], rbp
mov qword [rsi + 0x18], 7
mov word [rsi], bp
jmp 0x140016369
mov r8, qword [rbx + 0x10]
test r8, r8
je 0x140016561
mov rdx, rbx
cmp qword [rbx + 0x18], 7
jbe 0x140016540
mov rdx, qword [rbx]
mov r9d, 0x20000000
mov rcx, rbp
call qword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x140016561
mov rcx, rbp
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
jmp 0x140016474
mov eax, dword [r14 + 0x10]
mov r9, r14
cmp qword [r14 + 0x18], 0xf
jbe 0x140016572
mov r9, qword [r14]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
xor r8d, r8d
xor edx, edx
mov rcx, rbp
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov rcx, rbp
test eax, eax
jne 0x1400165a3
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
jmp 0x140016474
xor edx, edx
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x1400165c0
mov rcx, rbp
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
jmp 0x140016474
xor r15d, r15d
mov dword [rsp + 0x58], r15d
lea rdx, [rsp + 0x58]
mov rcx, rbp
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x1400167a3
mov ecx, dword [rsp + 0x58]
inc ecx
call fcn.140078f3c
mov r15, rax
mov r8d, dword [rsp + 0x58]
inc r8d
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
lea r9, [rsp + 0x80]
mov r8d, dword [rsp + 0x58]
mov rdx, r15
mov rcx, rbp
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x140016796
mov r8d, dword [rsp + 0x80]
mov rdx, r15
mov rcx, qword [rsp + 0x40]
call fcn.14000e770
mov rcx, r15
call fcn.140078e88
cmp dword [rsp + 0x58], 0
ja 0x1400165c0
mov rcx, rbp
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r13
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
mov rdx, qword [rdi + 0x18]
cmp rdx, 7
jbe 0x1400166a2
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
mov rcx, qword [rdi]
jb 0x14001669d
mov r8, qword [rcx - 8]
sub rcx, r8
add rdx, 0x27
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140016922
mov rcx, r8
call fcn.140078e88
xor ebp, ebp
mov word [rdi], bp
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], rbp
mov rdx, qword [rsi + 0x18]
cmp rdx, 7
jbe 0x1400166f2
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
mov rcx, qword [rsi]
jb 0x1400166ed
mov r8, qword [rcx - 8]
sub rcx, r8
add rdx, 0x27
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140016929
mov rcx, r8
call fcn.140078e88
mov word [rsi], bp
mov qword [rsi + 0x18], 7
mov qword [rsi + 0x10], rbp
mov rdx, qword [r14 + 0x18]
cmp rdx, 0xf
jbe 0x14001673b
inc rdx
cmp rdx, 0x1000
mov rcx, qword [r14]
jb 0x140016736
mov r8, qword [rcx - 8]
sub rcx, r8
add rdx, 0x27
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140016930
mov rcx, r8
call fcn.140078e88
mov byte [r14], 0
mov qword [r14 + 0x18], 0xf
mov qword [r14 + 0x10], rbp
mov rdx, qword [rbx + 0x18]
cmp rdx, 7
jbe 0x14001678a
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
mov rcx, qword [rbx]
jb 0x140016785
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140016937
mov rcx, r8
call fcn.140078e88
mov qword [rbx + 0x10], rbp
mov word [rbx], bp
jmp 0x1400168ea
mov rcx, r15
call fcn.140078e88
jmp 0x140016647
mov rcx, rbp
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r13
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
mov rdx, qword [rdi + 0x18]
cmp rdx, 7
jbe 0x1400167fe
mov rcx, qword [rdi]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x1400167f9
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140016922
mov rcx, r8
call fcn.140078e88
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], 7
mov word [rdi], r15w
mov rdx, qword [rsi + 0x18]
cmp rdx, 7
jbe 0x14001684d
mov rcx, qword [rsi]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x140016848
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140016929
mov rcx, r8
call fcn.140078e88
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], 7
mov word [rsi], r15w
mov rdx, qword [r14 + 0x18]
cmp rdx, 0xf
jbe 0x140016897
mov rcx, qword [r14]
inc rdx
cmp rdx, 0x1000
jb 0x140016892
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140016930
mov rcx, r8
call fcn.140078e88
mov qword [r14 + 0x10], r15
mov qword [r14 + 0x18], 0xf
mov byte [r14], 0
mov rdx, qword [rbx + 0x18]
cmp rdx, 7
jbe 0x1400168e2
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x1400168dd
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140016937
mov rcx, r8
call fcn.140078e88
mov qword [rbx + 0x10], r15
mov word [rbx], r15w
mov rax, qword [rsp + 0x40]
mov qword [rbx + 0x18], 7
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140078980
mov rbx, qword [rsp + 0xe8]
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3