Function at 0x40e720
Capabilities:
Check mutex on windows

Disassembly:
push 0xffffffffffffffff
push 0x4135a0
mov eax, dword fs:[0]
push eax
sub esp, 0xcc
mov eax, dword [0x41b020]
xor eax, esp
mov dword [esp + 0xc4], eax
push ebx
push ebp
push esi
mov eax, dword [0x41b020]
xor eax, esp
push eax
lea eax, [esp + 0xdc]
mov dword fs:[0], eax
cmp byte [edi + 4], 0
mov ebp, dword [esp + 0xec]
jne 0x40e8d8
push ebp
lea ecx, [edi + 8]
mov byte [edi + 4], 1
call dword [0x415128]
lea ecx, [esp + 0xb8]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
push ebp
lea ecx, [esp + 0xbc]
mov dword [esp + 0xe8], 0
call dword [0x415128]
push str._SB_MUTEX
lea ecx, [esp + 0xbc]
call dword [sym.imp.MSVCP90.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 0x40e7c9
lea eax, [esp + 0xbc]
cmp byte [edi + 0x2c], 0
lea esi, [edi + 0x28]
jne 0x40e8bc
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esi], eax
test eax, eax
je 0x40e8bc
push 0xffffffffffffffff
push eax
mov byte [esi + 4], 1
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, esi
mov dword [esp + 0x14], ebx
mov byte [esp + 0xe4], 1
mov esi, dword [esp + 0xf4]
imul esi, dword [esp + 0xf0]
add esi, esi
push ebp
lea ecx, [esp + 0xbc]
add esi, esi
call dword [0x415128]
push str._SB_SHAREMEMORY
lea ecx, [esp + 0xbc]
call dword [sym.imp.MSVCP90.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.MSVCP90.dll_public:_void___thiscall_std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_int_]
mov byte [esp + 0xe4], 2
mov ecx, dword [esp + 0xf4]
mov edx, dword [esp + 0xf0]
push ecx
push ecx
push 0x4156c8
push edx
push 0x4156c8
lea eax, [esp + 0xcc]
push eax
lea ecx, [esp + 0x4c]
push ecx
call dword [sym.imp.MSVCP90.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.00404920
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP90.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.00404920
add esp, 0xc
mov ecx, eax
call dword [sym.imp.MSVCP90.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 edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x38]
call dword [sym.imp.MSVCP90.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 0x40e8df
mov eax, dword [eax + 4]
jmp 0x40e8e2
mov byte [edi + 4], 0
lea ecx, [esp + 0xb8]
mov dword [esp + 0xe4], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
xor al, al
jmp 0x40e96d
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.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
cmp dword [edi + 0x24], 0
jne 0x40e920
lea ecx, [esp + 0x34]
mov byte [edi + 4], 0
mov byte [esp + 0xe4], 1
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__::vbase_dtor_void_]
mov eax, dword [ebx]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x40e8c0
mov ecx, dword [esp + 0xf0]
mov edx, dword [esp + 0xf4]
mov dword [edi + 0x30], ecx
lea ecx, [esp + 0x34]
mov dword [edi + 0x34], edx
mov byte [edi + 5], 1
mov byte [esp + 0xe4], 1
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__::vbase_dtor_void_]
mov eax, dword [ebx]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
lea ecx, [esp + 0xb8]
mov dword [esp + 0xe4], 0xffffffff
call dword [sym.imp.MSVCP90.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 + 0xdc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc4]
xor ecx, esp
call fcn.00412040
add esp, 0xd8
ret 0xc