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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x565e22
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x5c5244]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], vtable.LogUtils::LogAppender.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov byte [edi + 0xc], 1
mov dword [edi + 0x10], 0
call fcn.00430a50
mov ecx, eax
test ecx, ecx
je 0x4cd8e1
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi + 0x14], eax
mov dword [ebp - 4], 0
call fcn.00430a50
mov ecx, eax
test ecx, ecx
je 0x4cd8eb
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi + 0x18], eax
mov byte [ebp - 4], 1
call fcn.00430a50
mov ecx, eax
test ecx, ecx
je 0x4cd8f5
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi + 0x1c], eax
mov dword [edi + 0x20], 0xffffffff
lea eax, [edi + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov byte [ebp - 4], 5
mov dword [edi + 0x10], eax
test esi, esi
jne 0x4cd720
xor ecx, ecx
jmp 0x4cd734
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4cd725
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [edi + 0x14]
call fcn.00429710
mov ecx, dword [edi + 0x14]
mov esi, dword [edi + 0x18]
sub esi, 0x10
lea edx, [ecx - 0x10]
cmp edx, esi
je 0x4cd794
cmp dword [esi + 0xc], 0
jl 0x4cd788
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x4cd788
push edx
call fcn.00428580
add esp, 4
mov dword [ebp + 0x10], eax
or ecx, 0xffffffff
lea edx, [esi + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4cd780
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp + 0x10]
add eax, 0x10
mov dword [edi + 0x18], eax
jmp 0x4cd794
push dword [ecx - 0xc]
push ecx
lea ecx, [edi + 0x18]
call fcn.00429710
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x4cd79f
xor ecx, ecx
jmp 0x4cd7b3
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4cd7a4
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [edi + 0x1c]
call fcn.00429710
push 0x56c9a8
push 0x582c94
lea ecx, [edi + 0x18]
call fcn.00483570
push 0x56c9a8
push 0x56db64
lea ecx, [edi + 0x18]
call fcn.00483570
call fcn.00430a50
mov ecx, eax
test ecx, ecx
je 0x4cd8ff
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp + 8], esi
push dword [edi + 0x18]
mov byte [ebp - 4], 6
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov ebx, eax
mov dword [edi + 4], ebx
test ebx, ebx
jne 0x4cd85c
cmp dword [edi + 0x10], eax
je 0x4cd828
push dword [edi + 0x14]
call fcn.0052873c
add esp, 4
push dword [edi + 0x18]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ebx, eax
mov dword [edi + 4], ebx
test ebx, ebx
jne 0x4cd85c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp + 8]
push 0x582c98
push eax
call fcn.0042de00
mov ebx, dword [edi + 4]
add esp, 0xc
mov esi, dword [ebp + 8]
push 0
push ebx
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x14], 0
mov byte [ebp + 0x13], 0
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4cd87c
mov byte [ebp - 0x14], 1
mov al, 1
jmp 0x4cd87f
mov al, byte [ebp + 0x13]
mov byte [ebp - 4], 7
test al, al
jne 0x4cd89b
lea eax, [ebp + 8]
push str.Lock_failed_n
push eax
call fcn.0042de00
mov esi, dword [ebp + 8]
add esp, 8
cmp dword [esi - 0xc], 0
je 0x4cd8a8
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push ebx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [ebp - 4], 5
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4cd8cb
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 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 0xc
push 0x80004005
call fcn.004225f0
push 0x80004005
call fcn.004225f0
push 0x80004005
call fcn.004225f0
push 0x80004005
call fcn.004225f0
int3