Function at 0x4b2440
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e0a00
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x509018]
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
mov esi, ecx
cmp byte [esi + 0x6c], 0
jne 0x4b247a
xor al, al
jmp 0x4b266b
lea eax, [esi + 0x4c]
push eax
lea ecx, [ebp - 0x38]
call fcn.00402dc0
mov dword [ebp - 4], 0
cmp dword [ebp - 0x28], 0
jne 0x4b24aa
cmp dword [esi + 0x48], 8
lea eax, [esi + 0x34]
jb 0x4b249e
mov eax, dword [eax]
push eax
mov ecx, esi
call fcn.004b2190
test al, al
je 0x4b24c0
cmp dword [esi + 0x68], 0
lea ecx, [esi + 0x68]
jne 0x4b24c7
mov eax, dword [esi]
push ecx
mov ecx, esi
mov eax, dword [eax]
call eax
test al, al
jne 0x4b24c7
xor bl, bl
jmp 0x4b2633
cmp dword [esi + 0x90], 0
jne 0x4b24ef
push 4
call fcn.004bda2c
add esp, 4
mov dword [ebp - 0x54], eax
mov dword [eax], 0
mov dword [eax], 0
mov dword [esi + 0x90], eax
cmp dword [esi + 0x48], 8
lea edx, [esi + 0x34]
jb 0x4b24fa
mov edx, dword [edx]
mov ecx, edx
mov dword [ebp - 0x40], 0
xor eax, eax
mov dword [ebp - 0x3c], 7
mov word [ebp - 0x50], ax
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4b2513
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x50]
call fcn.00403110
mov edi, dword [esi + 0x90]
mov byte [ebp - 4], 1
cmp dword [edi], 0
jne 0x4b257a
cmp dword [ebp - 0x3c], 8
lea eax, [ebp - 0x50]
cmovae eax, dword [ebp - 0x50]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi], eax
test eax, eax
jne 0x4b257a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x4b257a
cmp dword [ebp - 0x3c], 8
lea eax, [ebp - 0x50]
cmovae eax, dword [ebp - 0x50]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov dword [edi], eax
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x3c]
cmp edx, 8
jb 0x4b25b8
mov ecx, dword [ebp - 0x50]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4b25ae
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b2687
push edx
push ecx
call fcn.004bda5c
add esp, 8
lea eax, [ebp - 0x20]
push eax
call fcn.004c92db
mov ecx, dword [ebp - 0x20]
add esp, 4
cmp byte [esi + 0xd1], 0
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0xf0], ecx
mov dword [esi + 0xf4], eax
mov dword [esi + 0xf8], ecx
mov dword [esi + 0xfc], eax
je 0x4b2626
mov eax, dword [esi + 0x90]
mov eax, dword [eax]
test eax, eax
je 0x4b2626
push 0x7d0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4b260e
cmp eax, 0x80
jne 0x4b2626
push ecx
mov ecx, esi
call fcn.004b9680
mov eax, dword [esi + 0x90]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x4b262d
mov byte [esi + 0xd1], 0
mov byte [esi + 0x6d], 1
mov bl, 1
mov edx, dword [ebp - 0x24]
cmp edx, 8
jb 0x4b2669
mov ecx, dword [ebp - 0x38]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4b265f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b268c
push edx
push ecx
call fcn.004bda5c
add esp, 8
mov al, bl
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.004bda16
mov esp, ebp
pop ebp
ret
call fcn.004c59a2
call fcn.004c59a2
int3