Function at 0x4099e9
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.00401e5a
push str.C4F406E5_F024_4e3f_89A7_D5AB7663C3CD
lea ecx, [ebp - 4]
call fcn.00404cfa
mov dl, byte [ebx + 4]
lea eax, [ebp - 0x38]
mov ecx, dword [ebp - 4]
push eax
call fcn.004022ce
pop ecx
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.00401df0
push dword [ebp - 0x38]
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x10], 0x430714
call fcn.00404cfa
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 0x409b9b
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x409b9b
mov cl, byte [ebx + 4]
lea edx, [ebx + 8]
call fcn.00411304
mov esi, eax
test esi, esi
jns 0x409a9d
movzx ecx, byte [0x437b68]
neg ecx
sbb ecx, ecx
and ecx, 0x437e20
je 0x409be2
push 0xffffffffffffffff
push ecx
mov dword [ebp - 0x20], ecx
call fcn.00405bda
push esi
push str._CrashHandler__Failed_to_init_crash_dir__0x_08x_
jmp 0x409ad2
mov ecx, ebx
call fcn.00409d58
mov esi, eax
test esi, esi
jns 0x409af1
movzx ecx, byte [0x437b68]
neg ecx
sbb ecx, ecx
and ecx, 0x437e20
je 0x409be2
push 0xffffffffffffffff
push ecx
mov dword [ebp - 0x20], ecx
call fcn.00405bda
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.00401e16
add esp, 0xc
jmp 0x409be2
push 6
pop ecx
mov dword [ebp - 0x54], edi
xor eax, eax
lea edi, [ebp - 0x50]
rep stosd dword es:[edi], eax
xor edi, edi
mov eax, 0x400
push edi
push eax
push eax
push edi
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
push 0x24
call fcn.00416f82
mov esi, eax
pop ecx
test esi, esi
je 0x409b33
push esi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
jmp 0x409b35
mov esi, edi
mov ecx, dword [ebx + 0x14]
cmp esi, ecx
je 0x409b49
test ecx, ecx
je 0x409b46
push ecx
call fcn.0040ac8f
mov dword [ebx + 0x14], esi
push 0x14
call fcn.00416f82
mov esi, eax
pop ecx
test esi, esi
je 0x409b65
mov dword [esi], 0x430fc0
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
jmp 0x409b67
mov esi, edi
mov ecx, dword [ebx + 0x18]
cmp esi, ecx
je 0x409b7b
test ecx, ecx
je 0x409b78
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.0040ea7a
mov esi, eax
test esi, esi
js 0x409be2
call fcn.0040a76a
mov esi, eax
jmp 0x409be2
movzx ecx, byte [0x437b68]
neg ecx
sbb ecx, ecx
and ecx, 0x437e20
je 0x409be0
xor esi, esi
mov dword [ebp - 0x20], ecx
inc esi
push esi
push ecx
call fcn.00405bda
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.00401e16
add esp, 0x10
mov esi, edi
lea ecx, [ebp - 0x10]
call fcn.0040956b
lea ecx, [ebp - 0x38]
call fcn.00401e83
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret