Function at 0x404880
Capabilities:
Check mutex on windows

Disassembly:
push 0xffffffffffffffff
push 0x4a6b98
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c3518]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 8]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [edi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push str.BC69019E_1CD5_4b8c_A136_4D474BB76725
push 0
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x20], 0xc
mov dword [esp + 0x28], 1
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
test esi, esi
je 0x404aab
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebp, eax
push ebp
push esi
call ebx
push eax
push str.__pid:_d__CheckInstance_CreateMutex:0x_08x_error:_d
call fcn.0040bde0
add esp, 0x10
cmp ebp, 0xb7
jne 0x404aa8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebp, ebp
cmp dword [esp + 0x54], ebp
je 0x404aa1
lea edx, [esp + 0x20]
push edx
call fcn.00416880
mov ecx, dword [esp + 0x4c]
lea eax, [esp + 0x20]
push eax
push ecx
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x4c], ebp
call fcn.00404410
mov eax, dword [esp + 0x30]
sub eax, dword [esp + 0x2c]
sar eax, 2
push eax
call ebx
push eax
push str.__pid:_d__CheckInstance_processIdVec:_d
call fcn.0040bde0
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
sub eax, ecx
sar eax, 2
add esp, 0xc
xor esi, esi
cmp eax, ebp
jbe 0x404a49
cmp esi, eax
jb 0x404993
call fcn.00485b29
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx + esi*4]
push edx
call ebx
push eax
push str.__pid:_d__CheckInstance_processId:_d
call fcn.0040bde0
mov eax, dword [esp + 0x3c]
sub eax, dword [esp + 0x38]
add esp, 0xc
sar eax, 2
cmp esi, eax
jb 0x4049bb
call fcn.00485b29
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx + esi*4]
push edx
call fcn.004043a0
mov edi, eax
cmp edi, ebp
jne 0x4049fc
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x30]
sub eax, dword [esp + 0x2c]
sar eax, 2
cmp esi, eax
jb 0x4049ed
call fcn.00485b29
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx + esi*4]
push edx
call fcn.004043a0
mov edi, eax
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x404a71
mov eax, dword [esp + 0x30]
sub eax, dword [esp + 0x2c]
sar eax, 2
cmp esi, eax
jb 0x404a1b
call fcn.00485b29
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx + esi*4]
push edx
call ebx
push eax
push str.__pid:_d__processId:_d_findWnd_failed
call fcn.0040bde0
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
sub eax, ecx
inc esi
sar eax, 2
add esp, 0xc
cmp esi, eax
jb 0x404993
cmp ecx, ebp
je 0x404a56
push ecx
call fcn.00485321
add esp, 4
mov edx, dword [esp + 0x20]
push edx
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ebp
call fcn.00485321
add esp, 4
jmp 0x404aab
mov eax, dword [esp + 0x54]
mov dword [eax], edi
mov eax, dword [esp + 0x2c]
cmp eax, ebp
je 0x404a88
push eax
call fcn.00485321
add esp, 4
mov ecx, dword [esp + 0x20]
push ecx
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ebp
call fcn.00485321
add esp, 4
mov eax, 1
jmp 0x404aad
mov dword [edi + 4], esi
xor eax, eax
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret 0xc