Function at 0x14005cfb4
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 r14, rcx
lea rcx, [rsp + 0x40]
mov ebx, r9d
mov rbp, r8
call fcn.14004be6c
or r8d, 0xffffffff
lea r12d, [r8 + 2]
mov r13d, r8d
lea r15d, [r8 + 1]
test r12b, bl
lea rdx, [rsp + 0x98]
lea rcx, str.svr
cmovne r13d, r12d
test bl, 2
cmovne r13d, r15d
call fcn.14004e558
mov al, byte [0x1400f2ccc]
mov bl, r15b
test al, 4
jne 0x14005d03a
or al, 4
lea edx, [r12 + 1]
lea rcx, str.SeDebugPrivilege
mov bl, r12b
mov byte [0x1400f2ccc], al
call fcn.140016130
mov rdx, qword [rsp + 0x98]
mov eax, 0x40
cmp ax, word [rdx]
jne 0x14005d1fd
cmp ax, word [rdx + 2]
jne 0x14005d0d2
lea r8, [rsp + 0x40]
add rdx, 4
xor r9d, r9d
mov rcx, r14
mov byte [rsp + 0x20], r12b
call fcn.140056690
mov r11, qword [rsp + 0x40]
lea rdx, [rsp + 0xa8]
lea rcx, [rsp + 0x98]
mov qword [rsp + 0x98], r11
mov dword [rsp + 0xa8], r15d
call fcn.14004fc04
movsxd rdi, dword [rsp + 0xa8]
cmp rdi, r15
jne 0x14005d2ce
cmp bl, r15b
je 0x14005d0c7
and byte [0x1400f2ccc], 0xfb
lea rcx, str.SeDebugPrivilege
mov edx, 4
call fcn.140016130
mov r12d, 0x80070057
jmp 0x14005d29a
cmp ax, word [rdx]
jne 0x14005d1fd
lea r8, [rsp + 0x40]
add rdx, 2
xor r9d, r9d
mov rcx, r14
mov byte [rsp + 0x20], r12b
call fcn.140056690
lea rcx, [rsp + 0x98]
call fcn.14004be6c
mov rdi, qword [rsp + 0x40]
lea rdx, [rsp + 0x98]
lea rcx, [rsp + 0x48]
xor r8d, r8d
mov qword [rsp + 0x48], rdi
call fcn.14004f5d4
lea rdx, [rsp + 0x98]
xor r8d, r8d
mov rcx, r14
call fcn.1400035d0
mov rsi, qword [rsp + 0x98]
lea rcx, str.this
mov rdx, rsi
call fcn.140045ff4
cmp al, r15b
je 0x14005d161
lea rcx, [rsp + 0x98]
call fcn.140044f24
jmp 0x14005d23d
cmp word [rsi], r15w
je 0x14005d14f
lea rdi, [0x1400f2c58]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, r15
mov rbp, qword [r14 + 0x40]
cmp rbp, r15
je 0x14005d19d
cmp rbp, rax
je 0x14005d19d
mov rcx, qword [rbp + 0xb8]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
cmp eax, r15d
je 0x14005d1e5
mov r14, qword [r14 + 0x38]
mov rax, rbp
cmp r14, r15
jne 0x14005d17a
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [rsp + 0x98]
call fcn.140044f24
cmp bl, r15b
je 0x14005d29a
and byte [0x1400f2ccc], 0xfb
lea rcx, str.SeDebugPrivilege
mov edx, 4
call fcn.140016130
jmp 0x14005d29a
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [rsp + 0x98]
call fcn.140044f24
jmp 0x14005d266
add rdx, 2
mov eax, 0x5c
cmp ax, word [rdx]
jne 0x14005d21d
cmp word [rdx + 2], r15w
jne 0x14005d21d
add rdx, 2
cmp r13d, r15d
cmovl r13d, r12d
lea r8, [rsp + 0x40]
xor r9d, r9d
mov rcx, r14
mov byte [rsp + 0x20], r12b
call fcn.140056690
mov rdi, qword [rsp + 0x40]
cmp word [rdi], r15w
jne 0x14005d2ac
cmp rbp, r15
je 0x14005d274
mov rcx, qword [rbp + 0x20]
mov dword [rsp + 0x30], 0x97
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r15d
call qword [sym.imp.USER32.dll_SetWindowPos]
mov rcx, qword [rbp + 0x20]
mov edx, 0x43c
jmp 0x14005d2f9
cmp word [rdi], r15w
jne 0x14005d2ac
cmp bl, r15b
je 0x14005d297
and byte [0x1400f2ccc], 0xfb
lea rcx, str.SeDebugPrivilege
mov edx, 4
call fcn.140016130
mov r12d, r15d
lea rcx, [rsp + 0x40]
call fcn.140044f24
mov eax, r12d
jmp 0x14005d33b
mov qword [rsp + 0x30], r15
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r15d
call fcn.1400a6fc8
mov rdi, rax
mov dword [rsp + 0x30], 0x97
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r15d
call qword [sym.imp.USER32.dll_SetWindowPos]
mov edx, 0x10
mov rcx, rdi
xor r9d, r9d
xor r8d, r8d
cmp r13d, r15d
jle 0x14005d30c
call qword [sym.imp.USER32.dll_PostMessageW]
jmp 0x14005d312
call qword [sym.imp.USER32.dll_SendMessageW]
cmp bl, r15b
je 0x14005d32f
and byte [0x1400f2ccc], 0xfb
lea rcx, str.SeDebugPrivilege
mov edx, 4
call fcn.140016130
lea rcx, [rsp + 0x40]
call fcn.140044f24
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