Function at 0x140003820
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
lea rbp, [rsp - 0x100]
sub rsp, 0x200
mov rax, qword [0x140028b30]
xor rax, rsp
mov qword [rbp + 0xf0], rax
mov rdi, rcx
lea r9, [0x14001ba88]
lea r8, [0x14001bb4c]
lea rcx, [rsp + 0x60]
xor edx, edx
call fcn.140006120
mov rcx, rax
call fcn.140002370
lea r9, [0x14001ba88]
lea r8, [0x14001bb4c]
lea rcx, [rsp + 0x60]
xor edx, edx
call fcn.140006120
mov rcx, rax
call fcn.140002820
xor r14d, r14d
lea rdx, [0x14001ba84]
lea rcx, [rbp - 0x60]
xor r8d, r8d
mov qword [rbp - 0x48], 7
mov qword [rbp - 0x50], r14
mov word [rbp - 0x60], r14w
call fcn.140003620
lea rdx, [0x14001ba84]
lea rcx, [rbp - 0x40]
xor r8d, r8d
mov qword [rbp - 0x28], 7
mov qword [rbp - 0x30], r14
mov word [rbp - 0x40], r14w
call fcn.140003620
lea rdx, [0x14001ba84]
lea rcx, [rbp - 0x20]
xor r8d, r8d
mov qword [rbp - 8], 7
mov qword [rbp - 0x10], r14
mov word [rbp - 0x20], r14w
call fcn.140003620
lea rdx, [0x14001ba84]
lea rcx, [rbp - 0x80]
xor r8d, r8d
mov qword [rbp - 0x68], 7
mov qword [rbp - 0x70], r14
mov word [rbp - 0x80], r14w
call fcn.140003620
lea r8d, [r14 + 0x11]
lea rdx, [0x14001bb50]
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x78], 7
mov qword [rsp + 0x70], r14
mov word [rsp + 0x60], r14w
call fcn.140003620
lea rax, [rbp - 0x60]
lea r9, [rbp - 0x20]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x40]
lea r8, [rbp - 0x80]
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0xd0]
mov qword [rsp + 0x20], rax
call fcn.1400056b0
cmp qword [rax + 0x18], 8
jb 0x140003981
mov rax, qword [rax]
mov r8, rax
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
cmp qword [rbp + 0xe8], 8
mov rbx, rax
jb 0x1400039a7
mov rcx, qword [rbp + 0xd0]
call fcn.1400071e0
mov qword [rbp + 0xe8], 7
mov qword [rbp + 0xe0], r14
mov word [rbp + 0xd0], r14w
test rbx, rbx
je 0x140003c10
mov edx, 0x2710
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x140003bfe
cmp eax, 0xffffffff
je 0x140003bfe
mov qword [rsp + 0x228], rsi
lea rsi, str.SynTPHelperWndClass
xor edx, edx
mov rcx, rsi
call qword [sym.imp.USER32.dll_FindWindowW]
test rax, rax
jne 0x140003a4b
lea rax, [0x1400029c0]
xorps xmm0, xmm0
xorps xmm1, xmm1
lea rcx, [rbp + 0x50]
mov dword [rbp + 0x50], r14d
mov qword [rbp + 0x60], r14
movdqa xmmword [rbp + 0x70], xmm0
movdqa xmmword [rbp + 0x80], xmm1
mov qword [rbp + 0x58], rax
mov qword [rbp + 0x68], rdi
mov qword [rbp + 0x90], rsi
call qword [sym.imp.USER32.dll_RegisterClassW]
test ax, ax
jne 0x140003a8a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rsi, qword [rsp + 0x228]
mov rcx, qword [rbp + 0xf0]
xor rcx, rsp
call fcn.1400084b0
mov rbx, qword [rsp + 0x230]
add rsp, 0x200
pop r14
pop rdi
pop rbp
ret
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x40], r14
mov dword [rsp + 0x38], r14d
mov dword [rsp + 0x30], r14d
lea r8, [0x14001ba84]
mov r9d, 0x80000000
mov rdx, rsi
mov ecx, 0x88
mov dword [rsp + 0x28], 0xffffff9c
mov dword [rsp + 0x20], 0xffffff9c
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov rcx, rbx
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rsi, rsi
je 0x140003a5d
lea rcx, [0x14002a6b0]
mov rdx, rsi
call fcn.140001f50
test byte [0x14002a6d8], 2
je 0x140003b9e
lea rax, [0x140002210]
xorps xmm0, xmm0
xorps xmm1, xmm1
lea rbx, str.SynTPHelperOSDWndClass
lea rcx, [rbp]
mov dword [rbp], r14d
movdqa xmmword [rbp + 0x20], xmm0
movdqa xmmword [rbp + 0x30], xmm1
mov qword [rbp + 8], rax
mov qword [rbp + 0x10], r14
mov qword [rbp + 0x18], rdi
mov qword [rbp + 0x40], rbx
call qword [sym.imp.USER32.dll_RegisterClassW]
test ax, ax
je 0x140003b9e
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x40], r14
mov dword [rsp + 0x38], r14d
mov dword [rsp + 0x30], r14d
lea r8, str.Touchpad_OSD_window
mov r9d, 0x80000000
mov rdx, rbx
mov ecx, 0x88
mov dword [rsp + 0x28], 0xffffff38
mov dword [rsp + 0x20], 0xffffff38
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov qword [0x14002a6c8], rax
lea rcx, [rbp + 0xa0]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x140003bf3
nop word [rax + rax]
lea rcx, [rbp + 0xa0]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rbp + 0xa0]
call qword [sym.imp.USER32.dll_DispatchMessageW]
lea rcx, [rbp + 0xa0]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x140003bc0
mov eax, dword [rbp + 0xb0]
jmp 0x140003a5f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x140003a67