Function at 0x1800554c0
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x40]
sub rsp, 0x140
mov rax, qword [0x1801aed20]
xor rax, rsp
mov qword [rbp + 0x30], rax
xor r12d, r12d
mov dword [rsp + 0x38], edx
mov bl, r12b
mov qword [rbp + 8], r12
mov dword [rbp - 0x20], r12d
mov rdi, r8
mov r15, rcx
mov esi, 0x80004005
call fcn.18003dd04
lea r13d, [r12 + 5]
lea r14d, [r12 + 7]
cmp dword [rax + 0x20], r13d
jl 0x1800555e4
lea rcx, [0x180160200]
mov qword [rbp - 0x68], r14
mov qword [rbp - 0x70], r12
mov word [rbp - 0x80], r12w
call fcn.1800d9868
mov r8, rax
lea rdx, [0x180160200]
lea rcx, [rbp - 0x80]
call fcn.18001eca0
lea rcx, str.Nvidia::UXDriver::Core::SyncProxy::RegisterWorker
mov qword [rbp - 0x48], r14
mov qword [rbp - 0x50], r12
mov word [rbp - 0x60], r12w
call fcn.1800d9868
mov r8, rax
lea rdx, str.Nvidia::UXDriver::Core::SyncProxy::RegisterWorker
lea rcx, [rbp - 0x60]
call fcn.18001eca0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x78], rax
lea rax, str.sync_register_session_id:
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0x38]
mov dword [rbp - 0x18], eax
lea rax, [rsp + 0x40]
mov qword [rbp - 0x10], rax
lea rax, vtable.Nvidia::Logging::ChainLoggable_class_Nvidia::Logging::Chain_unsigned_long_int__class_Nvidia::Logging::Chain_char_const_____26____ptr64__class_Nvidia::Logging::Chain_struct_Nvidia::Logging::NullType__struct_Nvidia::Logging::NullType____.0
mov qword [rbp - 8], rax
lea rax, [rbp - 0x18]
mov qword [rbp], rax
call fcn.18003dd04
mov rcx, rax
lea r9, [rbp - 0x60]
lea rax, [rbp - 0x80]
mov edx, r13d
mov qword [rsp + 0x28], rax
lea r8, [rbp - 8]
mov dword [rsp + 0x20], 0xac
call fcn.180019ae4
xor edx, edx
lea rax, [rbp - 0x20]
lea r9, [rbp + 8]
mov qword [rsp + 0x20], rax
xor ecx, ecx
lea r8d, [rdx + 1]
call qword [sym.imp.WTSAPI32.dll_WTSEnumerateSessionsW]
mov r8d, dword [rbp - 0x20]
mov edx, r12d
test r8d, r8d
je 0x1800556ff
mov eax, edx
lea rcx, [rax + rax*2]
mov rax, qword [rbp + 8]
movsd xmm1, qword [rax + rcx*8 + 0x10]
mov eax, dword [rax + rcx*8]
movsd qword [rbp - 0x70], xmm1
cmp dword [rsp + 0x38], eax
je 0x180055639
inc edx
cmp edx, r8d
jb 0x18005560f
jmp 0x1800556ff
mov bl, 1
call fcn.18003dd04
cmp dword [rax + 0x20], r13d
jl 0x1800556ff
lea rcx, [0x180160200]
mov qword [rbp - 0x68], r14
mov qword [rbp - 0x70], r12
mov word [rbp - 0x80], r12w
call fcn.1800d9868
mov r8, rax
lea rdx, [0x180160200]
lea rcx, [rbp - 0x80]
call fcn.18001eca0
lea rcx, str.Nvidia::UXDriver::Core::SyncProxy::RegisterWorker
mov qword [rbp - 0x48], r14
mov qword [rbp - 0x50], r12
mov word [rbp - 0x60], r12w
call fcn.1800d9868
mov r8, rax
lea rdx, str.Nvidia::UXDriver::Core::SyncProxy::RegisterWorker
lea rcx, [rbp - 0x60]
call fcn.18001eca0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x78], rax
lea rax, str.sync_session_is_valid
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], rax
lea rax, vtable.Nvidia::Logging::ChainLoggable_class_Nvidia::Logging::Chain_char_const_____22____ptr64__class_Nvidia::Logging::Chain_struct_Nvidia::Logging::NullType__struct_Nvidia::Logging::NullType___.0
mov qword [rbp - 0x18], rax
lea rax, [rsp + 0x40]
mov qword [rbp - 0x10], rax
call fcn.18003dd04
mov rcx, rax
lea r9, [rbp - 0x60]
lea rax, [rbp - 0x80]
mov edx, r13d
mov qword [rsp + 0x28], rax
lea r8, [rbp - 0x18]
mov dword [rsp + 0x20], 0xb9
call fcn.180019ae4
mov rcx, qword [rbp + 8]
call qword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
cmp dword [rsp + 0x38], r12d
je 0x180055db9
test rdi, rdi
je 0x180055db9
test bl, bl
je 0x180055db9
mov rax, qword [rdi]
mov qword [rbp - 8], r12
mov rbx, qword [rax]
mov rcx, rbx
call qword [fcn.18000e000]
lea r8, [rbp - 8]
mov rcx, rdi
lea rdx, [0x18015eaf0]
call rbx
xor ecx, ecx
mov esi, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov edx, dword [rsp + 0x38]
lea rcx, [rbp + 0x10]
call fcn.18006ab38
cmp qword [rax + 0x18], 8
jb 0x180055769
mov rax, qword [rax]
mov r8, rax
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
xor r8d, r8d
lea rcx, [rbp + 0x10]
mov dl, 1
mov qword [rbp - 0x18], rax
call fcn.18001ea24
call fcn.18003dd04
lea rdi, [0x180160200]
cmp dword [rax + 0x20], r13d
jl 0x18005585f
mov rcx, rdi
mov qword [rbp - 0x68], r14
mov qword [rbp - 0x70], r12
mov word [rbp - 0x80], r12w
call fcn.1800d9868
mov r8, rax
lea rcx, [rbp - 0x80]
mov rdx, rdi
call fcn.18001eca0
lea rbx, str.Nvidia::UXDriver::Core::SyncProxy::RegisterWorker
mov qword [rbp - 0x28], r14
mov rcx, rbx
mov qword [rbp - 0x30], r12
mov word [rbp - 0x40], r12w
call fcn.1800d9868
mov r8, rax
lea rcx, [rbp - 0x40]
mov rdx, rbx
call fcn.18001eca0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x78], rax
lea rax, str.sync_mutex_handle_is
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x18]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x68], rax
lea rax, method.Nvidia::Logging::Loggable.virtual_0
mov qword [rbp - 0x60], rax
lea rax, [rsp + 0x60]
mov qword [rbp - 0x58], rax
call fcn.18003dd04
mov rcx, rax
lea r9, [rbp - 0x40]
lea rax, [rbp - 0x80]
mov edx, r13d
mov qword [rsp + 0x28], rax
lea r8, [rbp - 0x60]
mov dword [rsp + 0x20], 0xc6
call fcn.180019ae4
jmp 0x180055866
lea rbx, str.Nvidia::UXDriver::Core::SyncProxy::RegisterWorker
call fcn.18003dd04
cmp dword [rax + 0x20], r13d
jl 0x18005592e
mov rcx, rdi
mov qword [rbp - 0x28], r14
mov qword [rbp - 0x30], r12
mov word [rbp - 0x40], r12w
call fcn.1800d9868
mov r8, rax
lea rcx, [rbp - 0x40]
mov rdx, rdi
call fcn.18001eca0
mov rcx, rbx
mov qword [rbp - 0x68], r14
mov qword [rbp - 0x70], r12
mov word [rbp - 0x80], r12w
call fcn.1800d9868
mov r8, rax
lea rcx, [rbp - 0x80]
mov rdx, rbx
call fcn.18001eca0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x78], rax
lea rax, str.creating_sync_mutex_handle_error
mov qword [rbp - 0x60], rax
lea rax, [rsp + 0x70]
mov qword [rbp - 0x58], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x60], eax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x68], rax
lea rax, vtable.Nvidia::Logging::ChainLoggable_class_Nvidia::Logging::Chain_unsigned_long_int__class_Nvidia::Logging::Chain_char_const_____33____ptr64__class_Nvidia::Logging::Chain_struct_Nvidia::Logging::NullType__struct_Nvidia::Logging::NullType____.0
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x48], rax
call fcn.18003dd04
mov rcx, rax
lea r9, [rbp - 0x80]
lea rax, [rbp - 0x40]
mov edx, r13d
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x40]
mov dword [rsp + 0x20], 0xc7
call fcn.180019ae4
test esi, esi
js 0x180055d9b
call fcn.18003dd04
cmp dword [rax + 0x20], r13d
jl 0x1800559fc
mov rcx, rdi
mov qword [rbp - 0x28], r14
mov qword [rbp - 0x30], r12
mov word [rbp - 0x40], r12w
call fcn.1800d9868
mov r8, rax
lea rcx, [rbp - 0x40]
mov rdx, rdi
call fcn.18001eca0
mov rcx, rbx
mov qword [rbp - 0x68], r14
mov qword [rbp - 0x70], r12
mov word [rbp - 0x80], r12w
call fcn.1800d9868
mov r8, rax
lea rcx, [rbp - 0x80]
mov rdx, rbx
call fcn.18001eca0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x78], rax
lea rax, str.Locking_the_mutex_to_store_Sync_object_for_session
mov qword [rbp - 0x60], rax
lea rax, [rsp + 0x70]
mov qword [rbp - 0x58], rax
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x60], eax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x68], rax
lea rax, vtable.Nvidia::Logging::ChainLoggable_class_Nvidia::Logging::Chain_unsigned_long_int__class_Nvidia::Logging::Chain_char_const_____51____ptr64__class_Nvidia::Logging::Chain_struct_Nvidia::Logging::NullType__struct_Nvidia::Logging::NullType____.0
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x48], rax
call fcn.18003dd04
mov rcx, rax
lea r9, [rbp - 0x80]
lea rax, [rbp - 0x40]
mov edx, r13d
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x40]
mov dword [rsp + 0x20], 0xcb
call fcn.180019ae4
lea rdx, [r15 + 0x48]
lea rcx, [rbp - 0x80]
call fcn.18001b620
lea r8, str.GlobalCplShutdown_8D5475ED_3A12_4f45_9ACE_23289E49C0DF
xor edx, edx
mov ecx, 0x100000
call qword [sym.imp.KERNEL32.dll_OpenEventW]
mov r14, rax
test rax, rax
je 0x180055bbb
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x180055bbb
mov eax, dword [rsp + 0x38]
lea rdi, [r15 + 0x68]
mov rcx, qword [rdi]
mov rbx, rcx
mov rdx, qword [rcx + 8]
jmp 0x180055a61
cmp dword [rdx + 0x20], eax
jae 0x180055a5b
mov rdx, qword [rdx + 0x10]
jmp 0x180055a61
mov rbx, rdx
mov rdx, qword [rdx]
cmp byte [rdx + 0x19], r12b
je 0x180055a50
cmp rbx, rcx
je 0x180055a71
cmp eax, dword [rbx + 0x20]
jae 0x180055aa6
lea rax, [rsp + 0x38]
mov rcx, rdi
lea r8, [rsp + 0x40]
mov qword [rsp + 0x40], rax
call fcn.180058ab8
mov r8, rbx
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x40]
mov rcx, rdi
lea r9, [rax + 0x20]
call fcn.180058aec
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rbp - 8]
cmp qword [rbx + 0x28], rsi
je 0x180055af0
test rsi, rsi
je 0x180055aca
mov rax, qword [rsi]
mov rdi, qword [rax + 8]
mov rcx, rdi
call qword [fcn.18000e000]
mov rcx, rsi
call rdi
mov rdi, qword [rbx + 0x28]
mov qword [rbx + 0x28], rsi
test rdi, rdi
je 0x180055aec
mov rax, qword [rdi]
mov rbx, qword [rax + 0x10]
mov rcx, rbx
call qword [fcn.18000e000]
mov rcx, rdi
call rbx
mov rsi, qword [rbp - 8]
mov rax, qword [r15 - 0x68]
mov rbx, qword [rax + 0x30]
mov rcx, rbx
call qword [fcn.18000e000]
mov rdx, rsi
lea rcx, [r15 - 0x68]
call rbx
mov rdx, qword [rbp - 0x18]
mov esi, eax
test rdx, rdx
je 0x180055b88
mov rcx, qword [0x1801fad70]
mov rbx, rcx
mov rax, qword [rcx + 8]
cmp byte [rax + 0x19], r12b
jne 0x180055b51
mov r8d, dword [rsp + 0x38]
cmp dword [rax + 0x20], r8d
jae 0x180055b3a
mov rax, qword [rax + 0x10]
jmp 0x180055b40
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], r12b
je 0x180055b2e
cmp rbx, rcx
je 0x180055b51
cmp r8d, dword [rbx + 0x20]
jae 0x180055b84
lea rax, [rsp + 0x38]
lea r8, [rsp + 0x40]
mov qword [rsp + 0x40], rax
call fcn.180051660
mov r8, rbx
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x40]
lea r9, [rax + 0x20]
call fcn.180051694
mov rdx, qword [rbp - 0x18]
mov rbx, qword [rsp + 0x40]
mov qword [rbx + 0x28], rdx
cmp byte [0x1801afa8c], r12b
mov ecx, r12d
setne cl
call fcn.18006aa24
xor r8d, r8d
mov byte [0x1801afa8c], r12b
lea rcx, [r15 - 0x28]
lea edx, [r8 + 2]
call fcn.1800492e8
mov ebx, 7
jmp 0x180055c86
call fcn.18003dd04
mov ebx, 7
cmp dword [rax + 0x20], r13d
jl 0x180055c81
mov rcx, rdi
mov qword [rbp - 0x28], rbx
mov qword [rbp - 0x30], r12
mov word [rbp - 0x40], r12w
call fcn.1800d9868
mov r8, rax
lea rcx, [rbp - 0x40]
mov rdx, rdi
call fcn.18001eca0
lea rcx, str.Nvidia::UXDriver::Core::SyncProxy::RegisterWorker
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x50], r12
mov word [rsp + 0x40], r12w
call fcn.1800d9868
mov r8, rax
lea rdx, str.Nvidia::UXDriver::Core::SyncProxy::RegisterWorker
lea rcx, [rsp + 0x40]
call fcn.18001eca0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x78], rax
lea rax, str.registering_sync_failed_because_of_CPL_shutdown
mov qword [rbp - 0x60], rax
lea rax, [rsp + 0x70]
mov qword [rbp - 0x58], rax
lea rax, vtable.Nvidia::Logging::ChainLoggable_class_Nvidia::Logging::Chain_char_const_____48____ptr64__class_Nvidia::Logging::Chain_struct_Nvidia::Logging::NullType__struct_Nvidia::Logging::NullType___.0
mov qword [rsp + 0x60], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x68], rax
call fcn.18003dd04
mov rcx, rax
lea r9, [rsp + 0x40]
lea rax, [rbp - 0x40]
mov edx, r13d
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x60]
mov dword [rsp + 0x20], 0xd0
call fcn.180019ae4
mov esi, 0x80004005
test r14, r14
je 0x180055c94
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbp - 0x80]
call fcn.18001b570
test esi, esi
js 0x180055d9b
call fcn.18003dd04
cmp dword [rax + 0x20], r13d
jl 0x180055d8f
lea rcx, [0x180160200]
mov qword [rbp - 0x28], rbx
mov qword [rbp - 0x30], r12
mov word [rbp - 0x40], r12w
call fcn.1800d9868
mov r8, rax
lea rdx, [0x180160200]
lea rcx, [rbp - 0x40]
call fcn.18001eca0
lea rcx, str.Nvidia::UXDriver::Core::SyncProxy::RegisterWorker
mov qword [rbp + 0x28], rbx
mov qword [rbp + 0x20], r12
mov word [rbp + 0x10], r12w
call fcn.1800d9868
mov r8, rax
lea rdx, str.Nvidia::UXDriver::Core::SyncProxy::RegisterWorker
lea rcx, [rbp + 0x10]
call fcn.18001eca0
lea rax, [rsp + 0x30]
mov qword [rbp - 0x78], rax
lea rax, str.Successfully_set_the_Sync_object_for_session
mov qword [rbp - 0x60], rax
lea rax, [rbp - 0x80]
mov qword [rbp - 0x58], rax
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x60], eax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x68], rax
lea rax, str.._Notifying_listeners
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x48], rax
lea rax, method.Nvidia::Logging::Loggable.virtual_0
mov qword [rsp + 0x70], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x78], rax
call fcn.18003dd04
mov rcx, rax
lea r9, [rbp + 0x10]
lea rax, [rbp - 0x40]
mov edx, r13d
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x70]
mov dword [rsp + 0x20], 0xe9
call fcn.180019ae4
lea rcx, [r15 + 0x90]
call fcn.180054120
mov rbx, qword [rbp - 8]
test rbx, rbx
je 0x180055db9
mov rax, qword [rbx]
mov rdi, qword [rax + 0x10]
mov rcx, rdi
call qword [fcn.18000e000]
mov rcx, rbx
call rdi
mov eax, esi
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.1800a6240
mov rbx, qword [rsp + 0x198]
add rsp, 0x140
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret