Function at 0x40efe0
Capabilities:
Check mutex on windows

Disassembly:
push 0xffffffffffffffff
push 0x41b909
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov al, byte [esp + 3]
push ebx
push esi
push edi
xor edi, edi
mov byte [esp + 0x10], al
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], edi
push ecx
push 0xe
call fcn.0040af40
movsx edx, word [0x422b12]
movsx eax, word [0x422b0e]
mov esi, dword [0x422b1c]
add esp, 8
sub edx, 0x165a0001
sub eax, esi
push edi
mov dword [0x422b20], edx
mov byte [0x422afd], 0xff
mov dword [0x422b2c], eax
call dword [sym.imp.KERNEL32.DLL_SetLastError]
mov eax, dword [esp + 0x14]
cmp eax, edi
jne 0x40f066
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov ebx, dword [sym.imp.KERNEL32.DLL_CreateMutexA]
push eax
push edi
push edi
call ebx
xor ecx, ecx
cmp word [0x422b04], di
mov dword [0x422fe0], eax
mov eax, dword [0x422b30]
setne cl
cmp eax, edi
mov dword [0x422b2c], 0x861e0000
mov word [0x422b08], cx
je 0x40f0ac
mov al, byte [0x422af9]
mov byte [0x422afb], 1
test al, al
jne 0x40f0b3
mov byte [0x422afb], 0
mov esi, dword [sym.imp.KERNEL32.DLL_GetLastError]
call esi
cmp eax, 0xb7
jne 0x40f161
movsx ax, byte [0x422af9]
movsx cx, byte [0x422afd]
movsx edx, byte [0x422afb]
imul eax, ecx
or edx, 0x2d9ffff
mov word [0x422b04], ax
mov dword [0x422b38], edx
mov edx, dword [0x422fe0]
push edx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [0x422b38]
mov ecx, dword [esp + 0x14]
and eax, 0xb9bdffff
cmp ecx, edi
mov word [0x422b0e], 0xfffe
mov dword [0x422b1c], eax
je 0x40f14d
mov al, byte [ecx - 1]
test al, al
je 0x40f143
cmp al, 0xff
je 0x40f143
dec al
pop edi
mov byte [ecx - 1], al
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
dec ecx
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
lea ecx, [esp + 0x10]
push ecx
push 0xa
call fcn.0040af40
mov al, byte [0x422afe]
add esp, 8
test al, al
mov word [0x422b0e], di
je 0x40f193
mov eax, dword [0x422b30]
mov dword [0x422b24], 1
cmp eax, edi
jne 0x40f199
mov dword [0x422b24], edi
mov dx, word [0x422b06]
mov edi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
neg dx
push ebp
mov ebp, dword [sym.imp.KERNEL32.DLL_Sleep]
mov word [0x422b0c], dx
push 0
mov dword [0x422b20], 0xf2cffffe
call dword [sym.imp.KERNEL32.DLL_SetLastError]
mov ecx, dword [0x422b34]
mov al, byte [0x422b0e]
mov dl, byte [0x422b20]
imul ecx, ecx, 0x2f81ffff
sub al, dl
mov dword [0x422b34], ecx
mov byte [0x422aff], al
mov eax, dword [esp + 0x18]
test eax, eax
mov byte [0x422b00], 1
jne 0x40f201
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push eax
push 0
push 0
call ebx
mov dword [0x422fe4], eax
mov dword [0x422b24], 0xdf5fffff
mov word [0x422b02], 0xffff
call esi
cmp eax, 0xb7
jne 0x40f2a5
mov edx, dword [0x422b20]
add edx, 0xfe47ffff
mov dword [0x422b24], edx
call fcn.00417940
mov al, byte [0x422b24]
mov cl, byte [0x422aff]
add al, cl
mov cl, byte [0x422b18]
dec cl
push 0x493e0
mov byte [0x422afa], al
mov byte [0x422afe], cl
call ebp
movsx dx, byte [0x422afe]
movsx ax, byte [0x422afd]
mov ecx, dword [0x422fe4]
add edx, eax
push ecx
mov word [0x422b08], dx
mov word [0x422b0a], 0xffff
call edi
mov edx, dword [0x422b28]
inc edx
mov word [0x422b06], dx
jmp 0x40f1b7
mov eax, dword [0x422b24]
pop ebp
test eax, eax
je 0x40f2c2
cmp word [0x422b06], 0
mov word [0x422b12], 1
jne 0x40f2cb
mov word [0x422b12], 0
movsx eax, byte [0x422b00]
mov ecx, dword [esp + 0x14]
and eax, 0x9d89ffff
test ecx, ecx
mov dword [0x422b24], eax
mov word [0x422b0a], 1
je 0x40f31b
mov al, byte [ecx - 1]
test al, al
je 0x40f311
cmp al, 0xff
je 0x40f311
dec al
pop edi
mov byte [ecx - 1], al
pop esi
mov al, 1
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
dec ecx
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [esp + 0x20]
pop edi
pop esi
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret