Function at 0x6f18e8
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x6f1b11
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x2c]
mov eax, dword [0x771590]
call fcn.005bc8d8
lea eax, [ebp - 0x2c]
push eax
lea edx, [ebp - 0x30]
mov eax, dword [0x771568]
call fcn.005bc8d8
mov edx, dword [ebp - 0x30]
pop eax
call fcn.0040a6c8
mov eax, dword [ebp - 0x2c]
call fcn.0040a8ec
push eax
push 0
push 0x100000
call sub.kernel32.dll_OpenMutexA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x6f1af6
push 0xffffffffffffffff
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_WaitForSingleObject
xor ecx, ecx
push ebp
push 0x6f1ae6
push dword fs:[ecx]
mov dword fs:[ecx], esp
lea edx, [ebp - 0x34]
mov eax, dword [0x771590]
call fcn.005bc8d8
lea eax, [ebp - 0x34]
push eax
lea edx, [ebp - 0x38]
mov eax, dword [0x771570]
call fcn.005bc8d8
mov edx, dword [ebp - 0x38]
pop eax
call fcn.0040a6c8
mov eax, dword [ebp - 0x34]
call fcn.0040a8ec
push eax
push 0
push 0xf001f
call sub.kernel32.dll_OpenFileMappingA
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x6f1acf
push 0
push 0
push 0
push 0xf001f
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x6f1ac6
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x19], 1
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
dec eax
test eax, eax
jl 0x6f1a97
inc eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x20]
lea eax, [eax + eax*2]
mov edx, dword [ebp - 0x24]
mov edx, dword [edx + 4]
lea ebx, [edx + eax*8]
mov dl, 1
mov esi, dword [ebx + 0x10]
dec esi
test esi, esi
jl 0x6f1a63
inc esi
xor eax, eax
lea ecx, [eax + eax*2]
mov edi, dword [ebx + 0x14]
lea edi, [edi + ecx*4]
mov ecx, dword [ebx]
cmp ecx, dword [ebp - 8]
jne 0x6f1a51
mov ecx, dword [edi]
cmp ecx, dword [ebp - 4]
jne 0x6f1a51
mov ecx, dword [edi + 8]
cmp ecx, dword [ebp - 0xc]
jne 0x6f1a51
lea ecx, [eax + eax*2]
mov edi, dword [ebx + 0x14]
mov dword [edi + ecx*4], 0
jmp 0x6f1a5f
lea ecx, [eax + eax*2]
mov edi, dword [ebx + 0x14]
cmp dword [edi + ecx*4], 0
je 0x6f1a5f
xor edx, edx
inc eax
dec esi
jne 0x6f1a23
test dl, dl
je 0x6f1a81
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x6f1a75
push eax
call dword [0x771664]
xor eax, eax
mov dword [ebx + 0x10], eax
xor eax, eax
mov dword [ebx + 0x14], eax
jmp 0x6f1a8b
cmp dword [ebx + 0x10], 0
jle 0x6f1a8b
mov byte [ebp - 0x19], 0
inc dword [ebp - 0x20]
dec dword [ebp - 0x28]
jne 0x6f1a07
cmp byte [ebp - 0x19], 0
je 0x6f1abd
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 4]
test eax, eax
je 0x6f1aae
push eax
call dword [0x771664]
mov eax, dword [ebp - 0x24]
xor edx, edx
mov dword [eax], edx
mov eax, dword [ebp - 0x24]
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_UnmapViewOfFile
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6f1aed
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_ReleaseMutex
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6f1b18
lea eax, [ebp - 0x38]
mov edx, 4
call fcn.00409ecc
ret