Function at 0x401c40
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xdc
mov eax, dword [0x422a90]
xor eax, ebp
mov dword [ebp - 4], eax
sub esp, 0x18
mov eax, esp
mov dword [ebp - 0x9c], esp
push 0x41a5ac
push 0x41a614
push 0
push eax
call fcn.00406380
add esp, 0x10
call fcn.00403bb0
add esp, 0x18
push 0x41a5ac
push 0x41a614
push 0
lea ecx, [ebp - 0xdc]
push ecx
call fcn.00406380
add esp, 0x10
lea edx, [ebp - 0xdc]
push edx
mov ecx, 0x422824
call fcn.00403b50
push 0
push 1
lea ecx, [ebp - 0xdc]
call fcn.00404120
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x90], esp
push 0x41a5a8
call fcn.00403ac0
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xa4], esp
push 0x41a5a8
call fcn.00403ac0
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x98], esp
push 0x41a5a8
call fcn.00403ac0
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x94], esp
push 0x41a5a8
call fcn.00403ac0
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xa8], esp
push 0x41a618
call fcn.00403ac0
lea eax, [ebp - 0x1c]
push eax
call fcn.00405b60
add esp, 0x7c
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
cmp dword [ecx + 0x14], 8
jb 0x401d4a
mov edx, dword [ebp - 0xa0]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
mov dword [ebp - 0x28], ecx
jmp 0x401d50
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebp - 0x20], eax
push 0
push 1
lea ecx, [ebp - 0x1c]
call fcn.00404120
cmp dword [ebp - 0x20], 0
jne 0x401d7a
xor eax, eax
jmp 0x401fa2
push 0x2710
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0x102
je 0x401d9b
cmp dword [ebp - 0x34], 0xffffffff
jne 0x401db6
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x401fa2
push 0
push str.SynTPHelperWndClass
call dword [sym.imp.USER32.dll_FindWindowW]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x401de7
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x401fa2
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 0x4031a0
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x80], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], str.SynTPHelperWndClass
lea ecx, [ebp - 0x8c]
push ecx
call dword [sym.imp.USER32.dll_RegisterClassW]
movzx edx, ax
test edx, edx
jne 0x401e64
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x401fa2
push 0
mov edx, dword [ebp + 8]
push edx
push 0
push 0
push 0
push 0
push 0xffffffffffffff9c
push 0xffffffffffffff9c
push 0x80000000
push 0x41a5a8
push str.SynTPHelperWndClass
push 0x88
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x30], 0
jne 0x401eb4
xor eax, eax
jmp 0x401fa2
mov edx, dword [ebp - 0x30]
push edx
mov ecx, 0x423f68
call fcn.004020a0
mov eax, dword [0x423f80]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
and ecx, 2
je 0x401f69
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0x403940
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
mov edx, dword [ebp + 8]
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], str.SynTPHelperOSDWndClass
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.USER32.dll_RegisterClassW]
movzx ecx, ax
test ecx, ecx
je 0x401f69
push 0
mov edx, dword [ebp + 8]
push edx
push 0
push 0
push 0
push 0
push 0xffffff38
push 0xffffff38
push 0x80000000
push str.Touchpad_OSD_window
push str.SynTPHelperOSDWndClass
push 0x88
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov dword [0x423f74], eax
push 0
push 0
push 0
lea ecx, [ebp - 0xc4]
push ecx
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x401f9c
lea edx, [ebp - 0xc4]
push edx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0xc4]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x401f69
mov eax, dword [ebp - 0xbc]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004079d4
mov esp, ebp
pop ebp
ret 0x10