Function at 0x1400f05ff
Capabilities:
Check mutex on windows

Disassembly:
jmp 0x140162d50
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x3f8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x92
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x418]
mov rax, qword [0x140359238]
xor rax, rbp
mov qword [rbp + 0x3b8], rax
lea rcx, [0x140381547]
call fcn.1400f28c8
lea rcx, str.Audio_Router.exe
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
jne 0x140162dd9
mov r9d, reloc.WS2_32.dll_recv
xor r8d, r8d
lea rdx, str.Wrong_application_name._Audio_Router_will_close.
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x140163144
mov edx, 0x48
lea rcx, [rbp + 0x10]
call fcn.1400f2828
xor r8d, r8d
mov edx, 0x10000000
lea rcx, [rbp + 0x10]
call fcn.1400efdb7
lea rcx, [rbp + 0x10]
call fcn.1400f0762
test rax, rax
jne 0x140162e27
mov eax, dword [0x1403591c0]
add eax, 0x2c
mov r8d, eax
lea rdx, str.C:_assemblageBuilds1788396625873347084hpihhwbmsh_audiorouter_open_audio_router_guimain.cpp
lea rcx, str.sec.get_____NULL
call fcn.1400eb7d5
xor eax, eax
lea rcx, [rbp + 0x10]
call fcn.1400f0762
lea r8, str.Local_audio_router_mutex
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [0x14035f370], rax
lea rcx, [rbp + 0x10]
call fcn.1400f008c
cmp qword [0x14035f370], 0
jne 0x140162e7d
mov r9d, reloc.WS2_32.dll_recv
xor r8d, r8d
lea rdx, str.Mutex_creation_failed._Audio_Router_will_close.
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x140163144
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140162eb6
mov rcx, qword [0x14035f370]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r9d, reloc.WS2_32.dll_recv
xor r8d, r8d
lea rdx, str.Another_instance_of_Audio_Router_is_already_running._Audio_Router_will_close.
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x140163144
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
mov dword [rbp + 0x74], eax
cmp dword [rbp + 0x74], 0
je 0x140162ef5
mov rcx, qword [0x14035f370]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r9d, reloc.WS2_32.dll_recv
xor r8d, r8d
lea rdx, str.COM_could_not_be_initialized._Audio_Router_will_close.
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x140163144
xor r9d, r9d
mov r8, qword [rbp + 0x3e0]
xor edx, edx
lea rcx, [0x14035f380]
call fcn.1400f2486
test eax, eax
je 0x140162f43
call qword [sym.imp.ole32.dll_CoUninitialize]
mov rcx, qword [0x14035f370]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r9d, reloc.WS2_32.dll_recv
xor r8d, r8d
lea rdx, str.ATL_could_not_be_initialized._Audio_Router_will_close.
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x140163144
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 0xb8]
call fcn.1400ed9c2
xor r8d, r8d
lea rdx, [rbp + 0xb8]
lea rcx, [rbp + 0x98]
call fcn.1400ed25b
test eax, eax
je 0x140162faf
lea rcx, [0x14035f380]
call fcn.1400ee827
call qword [sym.imp.ole32.dll_CoUninitialize]
mov rcx, qword [0x14035f370]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r9d, reloc.WS2_32.dll_recv
xor r8d, r8d
lea rdx, str.GDI_could_not_be_initialized._Audio_Router_will_close.
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x140163144
lea rax, [rbp + 0xe8]
mov rdi, rax
xor eax, eax
mov ecx, 0x30
rep stosb byte [rdi], al
mov edx, 0x80
lea rcx, [rbp + 0x140]
call fcn.1400f24d6
lea rcx, [rbp + 0x140]
call fcn.1400efe84
mov dword [rbp + 0x1d8], 0x80000000
mov dword [rbp + 0x1dc], 0x80000000
mov dword [rbp + 0x1e0], 0x800003ca
mov dword [rbp + 0x1e4], 0x8000029e
lea rax, [rbp + 0x388]
mov qword [rbp + 0x3a8], rax
lea rdx, [rbp + 0x1d8]
mov rcx, qword [rbp + 0x3a8]
call fcn.1400f1414
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8, qword [rax]
xor edx, edx
lea rcx, [rbp + 0x140]
call fcn.1400eefde
test rax, rax
jne 0x14016307b
mov r9d, reloc.WS2_32.dll_recv
xor r8d, r8d
lea rdx, str.Could_not_create_window._Audio_Router_will_close.
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
lea rcx, [rbp + 0x140]
call fcn.1400ed3d7
jmp 0x140163113
lea rax, [rbp + 0x148]
mov edx, dword [rbp + 0x3f8]
mov rcx, rax
call fcn.1400ebb27
lea rax, [rbp + 0x148]
mov rcx, rax
call fcn.1400efee8
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 0xe8]
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jle 0x140163107
cmp qword [rbp + 0x1b0], 0
je 0x1401630eb
mov rax, qword [rbp + 0x1b0]
add rax, 8
mov rcx, rax
call fcn.1400ed9d1
lea rdx, [rbp + 0xe8]
mov rcx, rax
call qword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
je 0x1401630eb
jmp 0x14016309f
lea rcx, [rbp + 0xe8]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rbp + 0xe8]
call qword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x14016309f
lea rcx, [rbp + 0x140]
call fcn.1400ed3d7
mov rcx, qword [rbp + 0x98]
call fcn.1400eeead
lea rcx, [0x14035f380]
call fcn.1400ee827
call qword [sym.imp.ole32.dll_CoUninitialize]
mov rcx, qword [0x14035f370]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rbp + 0xf8]
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, reloc.OLEAUT32.dll_SysStringLen
call fcn.1400f1356
mov rax, rdi
mov rcx, qword [rbp + 0x3b8]
xor rcx, rbp
call fcn.1400eea70
lea rsp, [rbp + 0x3c8]
pop rdi
pop rbp
ret