Function at 0x40951e
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
mov ebx, ecx
lea ecx, [ebp - 0x38]
push edi
call fcn.00401a34
push str.121DDDA4_1402_4848_89C0_A1498AFA0876
lea ecx, [ebp - 4]
call fcn.004047ee
mov dl, byte [ebx + 4]
lea eax, [ebp - 0x38]
mov ecx, dword [ebp - 4]
push eax
call fcn.00401e98
pop ecx
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.004019cb
push dword [ebp - 0x38]
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x10], 0x43a0e4
call fcn.004047ee
push dword [ebp - 0xc]
xor edi, edi
push edi
push edi
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
test eax, eax
je 0x4096d5
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4096d5
mov cl, byte [ebx + 4]
lea edx, [ebx + 8]
call fcn.0041165c
mov esi, eax
test esi, esi
jns 0x4095d2
movzx ecx, byte [0x440d98]
neg ecx
sbb ecx, ecx
and ecx, 0x441080
je 0x40971c
push 0xffffffffffffffff
push ecx
mov dword [ebp - 0x20], ecx
call fcn.00405732
push esi
push str._CrashHandler__Failed_to_init_crash_dir__0x_08x_
jmp 0x409607
mov ecx, ebx
call fcn.0040988e
mov esi, eax
test esi, esi
jns 0x409626
movzx ecx, byte [0x440d98]
neg ecx
sbb ecx, ecx
and ecx, 0x441080
je 0x40971c
push 0xffffffffffffffff
push ecx
mov dword [ebp - 0x20], ecx
call fcn.00405732
push esi
push str._CrashHandler__Failed_to_start_Breakpad__0x_08x_
or dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x14], 8
call fcn.004019ed
add esp, 0xc
jmp 0x40971c
push 6
pop ecx
mov dword [ebp - 0x54], edi
xor eax, eax
lea edi, [ebp - 0x50]
xor esi, esi
push esi
rep stosd dword es:[edi], eax
mov eax, 0x400
push eax
push eax
push esi
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
push 0x24
call fcn.00427b05
mov edi, eax
pop ecx
push edi
mov dword [edi + 0x18], esi
mov dword [edi + 0x1c], esi
mov dword [edi + 0x20], esi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov esi, dword [ebx + 0x14]
cmp edi, esi
je 0x409689
test esi, esi
je 0x409686
push esi
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea ecx, [esi + 0x18]
call fcn.0040c5ff
push 0x24
push esi
call fcn.004160d9
pop ecx
pop ecx
mov dword [ebx + 0x14], edi
push 0x14
call fcn.00427b05
mov esi, eax
pop ecx
mov dword [esi], 0x43a9a0
and dword [esi + 8], 0
and dword [esi + 0xc], 0
mov ecx, dword [ebx + 0x18]
cmp esi, ecx
je 0x4096b5
test ecx, ecx
je 0x4096b2
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [ebx + 0x18], esi
movzx eax, byte [ebx + 4]
mov ecx, dword [ebx + 0x18]
push eax
push ebx
push dword [ebx + 0x14]
call fcn.0040e6b0
mov esi, eax
test esi, esi
js 0x40971c
call fcn.0040a276
mov esi, eax
jmp 0x40971c
movzx ecx, byte [0x440d98]
neg ecx
sbb ecx, ecx
and ecx, 0x441080
je 0x40971a
xor esi, esi
mov dword [ebp - 0x20], ecx
inc esi
push esi
push ecx
call fcn.00405732
mov dword [ebp - 0x1c], eax
movzx eax, byte [ebx + 4]
push eax
push 0x20
lea eax, [ebp - 0x20]
mov dword [ebp - 0x18], esi
push str._CrashHandler__Instance_is_already_running___d_bit___d_
push eax
mov dword [ebp - 0x14], 8
call fcn.004019ed
add esp, 0x10
mov esi, edi
lea ecx, [ebp - 0x10]
call fcn.00409044
lea ecx, [ebp - 0x38]
call fcn.00401a5d
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret