Function at 0x140005da0
Capabilities:
Acquire debug privileges

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0xb8
mov qword [rbp - 0x51], 0xfffffffffffffffe
mov rsi, rcx
mov rcx, qword [rcx + 0xa8]
call fcn.1400fc9f0
lea rcx, str.SeDebugPrivilege
call fcn.1400ffc40
lea rax, [rsi + 0x148]
mov qword [rbp + 0x7f], rax
lea r15, [rax + 8]
xor r12d, r12d
lea r13d, [r12 + 1]
mov qword [rbp + 0x67], r12
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
lea r8, [rbp + 0x67]
mov rdx, qword [rsi + 0x178]
mov rcx, rsi
call fcn.140006120
mov r14, qword [rbp + 0x67]
test al, al
je 0x140005fea
mov ecx, 0x10
call fcn.14029806c
mov rdi, rax
mov qword [rbp + 0x67], rax
test rax, rax
je 0x140005e47
mov qword [rax], r12
mov qword [rax + 8], r12
call fcn.14000a290
mov qword [rdi], rax
jmp 0x140005e4a
mov rdi, r12
mov rax, qword [r14]
mov rbx, qword [rax]
cmp rbx, rax
je 0x140005f9f
nop dword [rax]
xor r10b, r10b
mov r8d, dword [rbx + 0x20]
mov dword [rbp + 0x67], r8d
mov r9, qword [rsi + 0x178]
mov rax, qword [r9]
mov rcx, qword [rax + 8]
mov rdx, rax
cmp byte [rcx + 0x19], r10b
jne 0x140005e9a
cmp dword [rcx + 0x20], r8d
jae 0x140005e8e
mov rcx, qword [rcx + 0x10]
jmp 0x140005e94
mov rdx, rcx
mov rcx, qword [rcx]
cmp byte [rcx + 0x19], 0
je 0x140005e82
cmp rdx, rax
je 0x140005eaf
cmp r8d, dword [rdx + 0x20]
jb 0x140005eaf
mov qword [rbp + 0x6f], rdx
lea rax, [rbp + 0x6f]
jmp 0x140005eb7
mov qword [rbp + 0x77], rax
lea rax, [rbp + 0x77]
mov rax, qword [rax]
cmp rax, qword [r9]
jne 0x140005ec3
mov dl, 1
jmp 0x140005ed3
movzx edx, r10b
movzx ecx, word [rax + 0x28]
cmp word [rbx + 0x28], cx
cmovne edx, r13d
test dl, dl
je 0x140005f48
lea r8, [rbx + 0x28]
lea rdx, [rbp + 0x67]
lea rcx, [rbp - 0x49]
call fcn.14000a350
nop
mov rdx, rax
mov rcx, rdi
call fcn.14000a680
lea r9, [rax + 0x20]
mov qword [rsp + 0x20], rax
lea rdx, [rbp - 1]
mov rcx, rdi
call fcn.14000a6e0
nop
mov r8, qword [rbp - 0x11]
mov r9, r8
mov r8, qword [r8]
lea rdx, [rbp - 0x59]
lea rcx, [rbp - 0x11]
call fcn.140009220
mov rcx, qword [rbp - 0x11]
call fcn.1402012c0
cmp dword [rbp - 0x19], 0
jle 0x140005f39
mov rcx, qword [rbp - 0x21]
call fcn.140298600
cmp dword [rbp - 0x29], 0
jle 0x140005f48
mov rcx, qword [rbp - 0x31]
call fcn.140298600
cmp byte [rbx + 0x19], 0
jne 0x140005f96
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
jne 0x140005f72
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
jne 0x140005f96
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x140005f64
jmp 0x140005f96
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x140005f93
nop dword [rax]
cmp rbx, qword [rax + 0x10]
jne 0x140005f93
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x140005f80
mov rbx, rax
cmp rbx, qword [r14]
jne 0x140005e60
cmp qword [rdi + 8], 0
jbe 0x140005fc5
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax]
mov rcx, rax
mov r9, rdi
xor r8d, r8d
mov edx, dword [rsi + 0xd0]
call qword [sym.imp.USER32.dll_PostMessageW]
jmp 0x140005fea
mov r8, qword [rdi]
mov r9, r8
mov r8, qword [r8]
lea rdx, [rbp - 0x69]
mov rcx, rdi
call fcn.140009b00
mov rcx, qword [rdi]
call fcn.1402012c0
mov rcx, rdi
call fcn.1402012c0
mov rbx, qword [rsi + 0x178]
test rbx, rbx
je 0x14000601b
mov r8, qword [rbx]
mov r9, r8
mov r8, qword [r8]
lea rdx, [rbp - 0x61]
mov rcx, rbx
call fcn.140009b00
mov rcx, qword [rbx]
call fcn.1402012c0
mov rcx, rbx
call fcn.1402012c0
mov qword [rsi + 0x178], r14
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [rsi + 0xc0]
mov rcx, qword [rsi + 0xc8]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140005df3
add rsp, 0xb8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret