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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x128]
sub rsp, 0x228
mov qword [rbp - 0x78], 0xfffffffffffffffe
mov rax, qword [0x1403ddfb8]
xor rax, rsp
mov qword [rbp + 0x110], rax
mov qword [rbp - 0x80], r9
mov qword [rsp + 0x70], r8
mov rsi, rdx
mov r14, rcx
mov r13, qword [rbp + 0x190]
cmp byte [0x1403f09bc], 0
je 0x14022dd8f
cmp qword [rdx + 0x18], 8
jb 0x14022dd1e
mov rsi, qword [rdx]
call fcn.140130750
mov rcx, rax
mov qword [rsp + 0x68], rsi
lea rax, str.Rejecting_request_to_server:__s_as_service_is_already_stopped.
mov qword [rsp + 0x60], rax
lea rdi, [0x140328340]
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], getprotobyname
lea r15, str.....McCSPCore_srcMcWinHTTPClient.cpp
mov qword [rsp + 0x28], r15
lea r12, str.McAfee::MCSP::CMcWinHTTPClient::Request
mov qword [rsp + 0x20], r12
mov r9d, 1
xor r8d, r8d
mov edx, r9d
call fcn.140130940
xor eax, eax
jmp 0x14022e54d
cmp qword [rdx + 0x18], 8
jb 0x14022dd9b
mov rbx, qword [rdx]
jmp 0x14022dd9e
mov rbx, rsi
call fcn.140130750
mov rcx, rax
mov qword [rsp + 0x68], rbx
lea rax, str.Making_request_to__s
mov qword [rsp + 0x60], rax
lea rdi, [0x140328340]
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], reloc.WS2_32.dll_getservbyname
lea r15, str.....McCSPCore_srcMcWinHTTPClient.cpp
mov qword [rsp + 0x28], r15
lea r12, str.McAfee::MCSP::CMcWinHTTPClient::Request
mov qword [rsp + 0x20], r12
mov r9d, 1
xor r8d, r8d
mov edx, r9d
call fcn.140130940
mov ebx, 7
mov qword [rbp + 0x78], rbx
xor eax, eax
mov qword [rbp + 0x70], rax
mov word [rbp + 0x60], ax
mov dword [rbp - 0x70], eax
xor edx, edx
lea r8d, [rbx + 0x59]
lea rcx, [rbp - 0x68]
call fcn.14028e7e0
movups xmm0, xmmword [rbp - 0x70]
movaps xmmword [rbp + 0x80], xmm0
movups xmm1, xmmword [rbp - 0x60]
movaps xmmword [rbp + 0x90], xmm1
movups xmm0, xmmword [rbp - 0x50]
movaps xmmword [rbp + 0xa0], xmm0
movups xmm1, xmmword [rbp - 0x40]
movaps xmmword [rbp + 0xb0], xmm1
movups xmm0, xmmword [rbp - 0x30]
movaps xmmword [rbp + 0xc0], xmm0
movups xmm1, xmmword [rbp - 0x20]
movaps xmmword [rbp + 0xd0], xmm1
movsd xmm0, qword [rbp - 0x10]
movsd qword [rbp + 0xe0], xmm0
mov dword [rbp + 0x80], WSAGetLastError
lea rax, [rbp + 0x60]
cmp rax, rsi
je 0x14022dea6
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rsi
lea rcx, [rbp + 0x60]
call fcn.14002ddd0
mov rbx, qword [rbp + 0x78]
mov dword [rbp + 0x90], 0xffffffff
mov dword [rbp + 0xa0], 0xffffffff
mov dword [rbp + 0xd0], 0xffffffff
mov dword [rbp + 0xe0], 0xffffffff
lea rcx, [rbp + 0x60]
cmp rbx, 8
cmovae rcx, qword [rbp + 0x60]
lea r9, [rbp + 0x80]
xor r8d, r8d
mov edx, dword [rbp + 0x70]
call qword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
cmp eax, 1
je 0x14022df43
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test eax, eax
je 0x14022df43
call fcn.140130750
mov rcx, rax
mov dword [rsp + 0x68], ebx
lea rax, str.The_URI_supplied_could_not_be_cracked__last_err_d
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], 0x3d
mov r9d, 2
jmp 0x14022e04a
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
mov rcx, qword [str.McAfee]
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov qword [r14 + 8], rax
test rax, rax
jne 0x14022dfb1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.140130750
mov rcx, rax
mov dword [rsp + 0x68], ebx
lea rax, str.Failed_in_WinHttpOpen_with_Error__u
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], 0x45
jmp 0x14022e044
lea rdx, [rbp - 8]
lea rcx, [rbp + 0x60]
call fcn.14022d900
cmp qword [rax + 0x18], 8
jb 0x14022dfc8
mov rax, qword [rax]
xor r9d, r9d
movzx r8d, word [rbp + 0xa4]
mov rdx, rax
mov rcx, qword [r14 + 8]
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov qword [r14], rax
mov r8, qword [rbp + 0x10]
cmp r8, 8
jb 0x14022dffd
inc r8
mov rdx, qword [rbp - 8]
lea rcx, [rbp - 8]
call fcn.14002e610
cmp qword [r14], 0
jne 0x14022e065
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.140130750
mov rcx, rax
mov dword [rsp + 0x68], ebx
lea rax, str.Failed_in_WinHttpConnect_with_Error__u
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], 0x4d
mov r9d, 4
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r12
xor r8d, r8d
lea edx, [r8 + 1]
call fcn.140130940
jmp 0x14022e542
xor ebx, ebx
mov eax, 0x800000
cmp dword [rbp + 0x94], 2
cmove ebx, eax
lea rdx, [rbp + 0xf0]
lea rcx, [rbp + 0x60]
call fcn.14022e690
nop
lea rdx, [rbp - 8]
lea rcx, [rbp + 0x60]
call fcn.14022d3e0
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x78], rax
mov r8, qword [rbp + 0x10]
cmp r8, 8
jb 0x14022e0bc
inc r8
mov rdx, qword [rbp - 8]
lea rcx, [rbp - 8]
call fcn.14002e610
mov rax, qword [rsp + 0x78]
test rax, rax
je 0x14022e100
lea rdx, [rbp - 8]
lea rcx, [rbp + 0x60]
call fcn.14022d3e0
nop
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
lea rcx, [rbp + 0xf0]
call fcn.140032640
nop
mov r8, qword [rbp + 0x10]
cmp r8, 8
jb 0x14022e100
inc r8
mov rdx, qword [rbp - 8]
lea rcx, [rbp - 8]
call fcn.14002e610
lea r8, [rbp + 0xf0]
cmp qword [rbp + 0x108], 8
cmovae r8, qword [rbp + 0xf0]
cmp qword [r13 + 0x18], 8
jb 0x14022e122
mov r13, qword [r13]
mov dword [rsp + 0x30], ebx
xor eax, eax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov rdx, r13
mov rcx, qword [r14]
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov qword [r14 + 0x10], rax
test rax, rax
jne 0x14022e1ac
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.140130750
mov rcx, rax
mov dword [rsp + 0x68], ebx
lea rax, str.Failed_in_WinHttpOpenRequest_Error__u
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], 0x5c
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r12
mov r9d, 4
xor r8d, r8d
lea edx, [r9 - 3]
call fcn.140130940
jmp 0x14022e535
mov rbx, qword [rbp - 0x80]
xor r13d, r13d
cmp qword [rbx + 0x10], r13
je 0x14022e209
mov qword [rbp + 0x10], 7
mov qword [rbp + 8], r13
mov word [rbp - 8], r13w
lea r8d, [r13 + 0xc]
lea rdx, str.Content_Type
lea rcx, [rbp - 8]
call fcn.14002c3d0
nop
mov r8, rbx
lea rdx, [rbp - 8]
mov rcx, r14
call fcn.14022cae0
nop
mov r8, qword [rbp + 0x10]
cmp r8, 8
jb 0x14022e209
inc r8
mov rdx, qword [rbp - 8]
lea rcx, [rbp - 8]
call fcn.14002e610
lea rdx, [rbp + 0x18]
mov rcx, r14
call fcn.14022d960
nop
cmp qword [rbp + 0x28], 0
je 0x14022e30c
lea rbx, [rbp + 0x18]
cmp qword [rbp + 0x30], 8
cmovae rbx, qword [rbp + 0x18]
call fcn.140130750
mov rcx, rax
mov qword [rsp + 0x68], rbx
lea rax, str.Request_headers_to_send:__s
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], 0x66
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r12
mov r9d, 1
xor r8d, r8d
mov edx, r9d
call fcn.140130940
lea rdx, [rbp + 0x18]
cmp qword [rbp + 0x30], 8
cmovae rdx, qword [rbp + 0x18]
mov r9d, 0x20000000
or r8d, 0xffffffff
mov rcx, qword [r14 + 0x10]
call qword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x14022e30c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.140130750
mov rcx, rax
mov dword [rsp + 0x68], ebx
lea rax, str.Failed_in_WinHttpAddRequestHeaders_Error__u
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], WSAStartup
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r12
mov r9d, 4
xor r8d, r8d
lea edx, [r9 - 3]
call fcn.140130940
jmp 0x14022e52b
mov rdx, rsi
mov rcx, r14
call fcn.14022cfd0
mov ebx, eax
test eax, eax
je 0x14022e373
call fcn.140130750
mov rcx, rax
lea rax, str.Failed_to_apply_proxy
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], reloc.WS2_32.dll_WSACleanup
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r12
mov r9d, 4
xor r8d, r8d
lea edx, [r9 - 3]
call fcn.140130940
jmp 0x14022e52b
mov rbx, qword [rsp + 0x70]
cmp qword [rbx + 0x18], 8
jb 0x14022e384
mov rsi, qword [rbx]
jmp 0x14022e387
mov rsi, rbx
call fcn.140130750
mov rcx, rax
mov qword [rsp + 0x68], rsi
lea rax, str.Sending_body:__s
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], 0x78
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r12
mov r9d, 1
xor r8d, r8d
mov edx, r9d
call fcn.140130940
mov rdx, rbx
lea rcx, [rbp + 0x38]
call fcn.140134bd0
nop
mov rax, qword [rbp + 0x48]
test rax, rax
je 0x14022e43e
mov qword [rsp + 0x70], rax
mov qword [rbp + 0x10], 7
mov qword [rbp + 8], r13
mov word [rbp - 8], r13w
mov r8d, recv
lea rdx, str.Content_Length
lea rcx, [rbp - 8]
call fcn.14002c3d0
nop
lea r8, [rsp + 0x70]
lea rdx, [rbp - 8]
mov rcx, r14
call fcn.14022ccb0
nop
lea rcx, [rbp - 8]
call fcn.14002e550
mov rax, qword [rbp + 0x48]
lea r9, [rbp + 0x38]
cmp qword [rbp + 0x50], 0x10
cmovae r9, qword [rbp + 0x38]
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
xor r8d, r8d
xor edx, edx
mov rcx, qword [r14 + 0x10]
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x14022e4af
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.140130750
mov rcx, rax
mov dword [rsp + 0x68], ebx
lea rax, str.Failed_in_sending_body_Error__u
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], 0x83
jmp 0x14022e500
xor edx, edx
mov rcx, qword [r14 + 0x10]
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x14022e51e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.140130750
mov rcx, rax
mov dword [rsp + 0x68], ebx
lea rax, str.Failed_in_WinHttpReceiveResponse_Error__u
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], 0x8b
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r12
mov r9d, 4
xor r8d, r8d
lea edx, [r9 - 3]
call fcn.140130940
jmp 0x14022e521
mov ebx, r13d
lea rcx, [rbp + 0x38]
call fcn.14002dfa0
nop
lea rcx, [rbp + 0x18]
call fcn.14002e550
nop
lea rcx, [rbp + 0xf0]
call fcn.14002e550
nop
lea rcx, [rbp + 0x60]
call fcn.14002e550
mov eax, ebx
mov rcx, qword [rbp + 0x110]
xor rcx, rsp
call fcn.14026d870
add rsp, 0x228
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret