Function at 0x1400a5d90
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x20]
sub rsp, 0x120
mov rax, qword [0x1402cf868]
xor rax, rsp
mov qword [rbp + 0x10], rax
mov rax, qword gs:[0x58]
mov r14, rdx
mov edi, 4
mov rsi, rcx
add rdi, qword [rax]
mov eax, dword [rdi]
cmp dword [0x1402f7ac8], eax
jle 0x1400a5e1c
lea rcx, [0x1402f7ac8]
call fcn.1401c9670
cmp dword [0x1402f7ac8], 0xffffffff
jne 0x1400a5e1c
lea rcx, str.advapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rcx, rax
lea rdx, str.OpenProcessToken
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [0x1402f7ac8]
mov qword [0x1402f7b20], rax
call fcn.1401c9610
mov rbx, qword [0x1402f7b20]
xor r15d, r15d
mov qword [rsp + 0x50], r15
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x50]
lea edx, [r15 + 0x20]
call rbx
test eax, eax
jne 0x1400a5e55
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x1400a62b6
mov eax, dword [rdi]
cmp dword [0x1402f7adc], eax
mov qword [rsp + 0x160], r12
jle 0x1400a5eac
lea rcx, [0x1402f7adc]
call fcn.1401c9670
cmp dword [0x1402f7adc], 0xffffffff
jne 0x1400a5eac
lea rcx, str.advapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rcx, rax
lea rdx, str.LookupPrivilegeValueW
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [0x1402f7adc]
mov qword [0x1402f7ad0], rax
call fcn.1401c9610
xorps xmm0, xmm0
lea r8, [rbp - 0x6c]
movups xmmword [rbp - 0x70], xmm0
mov r12d, 1
lea rdx, str.SeIncreaseQuotaPrivilege
xor ecx, ecx
mov dword [rbp - 0x70], r12d
call qword [0x1402f7ad0]
test eax, eax
je 0x1400a6077
mov eax, dword [rdi]
cmp dword [0x1402f7b28], eax
jle 0x1400a5f27
lea rcx, [0x1402f7b28]
call fcn.1401c9670
cmp dword [0x1402f7b28], 0xffffffff
jne 0x1400a5f27
lea rcx, str.advapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rcx, rax
lea rdx, str.AdjustTokenPrivileges
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [0x1402f7b28]
mov qword [0x1402f7b10], rax
call fcn.1401c9610
mov rcx, qword [rsp + 0x50]
lea rax, [rbp - 0x78]
mov qword [rsp + 0x28], rax
lea r8, [rbp - 0x70]
xor r9d, r9d
mov qword [rsp + 0x20], r15
xor edx, edx
mov dword [rbp - 0x78], r15d
mov dword [rbp - 0x64], 2
call qword [0x1402f7b10]
test eax, eax
je 0x1400a6077
mov eax, dword [rdi]
cmp dword [0x1402f7ae8], eax
jle 0x1400a5fab
lea rcx, [0x1402f7ae8]
call fcn.1401c9670
cmp dword [0x1402f7ae8], 0xffffffff
jne 0x1400a5fab
lea rcx, str.user32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rcx, rax
lea rdx, str.GetShellWindow
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [0x1402f7ae8]
mov qword [0x1402f7ac0], rax
call fcn.1401c9610
call qword [0x1402f7ac0]
test rax, rax
je 0x1400a6077
lea rdx, [rsp + 0x58]
mov dword [rsp + 0x58], r15d
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp dword [rsp + 0x58], r15d
je 0x1400a6077
mov eax, dword [rdi]
cmp dword [0x1402f7ab0], eax
jle 0x1400a6017
lea rcx, [0x1402f7ab0]
call fcn.1401c9670
cmp dword [0x1402f7ab0], 0xffffffff
jne 0x1400a6017
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rcx, [0x1402f7ab0]
mov qword [0x1402f7af0], rax
call fcn.1401c9610
mov eax, dword [rdi]
cmp dword [0x1402f7b1c], eax
jle 0x1400a605d
lea rcx, [0x1402f7b1c]
call fcn.1401c9670
cmp dword [0x1402f7b1c], 0xffffffff
jne 0x1400a605d
mov rcx, qword [0x1402f7af0]
lea rdx, str.OpenProcess
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [0x1402f7b1c]
mov qword [0x1402f7ae0], rax
call fcn.1401c9610
mov r8d, dword [rsp + 0x58]
xor edx, edx
mov ecx, 0x400
call qword [0x1402f7ae0]
mov rbx, rax
test rax, rax
jne 0x1400a6089
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x1400a62ae
lea r8, [rsp + 0x60]
mov qword [rsp + 0x60], r15
mov edx, 2
mov rcx, rbx
call qword [0x1402f7b20]
test eax, eax
jne 0x1400a60cb
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x1400a62ae
mov eax, dword [rdi]
cmp dword [0x1402f7aec], eax
jle 0x1400a611a
lea rcx, [0x1402f7aec]
call fcn.1401c9670
cmp dword [0x1402f7aec], 0xffffffff
jne 0x1400a611a
lea rcx, str.advapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rcx, rax
lea rdx, str.DuplicateTokenEx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [0x1402f7aec]
mov qword [0x1402f7b00], rax
call fcn.1401c9610
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov r9d, 2
xor r8d, r8d
mov dword [rsp + 0x20], r12d
mov edx, 0xf01ff
mov qword [rsp + 0x68], r15
call qword [0x1402f7b00]
test eax, eax
jne 0x1400a617c
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x1400a62ae
mov eax, dword [rdi]
cmp dword [0x1402f7ad8], eax
jle 0x1400a61cb
lea rcx, [0x1402f7ad8]
call fcn.1401c9670
cmp dword [0x1402f7ad8], 0xffffffff
jne 0x1400a61cb
lea rcx, str.advapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rcx, rax
lea rdx, str.CreateProcessWithTokenW
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [0x1402f7ad8]
mov qword [0x1402f7ab8], rax
call fcn.1401c9610
mov rcx, qword [rsp + 0x68]
xorps xmm1, xmm1
xor eax, eax
xorps xmm0, xmm0
mov qword [rbp - 0x80], rax
mov r9, r14
mov qword [rbp], rax
mov r8, rsi
lea rax, [rsp + 0x70]
xor edx, edx
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r15
movups xmmword [rbp - 0x60], xmm1
mov qword [rsp + 0x28], r15
movups xmmword [rbp - 0x30], xmm1
mov dword [rsp + 0x20], r15d
movups xmmword [rbp - 0x20], xmm1
mov dword [rbp - 0x60], 0x68
movups xmmword [rsp + 0x70], xmm0
mov word [rbp - 0x20], r12w
movups xmmword [rbp - 0x50], xmm1
mov dword [rbp - 0x24], r12d
movups xmmword [rbp - 0x40], xmm1
movups xmmword [rbp - 0x10], xmm1
call qword [0x1402f7ab8]
mov rcx, qword [rsp + 0x50]
test eax, eax
jne 0x1400a627a
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x1400a62ae
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, r12b
mov r12, qword [rsp + 0x160]
mov rcx, qword [rbp + 0x10]
xor rcx, rsp
call fcn.1401c94c0
mov rbx, qword [rsp + 0x168]
add rsp, 0x120
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret