Function at 0x5394ac
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 9
push 0
push 0
dec ecx
jne 0x5394b4
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x539873
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x561b80]
mov eax, dword [eax]
cmp byte [eax + 0x177c], 0
je 0x539809
lea eax, [ebp - 0x10]
mov edx, dword [0x561b80]
mov edx, dword [edx]
add edx, 0x1878
call fcn.00407af4
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00415564
cmp byte [ebx + 0x14], 0
jne 0x53968a
lea eax, [ebp - 0x14]
mov ecx, 0x53988c
mov edx, dword [ebp - 4]
call fcn.00407c64
mov eax, dword [ebp - 0x14]
call fcn.00407834
push eax
push 0
push 0x1f0001
call sub.kernel32.dll_OpenMutexW
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x53955e
lea eax, [ebp - 0x18]
mov ecx, 0x53988c
mov edx, dword [ebp - 4]
call fcn.00407c64
mov eax, dword [ebp - 0x18]
call fcn.00407834
push eax
push 0
push 0
call fcn.0040cdd4
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x539683
push dword fs:[edx]
mov dword fs:[edx], esp
push 0xffffffffffffffff
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_WaitForSingleObject
sub eax, 1
jae 0x539663
push 1
lea eax, [ebp - 0x1c]
mov edx, dword [0x561b80]
mov edx, dword [edx]
add edx, 0x1878
call fcn.00407af4
mov ecx, dword [ebp - 0x1c]
mov dl, 1
mov eax, dword [0x534a78]
call fcn.00534e40
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x53965c
push dword fs:[edx]
mov dword fs:[edx], esp
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.00534fe4
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 8]
call fcn.0053512c
mov eax, dword [ebx + 0x10]
mov eax, dword [eax + 4]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x28]
call fcn.00414674
mov edx, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
mov ecx, 0
call fcn.004079d4
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 8]
call fcn.0053512c
mov eax, dword [ebx + 0x10]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 8]
call fcn.0053512c
mov eax, dword [ebx + 0x10]
mov edx, dword [eax + 0x10]
mov eax, dword [ebp - 8]
call fcn.0053512c
mov edx, 0x5398a0
mov eax, dword [ebp - 8]
call fcn.0053512c
lea ecx, [ebp - 0x2c]
mov eax, dword [ebx + 0x10]
mov edx, dword [eax + 8]
mov eax, ebx
call fcn.00539fe0
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 8]
call fcn.0053512c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x539663
mov eax, dword [ebp - 8]
xor edx, edx
mov dword [ebp - 8], edx
call fcn.00405608
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x539809
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_ReleaseMutex
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
lea eax, [ebp - 0x30]
mov ecx, 0x53988c
mov edx, dword [ebp - 4]
call fcn.00407c64
mov eax, dword [ebp - 0x30]
call fcn.00407834
push eax
push 0
push 0x1f0001
call sub.kernel32.dll_OpenMutexW
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x5396dd
lea eax, [ebp - 0x34]
mov ecx, 0x53988c
mov edx, dword [ebp - 4]
call fcn.00407c64
mov eax, dword [ebp - 0x34]
call fcn.00407834
push eax
push 0
push 0
call fcn.0040cdd4
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x539802
push dword fs:[edx]
mov dword fs:[edx], esp
push 0xffffffffffffffff
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_WaitForSingleObject
sub eax, 1
jae 0x5397e2
push 1
lea eax, [ebp - 0x38]
mov edx, dword [0x561b80]
mov edx, dword [edx]
add edx, 0x1878
call fcn.00407af4
mov ecx, dword [ebp - 0x38]
mov dl, 1
mov eax, dword [0x534a78]
call fcn.00534e40
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x5397db
push dword fs:[edx]
mov dword fs:[edx], esp
lea edx, [ebp - 0x3c]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.00534fe4
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 8]
call fcn.0053512c
mov eax, dword [ebx + 0x10]
mov eax, dword [eax + 4]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x44]
call fcn.00414674
mov edx, dword [ebp - 0x44]
lea eax, [ebp - 0x40]
mov ecx, 0
call fcn.004079d4
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 8]
call fcn.0053512c
mov eax, dword [ebx + 0x10]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 8]
call fcn.0053512c
mov eax, dword [ebx + 0x10]
mov edx, dword [eax + 0x10]
mov eax, dword [ebp - 8]
call fcn.0053512c
mov edx, 0x5398b0
mov eax, dword [ebp - 8]
call fcn.0053512c
lea ecx, [ebp - 0x48]
mov eax, dword [ebx + 0x10]
mov edx, dword [eax + 8]
mov eax, ebx
call fcn.00539fe0
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 8]
call fcn.0053512c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5397e2
mov eax, dword [ebp - 8]
xor edx, edx
mov dword [ebp - 8], edx
call fcn.00405608
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x539809
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_ReleaseMutex
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53987a
lea eax, [ebp - 0x48]
call fcn.004068e4
lea eax, [ebp - 0x44]
call fcn.00407798
lea eax, [ebp - 0x40]
mov edx, 2
call fcn.00406908
lea eax, [ebp - 0x38]
mov edx, 3
call fcn.004077a0
lea eax, [ebp - 0x2c]
call fcn.004068e4
lea eax, [ebp - 0x28]
call fcn.00407798
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.00406908
lea eax, [ebp - 0x1c]
mov edx, 4
call fcn.004077a0
lea eax, [ebp - 4]
call fcn.00407798
ret