Function at 0x4fb1d0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59eda9
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x6340c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x58]
call fcn.004fb880
mov dword [ebp - 4], 0
cmp dword [ebp - 0x48], 0
jne 0x4fb21a
xor al, al
mov byte [ebp - 0x59], al
jmp 0x4fb44a
lea ecx, [ebp - 0x68]
call fcn.00521560
mov byte [ebp - 4], 1
mov ebx, dword [ebp - 0x68]
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x70], eax
cmp ebx, eax
je 0x4fb3fa
nop word [eax + eax]
push 1
xor eax, eax
mov dword [ebp - 0x30], 0
push 0x5dc314
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
call fcn.004459d0
mov byte [ebp - 4], 2
mov edx, ebx
cmp dword [ebx + 0x14], 8
jb 0x4fb271
mov edx, dword [ebx]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4fb276
sub eax, esi
lea ecx, [ebp - 0x40]
sar eax, 1
push eax
push edx
call fcn.00447e80
cmp dword [ebp - 0x44], 8
lea edx, [ebp - 0x58]
mov dword [ebp - 0x18], 0
cmovae edx, dword [ebp - 0x58]
xor eax, eax
mov ecx, edx
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4fb2b3
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.004459d0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.00446a00
mov ecx, dword [ebp - 0x30]
add esp, 4
cmp dword [ebp - 0x2c], 8
lea edi, [eax + ecx*2]
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.00446a00
add esp, 4
mov esi, eax
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.00446a00
mov ecx, dword [ebp - 0x18]
add esp, 4
dec ecx
cmp dword [ebp - 0x14], 8
lea ecx, [eax + ecx*2]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
sub edi, esi
sub ecx, eax
sar edi, 1
push edi
sar ecx, 1
push esi
push ecx
lea ecx, [ebp - 0x28]
call fcn.0044dd60
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
test eax, eax
jne 0x4fb484
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
test eax, eax
jne 0x4fb390
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4fb4be
cmp eax, 5
je 0x4fb4be
jmp 0x4fb397
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x4fb3b2
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x28]
call fcn.00446620
add esp, 8
xor eax, eax
mov byte [ebp - 4], 1
mov word [ebp - 0x28], ax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
cmp eax, 8
jb 0x4fb3e5
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x40]
call fcn.00446620
add esp, 8
mov ebx, dword [ebp - 0x6c]
add ebx, 0x18
mov dword [ebp - 0x6c], ebx
cmp ebx, dword [ebp - 0x70]
jne 0x4fb240
mov ebx, dword [ebp - 0x68]
mov al, 1
mov byte [ebp - 0x59], al
test ebx, ebx
je 0x4fb44a
mov edx, dword [ebp - 0x64]
push ecx
mov ecx, ebx
call fcn.0044dc80
mov eax, dword [ebp - 0x60]
add esp, 4
mov ecx, dword [ebp - 0x68]
sub eax, ecx
sar eax, 3
imul eax, eax, 0xaaaaaaab
lea eax, [eax + eax*2]
shl eax, 3
push eax
push ecx
call fcn.00446620
mov al, byte [ebp - 0x59]
add esp, 8
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
mov ecx, dword [ebp - 0x44]
cmp ecx, 8
jb 0x4fb468
lea ecx, [ecx*2 + 2]
push ecx
push dword [ebp - 0x58]
call fcn.00446620
mov al, byte [ebp - 0x59]
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c59c5
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x4fb4be
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x5dc318
push 0x45
push 0xf9
push str.C:drone_srcGUIWindowsGUIInstance.cpp
push str.CGUIInstance::IsFirstSystemSessionInstance
call fcn.00573980
add esp, 0x20
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x4fb4d9
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x28]
call fcn.00446620
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x14], 7
cmp eax, 8
jb 0x4fb508
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x40]
call fcn.00446620
add esp, 8
mov ebx, dword [ebp - 0x68]
xor al, al
jmp 0x4fb3fc