Function at 0x410320
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 0xc
push esi
push str.Q360SafeInstallerMutex
push 1
mov esi, ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
test eax, eax
mov dword [esp + 4], eax
je 0x410534
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x410378
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0x455350
call dword [sym.imp.USER32.dll_FindWindowW]
mov ecx, dword [esp + 0x1c]
pop esi
mov dword [ecx], eax
mov eax, 1
add esp, 0xc
ret 0xc
push ebx
lea ebx, [esi + 0x14]
push edi
push ebx
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0xc]
mov edx, dword [esi + 0x10]
add esi, 4
sub edx, eax
sar edx, 2
cmp edx, 1
mov edi, eax
jae 0x41049a
mov edx, dword [esi + 4]
test edx, edx
je 0x4103b4
mov ecx, eax
sub ecx, edx
sar ecx, 2
cmp ecx, 1
ja 0x4103b9
mov ecx, 1
test edx, edx
jne 0x4103c1
xor eax, eax
jmp 0x4103c6
sub eax, edx
sar eax, 2
add eax, ecx
test eax, eax
mov dword [esp + 0x10], eax
jge 0x4103d2
xor eax, eax
shl eax, 2
push ebp
push eax
call fcn.0043649a
mov ebp, dword [esi + 4]
add esp, 4
cmp ebp, edi
mov dword [esp + 0x28], eax
mov ebx, eax
je 0x410400
push ebp
push ebx
call fcn.004109f0
add ebp, 4
add esp, 8
add ebx, 4
cmp ebp, edi
jne 0x4103ec
lea ecx, [esp + 0x10]
push ecx
push 1
push ebx
mov ecx, esi
call fcn.00410950
mov edx, dword [esi + 8]
add ebx, 4
push ebx
push edx
push edi
mov ecx, esi
call fcn.00410920
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
push eax
push ecx
mov ecx, esi
call fcn.00410910
mov edx, dword [esi + 4]
push edx
call fcn.0042ac06
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x18]
add esp, 4
lea ecx, [edx + eax*4]
mov eax, dword [esi + 4]
test eax, eax
mov dword [esi + 0xc], ecx
pop ebp
jne 0x410472
mov ebx, dword [esp + 0x14]
xor ecx, ecx
push ebx
mov dword [esi + 4], edx
lea eax, [edx + ecx*4 + 4]
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop ebx
xor eax, eax
pop esi
add esp, 0xc
ret 0xc
mov ecx, dword [esi + 8]
mov ebx, dword [esp + 0x14]
sub ecx, eax
push ebx
sar ecx, 2
mov dword [esi + 4], edx
lea eax, [edx + ecx*4 + 4]
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop ebx
xor eax, eax
pop esi
add esp, 0xc
ret 0xc
mov ecx, eax
sub ecx, edi
sar ecx, 2
cmp ecx, 1
jae 0x4104e8
lea edx, [edi + 4]
mov ecx, esi
push edx
push eax
push edi
call fcn.00410920
mov eax, dword [esi + 8]
lea ecx, [esp + 0xc]
mov edx, eax
push ecx
sub edx, edi
mov ecx, 1
sar edx, 2
sub ecx, edx
push ecx
push eax
mov ecx, esi
call fcn.00410950
mov eax, dword [esi + 8]
cmp edi, eax
je 0x410522
mov edx, dword [esp + 0xc]
mov dword [edi], edx
add edi, 4
cmp edi, eax
jne 0x4104d9
jmp 0x410522
push eax
push eax
add eax, 0xfffffffc
mov ecx, esi
push eax
call fcn.00410920
mov ecx, dword [esi + 8]
lea eax, [ecx - 4]
cmp edi, eax
je 0x41050e
mov edx, dword [eax - 4]
sub eax, 4
sub ecx, 4
cmp eax, edi
mov dword [ecx], edx
jne 0x4104ff
lea eax, [edi + 4]
cmp edi, eax
je 0x410522
mov ecx, dword [esp + 0xc]
mov dword [edi], ecx
add edi, 4
cmp edi, eax
jne 0x410515
mov eax, dword [esi + 8]
push ebx
add eax, 4
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop ebx
xor eax, eax
pop esi
add esp, 0xc
ret 0xc