Function at 0x10005c50
Capabilities:
Check mutex on windows
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1015cfe0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x101bafec]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [ebp + 0xc]
lea eax, [ebp + 0xc]
push dword [ebp + 8]
push eax
call fcn.10005ef0
mov dword [ebp - 4], 0
mov ecx, esi
push dword [ebp + 0xc]
call fcn.100047e0
push dword [ebp + 0xc]
or ebx, 0xffffffff
test eax, eax
je 0x10005cb5
mov ecx, esi
call fcn.100047e0
mov edi, eax
jmp 0x10005dda
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
push dword [ebp + 0xc]
lea ecx, [ebp + 8]
mov edi, eax
call fcn.10004260
push eax
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 1
push eax
mov ecx, esi
call fcn.10005350
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 4], 0
mov dword [eax + 0x14], edi
mov eax, ebx
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10005d00
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x1019c630
call esi
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x18]
push str.Create_Mutex__:
push eax
call fcn.100061f0
push 0x1019c630
push eax
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 2
push eax
call fcn.100062c0
add esp, 0x18
push dword [eax]
call esi
mov edx, dword [ebp - 0x14]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10005d53
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, ebx
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10005d71
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.1000e69c
mov ecx, eax
test ecx, ecx
jne 0x10005d86
push 0x80004005
call fcn.10004120
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
push edi
lea eax, [ebp + 8]
mov byte [ebp - 4], 3
push str._Mutex_Handle__:_0x_x__r_n
push eax
call fcn.100064f0
mov esi, dword [ebp + 8]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x1019c630
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [ebp - 4], 0
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10005dd7
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x10]
cmp dword [ebp + 0x14], 0
je 0x10005def
test edi, edi
jne 0x10005def
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10005e28
push dword [ebp + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x80
jne 0x10005e0a
push dword [ebp + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x10005e2a
test edi, edi
je 0x10005e28
push ecx
mov ecx, esp
lea eax, [ebp + 0xc]
push eax
mov dword [ebp + 0x10], ecx
call fcn.10003c20
mov ecx, esi
call fcn.10006050
xor edi, edi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x10005e49
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10