Function at 0x1001b608
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe5c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1a0], ebx
mov dword [ebp - 0x1a4], ebx
mov dword [ebp - 0x198], ebx
mov dword [ebp - 0x19c], ebx
mov dword [ebp - 0x28], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x1001b9ae
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x29], 0
lea edx, [ebp - 0x198]
mov eax, dword [0x10177db8]
call fcn.10006d08
lea eax, [ebp - 0x198]
push eax
lea edx, [ebp - 0x19c]
mov eax, dword [0x10177d6c]
call fcn.10006d08
mov edx, dword [ebp - 0x19c]
pop eax
call fcn.10003784
mov eax, dword [ebp - 0x198]
call fcn.1000397c
push eax
push 0
push 0x100000
call sub.KERNEL32.dll_OpenMutexA
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x1001b990
push 0x104
lea eax, [ebp - 0x191]
push eax
push ebx
call sub.KERNEL32.dll_GetModuleFileNameA
push 0xffffffffffffffff
mov eax, dword [ebp - 0x30]
push eax
call sub.KERNEL32.dll_WaitForSingleObject
xor edx, edx
push ebp
push 0x1001b980
push dword fs:[edx]
mov dword fs:[edx], esp
xor eax, eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], 1
lea ebx, [ebp - 0x8c]
lea esi, [ebp - 0x24]
lea edx, [ebp - 0x1a0]
mov eax, dword [0x10177db8]
call fcn.10006d08
lea eax, [ebp - 0x1a0]
push eax
lea eax, [ebp - 0x1a4]
mov dl, byte [ebp - 0x64]
add dl, 0x30
call fcn.10003710
mov edx, dword [ebp - 0x1a4]
pop eax
call fcn.10003784
mov eax, dword [ebp - 0x1a0]
call fcn.1000397c
push eax
push 0
push 0xf001f
call sub.KERNEL32.dll_OpenFileMappingA
mov edi, eax
mov dword [ebx], edi
test edi, edi
je 0x1001b75f
push 0
push 0
push 0
push 0xf001f
push edi
call sub.KERNEL32.dll_MapViewOfFile
mov dword [esi], eax
cmp dword [esi], 0
jne 0x1001b757
mov eax, dword [ebx]
push eax
call sub.KERNEL32.dll_CloseHandle
xor eax, eax
mov dword [ebx], eax
jmp 0x1001b75f
mov eax, dword [esi]
mov eax, dword [eax + 8]
add dword [ebp - 0x68], eax
cmp dword [ebx], 0
je 0x1001b777
inc dword [ebp - 0x64]
add esi, 4
add ebx, 4
cmp dword [ebp - 0x64], 0xa
jne 0x1001b6dd
mov eax, dword [ebp - 0x68]
dec eax
cmp eax, 0
jl 0x1001b939
mov dword [ebp - 0x64], eax
push ebp
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x3c]
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 0x64]
call fcn.1001b57c
pop ecx
mov eax, dword [ebp - 0x34]
cmp byte [eax], 0
je 0x1001b7d4
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x34]
push eax
call sub.KERNEL32.dll_lstrcmpiA
test eax, eax
jne 0x1001b7d4
lea eax, [ebp - 0x191]
push eax
mov eax, dword [ebp - 0x3c]
push eax
call sub.KERNEL32.dll_lstrcmpiA
test eax, eax
je 0x1001b7d8
xor ecx, ecx
jmp 0x1001b7da
mov cl, 1
test cl, cl
je 0x1001b92c
cmp byte [ebp + 8], 0
jne 0x1001b818
mov eax, dword [ebp - 0x4c]
mov al, byte [eax]
cmp al, byte [ebp + 0xc]
jne 0x1001b92c
mov eax, dword [ebp - 0x54]
cmp dword [eax + 4], 0
jne 0x1001b92c
cmp dword [eax], 0
jne 0x1001b92c
mov eax, dword [ebp - 0x5c]
cmp dword [eax], 0
jne 0x1001b92c
mov byte [ebp - 0x29], 1
mov esi, dword [ebp - 0x64]
mov ebx, dword [ebp - 0x68]
sub ebx, 2
sub ebx, esi
jl 0x1001b921
inc ebx
push ebp
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x40]
lea edx, [ebp - 0x38]
lea eax, [esi + 1]
call fcn.1001b57c
pop ecx
mov edx, 0x5b
mov eax, dword [ebp - 0x44]
call fcn.10004f80
mov eax, 0x5a
mov edx, dword [ebp - 0x48]
mov dl, byte [edx + eax]
mov ecx, dword [ebp - 0x44]
mov byte [ecx + eax], dl
dec eax
cmp eax, 0xffffffff
jne 0x1001b860
mov eax, dword [ebp - 0x50]
mov al, byte [eax]
mov edx, dword [ebp - 0x4c]
mov byte [edx], al
mov eax, dword [ebp - 0x54]
mov edx, dword [ebp - 0x58]
mov ecx, dword [edx]
mov dword [eax], ecx
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 0x60]
mov eax, dword [eax]
mov edx, dword [ebp - 0x5c]
mov dword [edx], eax
mov edx, 0x104
mov eax, dword [ebp - 0x3c]
call fcn.10004f80
mov edx, 0x104
mov eax, dword [ebp - 0x34]
call fcn.10004f80
mov eax, 0x103
mov edx, dword [ebp - 0x40]
mov dl, byte [edx + eax]
mov ecx, dword [ebp - 0x3c]
mov byte [ecx + eax], dl
dec eax
cmp eax, 0xffffffff
jne 0x1001b8b5
mov eax, 0x103
mov edx, dword [ebp - 0x38]
mov dl, byte [edx + eax]
mov ecx, dword [ebp - 0x34]
mov byte [ecx + eax], dl
dec eax
test eax, eax
jne 0x1001b8cc
mov ecx, 1
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x38]
call fcn.10011280
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x34]
cmp byte [eax], 0
je 0x1001b921
inc esi
dec ebx
jne 0x1001b82e
push 0
mov eax, dword [ebp - 0x34]
push eax
call sub.KERNEL32.dll_InterlockedExchange
dec dword [ebp - 0x64]
cmp dword [ebp - 0x64], 0xffffffff
jne 0x1001b787
mov dword [ebp - 0x64], 9
lea esi, [ebp - 0x8c]
lea ebx, [ebp - 0x24]
cmp dword [esi], 0
je 0x1001b969
mov eax, dword [ebx]
push eax
call sub.KERNEL32.dll_UnmapViewOfFile
mov eax, dword [esi]
push eax
call sub.KERNEL32.dll_CloseHandle
add ebx, 4
add esi, 4
dec dword [ebp - 0x64]
jne 0x1001b949
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1001b987
mov eax, dword [ebp - 0x30]
push eax
call sub.KERNEL32.dll_ReleaseMutex
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1001b9b5
lea eax, [ebp - 0x1a4]
mov edx, 4
call fcn.1000354c
ret