Function at 0x140001190
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x128
mov rax, qword [0x14003e040]
xor rax, rsp
mov qword [rsp + 0x110], rax
mov dword [rsp + 0x3c], 0
lea rdx, str.CheckAdminElevation_1.00
lea rcx, [0x14003f470]
call fcn.140001630
lea rdx, [0x140002fd0]
mov rcx, rax
call fcn.140004b90
nop
cmp dword [rsp + 0x130], 1
je 0x140001209
lea rcx, str.Usage:___CheckAdminElevation_n
call fcn.140009280
lea rcx, str.___________check_if_calling_process_has_admin_level_elevation_or_OS_does_not_have_UAC_n
call fcn.140009280
mov eax, 1
jmp 0x1400014df
mov byte [rsp + 0x30], 0
mov dword [rsp + 0x70], 0x94
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x140001251
cmp dword [rsp + 0x80], 2
jne 0x140001240
cmp dword [rsp + 0x74], 6
jb 0x140001240
mov dword [rsp + 0x40], 1
jmp 0x140001248
mov dword [rsp + 0x40], 0
movzx eax, byte [rsp + 0x40]
mov byte [rsp + 0x30], al
movzx eax, byte [rsp + 0x30]
test eax, eax
je 0x140001462
mov dword [rsp + 0x64], 0x80004005
mov qword [rsp + 0x50], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x50]
mov edx, 8
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x14000143d
lea rcx, [rsp + 0x58]
call fcn.140001590
nop
mov dword [rsp + 0x34], 0
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x14
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x1400012e7
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x1400012e7
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x18
je 0x1400012e7
mov dword [rsp + 0x44], 0
jmp 0x1400012ef
mov dword [rsp + 0x44], 1
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
je 0x140001327
cmp dword [rsp + 0x34], 0
jbe 0x140001327
mov eax, dword [rsp + 0x34]
mov ecx, eax
call fcn.14000bdac
mov qword [rsp + 0x68], rax
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x58]
call fcn.140008da0
nop
jmp 0x14000137e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x60], eax
lea rdx, str.afdsgfdsfsdf
lea rcx, [0x14003f470]
call fcn.140001630
mov ecx, dword [rsp + 0x60]
mov edx, ecx
mov rcx, rax
call fcn.1400049c0
lea rdx, [0x14002e4a8]
mov rcx, rax
call fcn.140001630
mov edx, 0x7a
mov rcx, rax
call fcn.1400047f0
lea rdx, [0x140002fd0]
mov rcx, rax
call fcn.140004b90
nop
cmp dword [rsp + 0x38], 0
je 0x1400013bf
lea rcx, [rsp + 0x58]
call fcn.140004d40
lea rcx, [rsp + 0x34]
mov qword [rsp + 0x20], rcx
mov r9d, dword [rsp + 0x34]
mov r8, rax
mov edx, 0x14
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x1400013bf
mov dword [rsp + 0x48], 1
jmp 0x1400013c7
mov dword [rsp + 0x48], 0
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x38], eax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
cmp dword [rsp + 0x38], 0
je 0x14000140d
lea rcx, [rsp + 0x58]
call fcn.140004d40
cmp dword [rax], 0
je 0x1400013fb
mov dword [rsp + 0x4c], 0
jmp 0x140001403
mov dword [rsp + 0x4c], 1
mov eax, dword [rsp + 0x4c]
mov dword [rsp + 0x3c], eax
jmp 0x140001430
lea rdx, str.Could_not_read_token_information
lea rcx, [0x14003f470]
call fcn.140001630
lea rdx, [0x140002fd0]
mov rcx, rax
call fcn.140004b90
nop
lea rcx, [rsp + 0x58]
call fcn.140004370
nop
jmp 0x140001460
lea rdx, str.Could_not_open_current_process
lea rcx, [0x14003f470]
call fcn.140001630
lea rdx, [0x140002fd0]
mov rcx, rax
call fcn.140004b90
nop
jmp 0x14000148c
lea rdx, str.NO_UAC_on_this_OSYS
lea rcx, [0x14003f470]
call fcn.140001630
lea rdx, [0x140002fd0]
mov rcx, rax
call fcn.140004b90
mov dword [rsp + 0x3c], 0
cmp dword [rsp + 0x3c], 0
jne 0x1400014b8
lea rdx, str.CheckAdminLevel_OK
lea rcx, [0x14003f470]
call fcn.140001630
lea rdx, [0x140002fd0]
mov rcx, rax
call fcn.140004b90
nop
jmp 0x1400014db
lea rdx, str.CheckAdminLevel_error
lea rcx, [0x14003f470]
call fcn.140001630
lea rdx, [0x140002fd0]
mov rcx, rax
call fcn.140004b90
nop
mov eax, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x110]
xor rcx, rsp
call fcn.14000bec0
add rsp, 0x128
ret