Function at 0x413ee0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f338c
mov eax, dword fs:[0]
push eax
sub esp, 0x82c
mov eax, dword [0x5374e4]
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 ebx, ecx
push 0x800
lea eax, [ebp - 0x810]
push 0
push eax
call fcn.0049a810
add esp, 0xc
lea eax, [ebp - 0x810]
push 0x400
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push 0x5032c8
lea ecx, [ebp - 0x830]
call fcn.0040d330
push str.f_D5BzHIEcYjX6MoEzyiU23GaS_EAg
lea ecx, [ebp - 0x82c]
mov dword [ebp - 4], 0
call fcn.0040d330
lea eax, [ebp - 0x830]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x82c]
push eax
lea eax, [ebp - 0x834]
push eax
call fcn.0046be60
add esp, 0xc
mov edx, dword [eax]
xor eax, eax
mov ecx, edx
mov byte [ebp - 4], 2
mov dword [ebp - 0x818], 0
mov dword [ebp - 0x814], 7
mov word [ebp - 0x828], ax
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x413fb7
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x828]
call fcn.0040c270
mov edx, dword [ebp - 0x834]
or esi, 0xffffffff
mov byte [ebp - 4], 4
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x413ff7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x82c]
mov eax, esi
mov byte [ebp - 4], 5
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x414018
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x830]
mov byte [ebp - 4], 6
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x414037
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x814], 8
lea eax, [ebp - 0x828]
cmovae eax, dword [ebp - 0x828]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
mov dword [ebp - 0x838], esi
test esi, esi
je 0x4140f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4140bf
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_FindWindowExW]
mov esi, eax
test esi, esi
je 0x4140bb
push esi
call dword [sym.imp.USER32.dll_IsIconic]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
test eax, eax
je 0x4140a4
push 9
push esi
call edi
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x4140b4
push 5
push esi
call edi
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
xor esi, esi
jmp 0x4140f5
lea edi, [ebx + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebx + 8]
lea ecx, [ebx + 4]
cmp dword [ecx + 8], eax
je 0x4140dc
mov dword [eax], esi
add dword [ecx + 4], 4
jmp 0x4140e9
lea edx, [ebp - 0x838]
push edx
push eax
call fcn.004139d0
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, 1
mov edx, dword [ebp - 0x814]
cmp edx, 8
jb 0x414131
mov ecx, dword [ebp - 0x828]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x414127
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41414f
push edx
push ecx
call fcn.0046a786
add esp, 8
mov eax, esi
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.0046a581
mov esp, ebp
pop ebp
ret
call fcn.004a5748
int3