Function at 0x4aa4e0
Capabilities:
Check mutex on windows

Disassembly:
push 0xffffffffffffffff
push 0x571ed6
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x59b000]
xor eax, esp
mov dword [esp + 0x44], eax
push ebx
push esi
push edi
mov eax, dword [0x59b000]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x1c], ebx
mov dword [ebx], 0
mov dword [esp + 0x60], 0
mov dword [ebx + 4], 0xffffffff
mov dword [ebx + 8], 0xffffffff
push 0x10
mov byte [esp + 0x64], 2
call fcn.00549e5e
mov edi, eax
add esp, 4
test edi, edi
je 0x4aa56d
lea eax, [edi + 4]
xorps xmm0, xmm0
movq qword [eax], xmm0
mov dword [eax + 8], 0
and dword [eax], 1
mov dword [eax + 4], eax
mov dword [eax + 8], eax
and dword [eax], 0xfffffffe
mov dword [edi], 0
jmp 0x4aa56f
xor edi, edi
mov eax, edi
mov dword [esp + 0x50], 0xf
shr eax, 2
mov dword [esp + 0x20], eax
mov dword [esp + 0x4c], 0
mov byte [esp + 0x3c], 0
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], 0
mov byte [esp + 0x24], 0
lea eax, [esp + 0x3c]
mov byte [esp + 0x60], 4
push eax
call fcn.004ad200
add esp, 4
lea ecx, [esp + 0x24]
push 0x13
push 0x445340
call fcn.00465aa0
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x30]
call fcn.004656b0
cmp dword [esp + 0x38], 0x10
lea eax, [esp + 0x24]
cmovae eax, dword [esp + 0x24]
cmp dword [ebx], 0
jne 0x4aa5ff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
test eax, eax
mov dword [ebx], eax
setne byte [esp + 0x13]
jmp 0x4aa604
mov byte [esp + 0x13], 0
push 0x14
push 0x445354
lea ecx, [esp + 0x2c]
call fcn.00465aa0
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x30]
call fcn.004656b0
push dword [ebx]
xorps xmm0, xmm0
movq qword [esp + 0x18], xmm0
mov dword [esp + 0x18], ebx
call fcn.004af3c0
add esp, 4
mov byte [esp + 0x18], 1
cmp byte [esp + 0x13], 0
mov esi, dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
mov byte [esp + 0x60], 5
je 0x4aa68d
cmp dword [esp + 0x38], 0x10
lea eax, [esp + 0x24]
cmovae eax, dword [esp + 0x24]
cmp dword [ebx + 8], 0xffffffff
jne 0x4aa68d
push eax
push closesocket
push 0
push 0
call esi
mov dword [ebx + 8], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebx + 8], 0xffffffff
mov byte [esp + 0x13], 1
setne al
test al, al
jne 0x4aa692
mov byte [esp + 0x13], 0
push 0x12
push 0x44536c
lea ecx, [esp + 0x2c]
call fcn.00465aa0
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x30]
call fcn.004656b0
cmp byte [esp + 0x13], 0
je 0x4aa7c5
cmp dword [esp + 0x38], 0x10
lea eax, [esp + 0x24]
cmovae eax, dword [esp + 0x24]
cmp dword [ebx + 4], 0xffffffff
jne 0x4aa7c5
push eax
push dword [esp + 0x24]
push 0
push 0
call esi
mov dword [ebx + 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
setne cl
cmp dword [ebx + 4], 0xffffffff
setne al
test al, al
je 0x4aa7c5
test cl, cl
jne 0x4aa74c
test edi, edi
je 0x4aa74c
mov ecx, dword [edi + 4]
lea esi, [edi + 4]
and ecx, 0xfffffffe
je 0x4aa731
sub esp, 8
mov eax, esp
push ecx
mov dword [eax], edi
mov dword [eax + 4], esi
call fcn.004a9330
add esp, 0xc
and dword [esi], 1
mov dword [esi + 4], esi
mov dword [esi + 8], esi
and dword [esi], 1
mov dword [esi + 4], esi
mov dword [esi + 8], esi
and dword [esi], 0xfffffffe
push edi
mov dword [edi], 0
call fcn.00549eaf
add esp, 4
lea eax, [esp + 0x20]
push eax
push 1
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
lea ecx, [esp + 0x14]
mov byte [esp + 0x60], 4
call fcn.004aa990
cmp dword [esp + 0x38], 0x10
jb 0x4aa77d
push dword [esp + 0x24]
call fcn.00549eaf
add esp, 4
cmp dword [esp + 0x50], 0x10
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], 0
mov byte [esp + 0x24], 0
jb 0x4aa7a5
push dword [esp + 0x3c]
call fcn.00549eaf
add esp, 4
mov eax, ebx
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.0054a992
add esp, 0x54
ret
test edi, edi
je 0x4aa80b
mov ecx, dword [edi + 4]
lea esi, [edi + 4]
and ecx, 0xfffffffe
je 0x4aa7f0
sub esp, 8
mov eax, esp
push ecx
mov dword [eax], edi
mov dword [eax + 4], esi
call fcn.004a9330
add esp, 0xc
and dword [esi], 1
mov dword [esi + 4], esi
mov dword [esi + 8], esi
and dword [esi], 1
mov dword [esi + 4], esi
mov dword [esi + 8], esi
and dword [esi], 0xfffffffe
push edi
mov dword [edi], 0
call fcn.00549eaf
add esp, 4
push 0x583758
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0
push eax
call fcn.0054a9a1
int3