Function at 0x14006f54c
Capabilities:
Acquire debug privileges

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov rbp, rcx
lea rcx, [rsp + 0x40]
mov ebx, r9d
mov rdi, r8
call fcn.140057154
or r8d, 0xffffffff
lea esi, [r8 + 2]
mov r12d, r8d
lea r14d, [r8 + 1]
test sil, bl
lea rdx, [rsp + 0x98]
lea rcx, str.svr
cmovne r12d, esi
test bl, 2
cmovne r12d, r14d
call fcn.14005992c
mov al, byte [0x14010ced4]
lea r15d, [rsi + 3]
mov bl, r14b
test r15b, al
jne 0x14006f5d9
or al, r15b
lea edx, [rsi + 1]
lea rcx, str.SeDebugPrivilege
xor r8d, r8d
mov bl, sil
mov byte [0x14010ced4], al
call fcn.14001945c
mov rdx, qword [rsp + 0x98]
mov eax, 0x40
cmp ax, word [rdx]
jne 0x14006f7a6
cmp ax, word [rdx + 2]
jne 0x14006f672
lea r8, [rsp + 0x40]
add rdx, r15
xor r9d, r9d
mov rcx, rbp
mov byte [rsp + 0x20], sil
call fcn.14006a8f4
mov r11, qword [rsp + 0x40]
lea rdx, [rsp + 0xa8]
lea rcx, [rsp + 0x98]
mov qword [rsp + 0x98], r11
mov dword [rsp + 0xa8], r14d
call fcn.14006556c
movsxd rdi, dword [rsp + 0xa8]
cmp rdi, r14
jne 0x14006f8c4
cmp bl, r14b
je 0x14006f666
and byte [0x14010ced4], 0xfb
lea rcx, str.SeDebugPrivilege
xor r8d, r8d
mov edx, r15d
call fcn.14001945c
mov rsi, 0xffffffff80070057
jmp 0x14006f88b
cmp ax, word [rdx]
jne 0x14006f7a6
lea r8, [rsp + 0x40]
add rdx, 2
xor r9d, r9d
mov rcx, rbp
mov byte [rsp + 0x20], sil
call fcn.14006a8f4
mov r13, qword [rsp + 0x40]
lea rcx, [rsp + 0x98]
call fcn.140057154
lea rdx, [rsp + 0x98]
lea rcx, [rsp + 0x48]
xor r8d, r8d
mov qword [rsp + 0x48], r13
call fcn.14005aa6c
lea rdx, [rsp + 0x98]
xor r8d, r8d
mov rcx, rbp
call fcn.140003728
mov r11, qword [rsp + 0x98]
lea rcx, str.this
mov rdx, r11
call fcn.140050aa8
cmp al, r14b
je 0x14006f701
lea rcx, [rsp + 0x98]
call fcn.14004f564
jmp 0x14006f7eb
cmp word [r11], r14w
je 0x14006f6ef
lea r13, [0x14010ce50]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, r14
mov rdi, qword [rbp + 0x40]
cmp rdi, r14
je 0x14006f742
cmp rdi, rax
je 0x14006f742
mov rdx, qword [rsp + 0x98]
mov rcx, qword [rdi + 0xb8]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
cmp eax, r14d
je 0x14006f78b
mov rbp, qword [rbp + 0x38]
mov rax, rdi
cmp rbp, r14
jne 0x14006f71a
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [rsp + 0x98]
call fcn.14004f564
cmp bl, r14b
je 0x14006f88b
and byte [0x14010ced4], 0xfb
lea rcx, str.SeDebugPrivilege
xor r8d, r8d
mov edx, r15d
call fcn.14001945c
jmp 0x14006f88b
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [rsp + 0x98]
call fcn.14004f564
jmp 0x14006f855
add rdx, 2
mov eax, 0x5c
cmp ax, word [rdx]
jne 0x14006f7c6
cmp word [rdx + 2], r14w
jne 0x14006f7c6
add rdx, 2
cmp r12d, r14d
cmovl r12d, esi
lea r8, [rsp + 0x40]
xor r9d, r9d
mov rcx, rbp
mov byte [rsp + 0x20], sil
call fcn.14006a8f4
mov r13, qword [rsp + 0x40]
cmp word [r13], r14w
jne 0x14006f89d
cmp rdi, r14
je 0x14006f863
bt dword [rdi + 0x68], 0xf
jae 0x14006f831
mov rax, qword [rdi + 0x210]
mov rcx, qword [rax + 0x38]
jmp 0x14006f820
lea rax, [0x14010bee0]
cmp rcx, rax
je 0x14006f825
cmp qword [rcx + 0x40], r14
je 0x14006f81c
cmp rdi, qword [rcx + 0x40]
jne 0x14006f825
mov rcx, qword [rcx + 0x38]
cmp rcx, r14
jne 0x14006f804
cmp qword [rcx + 0x40], r14
je 0x14006f831
mov rdi, qword [rcx + 0x40]
jmp 0x14006f7f0
mov rcx, qword [rdi + 0x20]
mov dword [rsp + 0x30], 0x97
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r14d
call qword [sym.imp.USER32.dll_SetWindowPos]
mov rcx, qword [rdi + 0x20]
mov edx, 0x43c
jmp 0x14006f8ef
cmp word [r13], r14w
jne 0x14006f89d
cmp bl, r14b
je 0x14006f888
and byte [0x14010ced4], 0xfb
lea rcx, str.SeDebugPrivilege
xor r8d, r8d
mov edx, r15d
call fcn.14001945c
mov rsi, r14
lea rcx, [rsp + 0x40]
call fcn.14004f564
mov rax, rsi
jmp 0x14006f932
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r13
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r14d
call fcn.1400bf2f8
mov rdi, rax
mov dword [rsp + 0x30], 0x97
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r14d
call qword [sym.imp.USER32.dll_SetWindowPos]
mov edx, 0x10
mov rcx, rdi
xor r9d, r9d
xor r8d, r8d
cmp r12d, r14d
jle 0x14006f902
call qword [sym.imp.USER32.dll_PostMessageW]
jmp 0x14006f908
call qword [sym.imp.USER32.dll_SendMessageW]
cmp bl, r14b
je 0x14006f926
and byte [0x14010ced4], 0xfb
lea rcx, str.SeDebugPrivilege
xor r8d, r8d
mov edx, r15d
call fcn.14001945c
lea rcx, [rsp + 0x40]
call fcn.14004f564
xor eax, eax
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret