Function at 0x140015e3c
Capabilities:
Acquire debug privileges
Check os version

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0xa0]
sub rsp, 0x1a0
mov rax, qword [0x140050310]
xor rax, rsp
mov qword [rbp + 0x90], rax
mov esi, r9d
mov r14, rcx
call qword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
jae 0x140015e90
xor r8d, r8d
lea rdx, str.RamMap_requires_Windows_Vista_or_higher
xor ecx, ecx
call fcn.14000e98c
xor eax, eax
jmp 0x14001616f
xor r15d, r15d
mov ebx, 2
cmp al, 6
je 0x140015ea8
cmp al, 0xa
jne 0x140015eb0
mov dword [0x1400515b0], ebx
jmp 0x140015ec3
shr ax, 8
test al, al
je 0x140015ebc
mov dword [0x1400515b0], 1
jmp 0x140015ec3
mov dword [0x1400515b0], r15d
lea rcx, [rbp - 0x70]
call fcn.14000ef54
test al, al
je 0x14001616a
mov qword [rsp + 0x40], r15
lea rax, [0x1400515b8]
mov qword [rsp + 0x38], rax
lea rdx, str.SoftwareSysinternalsRamMap
mov qword [rsp + 0x30], r15
xor r9d, r9d
mov dword [rsp + 0x28], 0xf003f
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov dword [rsp + 0x20], r15d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea rcx, str.SeProfileSingleProcessPrivilege
call fcn.140005fc4
test al, al
je 0x14001614e
lea rcx, str.SeDebugPrivilege
call fcn.140005fc4
test al, al
je 0x14001614e
lea rcx, str.SeIncreaseQuotaPrivilege
call fcn.140005fc4
test al, al
je 0x14001614e
movzx eax, word [0x1400515b4]
cmp r15w, ax
je 0x140015f81
xor ecx, ecx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor r9d, r9d
mov r8d, ebx
mov edx, 0x111
xor ecx, ecx
call fcn.140010414
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14001616f
mov qword [0x1400515c0], r14
call qword [sym.imp.COMCTL32.dll_InitCommonControls]
lea rcx, str.commdlg_FindReplace
call qword [sym.imp.USER32.dll_RegisterWindowMessageW]
mov rcx, r14
mov dword [0x1400515c8], eax
call fcn.14000fa5c
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
lea r9, [fcn.140010414]
mov qword [rsp + 0x20], r15
xor r8d, r8d
lea rdx, str.MAIN_WINDOW
mov rcx, r14
call qword [sym.imp.USER32.dll_CreateDialogParamW]
mov qword [rsp + 0x50], rax
mov rdi, rax
test rax, rax
jne 0x140015fe8
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14001616a
mov rdx, qword [0x1400518a0]
cmp rdx, qword [0x1400518a8]
je 0x140016005
mov qword [rdx], rdi
add qword [0x1400518a0], 8
jmp 0x140016016
lea r8, [rsp + 0x50]
lea rcx, [0x140051898]
call fcn.14000afa0
mov rax, qword [0x140051848]
test rax, rax
je 0x140016039
mov rcx, qword [rax]
test rcx, rcx
je 0x140016032
call qword [sym.imp.OLEAUT32.dll_VariantInit]
jmp 0x140016035
mov eax, r15d
test eax, eax
jne 0x140016046
cmp esi, 1
mov ebx, esi
mov eax, 5
cmove ebx, eax
mov edx, ebx
mov rcx, rdi
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, rdi
call qword [sym.imp.USER32.dll_UpdateWindow]
lea rdx, str.ACCELERATORS
mov rcx, r14
call qword [sym.imp.USER32.dll_LoadAcceleratorsW]
mov rsi, rax
jmp 0x140016122
mov rcx, qword [0x1400515d0]
test rcx, rcx
je 0x1400160a8
mov rdx, qword [rsp + 0x58]
cmp rcx, rdx
je 0x140016099
call qword [sym.imp.USER32.dll_IsChild]
test eax, eax
je 0x1400160a8
mov rcx, qword [0x1400515d0]
lea rdx, [rsp + 0x58]
call qword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x140016122
lea r8, [rsp + 0x58]
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x140016122
mov rbx, qword [0x1400518a0]
cmp rbx, qword [0x140051898]
je 0x14001610c
mov rax, rbx
mov rdx, qword [rsp + 0x58]
add rbx, 0xfffffffffffffff8
cmp qword [rax - 8], rdx
je 0x1400160fa
mov rcx, qword [rbx]
call qword [sym.imp.USER32.dll_IsChild]
test eax, eax
jne 0x1400160fa
cmp rbx, qword [0x140051898]
mov rax, rbx
jne 0x1400160d0
jmp 0x14001610c
mov rcx, qword [rbx]
lea rdx, [rsp + 0x58]
call qword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x140016122
lea rcx, [rsp + 0x58]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x58]
call qword [sym.imp.USER32.dll_DispatchMessageW]
xor r9d, r9d
lea rcx, [rsp + 0x58]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x140016072
lea rcx, [0x1400518c0]
call fcn.14000e258
jmp 0x140015e89
mov r9d, InitCommonControls
lea r8, [0x14003e408]
lea rdx, str.Failed_to_get_required_privileges._r_nMake_sure_that_you_are_running_with_administrative_privileges_r_nand_that_your_account_has_the_Profile_Process__Debug_privileges_r_nIncrease_Quota_privileges.
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov eax, 1
mov rcx, qword [rbp + 0x90]
xor rcx, rsp
call fcn.14001d350
mov rbx, qword [rsp + 0x1d8]
add rsp, 0x1a0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret