Function at 0x14006ba20
Capabilities:
Link many functions at runtime

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xf0
mov qword [rbp + 0x1f], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x140dda370]
xor rax, rsp
mov qword [rbp + 0x2f], rax
cmp byte [0x140ddca30], 0
jne 0x14006bf54
lea rcx, [0x140ddca30]
call fcn.14004c3b0
mov rbx, rax
xor r13d, r13d
lea r14d, [r13 + 1]
test rax, rax
je 0x14006baaf
mov rcx, qword [rax]
test byte [rcx + 4], r14b
je 0x14006ba94
mov rcx, rax
call fcn.140030650
jmp 0x14006baaa
xor eax, eax
lock cmpxchg dword [rcx], r14d
sete cl
test cl, cl
jne 0x14006baaa
mov rcx, rbx
call fcn.140030450
or rbx, r14
jmp 0x14006bab2
mov rbx, r13
mov qword [rbp - 0x31], rbx
cmp byte [0x140ddca30], 0
je 0x14006bb00
test bl, 1
je 0x14006bf54
and rbx, 0xfffffffffffffffe
mov qword [rbp - 0x31], rbx
and rbx, 0xfffffffffffffffe
mov rcx, qword [rbx]
test byte [rcx + 4], 1
je 0x14006baea
mov rcx, rbx
call fcn.140030410
jmp 0x14006bf54
mov eax, r14d
lock cmpxchg dword [rcx], r13d
je 0x14006bf54
mov rcx, rbx
jmp 0x14006bf4f
or esi, 0xffffffff
mov edx, esi
lea rcx, [0x140d889d0]
call fcn.140008270
mov qword [rbp - 0x19], rax
lea r15, [0x140dd80a8]
mov qword [rbp - 0x49], r15
lock inc dword [0x140dd80a8]
lea rdx, [rbp - 0x19]
lea rcx, [rbp - 0x49]
call fcn.14000b0d0
mov qword [rbp - 0x51], r13
mov byte [rbp - 0x41], 0
mov rax, qword [rbp - 0x19]
lock dec dword [rax]
jne 0x14006bb4e
mov rcx, qword [rbp - 0x19]
call fcn.14000ade0
lea rcx, [rbp - 0x49]
call fcn.14000b320
mov rcx, rax
mov dl, 1
call fcn.140046b40
mov qword [rbp - 0x51], rax
mov byte [rbp - 0x41], 1
test rax, rax
je 0x14006bc6b
lea rdx, [0x140d889b8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140ddc9b8], rax
movzx ecx, byte [rbp - 0x41]
test cl, cl
jne 0x14006bbaf
lea rcx, [rbp - 0x49]
call fcn.14000b320
mov rcx, rax
mov dl, 1
call fcn.140046b40
mov qword [rbp - 0x51], rax
mov cl, 1
mov byte [rbp - 0x41], cl
jmp 0x14006bbb3
mov rax, qword [rbp - 0x51]
test rax, rax
jne 0x14006bbbd
mov rdx, r13
jmp 0x14006bbd8
lea rdx, [0x140d889a0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdx, rax
movzx ecx, byte [rbp - 0x41]
mov rax, qword [rbp - 0x51]
mov qword [0x140ddc9c0], rdx
test cl, cl
jne 0x14006bbff
lea rcx, [rbp - 0x49]
call fcn.14000b320
mov rcx, rax
mov dl, 1
call fcn.140046b40
mov qword [rbp - 0x51], rax
mov cl, 1
mov byte [rbp - 0x41], cl
test rax, rax
jne 0x14006bc09
mov rdx, r13
jmp 0x14006bc24
lea rdx, [0x140d88988]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdx, rax
movzx ecx, byte [rbp - 0x41]
mov rax, qword [rbp - 0x51]
mov qword [0x140ddc9c8], rdx
test cl, cl
jne 0x14006bc4a
lea rcx, [rbp - 0x49]
call fcn.14000b320
mov rcx, rax
mov dl, 1
call fcn.140046b40
mov qword [rbp - 0x51], rax
mov byte [rbp - 0x41], 1
test rax, rax
jne 0x14006bc54
mov rax, r13
jmp 0x14006bc64
lea rdx, [0x140d88968]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140ddc9d0], rax
cmp qword [0x140ddc9c8], 0
je 0x14006bded
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rbx, rax
mov qword [rbp - 0x39], r13
call fcn.14006b950
lea r8, [rbp - 0x39]
mov edx, 8
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x14006bd4f
mov dword [rbp - 0x59], r13d
lea rax, [rbp - 0x59]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, r14d
mov rcx, qword [rbp - 0x39]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov r11d, dword [rbp - 0x59]
test r11d, r11d
je 0x14006bd45
mov ecx, r11d
call fcn.140004d70
mov r12, rax
lea rax, [rbp - 0x59]
mov qword [rsp + 0x20], rax
mov r9d, dword [rbp - 0x59]
mov r8, r12
mov edx, r14d
mov rcx, qword [rbp - 0x39]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x14006bd3d
mov rdi, qword [r12]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_GetLengthSid]
mov ebx, eax
mov ecx, eax
call fcn.140004d70
mov qword [0x140ddc9e8], rax
mov r8, rdi
mov rdx, rax
mov ecx, ebx
call qword [sym.imp.ADVAPI32.dll_CopySid]
test eax, eax
je 0x14006bd3d
mov rdx, qword [0x140ddc9e8]
lea rcx, [0x140ddc990]
call qword [0x140ddc9c8]
mov rcx, r12
call fcn.140004d80
mov rcx, qword [rbp - 0x39]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [rbp - 0x41], 0
jne 0x14006bd72
lea rcx, [rbp - 0x49]
call fcn.14000b320
mov rcx, rax
mov dl, 1
call fcn.140046b40
mov qword [rbp - 0x51], rax
mov byte [rbp - 0x41], 1
jmp 0x14006bd76
mov rax, qword [rbp - 0x51]
test rax, rax
je 0x14006bded
lea rdx, [0x140d88948]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14006bded
mov dword [rbp + 0x27], 0
mov word [rbp + 0x2b], 0x100
lea rcx, [0x140ddc9f0]
mov qword [rsp + 0x50], rcx
mov dword [rsp + 0x48], r13d
mov dword [rsp + 0x40], r13d
mov dword [rsp + 0x38], r13d
mov dword [rsp + 0x30], r13d
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x27]
call rax
test eax, eax
je 0x14006bded
mov rdx, qword [0x140ddc9f0]
lea rcx, [0x140ddc970]
call qword [0x140ddc9c8]
mov edx, esi
lea rcx, [0x140d88940]
call fcn.140008270
mov qword [rbp - 0x29], rax
mov qword [rbp - 9], r15
lock inc dword [0x140dd80a8]
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 9]
call fcn.14000b0d0
mov qword [rbp - 0x11], r13
mov byte [rbp - 1], 0
mov rax, qword [rbp - 0x29]
lock dec dword [rax]
jne 0x14006be31
mov rcx, qword [rbp - 0x29]
call fcn.14000ade0
lea rcx, [rbp - 9]
call fcn.14000b320
mov rcx, rax
mov dl, 1
call fcn.140046b40
mov qword [rbp - 0x11], rax
mov byte [rbp - 1], 1
test rax, rax
je 0x14006be68
lea rdx, [0x140d88920]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140ddc9d8], rax
mov edx, esi
lea rcx, [0x140d88218]
call fcn.140008270
mov qword [rbp - 0x21], rax
mov qword [rbp + 0xf], r15
lock inc dword [0x140dd80a8]
lea rdx, [rbp - 0x21]
lea rcx, [rbp + 0xf]
call fcn.14000b0d0
mov qword [rbp + 7], r13
mov byte [rbp + 0x17], 0
mov rax, qword [rbp - 0x21]
lock dec dword [rax]
jne 0x14006beac
mov rcx, qword [rbp - 0x21]
call fcn.14000ade0
lea rcx, [rbp + 0xf]
call fcn.14000b320
mov rcx, rax
mov dl, 1
call fcn.140046b40
mov qword [rbp + 7], rax
mov byte [rbp + 0x17], 1
test rax, rax
je 0x14006bee3
lea rdx, [0x140d888f8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140ddc9e0], rax
mov byte [0x140ddca30], 1
mov rax, qword [rbp + 0xf]
lock dec dword [rax]
jne 0x14006befd
mov rcx, qword [rbp + 0xf]
call fcn.14000ade0
nop
mov rax, qword [rbp - 9]
lock dec dword [rax]
jne 0x14006bf10
mov rcx, qword [rbp - 9]
call fcn.14000ade0
nop
mov rax, qword [rbp - 0x49]
lock dec dword [rax]
jne 0x14006bf23
mov rcx, qword [rbp - 0x49]
call fcn.14000ade0
nop
mov rcx, qword [rbp - 0x31]
test cl, 1
je 0x14006bf54
and rcx, 0xfffffffffffffffe
mov qword [rbp - 0x31], rcx
and rcx, 0xfffffffffffffffe
mov rdx, qword [rcx]
test byte [rdx + 4], 1
jne 0x14006bae0
mov eax, r14d
lock cmpxchg dword [rdx], r13d
je 0x14006bf54
call fcn.140030360
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.1400ac900
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret