Function at 0x409420
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push esi
mov esi, ecx
lea ecx, [ebp - 0x3c]
push edi
mov dword [ebp - 8], esi
call fcn.004030f1
mov bl, byte [esi + 4]
lea ecx, [ebp - 4]
push str.C4F406E5_F024_4e3f_89A7_D5AB7663C3CD
call fcn.00403d30
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x3c]
push eax
mov dl, bl
call fcn.00403557
pop ecx
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.0040160e
push dword [ebp - 0x3c]
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], 0x43afd0
call fcn.00403d30
push dword [ebp - 0x10]
xor ebx, ebx
push ebx
push ebx
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
test eax, eax
je 0x409499
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
sete al
jmp 0x40949b
mov al, 1
test al, al
je 0x4094ee
movzx ecx, byte [0x441da9]
neg ecx
sbb ecx, ecx
and ecx, 0x441cd0
je 0x40963c
push 7
pop eax
push 1
push eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 1
call fcn.00405f6b
mov dword [ebp - 0x18], eax
movzx eax, byte [esi + 4]
push eax
push 0x20
lea eax, [ebp - 0x24]
push str._CrashHandler__Instance_is_already_running___d_bit___d_
push eax
call fcn.004030aa
add esp, 0x10
jmp 0x40963c
mov cl, byte [esi + 4]
lea edx, [esi + 8]
call fcn.00411253
mov edi, eax
test edi, edi
jns 0x409543
movzx ecx, byte [0x441da9]
neg ecx
sbb ecx, ecx
and ecx, 0x441cd0
je 0x40953c
or dword [ebp - 0x1c], 0xffffffff
push 7
pop eax
push 0xffffffffffffffff
push eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], eax
call fcn.00405f6b
push edi
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x24]
push str._CrashHandler__Failed_to_init_crash_dir__0x_08x_
push eax
call fcn.004030aa
add esp, 0xc
mov ebx, edi
jmp 0x40963c
mov ecx, esi
call fcn.004097b9
mov esi, eax
test esi, esi
jns 0x409594
movzx ecx, byte [0x441da9]
neg ecx
sbb ecx, ecx
and ecx, 0x441cd0
je 0x40958d
or dword [ebp - 0x1c], 0xffffffff
push 7
pop eax
push 0xffffffffffffffff
push eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], eax
call fcn.00405f6b
push esi
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x24]
push str._CrashHandler__Failed_to_start_Breakpad__0x_08x_
push eax
call fcn.004030aa
add esp, 0xc
mov ebx, esi
jmp 0x40963c
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x58]
push ebx
rep stosd dword es:[edi], eax
mov eax, 0x400
push eax
push eax
push ebx
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
push 0x24
call fcn.0042883d
mov esi, eax
pop ecx
push esi
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov edi, dword [ebp - 8]
mov eax, dword [edi + 0x14]
mov dword [ebp - 8], eax
mov dword [edi + 0x14], esi
test eax, eax
je 0x4095f7
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov esi, dword [ebp - 8]
lea ecx, [esi + 0x18]
call fcn.0040c07d
push 0x24
push esi
call fcn.00415e4f
pop ecx
pop ecx
push 0x14
call fcn.0042883d
pop ecx
mov ecx, eax
mov dword [ecx], 0x43b888
mov dword [ecx + 8], ebx
mov dword [ecx + 0xc], ebx
mov edx, dword [edi + 0x18]
mov dword [edi + 0x18], ecx
test edx, edx
je 0x409622
mov eax, dword [edx]
mov ecx, edx
push 1
call dword [eax]
mov ecx, dword [edi + 0x18]
mov al, byte [edi + 4]
push eax
push edi
push dword [edi + 0x14]
call fcn.0040e0d2
mov ebx, eax
test ebx, ebx
js 0x40963c
call fcn.0040a17c
mov ebx, eax
lea ecx, [ebp - 0x14]
call fcn.00408f96
lea ecx, [ebp - 0x3c]
call fcn.0040311a
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret