Function at 0x40a26d
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
call fcn.00403348
mov bl, byte [esi + 4]
lea ecx, [ebp - 4]
push str.08DA086F_9FC4_4B2E_954C_6D7D5ACD5167
call fcn.00404067
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x3c]
push eax
mov dl, bl
call fcn.004039b3
pop ecx
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.004016ae
push dword [ebp - 0x3c]
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], 0x436c5c
call fcn.00404067
push dword [ebp - 0x10]
xor ebx, ebx
push ebx
push ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
test eax, eax
je 0x40a41d
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40a41d
mov ebx, esi
mov cl, byte [ebx + 4]
lea edx, [ebx + 8]
call fcn.00410f19
mov esi, eax
test esi, esi
jns 0x40a330
movzx ecx, byte [0x43deb9]
neg ecx
sbb ecx, ecx
and ecx, 0x43dec0
je 0x40a464
or dword [ebp - 0x1c], 0xffffffff
push 0xffffffffffffffff
push ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], 7
call fcn.00406437
push esi
push str._CrashHandler__Failed_to_init_crash_dir__0x_08x_
jmp 0x40a370
mov ecx, ebx
call fcn.0040a5d6
mov esi, eax
test esi, esi
jns 0x40a384
movzx ecx, byte [0x43deb9]
neg ecx
sbb ecx, ecx
and ecx, 0x43dec0
je 0x40a464
or dword [ebp - 0x1c], 0xffffffff
push 0xffffffffffffffff
push ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], 7
call fcn.00406437
push esi
push str._CrashHandler__Failed_to_start_Breakpad__0x_08x_
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x24]
push eax
call fcn.004031cc
add esp, 0xc
jmp 0x40a464
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x58]
rep stosd dword es:[edi], eax
xor edi, edi
mov eax, 0x400
push edi
push eax
push eax
push edi
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
push 0x24
call fcn.0042a85c
mov esi, eax
pop ecx
push esi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov edi, dword [ebx + 0x14]
mov dword [ebx + 0x14], esi
test edi, edi
je 0x40a3d8
mov ecx, edi
call fcn.0040deff
push 0x24
push edi
call fcn.00416336
pop ecx
pop ecx
push 0x14
call fcn.0042a85c
pop ecx
and dword [eax + 8], 0
and dword [eax + 0xc], 0
mov dword [eax], 0x4374c4
mov ecx, dword [ebx + 0x18]
mov dword [ebx + 0x18], eax
test ecx, ecx
je 0x40a3fe
mov eax, dword [ecx]
push 1
call dword [eax]
mov al, byte [ebx + 4]
mov ecx, dword [ebx + 0x18]
push eax
push ebx
push dword [ebx + 0x14]
call fcn.0040de64
mov esi, eax
test esi, esi
js 0x40a464
call fcn.0040af2f
mov esi, eax
jmp 0x40a464
movzx ecx, byte [0x43deb9]
neg ecx
sbb ecx, ecx
and ecx, 0x43dec0
je 0x40a462
xor eax, eax
mov dword [ebp - 0x24], ecx
inc eax
mov dword [ebp - 0x20], 7
push eax
push ecx
mov dword [ebp - 0x1c], eax
call fcn.00406437
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.004031cc
add esp, 0x10
mov esi, ebx
mov eax, dword [ebp - 4]
test eax, eax
je 0x40a472
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.004016ae
lea ecx, [ebp - 0x3c]
call fcn.00403369
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret