Function at 0x14000c830
Capabilities:
Initialize winhttp library
Prepare http request
Reference http user-agent string
Set http header

Disassembly:
mov r11, rsp
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0xe0
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [r11 + 0x20], rbx
mov rax, qword [0x140073080]
xor rax, rsp
mov qword [rsp + 0xd0], rax
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
mov qword [rsp + 0x48], r8
movaps xmm0, xmmword [str.Mozilla_5.0__Windows_NT_10.0__WOW64__Trident_7.0__rv:11.0_]
movaps xmmword [rsp + 0x50], xmm0
movaps xmm1, xmmword [0x14005f040]
movaps xmmword [rsp + 0x60], xmm1
movaps xmm0, xmmword [0x14005f050]
movaps xmmword [rsp + 0x70], xmm0
movaps xmm1, xmmword [0x14005f060]
movaps xmmword [rsp + 0x80], xmm1
movaps xmm0, xmmword [0x14005f070]
movaps xmmword [r11 - 0x78], xmm0
movaps xmm1, xmmword [0x14005f080]
movaps xmmword [r11 - 0x68], xmm1
movaps xmm0, xmmword [0x14005f090]
movaps xmmword [r11 - 0x58], xmm0
mov eax, dword [0x14005f0a0]
mov dword [r11 - 0x48], eax
movzx eax, word [0x14005f0a4]
mov word [r11 - 0x44], ax
xor r15d, r15d
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x50]
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov r14, rax
test rax, rax
jne 0x14000c91f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.WinHttpOpen_Fails___err:_0x_x
lea rcx, [0x140077e88]
call fcn.1400042c0
jmp 0x14000ca63
mov edx, dword [rdi + 0xc]
cmp edx, 0xffffffff
je 0x14000c95f
mov dword [rsp + 0x20], edx
mov r9d, edx
mov r8d, edx
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
test eax, eax
jne 0x14000c95f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.Error__u_in_SetTimeouts._n
lea rcx, [0x140077e88]
call fcn.1400042c0
jmp 0x14000ca59
xor r9d, r9d
movzx r8d, word [rdi + 4]
mov rdx, rsi
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov rbp, rax
test rax, rax
jne 0x14000c99c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.WinHttpConnect_Fails___err:_0x_x
lea rcx, [0x140077e88]
call fcn.1400042c0
jmp 0x14000ca59
lea rdx, [rdi + 0x30]
cmp byte [rdi], r15b
je 0x14000c9b9
cmp qword [rdx + 0x18], 8
jb 0x14000c9af
mov rdx, qword [rdx]
mov dword [rsp + 0x30], 0x800000
jmp 0x14000c9c8
cmp qword [rdx + 0x18], 8
jb 0x14000c9c3
mov rdx, qword [rdx]
mov dword [rsp + 0x30], r15d
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
xor r9d, r9d
mov r8, rbx
mov rcx, rbp
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov rsi, rax
test rax, rax
jne 0x14000ca07
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.WinHttpOpenRequest_Fails___err:_0x_x
lea rcx, [0x140077e88]
call fcn.1400042c0
jmp 0x14000ca59
lea rdx, [rdi + 0x10]
cmp qword [rdx + 0x10], r15
jbe 0x14000ca6f
cmp qword [rdx + 0x18], 8
jb 0x14000ca1b
mov rdx, qword [rdx]
mov r9d, 0x20000000
mov r8d, 0xffffffff
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x14000ca6f
lea rdx, str.WinHttpAddRequestHeaders_Fails
lea rcx, [0x140077e88]
call fcn.140004ef0
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, rbp
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
mov rcx, rdi
call fcn.14000cac0
xor eax, eax
jmp 0x14000ca97
mov ecx, 0x18
call fcn.140024108
mov rbx, rax
mov qword [rsp + 0x48], rax
mov qword [rax + 8], rbp
mov qword [rax + 0x10], rsi
mov qword [rax], r14
mov rcx, rdi
call fcn.14000cac0
mov rax, rbx
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.140023e40
mov rbx, qword [rsp + 0x128]
add rsp, 0xe0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret