Function at 0x40e920
Capabilities:
Check mutex on windows

Disassembly:
push 0xffffffffffffffff
push 0x413a30
mov eax, dword fs:[0]
push eax
sub esp, 0xc8
mov eax, dword [0x41b01c]
xor eax, esp
mov dword [esp + 0xc4], eax
push ebx
push ebp
push esi
mov eax, dword [0x41b01c]
xor eax, esp
push eax
lea eax, [esp + 0xd8]
mov dword fs:[0], eax
cmp byte [edi + 4], 0
mov esi, ecx
mov dword [esp + 0x14], esi
jne 0x40eacf
push esi
lea ecx, [edi + 8]
mov byte [edi + 4], 1
call dword [0x415154]
lea ecx, [esp + 0xb8]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
push esi
lea ecx, [esp + 0xbc]
mov dword [esp + 0xe4], 0
call dword [0x415154]
push str._SB_MUTEX
lea ecx, [esp + 0xbc]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
cmp dword [esp + 0xd0], 0x10
mov eax, dword [esp + 0xbc]
jae 0x40e9c8
lea eax, [esp + 0xbc]
cmp byte [edi + 0x2c], 0
lea esi, [edi + 0x28]
jne 0x40eab3
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
test eax, eax
mov dword [esi], eax
je 0x40eab3
push 0xffffffffffffffff
push eax
mov byte [esi + 4], 1
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [esp + 0x10], esi
mov ecx, dword [esp + 0x14]
mov byte [esp + 0xe0], 1
mov ebp, dword [esp + 0xec]
mov ebx, dword [esp + 0xe8]
mov esi, ebp
imul esi, ebx
push ecx
add esi, esi
lea ecx, [esp + 0xbc]
add esi, esi
call dword [0x415154]
push str._SB_SHAREMEMORY
lea ecx, [esp + 0xbc]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
push 1
push 2
lea ecx, [esp + 0x3c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_int_]
push ebp
push ecx
push 0x4156d8
push ebx
push 0x4156d8
lea edx, [esp + 0xcc]
push edx
lea eax, [esp + 0x4c]
push eax
mov byte [esp + 0xfc], 2
call dword [sym.imp.MSVCP80.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::operator___char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_ostream_char__struct_std::char_traits_char_____class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
add esp, 8
push eax
call fcn.00404c40
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___long_int_]
push eax
call fcn.00404c40
add esp, 0xc
mov ecx, eax
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___long_int_]
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x38]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__::str_void_]
cmp dword [eax + 0x18], 0x10
jb 0x40ead3
mov eax, dword [eax + 4]
jmp 0x40ead6
mov byte [edi + 4], 0
lea ecx, [esp + 0xb8]
mov dword [esp + 0xe0], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
xor al, al
jmp 0x40eb4f
add eax, 4
push esi
push eax
call sub.Cef1Adapter.dll_ShareMemoryCreate
add esp, 8
lea ecx, [esp + 0x18]
mov dword [edi + 0x24], eax
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov byte [esp + 0xe0], 1
cmp dword [edi + 0x24], 0
lea ecx, [esp + 0x34]
jne 0x40eb18
mov byte [edi + 4], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__::vbase_dtor_void_]
mov edx, dword [esp + 0x10]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x40eab7
mov dword [edi + 0x30], ebx
mov dword [edi + 0x34], ebp
mov byte [edi + 5], 1
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__::vbase_dtor_void_]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
lea ecx, [esp + 0xb8]
mov dword [esp + 0xe0], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov al, 1
mov ecx, dword [esp + 0xd8]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc4]
xor ecx, esp
call fcn.0041250b
add esp, 0xd4
ret 8