Function at 0x14006b720
Capabilities:
Initialize winhttp library

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x27]
sub rsp, 0x90
mov rax, qword [0x1401761c0]
xor rax, rsp
mov qword [rbp + 0x1f], rax
mov rdi, qword [rbp + 0x57]
mov qword [rbp + 7], rdi
xor ebx, ebx
mov qword [rdi], rbx
mov qword [rdi + 8], rbx
mov qword [rdi + 0x10], rbx
mov qword [rdi + 0x18], rbx
lea rcx, [rdi + 0x20]
call fcn.14006c910
nop
mov qword [rdi + 0xf8], rbx
mov qword [rdi + 0x100], rbx
mov qword [rdi + 0x108], rbx
mov qword [rdi + 0x110], rbx
xorps xmm0, xmm0
movups xmmword [rdi + 0x118], xmm0
mov qword [rdi + 0x128], rbx
mov qword [rdi + 0x130], 7
mov word [rdi + 0x118], bx
movups xmmword [rdi + 0x138], xmm0
mov qword [rdi + 0x148], rbx
mov qword [rdi + 0x150], 7
mov word [rdi + 0x138], bx
movups xmmword [rdi + 0x158], xmm0
mov qword [rdi + 0x168], rbx
mov qword [rdi + 0x170], 7
mov word [rdi + 0x158], bx
mov dword [rdi + 0x178], 0xfde9
mov dword [rdi + 0x17c], 1
movups xmmword [rdi + 0x180], xmm0
mov qword [rdi + 0x190], rbx
mov qword [rdi + 0x198], 7
mov word [rdi + 0x180], bx
movups xmmword [rdi + 0x1a0], xmm0
mov qword [rdi + 0x1b0], rbx
mov qword [rdi + 0x1b8], 7
mov word [rdi + 0x1a0], bx
mov dword [rdi + 0x1c0], 0xfde9
mov qword [rdi + 0x1c8], rbx
lea rdx, [rbp - 0x39]
call fcn.1400a7fc0
mov rax, qword [rbp - 0x39]
cmp dword [rax + 4], 6
ja 0x14006b87a
jne 0x14006b875
cmp dword [rax + 8], 3
jae 0x14006b87a
xor r14b, r14b
jmp 0x14006b87d
mov r14b, 1
mov rcx, qword [rbp - 0x31]
test rcx, rcx
je 0x14006b8c5
mov esi, 0xffffffff
mov eax, esi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14006b8c5
mov rbx, qword [rbp - 0x31]
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax]
call qword [case.0x1400a96cf.0]
lock xadd dword [rbx + 0xc], esi
cmp esi, 1
jne 0x14006b8c5
mov rcx, qword [rbp - 0x31]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400a96cf.0]
movzx edx, r14b
shl edx, 2
mov dword [rsp + 0x20], 0x10000000
xor r9d, r9d
xor r8d, r8d
lea rcx, str.Avast_SimpleHttp_3.0
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov rdx, rax
mov r8, qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, rdi
call fcn.14006bda0
mov rcx, qword [rdi]
test rcx, rcx
je 0x14006b9d3
mov dword [rbp + 0x17], 0x80
mov r9d, 4
lea r8, [rbp + 0x17]
lea edx, [r9 + 0x50]
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
je 0x14006b9fc
or dword [rbp + 0x17], 0x200
call fcn.1400a7de0
test al, al
je 0x14006b93f
or dword [rbp + 0x17], 0x800
mov r9d, 4
lea r8, [rbp + 0x17]
lea edx, [r9 + 0x50]
mov rcx, qword [rdi]
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x14006b969
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x14006ba39
mov dword [rsp + 0x20], 0x3a98
xor edx, edx
mov r9d, 0x3a98
mov r8d, 0x7530
mov rcx, qword [rdi]
call qword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
test eax, eax
je 0x14006b9a9
mov rax, rdi
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.1400b89f0
add rsp, 0x90
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov edx, eax
lea r8, str.Unable_to_set_WinHTTP_timeouts_
lea rcx, [rbp - 0x29]
call fcn.1400aa730
lea rdx, [0x140172368]
lea rcx, [rbp - 0x29]
call fcn.1400bb9a0
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea r8, str.Unable_to_initialize_a_WinHTTP_session_
lea rcx, [rbp - 0x29]
call fcn.1400aa730
lea rdx, [0x140172368]
lea rcx, [rbp - 0x29]
call fcn.1400bb9a0
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Unable_to_set_WinHTTP_protocols__:08x__
mov qword [rbp - 0x39], rcx
mov qword [rbp - 0x31], 0x29
lea r9, [rbp + 0x17]
lea r8, [rbp - 0x39]
mov edx, eax
lea rcx, [rbp - 0x29]
call fcn.14002d300
lea rdx, [0x140172368]
lea rcx, [rbp - 0x29]
call fcn.1400bb9a0
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Unable_to_set_WinHTTP_protocols__:08x__
mov qword [rbp - 0x39], rcx
mov qword [rbp - 0x31], 0x29
lea r9, [rbp + 0x17]
lea r8, [rbp - 0x39]
mov edx, eax
lea rcx, [rbp - 0x29]
call fcn.14002d300
lea rdx, [0x140172368]
lea rcx, [rbp - 0x29]
call fcn.1400bb9a0
int3