Function at 0x40950a
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.00401a1f
push str.02CEE4A2_ED46_4351_8BA9_0A604D0B93B1
lea ecx, [ebp - 4]
call fcn.004047d9
mov dl, byte [ebx + 4]
lea eax, [ebp - 0x38]
mov ecx, dword [ebp - 4]
push eax
call fcn.00401e83
pop ecx
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.004019b6
push dword [ebp - 0x38]
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x10], 0x43acd4
call fcn.004047d9
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 0x4096c1
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4096c1
mov cl, byte [ebx + 4]
lea edx, [ebx + 8]
call fcn.00411648
mov esi, eax
test esi, esi
jns 0x4095be
movzx ecx, byte [0x440c48]
neg ecx
sbb ecx, ecx
and ecx, 0x440f30
je 0x409708
push 0xffffffffffffffff
push ecx
mov dword [ebp - 0x20], ecx
call fcn.0040571b
push esi
push str._CrashHandler__Failed_to_init_crash_dir__0x_08x_
jmp 0x4095f3
mov ecx, ebx
call fcn.0040987a
mov esi, eax
test esi, esi
jns 0x409612
movzx ecx, byte [0x440c48]
neg ecx
sbb ecx, ecx
and ecx, 0x440f30
je 0x409708
push 0xffffffffffffffff
push ecx
mov dword [ebp - 0x20], ecx
call fcn.0040571b
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.004019d8
add esp, 0xc
jmp 0x409708
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.00426fed
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 0x409675
test esi, esi
je 0x409672
push esi
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea ecx, [esi + 0x18]
call fcn.0040c5eb
push 0x24
push esi
call fcn.004160c9
pop ecx
pop ecx
mov dword [ebx + 0x14], edi
push 0x14
call fcn.00426fed
mov esi, eax
pop ecx
mov dword [esi], 0x43b598
and dword [esi + 8], 0
and dword [esi + 0xc], 0
mov ecx, dword [ebx + 0x18]
cmp esi, ecx
je 0x4096a1
test ecx, ecx
je 0x40969e
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.0040e69c
mov esi, eax
test esi, esi
js 0x409708
call fcn.0040a262
mov esi, eax
jmp 0x409708
movzx ecx, byte [0x440c48]
neg ecx
sbb ecx, ecx
and ecx, 0x440f30
je 0x409706
xor esi, esi
mov dword [ebp - 0x20], ecx
inc esi
push esi
push ecx
call fcn.0040571b
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.004019d8
add esp, 0x10
mov esi, edi
lea ecx, [ebp - 0x10]
call fcn.00409030
lea ecx, [ebp - 0x38]
call fcn.00401a48
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret