Function at 0x64006890
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x64022761
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x6402c09c]
xor eax, esp
mov dword [esp + 0xc8], eax
push ebx
push esi
push edi
mov eax, dword [0x6402c09c]
xor eax, esp
push eax
lea eax, [esp + 0xe0]
mov dword fs:[0], eax
mov eax, dword [0x64030290]
mov esi, dword [ebp + 8]
sub ebx, ebx
cmp eax, ebx
mov dword [esp + 0x28], esi
jne 0x640068f0
push ebx
push ebx
push ebx
call dword [sym.imp.kernel32.dll_CreateMutexW]
mov dword [0x64030290], eax
push 0xffffffffffffffff
push eax
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
or eax, eax
je 0x64006904
push esi
pop eax
jmp 0x64006b4f
mov eax, dword [ebp + 0xc]
push eax
push 0xf
pop edi
nop
nop
push esi
lea ecx, [esp + 0xa8]
mov dword [esp + 0xc0], edi
mov dword [esp + 0xbc], ebx
mov byte [esp + 0xac], bl
call fcn.64001860
lea ecx, [esp + 0xa0]
push ecx
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0xf0], ebx
call fcn.64007260
push eax
pop ecx
call fcn.64007b60
call fcn.64007260
mov esi, dword [esp + 0x14]
cmp esi, ebx
mov ecx, dword [eax + 4]
mov dword [esp + 0x20], ecx
je 0x64006967
cmp esi, eax
je 0x6400696c
call fcn.640120d8
mov edx, dword [esp + 0x20]
cmp dword [esp + 0x18], edx
jne 0x64006a78
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x48], esp
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0xc4]
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
push eax
mov byte [ecx + 4], bl
call fcn.64001780
lea ecx, [esp + 0xd8]
push ecx
call fcn.640072f0
add esp, 4
mov ecx, esp
mov byte [esp + 0x104], 1
mov dword [esp + 0x48], esp
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0xe0]
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
push edx
mov byte [ecx + 4], bl
call fcn.64001780
sub esp, 0x1c
mov ecx, esp
mov byte [esp + 0x120], 2
mov dword [esp + 0x54], esp
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0xe0]
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
push eax
mov byte [ecx + 4], bl
call fcn.64001780
lea ecx, [esp + 0xa0]
push ecx
mov byte [esp + 0x124], 1
call fcn.64009d80
add esp, 0x3c
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0xec], 3
call fcn.64009e20
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x20]
push eax
mov byte [esp + 0xf0], 4
call fcn.64007260
push eax
pop ecx
call fcn.640079d0
lea ecx, [esp + 0x30]
call fcn.6400f680
lea ecx, [esp + 0x68]
call fcn.6400f680
mov byte [esp + 0xe8], bl
cmp dword [esp + 0xd4], 0x10
jb 0x64006a78
mov ecx, dword [esp + 0xc0]
push ecx
call fcn.64011d22
add esp, 4
mov edx, dword [ebp + 0x10]
movzx eax, byte [edx]
cmp eax, 0x100
jge 0x64006aa7
lea ecx, [esp + 0xa0]
push ecx
lea edx, [esp + 0x20]
push edx
call fcn.64007260
push eax
pop ecx
call fcn.64007b60
mov esi, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x18], eax
call fcn.64007260
cmp esi, ebx
mov ecx, dword [eax + 4]
mov dword [esp + 0x20], ecx
je 0x64006abb
cmp esi, eax
je 0x64006ac0
call fcn.640120d8
mov edi, dword [esp + 0x18]
cmp edi, dword [esp + 0x20]
je 0x64006aed
cmp esi, ebx
jne 0x64006ad3
call fcn.640120d8
cmp edi, dword [esi + 4]
jne 0x64006add
call fcn.640120d8
cmp dword [edi + 0x40], 0x10
jb 0x64006ae8
mov edi, dword [edi + 0x2c]
jmp 0x64006af1
add edi, 0x2c
jmp 0x64006af1
mov edi, dword [esp + 0x28]
cmp dword [0x6402e060], ebx
jne 0x64006b15
push str.ReleaseMutex
push str.my4lp3vn23wse
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [0x6402e060], eax
mov eax, dword [0x64030290]
cmp eax, ebx
jne 0x64006b2c
push ebx
push ebx
push ebx
call dword [sym.imp.kernel32.dll_CreateMutexW]
mov dword [0x64030290], eax
push eax
call dword [0x6402e060]
cmp dword [esp + 0xb8], 0x10
jb 0x64006b4d
mov edx, dword [esp + 0xa4]
push edx
call fcn.64011d22
add esp, 4
push edi
pop eax
mov ecx, dword [esp + 0xe0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc8]
xor ecx, esp
call fcn.6401257c
mov esp, ebp
pop ebp
ret