Function at 0x407060
Capabilities:
Check mutex on windows

Disassembly:
push 0xffffffffffffffff
push 0x40d72b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
lea eax, [esp + 8]
push edi
xor ebx, ebx
push eax
mov dword [esp + 0x10], ebx
call fcn.00407290
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], ebx
mov edi, dword [sym.imp.FineObj.dll_bool___cdecl_FObj::FileSystem::AccessFile_class_FObj::CUnicodeString_const___unsigned_int_]
push 0xff00ff00
push ecx
call edi
add esp, 0xc
test al, al
jne 0x407144
push str.ABBYY.DelayLoadProfilingActive
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
cmp esi, ebx
setne al
mov dword [esp + 0x14], esi
cmp al, bl
jne 0x4070e7
push ebp
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
cmp ebp, 8
jne 0x4070dc
call dword [sym.imp.FineObj.dll_void___cdecl_FObj::ThrowMemoryException_void_]
push ebp
call dword [sym.imp.FineObj.dll_void___cdecl_FObj::GenerateCheckLastError_unsigned_long_int_]
add esp, 4
pop ebp
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea edx, [esp + 0xc]
push 0xff00ff00
push edx
mov byte [esp + 0x28], 1
call edi
add esp, 8
test al, al
jne 0x407132
lea edi, [esp + 0x10]
call fcn.00406710
lea ecx, [esp + 0xc]
push ecx
mov ecx, eax
mov byte [esp + 0x24], 2
call fcn.00407390
add esp, 4
mov ecx, edi
mov byte [esp + 0x20], 1
call dword [sym.imp.FineObj.dll_public:_void___thiscall_FObj::CUnicodeString::destructor_void_]
push esi
mov byte [esp + 0x24], bl
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x20
call dword [sym.imp.FineObj.dll_void____cdecl_FObj::doAlloc_unsigned_int_]
add esp, 4
cmp eax, ebx
jne 0x407248
call dword [sym.imp.FineObj.dll_void___cdecl_FObj::ThrowMemoryException_void_]
xor esi, esi
mov dword [esp + 0x14], esi
cmp esi, ebx
je 0x407178
mov eax, dword [esi]
mov eax, dword [eax + 4]
add eax, esi
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov byte [esp + 0x20], 3
mov edi, dword [sym.imp.FineObj.dll_bool___cdecl_FObj::GenerateInternalError_enum_FObj::TInternalErrorType__wchar_t_const___wchar_t_const___wchar_t_const___long_int__unsigned_long_int_]
cmp esi, ebx
jne 0x4071a2
push ebx
push 0x106
push str.d:_build11.0.13_tech0_fineobjectsincobject.h
push 0x40f0a8
push 0x40f0a8
push ebx
call edi
add esp, 0x18
lea ecx, [esp + 0xc]
push ecx
call fcn.00406cf0
push 0x40f0a8
lea ecx, [esp + 0x14]
call dword [sym.imp.FineObj.dll_public:_void___thiscall_FObj::CUnicodeString::constructor_wchar_t_const__]
mov byte [esp + 0x20], 4
cmp esi, ebx
jne 0x4071df
push ebx
push 0x106
push str.d:_build11.0.13_tech0_fineobjectsincobject.h
push 0x40f0a8
push 0x40f0a8
push ebx
call edi
add esp, 0x18
push esi
lea ecx, [esp + 0x14]
call fcn.00406dc0
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 3
call dword [sym.imp.FineObj.dll_public:_void___thiscall_FObj::CUnicodeString::destructor_void_]
mov byte [esp + 0x20], bl
cmp esi, ebx
je 0x407224
mov edx, dword [esi]
mov edi, dword [edx + 4]
add edi, esi
lea eax, [edi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x407224
cmp edi, ebx
je 0x407224
mov edx, dword [edi]
mov eax, dword [edx + 4]
push 1
mov ecx, edi
call eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 0xffffffff
call dword [sym.imp.FineObj.dll_public:_void___thiscall_FObj::CUnicodeString::destructor_void_]
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
mov dword [eax], 0x40fff8
mov dword [eax + 0x18], vtable.FObj::IObject.0
mov dword [eax + 0x1c], ebx
mov edx, dword [eax]
mov ecx, dword [edx + 4]
mov dword [eax + ecx], vtable.DelayLoad::CProfile.0
mov edx, dword [eax]
mov ecx, dword [edx + 4]
lea edx, [ecx - 0x18]
mov dword [ecx + eax - 4], edx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov esi, eax
jmp 0x40715f