Function at 0x539094
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x53909c
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x53944f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x561b80]
mov eax, dword [eax]
cmp byte [eax + 0x177b], 0
je 0x5393f2
lea eax, [ebp - 0x10]
mov edx, dword [0x561b80]
mov edx, dword [edx]
add edx, 0x177d
call fcn.00407af4
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00415564
cmp byte [ebx + 0x14], 0
jne 0x539244
lea eax, [ebp - 0x14]
mov ecx, 0x539468
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 0x539146
lea eax, [ebp - 0x18]
mov ecx, 0x539468
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 0x53923d
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 0x53921d
push 1
lea eax, [ebp - 0x1c]
mov edx, dword [0x561b80]
mov edx, dword [edx]
add edx, 0x177d
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 0x539216
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 + 0xc]
mov edx, dword [eax + 8]
mov eax, dword [ebp - 8]
call fcn.0053512c
mov eax, dword [ebx + 0xc]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 8]
call fcn.0053512c
mov edx, 0x53947c
mov eax, dword [ebp - 8]
call fcn.0053512c
mov edx, 0x53948c
mov eax, dword [ebp - 8]
call fcn.0053512c
mov edx, 0x53948c
mov eax, dword [ebp - 8]
call fcn.0053512c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53921d
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 0x5393f2
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 - 0x24]
mov ecx, 0x539468
mov edx, dword [ebp - 4]
call fcn.00407c64
mov eax, dword [ebp - 0x24]
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 0x539297
lea eax, [ebp - 0x28]
mov ecx, 0x539468
mov edx, dword [ebp - 4]
call fcn.00407c64
mov eax, dword [ebp - 0x28]
call fcn.00407834
push eax
push 0
push 0
call fcn.0040cdd4
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x5393eb
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 0x5393cb
push 1
lea eax, [ebp - 0x2c]
mov edx, dword [0x561b80]
mov edx, dword [edx]
add edx, 0x177d
call fcn.00407af4
mov ecx, dword [ebp - 0x2c]
mov dl, 1
mov eax, dword [0x534a78]
call fcn.00534e40
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x5393c4
push dword fs:[edx]
mov dword fs:[edx], esp
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.00534fe4
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 8]
call fcn.0053512c
mov eax, dword [ebx + 0xc]
mov edx, dword [eax + 8]
mov eax, dword [ebp - 8]
call fcn.0053512c
mov eax, dword [ebx + 0xc]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 8]
call fcn.0053512c
mov edx, 0x53949c
mov eax, dword [ebp - 8]
call fcn.0053512c
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + 0x18]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x38]
call fcn.00414674
mov edx, dword [ebp - 0x38]
lea eax, [ebp - 0x34]
mov ecx, 0
call fcn.004079d4
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 8]
call fcn.0053512c
call fcn.00417b64
mov eax, dword [ebx + 0xc]
fsub qword [eax + 0x10]
fld xword [0x5394a0]
fmulp st(1)
add esp, 0xfffffff4
fstp xword [esp]
wait
lea eax, [ebp - 0x40]
push eax
mov ecx, 2
mov edx, 4
mov al, 2
call fcn.00417498
mov edx, dword [ebp - 0x40]
lea eax, [ebp - 0x3c]
mov ecx, 0
call fcn.004079d4
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 8]
call fcn.0053512c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5393cb
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 0x5393f2
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 0x539456
lea eax, [ebp - 0x40]
call fcn.00407798
lea eax, [ebp - 0x3c]
call fcn.004068e4
lea eax, [ebp - 0x38]
call fcn.00407798
lea eax, [ebp - 0x34]
mov edx, 2
call fcn.00406908
lea eax, [ebp - 0x2c]
mov edx, 3
call fcn.004077a0
lea eax, [ebp - 0x20]
call fcn.004068e4
lea eax, [ebp - 0x1c]
mov edx, 4
call fcn.004077a0
lea eax, [ebp - 4]
call fcn.00407798
ret