Function at 0x4c6520
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, ecx
sub esp, 0x5c
mov esi, dword [ebp + 0xc]
call dword [method.QIODevice.isOpen___const]
test al, al
mov byte [ebp - 0x51], al
je 0x4c66e0
mov eax, dword [ebx + 0x10]
cmp eax, dword [ebp + 8]
je 0x4c65fb
test eax, eax
jne 0x4c6725
mov eax, dword [ebx + 8]
test eax, eax
je 0x4c6909
cmp dword [ebp + 8], 1
je 0x4c6731
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x4c6a3a
mov ecx, esi
mov dword [esp], eax
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
movzx esi, cl
neg esi
mov dword [esp + 4], esi
call edi
sub esp, 8
cmp eax, 0x102
je 0x4c66cc
cmp eax, 0xffffffff
mov dword [ebp - 0x50], 0x64
mov byte [ebp - 0x58], 1
je 0x4c67ae
mov eax, ebx
xor edx, edx
mov ebx, edx
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
mov dword [esp + 4], esi
mov eax, dword [eax + 8]
mov dword [esp], eax
call edi
sub esp, 8
cmp eax, 0x102
je 0x4c6750
test eax, eax
jne 0x4c6610
add ebx, 1
cmp dword [ebp - 0x50], ebx
jne 0x4c65b4
cmp byte [ebp - 0x58], 0
mov ebx, dword [ebp - 0x4c]
mov eax, dword [ebp + 8]
mov dword [ebx + 0x10], eax
je 0x4c65fb
mov eax, dword [ebx + 0xc]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
sub esp, 4
movzx eax, byte [ebp - 0x51]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 8
cmp byte [ebp - 0x58], 0
mov ebx, dword [ebp - 0x4c]
jne 0x4c68f5
lea esi, [ebp - 0x34]
lea edi, [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov eax, esi
call fcn.004c6220
mov dword [esp + 4], esi
mov dword [esp], edi
call dword [method.QString.toLatin1_helper_inplace_QString_]
mov eax, dword [ebp - 0x30]
add eax, dword [eax + 0xc]
mov dword [ebp - 0x2c], 2
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0x55cbe0
mov dword [esp + 4], str.QtLockedFile::lock__:_WaitForSingleObject__semaphore_:__s
mov dword [esp + 8], eax
lea eax, [ebp - 0x2c]
mov dword [esp], eax
call dword [method.QMessageLogger.warning_char_const__...__const]
mov eax, dword [ebp - 0x30]
mov edx, dword [eax]
test edx, edx
je 0x4c6790
cmp edx, 0xffffffff
je 0x4c669c
lock sub dword [eax], 1
je 0x4c6783
mov eax, dword [ebp - 0x34]
mov edx, dword [eax]
test edx, edx
je 0x4c66b3
cmp edx, 0xffffffff
je 0x4c66cc
lock sub dword [eax], 1
jne 0x4c66cc
mov eax, dword [ebp - 0x34]
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call dword [method.QArrayData.deallocate_QArrayData__unsigned_int__unsigned_int_]
mov byte [ebp - 0x51], 0
movzx eax, byte [ebp - 0x51]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 8
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 2
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [esp], eax
mov dword [ebp - 0x1c], 0x55cbe0
mov dword [esp + 4], str.QtLockedFile::lock__:_file_is_not_opened
call dword [method.QMessageLogger.warning_char_const__...__const]
movzx eax, byte [ebp - 0x51]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 8
mov ecx, ebx
call fcn.004c6340
jmp 0x4c6553
mov eax, esi
mov dword [ebp - 0x50], 1
mov byte [ebp - 0x58], 0
movzx esi, al
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
neg esi
jmp 0x4c65ab
mov eax, dword [ebp - 0x4c]
mov ecx, eax
mov eax, ebx
test eax, eax
mov ebx, ecx
jne 0x4c6816
cmp byte [ebp - 0x58], 0
je 0x4c66cc
mov eax, dword [ebx + 0xc]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [ebp - 0x51], 0
sub esp, 4
jmp 0x4c65fb
mov eax, dword [ebp - 0x30]
lea esi, [esi]
lea edi, [edi]
mov dword [esp + 8], 4
mov dword [esp + 4], 1
mov dword [esp], eax
call dword [method.QArrayData.deallocate_QArrayData__unsigned_int__unsigned_int_]
jmp 0x4c669c
lea esi, [ebp - 0x34]
lea edi, [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov eax, esi
call fcn.004c6220
mov dword [esp + 4], esi
mov dword [esp], edi
call dword [method.QString.toLatin1_helper_inplace_QString_]
mov eax, dword [ebp - 0x30]
add eax, dword [eax + 0xc]
mov dword [ebp - 0x2c], 2
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0x55cbe0
mov dword [esp + 4], str.QtLockedFile::lock__:_WaitForSingleObject__mutex_:__s
mov dword [esp + 8], eax
lea eax, [ebp - 0x2c]
mov dword [esp], eax
call dword [method.QMessageLogger.warning_char_const__...__const]
jmp 0x4c6680
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [ecx + 8]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
sub esp, 0xc
test eax, eax
jne 0x4c6761
lea esi, [ebp - 0x34]
lea edi, [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov eax, esi
call fcn.004c6220
mov dword [esp + 4], esi
mov dword [esp], edi
call dword [method.QString.toLatin1_helper_inplace_QString_]
mov eax, dword [ebp - 0x30]
add eax, dword [eax + 0xc]
mov dword [ebp - 0x2c], 2
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0x55cbe0
mov dword [esp + 4], str.QtLockedFile::unlock__:_ReleaseSemaphore:__s
mov dword [esp + 8], eax
lea eax, [ebp - 0x2c]
mov dword [esp], eax
call dword [method.QMessageLogger.warning_char_const__...__const]
mov eax, dword [ebp - 0x30]
mov edx, dword [eax]
test edx, edx
je 0x4c6d26
cmp edx, 0xffffffff
je 0x4c68b8
lock sub dword [eax], 1
je 0x4c6d23
mov eax, dword [ebp - 0x34]
mov edx, dword [eax]
test edx, edx
je 0x4c68d7
cmp edx, 0xffffffff
je 0x4c6761
lock sub dword [eax], 1
jne 0x4c6761
mov eax, dword [ebp - 0x34]
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call dword [method.QArrayData.deallocate_QArrayData__unsigned_int__unsigned_int_]
jmp 0x4c6761
mov eax, dword [ebx + 0xc]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
sub esp, 4
jmp 0x4c661d
lea eax, [ebp - 0x40]
mov dword [esp], ebx
lea edi, [ebp - 0x38]
mov ecx, eax
mov dword [ebp - 0x4c], eax
call dword [method.QFileInfo.QFileInfo_QFile_const_]
mov eax, dword [ebp - 0x4c]
sub esp, 4
mov ecx, edi
mov dword [esp], eax
call dword [method.QFileInfo.absoluteFilePath___const]
lea eax, [ebp - 0x2c]
sub esp, 4
mov dword [esp + 4], edi
mov dword [ebp - 0x58], eax
mov dword [esp], eax
call dword [method.QString.toLower_helper_QString_]
mov dword [esp + 4], 0x17
mov dword [esp], str.QtLockedFile_semaphore
call dword [method.QString.fromLatin1_helper_char_const__int_]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x3c], eax
mov edx, dword [eax]
add edx, 1
cmp edx, 1
jbe 0x4c696d
lock add dword [eax], 1
mov ecx, dword [ebp - 0x58]
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x50], eax
mov dword [esp], ecx
mov ecx, eax
call dword [method.QString.append_QString_const_]
mov eax, dword [ebp - 0x30]
sub esp, 4
mov edx, dword [eax]
test edx, edx
je 0x4c6b8a
cmp edx, 0xffffffff
je 0x4c69a0
lock sub dword [eax], 1
je 0x4c6b87
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax]
test edx, edx
je 0x4c6bab
cmp edx, 0xffffffff
je 0x4c69bc
lock sub dword [eax], 1
je 0x4c6ba8
mov eax, dword [ebp - 0x38]
mov edx, dword [eax]
test edx, edx
je 0x4c6b69
cmp edx, 0xffffffff
je 0x4c69d8
lock sub dword [eax], 1
je 0x4c6b66
mov ecx, dword [ebp - 0x50]
call dword [method.QString.utf16___const]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x64
mov dword [esp + 4], 0x64
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
sub esp, 0x10
test eax, eax
mov dword [ebx + 8], eax
je 0x4c6c6e
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax]
test edx, edx
je 0x4c6bcc
cmp edx, 0xffffffff
je 0x4c6a2c
lock sub dword [eax], 1
je 0x4c6bc9
mov ecx, dword [ebp - 0x4c]
call dword [method.QFileInfo.QFileInfo__]
jmp 0x4c655e
lea eax, [ebp - 0x40]
mov dword [esp], ebx
lea edi, [ebp - 0x38]
mov ecx, eax
mov dword [ebp - 0x4c], eax
call dword [method.QFileInfo.QFileInfo_QFile_const_]
mov eax, dword [ebp - 0x4c]
sub esp, 4
mov ecx, edi
mov dword [esp], eax
call dword [method.QFileInfo.absoluteFilePath___const]
lea eax, [ebp - 0x2c]
sub esp, 4
mov dword [esp + 4], edi
mov dword [ebp - 0x58], eax
mov dword [esp], eax
call dword [method.QString.toLower_helper_QString_]
mov dword [esp + 4], 0x13
mov dword [esp], str.QtLockedFile_mutex
call dword [method.QString.fromLatin1_helper_char_const__int_]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x3c], eax
mov edx, dword [eax]
add edx, 1
cmp edx, 1
jbe 0x4c6a9e
lock add dword [eax], 1
mov ecx, dword [ebp - 0x58]
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x50], eax
mov dword [esp], ecx
mov ecx, eax
call dword [method.QString.append_QString_const_]
mov eax, dword [ebp - 0x30]
sub esp, 4
mov edx, dword [eax]
test edx, edx
je 0x4c6c2f
cmp edx, 0xffffffff
je 0x4c6ad1
lock sub dword [eax], 1
je 0x4c6c2c
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax]
test edx, edx
je 0x4c6c0e
cmp edx, 0xffffffff
je 0x4c6aed
lock sub dword [eax], 1
je 0x4c6c0b
mov eax, dword [ebp - 0x38]
mov edx, dword [eax]
test edx, edx
je 0x4c6bed
cmp edx, 0xffffffff
je 0x4c6b09
lock sub dword [eax], 1
je 0x4c6bea
mov ecx, dword [ebp - 0x50]
call dword [method.QString.utf16___const]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
sub esp, 0xc
test eax, eax
mov dword [ebx + 0xc], eax
je 0x4c6da4
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax]
test edx, edx
je 0x4c6c50
cmp edx, 0xffffffff
je 0x4c6b55
lock sub dword [eax], 1
je 0x4c6c4d
mov ecx, dword [ebp - 0x4c]
call dword [method.QFileInfo.QFileInfo__]
mov eax, dword [ebx + 0xc]
jmp 0x4c6573
mov eax, dword [ebp - 0x38]
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call dword [method.QArrayData.deallocate_QArrayData__unsigned_int__unsigned_int_]
jmp 0x4c69d8
mov eax, dword [ebp - 0x30]
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call dword [method.QArrayData.deallocate_QArrayData__unsigned_int__unsigned_int_]
jmp 0x4c69a0
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call dword [method.QArrayData.deallocate_QArrayData__unsigned_int__unsigned_int_]
jmp 0x4c69bc
mov eax, dword [ebp - 0x3c]
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call dword [method.QArrayData.deallocate_QArrayData__unsigned_int__unsigned_int_]
jmp 0x4c6a2c
mov eax, dword [ebp - 0x38]
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call dword [method.QArrayData.deallocate_QArrayData__unsigned_int__unsigned_int_]
jmp 0x4c6b09
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call dword [method.QArrayData.deallocate_QArrayData__unsigned_int__unsigned_int_]
jmp 0x4c6aed
mov eax, dword [ebp - 0x30]
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call dword [method.QArrayData.deallocate_QArrayData__unsigned_int__unsigned_int_]
jmp 0x4c6ad1
mov eax, dword [ebp - 0x3c]
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call dword [method.QArrayData.deallocate_QArrayData__unsigned_int__unsigned_int_]
jmp 0x4c6b55
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [ebp - 0x34]
mov edx, eax
mov eax, esi
call fcn.004c6220
lea edi, [ebp - 0x30]
mov dword [esp + 4], esi
mov dword [esp], edi
call dword [method.QString.toLatin1_helper_inplace_QString_]
mov eax, dword [ebp - 0x30]
add eax, dword [eax + 0xc]
mov dword [ebp - 0x2c], 2
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0x55cbe0
mov dword [esp + 4], str.QtLockedFile::lock__:_CreateSemaphore:__s
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x58]
mov dword [esp], eax
call dword [method.QMessageLogger.warning_char_const__...__const]
mov eax, dword [ebp - 0x30]
mov edx, dword [eax]
test edx, edx
je 0x4c6d47
cmp edx, 0xffffffff
je 0x4c6ce5
lock sub dword [eax], 1
je 0x4c6d44
mov eax, dword [ebp - 0x34]
mov edx, dword [eax]
test edx, edx
je 0x4c6d65
cmp edx, 0xffffffff
je 0x4c6cf9
lock sub dword [eax], 1
je 0x4c6d62
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax]
test edx, edx
je 0x4c6d86
cmp edx, 0xffffffff
je 0x4c6d11
lock sub dword [eax], 1
je 0x4c6d83
mov ecx, dword [ebp - 0x4c]
call dword [method.QFileInfo.QFileInfo__]
mov byte [ebp - 0x51], 0
jmp 0x4c65fb
mov eax, dword [ebp - 0x30]
mov dword [esp + 8], 4
mov dword [esp + 4], 1
mov dword [esp], eax
call dword [method.QArrayData.deallocate_QArrayData__unsigned_int__unsigned_int_]
jmp 0x4c68b8
mov eax, dword [ebp - 0x30]
mov dword [esp + 8], 4
mov dword [esp + 4], 1
mov dword [esp], eax
call dword [method.QArrayData.deallocate_QArrayData__unsigned_int__unsigned_int_]
jmp 0x4c6ce5
mov eax, dword [ebp - 0x34]
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call dword [method.QArrayData.deallocate_QArrayData__unsigned_int__unsigned_int_]
jmp 0x4c6cf9
mov eax, dword [ebp - 0x3c]
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call dword [method.QArrayData.deallocate_QArrayData__unsigned_int__unsigned_int_]
jmp 0x4c6d11
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [ebp - 0x34]
mov edx, eax
mov eax, esi
call fcn.004c6220
lea edi, [ebp - 0x30]
mov dword [esp + 4], esi
mov dword [esp], edi
call dword [method.QString.toLatin1_helper_inplace_QString_]
mov eax, dword [ebp - 0x30]
add eax, dword [eax + 0xc]
mov dword [ebp - 0x2c], 2
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0x55cbe0
mov dword [esp + 4], str.QtLockedFile::lock__:_CreateMutex:__s
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x58]
mov dword [esp], eax
call dword [method.QMessageLogger.warning_char_const__...__const]
jmp 0x4c6cd1