Function at 0x140082250
Capabilities:
Link many functions at runtime

Disassembly:
mov rax, rsp
push r12
push r14
push r15
sub rsp, 0x90
mov qword [rax - 0x38], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1410443b8]
xor rax, rsp
mov qword [rsp + 0x80], rax
cmp byte [0x1410488b8], 0
jne 0x14008252b
lea rcx, [0x1410488b8]
call fcn.1400ceea0
mov rbx, rax
mov qword [rsp + 0x68], rax
test rax, rax
je 0x1400822c1
mov rcx, rax
call fcn.140051f70
or rbx, 1
mov qword [rsp + 0x68], rbx
cmp byte [0x1410488b8], 0
jne 0x14008251a
mov byte [0x1410488b8], 1
mov dl, 1
lea rcx, [0x1401a1888]
call fcn.1400ce800
mov rbp, rax
test rax, rax
je 0x140082347
lea rdx, [0x1401a18a0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x141048830], rax
lea rdx, [0x1401a18b8]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x141048838], rax
lea rdx, [0x1401a18d0]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x141048840], rax
lea rdx, [0x1401a18e8]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x141048848], rax
cmp qword [0x141048840], 0
je 0x1400824f0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r14, rax
xor r12d, r12d
mov qword [rsp + 0x60], r12
cmp dword [0x14104881c], 0xfffffffe
jle 0x140082374
call fcn.140080e00
lea r8, [rsp + 0x60]
mov edx, 8
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140082440
mov dword [rsp + 0x78], r12d
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov eax, dword [rsp + 0x78]
test eax, eax
je 0x140082435
mov ecx, eax
call fcn.140127668
mov r15, rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x78]
mov r8, r15
mov edx, 1
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x14008242d
mov rsi, qword [r15]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_GetLengthSid]
mov edi, eax
mov ecx, eax
call fcn.140127668
mov qword [0x141048898], rax
mov r8, rsi
mov rdx, rax
mov ecx, edi
call qword [sym.imp.ADVAPI32.dll_CopySid]
test eax, eax
je 0x14008242d
mov rdx, qword [0x141048898]
lea rcx, [0x141048858]
call qword [0x141048840]
mov rcx, r15
call fcn.140126630
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x60], r12
lea r8, [rsp + 0x60]
mov edx, 0x2000e
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x14008247e
lea r8, [0x141048828]
mov edx, 2
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_DuplicateToken]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [0x1401a1908]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400824f0
mov dword [rsp + 0x78], r12d
mov word [rsp + 0x7c], 0x100
lea rcx, [0x141048820]
mov qword [rsp + 0x50], rcx
mov dword [rsp + 0x48], r12d
mov dword [rsp + 0x40], r12d
mov dword [rsp + 0x38], r12d
mov dword [rsp + 0x30], r12d
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x78]
call rax
test eax, eax
je 0x1400824f0
mov rdx, qword [0x141048820]
lea rcx, [0x141048878]
call qword [0x141048840]
mov dl, 1
lea rcx, [0x1401a1928]
call fcn.1400ce800
test rax, rax
je 0x14008251a
lea rdx, [0x1401a1938]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x141048850], rax
test bl, 1
je 0x14008252b
and rbx, 0xfffffffffffffffe
mov rcx, rbx
call fcn.140052420
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140102b40
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret