Function at 0x140074e53
Capabilities:
Create restart manager session

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x3f8
movaps xmmword [rsp + 0x3e0], xmm6
mov ebx, edx
mov rbp, rcx
mov rax, qword [0x14030d038]
xor rax, rsp
mov qword [rsp + 0x3d8], rax
mov eax, dword [0x140314b68]
mov ecx, dword [0x140311f48]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14007527c
cmp qword [0x140314b60], 0
je 0x1400750e7
lea rcx, [rsp + 0xc4]
mov dword [rcx], 0
xorps xmm6, xmm6
lea r8, [rsp + 0x390]
movaps xmmword [r8 + 0x30], xmm6
movaps xmmword [r8 + 0x20], xmm6
movaps xmmword [r8 + 0x10], xmm6
movaps xmmword [r8], xmm6
mov word [r8 + 0x40], 0
xor esi, esi
xor edx, edx
call sub.RstrtMgr.DLL_RmStartSession
test eax, eax
jne 0x140075224
movaps xmmword [rsp + 0xa0], xmm6
xor eax, eax
mov qword [rsp + 0xb0], rax
mov qword [rsp + 0x90], rax
movaps xmmword [rsp + 0x80], xmm6
test bl, bl
je 0x140075252
lea rsi, [rsp + 0xc8]
mov r8d, 0x2c8
mov rcx, rsi
mov dl, 0xaa
call fcn.140117f60
mov rcx, rsi
mov qword [rsp + 0x40], rbp
mov rdx, rbp
mov r8b, 1
mov r9d, 1
call fcn.140158500
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x60]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [0x1402ae190]
movaps xmmword [rdi], xmm0
mov rcx, rsi
mov rdx, rdi
call fcn.140008210
movzx eax, byte [rdi + 0x17]
test al, al
mov r14, qword [rdi + 8]
mov rcx, rax
cmovs rcx, r14
test rcx, rcx
je 0x1400750ee
movabs r12, 0x7fffffffffffffef
lea rbx, [rsp + 0x60]
lea r13, [rsp + 0xc8]
lea rsi, [rsp + 0x48]
mov rdi, qword [rsp + 0xa8]
cmp rdi, qword [rsp + 0xb0]
je 0x14007502c
test al, al
jns 0x1400750d1
mov rbp, qword [rsp + 0x60]
cmp r14, 0xa
jbe 0x1400750c5
cmp r14, r12
ja 0x1400752ba
lea r15, [r14 + 8]
and r15, 0xfffffffffffffff8
lea rcx, [r15 + r15]
call fcn.140112048
mov rcx, rax
mov qword [rdi], rax
lea rax, [r12 + 0x11]
or rax, r15
mov qword [rdi + 0x10], rax
mov qword [rdi + 8], r14
lea r8, [r14 + r14]
add r8, 2
mov rdx, rbp
call fcn.1401178b0
add rdi, 0x18
mov qword [rsp + 0xa8], rdi
jmp 0x140075044
lea rcx, [rsp + 0xa0]
mov rdx, rbx
call fcn.140104264
mov rdi, qword [rsp + 0xa8]
lea rax, [rdi - 0x18]
cmp byte [rdi - 1], 0
jns 0x140075051
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0x88]
cmp rcx, qword [rsp + 0x90]
jae 0x1400750b3
mov qword [rcx], rax
add rcx, 8
mov qword [rsp + 0x88], rcx
mov rcx, r13
mov rdx, rsi
call fcn.140008210
mov rcx, rbx
mov rdx, rsi
call fcn.1400f94f0
mov rcx, rsi
call fcn.1400e1350
movzx eax, byte [rsp + 0x77]
test al, al
mov r14, qword [rsp + 0x68]
mov rcx, rax
cmovs rcx, r14
test rcx, rcx
jne 0x140074fb5
jmp 0x1400750ee
lea rcx, [rsp + 0x80]
mov rdx, rsi
call fcn.14019733c
jmp 0x140075077
mov byte [rdi + 0x17], r14b
mov rcx, rdi
jmp 0x14007500e
mov rax, qword [rsp + 0x70]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [rsp + 0x60]
movups xmmword [rdi], xmm0
jmp 0x14007501e
xor esi, esi
jmp 0x140075224
lea rcx, [rsp + 0x60]
call fcn.1400e1350
lea rcx, [rsp + 0xc8]
call fcn.1400e11e0
mov rbp, qword [rsp + 0x40]
mov r8, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x88]
sub rdx, r8
shr rdx, 3
mov ecx, dword [rsp + 0xc4]
xor esi, esi
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x20], rsi
mov dword [rsp + 0x28], 0
xor r9d, r9d
call sub.RstrtMgr.DLL_RmRegisterResources
test eax, eax
jne 0x1400751af
mov ecx, dword [rsp + 0xc4]
xor edi, edi
mov edx, 1
xor r8d, r8d
call sub.RstrtMgr.DLL_RmShutdown
mov rcx, rbp
mov edx, 1
call fcn.140003e00
mov sil, 1
test al, al
jne 0x14007519e
mov esi, edi
mov ecx, 0x186a0
call fcn.140004c00
cmp edi, 0x13
je 0x140075197
mov rcx, rbp
mov edx, 1
call fcn.140003e00
lea edi, [rsi + 1]
test al, al
je 0x140075172
cmp esi, 0x13
setb sil
mov ecx, dword [rsp + 0xc4]
xor edx, edx
xor r8d, r8d
call sub.RstrtMgr.DLL_RmRestart
mov ecx, dword [rsp + 0xc4]
call sub.RstrtMgr.DLL_RmEndSession
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x1400751d5
mov qword [rsp + 0x88], rcx
call fcn.140112038
mov rdi, qword [rsp + 0xa0]
test rdi, rdi
je 0x140075224
mov rax, qword [rsp + 0xa8]
cmp rax, rdi
je 0x140075214
lea rbx, [rax - 0x18]
cmp byte [rax - 1], 0
jns 0x140075202
mov rcx, qword [rax - 0x18]
call fcn.140112038
mov rax, rbx
cmp rdi, rbx
jne 0x1400751ef
mov rcx, qword [rsp + 0xa0]
jmp 0x140075217
mov rcx, rdi
mov qword [rsp + 0xa8], rdi
call fcn.140112038
mov rcx, qword [rsp + 0x3d8]
xor rcx, rsp
call fcn.140115e50
mov eax, esi
movaps xmm6, xmmword [rsp + 0x3e0]
add rsp, 0x3f8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
cmp byte [rbp + 0x17], 0
mov rax, rbp
jns 0x14007525f
mov rax, qword [rbp]
lea rdx, [rsp + 0xc8]
mov qword [rdx], rax
lea rcx, [rsp + 0x80]
call fcn.14019733c
jmp 0x14007510a
lea rcx, [0x140314b68]
call fcn.1401120e4
cmp dword [0x140314b68], 0xffffffff
jne 0x140074eaa
lea rcx, str.RstrtMgr.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x140314b60], rax
lea rcx, [0x140314b68]
call fcn.140112084
jmp 0x140074eaa
mov rcx, rdi
call fcn.1401573b4
int3