Function at 0x4bac49
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x50515e
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x5466b0]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
xor esi, esi
inc esi
mov dword [esp + 0x20], esi
cmp eax, 0x65
jne 0x4bae0d
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], esi
call fcn.00408850
and dword [esp + 0x40], 0
mov ebx, dword [ebp + 0xc]
cmp dword [ebp + 0x10], esi
jb 0x4bacb0
mov ecx, dword [ebx + 4]
call fcn.0040c5b0
mov dword [esp + 0x18], eax
cmp dword [ebp + 0x10], 2
jb 0x4bad14
add ebx, 0xc
lea eax, [esp + 0x1c]
push ebx
push eax
call fcn.0046405d
pop ecx
pop ecx
mov byte [esp + 0x40], 1
mov ecx, dword [eax]
mov ebx, dword [esp + 0x14]
lea eax, [ecx - 0x10]
add ebx, 0xfffffff0
cmp eax, ebx
je 0x4bad0b
cmp dword [ebx + 0xc], 0
jl 0x4bacfe
mov edx, dword [eax]
cmp edx, dword [ebx]
jne 0x4bacfe
call fcn.00408780
mov esi, eax
mov eax, ebx
call fcn.00408830
add esi, 0x10
mov dword [esp + 0x14], esi
jmp 0x4bad0b
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x18]
call fcn.00408500
lea ecx, [esp + 0x1c]
call fcn.004087f0
push dword [esp + 0x14]
push dword [esp + 0x1c]
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esp + 0x18], 0
mov dword [esp + 0x24], eax
mov ebx, 0x54cfe0
je 0x4bad9e
push ebx
push 0x10
call fcn.004cba2a
pop ecx
pop ecx
mov dword [esp + 0x1c], eax
mov byte [esp + 0x40], 2
test eax, eax
je 0x4bad67
mov eax, dword [esp + 0x18]
cdq
push edx
push eax
mov eax, dword [esp + 0x24]
call fcn.00431080
jmp 0x4bad69
xor eax, eax
push eax
lea esi, [esp + 0x2c]
mov byte [esp + 0x44], 0
call fcn.0040ec70
push eax
mov byte [esp + 0x44], 3
mov edx, dword [edi]
push str.handle
mov ecx, edi
call dword [edx + 0x30]
mov byte [esp + 0x40], 0
mov ecx, esi
mov dword [esp + 0x28], vtable.os::script_shared_ptr_class__variant__.0
call fcn.0040ea60
push ebx
push 0x10
call fcn.004cba2a
pop ecx
pop ecx
mov ecx, eax
mov dword [esp + 0x1c], ecx
xor eax, eax
mov byte [esp + 0x40], 4
test ecx, ecx
je 0x4badc5
cmp dword [esp + 0x18], eax
setne al
call fcn.0040c000
mov ecx, dword [ebp + 0x14]
push eax
mov byte [esp + 0x44], 0
call fcn.0040ed50
cmp dword [ebp + 0x1c], 1
jb 0x4bafbd
push ebx
push 0x10
call fcn.004cba2a
pop ecx
pop ecx
mov ecx, eax
mov dword [esp + 0x1c], ecx
mov byte [esp + 0x40], 5
test ecx, ecx
je 0x4bae01
mov eax, dword [esp + 0x24]
call fcn.0041a730
jmp 0x4bae03
xor eax, eax
mov byte [esp + 0x40], 0
jmp 0x4bafb4
cmp eax, 0x66
jne 0x4bafcb
and dword [esp + 0x18], 0
lea ecx, [esp + 0x14]
mov dword [esp + 0x1c], 0x1f0001
call fcn.00408850
mov dword [esp + 0x40], 6
cmp dword [ebp + 0x10], esi
jb 0x4bafbd
mov esi, dword [ebp + 0xc]
lea eax, [esp + 0x24]
push esi
push eax
call fcn.0046405d
pop ecx
pop ecx
mov byte [esp + 0x40], 7
mov ecx, dword [eax]
mov ebx, dword [esp + 0x14]
lea eax, [ecx - 0x10]
add ebx, 0xfffffff0
cmp eax, ebx
je 0x4bae95
cmp dword [ebx + 0xc], 0
jl 0x4bae88
mov edx, dword [eax]
cmp edx, dword [ebx]
jne 0x4bae88
call fcn.00408780
mov esi, eax
mov eax, ebx
call fcn.00408830
add esi, 0x10
mov dword [esp + 0x14], esi
mov esi, dword [ebp + 0xc]
jmp 0x4bae95
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x18]
call fcn.00408500
lea ecx, [esp + 0x24]
call fcn.004087f0
cmp dword [ebp + 0x10], 2
jb 0x4baeb0
mov ecx, dword [esi + 0x10]
call fcn.0040c5f0
mov dword [esp + 0x1c], eax
cmp dword [ebp + 0x10], 3
jb 0x4baec2
mov ecx, dword [esi + 0x1c]
call fcn.0040c5f0
mov dword [esp + 0x18], eax
push dword [esp + 0x14]
push dword [esp + 0x1c]
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esp + 0x18], 0
mov dword [esp + 0x1c], eax
mov ebx, 0x54cfe0
je 0x4baf4e
push ebx
push 0x10
call fcn.004cba2a
pop ecx
pop ecx
mov dword [esp + 0x24], eax
mov byte [esp + 0x40], 8
test eax, eax
je 0x4baf17
mov eax, dword [esp + 0x18]
cdq
push edx
push eax
mov eax, dword [esp + 0x2c]
call fcn.00431080
jmp 0x4baf19
xor eax, eax
push eax
lea esi, [esp + 0x2c]
mov byte [esp + 0x44], 6
call fcn.0040ec70
push eax
mov byte [esp + 0x44], 9
mov edx, dword [edi]
push str.handle
mov ecx, edi
call dword [edx + 0x30]
mov byte [esp + 0x40], 6
mov ecx, esi
mov dword [esp + 0x28], vtable.os::script_shared_ptr_class__variant__.0
call fcn.0040ea60
push ebx
push 0x10
call fcn.004cba2a
pop ecx
pop ecx
mov ecx, eax
mov dword [esp + 0x24], ecx
xor eax, eax
mov byte [esp + 0x40], 0xa
test ecx, ecx
je 0x4baf75
cmp dword [esp + 0x18], eax
setne al
call fcn.0040c000
mov ecx, dword [ebp + 0x14]
push eax
mov byte [esp + 0x44], 6
call fcn.0040ed50
cmp dword [ebp + 0x1c], 1
jb 0x4bafbd
push ebx
push 0x10
call fcn.004cba2a
pop ecx
pop ecx
mov ecx, eax
mov dword [esp + 0x24], ecx
mov byte [esp + 0x40], 0xb
test ecx, ecx
je 0x4bafad
mov eax, dword [esp + 0x1c]
call fcn.0041a730
jmp 0x4bafaf
xor eax, eax
mov byte [esp + 0x40], 6
mov ecx, dword [ebp + 0x18]
push eax
call fcn.0040ed50
lea ecx, [esp + 0x14]
call fcn.004087f0
jmp 0x4bb1e6
cmp eax, 0x67
jne 0x4bb031
mov eax, dword [edi]
push str.handle
or esi, 0xffffffff
call dword [eax + 0x38]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x4bb010
cmp dword [ecx], 3
jne 0x4bb010
call fcn.0040c5f0
mov edi, eax
test edi, edi
je 0x4bb010
xor eax, eax
cmp dword [ebp + 0x10], eax
jbe 0x4bb006
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
call fcn.0040c5f0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, eax
push 0x54cfe0
push 0x10
call fcn.004cba2a
pop ecx
pop ecx
mov ecx, eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x40], 0xc
jmp 0x4bb0c2
cmp eax, 0x68
jne 0x4bb07f
mov eax, dword [edi]
push str.handle
or esi, 0xffffffff
call dword [eax + 0x38]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x4bb061
cmp dword [ecx], 3
jne 0x4bb061
call fcn.0040c5f0
test eax, eax
je 0x4bb061
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov esi, eax
push 0x54cfe0
push 0x10
call fcn.004cba2a
pop ecx
pop ecx
mov ecx, eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x40], 0xd
jmp 0x4bb0c2
cmp eax, 0x69
jne 0x4bb0cf
mov eax, dword [edi]
push str.handle
xor esi, esi
call dword [eax + 0x38]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x4bb0a6
cmp dword [ecx], 3
jne 0x4bb0a6
call fcn.0040c5f0
test eax, eax
je 0x4bb0a6
inc esi
push 0x54cfe0
push 0x10
call fcn.004cba2a
pop ecx
pop ecx
mov ecx, eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x40], 0xe
test ecx, ecx
je 0x4bb12d
mov eax, esi
call fcn.0041a730
jmp 0x4bb12f
cmp eax, 0x6a
jne 0x4bb142
mov eax, dword [edi]
push str.handle
xor esi, esi
call dword [eax + 0x38]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x4bb104
cmp dword [ecx], 3
jne 0x4bb104
call fcn.0040c5f0
test eax, eax
je 0x4bb104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, eax
neg esi
sbb esi, esi
inc esi
push 0x54cfe0
push 0x10
call fcn.004cba2a
pop ecx
pop ecx
mov ecx, eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x40], 0xf
test ecx, ecx
je 0x4bb12d
mov eax, esi
call fcn.0040c000
jmp 0x4bb12f
xor eax, eax
mov ecx, dword [ebp + 0x14]
or dword [esp + 0x40], 0xffffffff
push eax
call fcn.0040ed50
jmp 0x4bb1e6
cmp eax, 0x6b
jne 0x4bb1cd
mov eax, dword [edi]
mov ebx, str.handle
push ebx
call dword [eax + 0x38]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x4bb172
cmp dword [ecx], 3
jne 0x4bb172
call fcn.0040c5f0
test eax, eax
je 0x4bb172
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x54cfe0
push 0x10
pop esi
push esi
call fcn.004cba2a
pop ecx
pop ecx
mov ecx, eax
mov dword [esp + 0x24], ecx
xor eax, eax
mov dword [esp + 0x40], esi
test ecx, ecx
je 0x4bb197
call fcn.0040c000
or dword [esp + 0x40], 0xffffffff
push eax
lea esi, [esp + 0x2c]
call fcn.0040ec70
push eax
mov dword [esp + 0x44], 0x11
mov edx, dword [edi]
push ebx
mov ecx, edi
call dword [edx + 0x30]
or dword [esp + 0x40], 0xffffffff
mov ecx, esi
mov dword [esp + 0x28], vtable.os::script_shared_ptr_class__variant__.0
call fcn.0040ea60
jmp 0x4bb1e6
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call fcn.00460cc8
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18