Function at 0x534b50
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x16c
push ebx
push esi
push edi
lea edi, [ebp - 0xac]
mov ecx, 0x2b
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x6cd5f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, 0x6d746f
call fcn.004d4c2e
mov esi, esp
push 0x68a314
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
cmp esi, esp
call fcn.004d277b
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x534bea
mov esi, esp
push 0x68a314
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
cmp esi, esp
call fcn.004d277b
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x534bcb
xor eax, eax
jmp 0x534fcc
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, esp
call fcn.004d277b
cmp eax, 0xb7
jne 0x534be8
xor eax, eax
jmp 0x534fcc
jmp 0x534bf1
xor eax, eax
jmp 0x534fcc
call fcn.004cf82d
call fcn.004cd49c
movzx eax, al
test eax, eax
jne 0x534c0c
mov eax, 1
jmp 0x534fcc
push 4
call fcn.004cf2e2
add esp, 4
mov dword [ebp - 0x164], eax
cmp dword [ebp - 0x164], 0
je 0x534c3d
xor eax, eax
mov ecx, dword [ebp - 0x164]
mov dword [ecx], eax
mov edx, dword [ebp - 0x164]
mov dword [ebp - 0x16c], edx
jmp 0x534c47
mov dword [ebp - 0x16c], 0
mov eax, dword [ebp - 0x16c]
mov dword [ebp - 0x18], eax
call fcn.004cf32d
mov dword [ebp - 0x24], eax
call fcn.004d3a4f
mov eax, dword [ebp - 0x24]
movzx ecx, byte [eax + 0x4e]
test ecx, ecx
je 0x534cf3
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x28]
push ecx
call fcn.004ce88d
add esp, 4
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x16c], eax
cmp dword [ebp - 0x16c], 0
je 0x534c9e
cmp dword [ebp - 0x16c], 0x1069
je 0x534ca5
jmp 0x534cc6
xor eax, eax
jmp 0x534fcc
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x28]
push ecx
push str.error:_no_existing_sessions_found:__s_n
push 2
call fcn.004d14bb
add esp, 4
push eax
call fcn.004d274e
add esp, 0xc
jmp 0x534ce9
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0x28]
push edx
push str.error:_failed_to_terminate_existing_session___s_:__u_n
push 2
call fcn.004d14bb
add esp, 4
push eax
call fcn.004d274e
add esp, 0x10
mov eax, 7
jmp 0x534fcc
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004d45b7
add esp, 8
call fcn.004d518d
push 0
call fcn.004d4d87
add esp, 4
call fcn.004ceadb
mov dword [ebp - 0x68], 0x30
push 0x2c
push 0
lea eax, [ebp - 0x64]
push eax
call fcn.004d0732
add esp, 0xc
mov dword [ebp - 0x60], 0x534610
mov dword [ebp - 0x40], str.PresentMon
mov esi, esp
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExW]
cmp esi, esp
call fcn.004d277b
movzx ecx, ax
test ecx, ecx
jne 0x534d78
push str.error:_failed_to_register_hotkey_class._n
push 2
call fcn.004d14bb
add esp, 4
push eax
call fcn.004d274e
add esp, 8
mov eax, 3
jmp 0x534fcc
mov esi, esp
push 0
push 0
push 0
push 0xfffffffffffffffd
push 0
push 0
push 0
push 0
push 0
push str.PresentMonWnd
mov eax, dword [ebp - 0x40]
push eax
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
cmp esi, esp
call fcn.004d277b
mov dword [0x6d2510], eax
cmp dword [0x6d2510], 0
jne 0x534de9
push str.error:_failed_to_create_hotkey_window._n
push 2
call fcn.004d14bb
add esp, 4
push eax
call fcn.004d274e
add esp, 8
mov esi, esp
push 0
mov eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.USER32.dll_UnregisterClassW]
cmp esi, esp
call fcn.004d277b
mov eax, 4
jmp 0x534fcc
mov eax, dword [ebp - 0x24]
movzx ecx, byte [eax + 0x52]
test ecx, ecx
je 0x534e6d
mov esi, esp
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x3c]
push ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x38]
push eax
push 0x80
mov ecx, dword [0x6d2510]
push ecx
call dword [sym.imp.USER32.dll_RegisterHotKey]
cmp esi, esp
call fcn.004d277b
test eax, eax
jne 0x534e6d
push str.error:_failed_to_register_hotkey._n
push 2
call fcn.004d14bb
add esp, 4
push eax
call fcn.004d274e
add esp, 8
mov esi, esp
mov eax, dword [0x6d2510]
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
cmp esi, esp
call fcn.004d277b
mov esi, esp
push 0
mov eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.USER32.dll_UnregisterClassW]
cmp esi, esp
call fcn.004d277b
mov eax, 5
jmp 0x534fcc
mov esi, esp
push 1
push 0x534590
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
cmp esi, esp
call fcn.004d277b
call fcn.004ce7b6
movzx eax, al
test eax, eax
jne 0x534ed9
mov esi, esp
push 0
push 0x534590
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
cmp esi, esp
call fcn.004d277b
mov esi, esp
mov eax, dword [0x6d2510]
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
cmp esi, esp
call fcn.004d277b
mov esi, esp
push 0
mov eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.USER32.dll_UnregisterClassW]
cmp esi, esp
call fcn.004d277b
mov eax, 6
jmp 0x534fcc
mov eax, dword [ebp - 0x24]
movzx ecx, byte [eax + 0x52]
test ecx, ecx
jne 0x534f11
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x38]
and ecx, 0xffffbfff
mov esi, esp
push ecx
push 0x80
push 0x312
mov edx, dword [0x6d2510]
push edx
call dword [sym.imp.USER32.dll_PostMessageW]
cmp esi, esp
call fcn.004d277b
xor eax, eax
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], eax
mov esi, esp
push 0
push 0
mov eax, dword [0x6d2510]
push eax
lea ecx, [ebp - 0x8c]
push ecx
call dword [sym.imp.USER32.dll_GetMessageW]
cmp esi, esp
call fcn.004d277b
mov dword [ebp - 0x98], eax
cmp dword [ebp - 0x98], 0
jne 0x534f62
jmp 0x534f9b
cmp dword [ebp - 0x98], 0xffffffff
jne 0x534f6d
jmp 0x534f9b
mov esi, esp
lea eax, [ebp - 0x8c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
cmp esi, esp
call fcn.004d277b
mov esi, esp
lea eax, [ebp - 0x8c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
cmp esi, esp
call fcn.004d277b
jmp 0x534f31
call fcn.004ce83d
mov esi, esp
mov eax, dword [0x6d2510]
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
cmp esi, esp
call fcn.004d277b
mov esi, esp
push 0
mov eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.USER32.dll_UnregisterClassW]
cmp esi, esp
call fcn.004d277b
xor eax, eax
push edx
mov ecx, ebp
push eax
lea edx, [0x534ffc]
call fcn.004d1a29
pop eax
pop edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d0601
add esp, 0x16c
cmp ebp, esp
call fcn.004d277b
mov esp, ebp
pop ebp
ret