Function at 0x40f0d0
Capabilities:
Check mutex on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4334dd
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esi + 8], eax
mov dword [esi], vtable.CMemObject.0
mov dword [esi + 4], ebx
mov dword [esi + 0xc], ebx
cmp dword [eax + 4], ebx
jne 0x40f163
mov al, byte [esp + 0x7c]
push ebx
lea ecx, [esp + 0x28]
mov byte [esp + 0x28], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov edi, 0x446fe0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x446fe0
lea ecx, [esp + 0x2c]
call dword [sym.imp.MSVCP60.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__::assign_char_const___unsigned_int_]
lea ecx, [esp + 0x24]
mov dword [esp + 0x74], ebx
push ecx
lea ecx, [esp + 0x54]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::runtime_error::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea edx, [esp + 0x50]
push 0x43bd40
push edx
mov dword [esp + 0x58], vtable.SystemError.0
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [eax + 8]
lea ecx, [esp + 0xc]
push eax
call sub.MFC42.DLL_CString::CString_1
push str._Mutex
push eax
lea eax, [esp + 0x84]
mov dword [esp + 0x7c], 1
push eax
call sub.MFC42.DLL_operator
lea ecx, [esp + 0xc]
mov byte [esp + 0x74], 3
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x7c]
push ecx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
cmp eax, ebx
mov dword [esi + 0xc], eax
jne 0x40f235
mov dl, byte [esp + 0x7c]
push ebx
lea ecx, [esp + 0x18]
mov byte [esp + 0x18], dl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov edi, 0x446fe0
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [esp + 0x18]
push ebx
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x40f20a
mov edi, dword [esp + 0x18]
mov ecx, ebx
mov eax, ecx
mov esi, 0x446fe0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Eos_unsigned_int_]
lea ecx, [esp + 0x14]
mov byte [esp + 0x74], 4
push ecx
lea ecx, [esp + 0x54]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::runtime_error::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea edx, [esp + 0x50]
push 0x43bd40
push edx
mov dword [esp + 0x58], vtable.SystemError.0
call sub.MSVCRT.dll__CxxThrowException
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x40f2cb
mov al, byte [esp + 0x7c]
push ebx
lea ecx, [esp + 0x18]
mov byte [esp + 0x18], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov edi, 0x446fe0
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [esp + 0x18]
push ebx
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x40f2a0
mov edi, dword [esp + 0x18]
mov ecx, ebx
mov edx, ecx
mov esi, 0x446fe0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Eos_unsigned_int_]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x50]
push eax
mov byte [esp + 0x78], 5
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::runtime_error::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [esp + 0x50]
push 0x43bd40
push ecx
mov dword [esp + 0x58], vtable.SystemError.0
call sub.MSVCRT.dll__CxxThrowException
mov edx, dword [esi + 8]
push ebx
push ebx
push ebx
mov eax, dword [edx + 4]
push ebx
push 0xf001f
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFileEx]
cmp eax, ebx
jne 0x40f393
mov al, byte [esp + 0x7c]
push ebp
push ebx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1c], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov edi, 0x446fe0
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x1c]
push ebp
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x40f343
mov edi, dword [esp + 0x1c]
mov ecx, ebp
mov edx, ecx
mov esi, 0x446fe0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x20], ebp
mov byte [eax + ebp], bl
lea ecx, [esp + 0x14]
mov bl, 6
push ecx
lea ecx, [esp + 0x3c]
mov byte [esp + 0x7c], bl
mov dword [esp + 0x18], 0x446fe0
call dword [sym.imp.MSVCRT.dll_public:_void___thiscall_exception::constructor_char_const__const_const__]
lea edx, [esp + 0x18]
lea ecx, [esp + 0x44]
push edx
mov byte [esp + 0x7c], 7
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea eax, [esp + 0x38]
push 0x43bd40
push eax
mov byte [esp + 0x80], bl
mov dword [esp + 0x40], vtable.SystemError.0
call sub.MSVCRT.dll__CxxThrowException
pop ebp
lea ecx, [esp + 0x7c]
mov dword [esi + 4], eax
mov dword [esp + 0x74], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x6c]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x6c
ret 4