Function at 0x140001008
Capabilities:
Create restart manager session

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xc0
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rbp + 0x47], rax
xor edi, edi
or rsi, 0xffffffffffffffff
mov qword [rbp - 0x15], rdi
mov rbx, rdx
cmp ecx, 2
jne 0x14000122d
mov rcx, qword [rdx + 8]
cmp word [rcx], 0x2d
je 0x14000122d
mov rax, rsi
inc rax
cmp word [rcx + rax*2], di
jne 0x140001058
lea rax, [rcx + rax*2]
mov r8d, 0xa
lea rdx, [rbp - 0x21]
mov qword [rbp - 0x21], rax
call qword [sym.imp.msvcrt.dll_wcstoul]
nop dword [rax + rax]
mov dword [rbp - 0x19], eax
call qword [sym.imp.msvcrt.dll__errno]
nop dword [rax + rax]
cmp dword [rax], 0x22
je 0x14000122d
cmp dword [rbp - 0x19], edi
je 0x14000122d
mov rcx, qword [rbx + 8]
mov rax, rsi
inc rax
cmp word [rcx + rax*2], di
jne 0x1400010a7
lea rax, [rcx + rax*2]
cmp qword [rbp - 0x21], rax
jne 0x14000122d
lea r8, [rbp - 9]
xor edx, edx
lea rcx, [rbp - 0x29]
call qword [sym.imp.RstrtMgr.DLL_RmStartSession]
nop dword [rax + rax]
test eax, eax
je 0x1400010fd
mov r8d, 0x4f
lea rdx, str.wmain
lea rcx, str._S__d_:_Unexpected_error._n
call qword [sym.imp.msvcrt.dll_wprintf]
nop dword [rax + rax]
jmp 0x140001240
mov ecx, dword [rbp - 0x29]
lea rax, [rbp - 0x19]
mov qword [rsp + 0x30], rdi
mov r9d, 1
mov dword [rsp + 0x28], edi
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.RstrtMgr.DLL_RmRegisterResources]
nop dword [rax + rax]
test eax, eax
je 0x140001152
mov r8d, 0x56
lea rdx, str.wmain
lea rcx, str._S__d_:_Unexpected_error._n
call qword [sym.imp.msvcrt.dll_wprintf]
nop dword [rax + rax]
jmp 0x14000121a
mov edx, dword [rbp - 0x19]
mov ecx, dword [rbp - 0x29]
call fcn.140001270
test al, al
jne 0x14000117c
mov edx, dword [rbp - 0x19]
lea rcx, str.LOGO_Validation_FAILED._Process_id__u_was_not_found._n
call qword [sym.imp.msvcrt.dll_wprintf]
nop dword [rax + rax]
jmp 0x14000121a
mov ecx, dword [rbp - 0x29]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.RstrtMgr.DLL_RmShutdown]
nop dword [rax + rax]
mov edx, dword [rbp - 0x19]
mov ebx, eax
test eax, eax
je 0x1400011cc
mov r8d, eax
lea rcx, str.LOGO_Validation_FAILED._Unable_to_shutdown_registered_process_id__u_with_error_code__08x_n_n
call qword [sym.imp.msvcrt.dll_wprintf]
nop dword [rax + rax]
cmp ebx, 0x15e
jne 0x1400011ff
lea rcx, str.Reboot_required__see_Reason_Code_below._n_n
call qword [sym.imp.msvcrt.dll_wprintf]
nop dword [rax + rax]
jmp 0x1400011ff
lea rcx, str.LOGO_Validation_PASSED.__Successfully_stopped_process_id__u_n_n
call qword [sym.imp.msvcrt.dll_wprintf]
nop dword [rax + rax]
mov ecx, dword [rbp - 0x29]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.RstrtMgr.DLL_RmRestart]
nop dword [rax + rax]
mov ecx, dword [rbp - 0x29]
call fcn.140001500
test al, al
je 0x14000121a
lea rcx, str.Debugging_Information____n
call qword [sym.imp.msvcrt.dll_wprintf]
nop dword [rax + rax]
mov ecx, dword [rbp - 0x29]
call fcn.140001340
mov ecx, dword [rbp - 0x29]
call qword [sym.imp.RstrtMgr.DLL_RmEndSession]
nop dword [rax + rax]
xor eax, eax
jmp 0x140001242
lea rcx, str.Usage:_RmLogoTest.exe__app_svc_process_id__n
call qword [sym.imp.msvcrt.dll_wprintf]
nop dword [rax + rax]
mov eax, esi
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.140001a90
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret