Function at 0x404c80
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x438bcd
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x44f014]
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 edi, ecx
cmp byte [edi + 0x6c], 0
jne 0x404cba
xor al, al
jmp 0x404eb0
lea eax, [edi + 0x4c]
push eax
lea ecx, [ebp - 0x38]
call fcn.00403380
mov dword [ebp - 4], 0
lea ebx, [edi + 0x34]
cmp dword [ebp - 0x28], 0
jne 0x404cec
cmp dword [ebx + 0x14], 8
mov eax, ebx
ret
jb 0x404ce0
mov eax, dword [ebx]
push eax
mov ecx, edi
call fcn.004049e0
test al, al
je 0x404d0a
cmp dword [edi + 0x68], 0
lea ecx, [edi + 0x68]
jne 0x404d11
mov eax, dword [edi]
push ecx
mov esi, dword [eax]
mov ecx, esi
call dword [0x43b228]
mov ecx, edi
call esi
test al, al
jne 0x404d11
xor bl, bl
jmp 0x404e78
cmp dword [edi + 0x90], 0
jne 0x404d39
push 4
call fcn.00416ece
add esp, 4
mov dword [ebp - 0x54], eax
mov dword [eax], 0
mov dword [eax], 0
mov dword [edi + 0x90], eax
cmp dword [ebx + 0x14], 8
jb 0x404d41
mov ebx, dword [ebx]
mov ecx, ebx
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404d60
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x50]
call fcn.00402040
mov esi, dword [edi + 0x90]
cmp dword [esi], 0
jne 0x404dc3
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 [esi], eax
test eax, eax
jne 0x404dc3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x404dc3
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 [esi], eax
mov ecx, dword [ebp - 0x3c]
cmp ecx, 8
jb 0x404dfd
mov edx, dword [ebp - 0x50]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x404df3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404ecc
push ecx
push edx
call fcn.00417151
add esp, 8
lea eax, [ebp - 0x20]
push eax
call fcn.004224df
mov ecx, dword [ebp - 0x20]
add esp, 4
cmp byte [edi + 0xd1], 0
mov eax, dword [ebp - 0x1c]
mov dword [edi + 0xf0], ecx
mov dword [edi + 0xf4], eax
mov dword [edi + 0xf8], ecx
mov dword [edi + 0xfc], eax
je 0x404e6b
mov eax, dword [edi + 0x90]
mov eax, dword [eax]
test eax, eax
je 0x404e6b
push 0x7d0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x404e53
cmp eax, 0x80
jne 0x404e6b
push ecx
mov ecx, edi
call fcn.00410c20
mov eax, dword [edi + 0x90]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x404e72
mov byte [edi + 0xd1], 0
mov byte [edi + 0x6d], 1
mov bl, 1
mov ecx, dword [ebp - 0x24]
cmp ecx, 8
jb 0x404eae
mov edx, dword [ebp - 0x38]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x404ea4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404ed1
push ecx
push edx
call fcn.00417151
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.00416ec0
mov esp, ebp
pop ebp
ret
call fcn.0041c06f
call fcn.0041c06f
int3