Function at 0x10009620
Capabilities:
Check mutex on windows

Disassembly:
push 0xffffffffffffffff
push 0x1004f7d1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x144
mov eax, dword [0x100778dc]
push esi
push edi
mov esi, ecx
lea edi, [esi + 0x50]
push edi
mov dword [esp + 0x14c], eax
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x28]
test eax, eax
mov dword [esp + 0x154], 0
je 0x1000967b
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x10009957
mov al, byte [esi + 4]
push ebp
lea ebp, [esi + 8]
test al, al
mov eax, dword [ebp + 0x18]
je 0x100096ab
cmp eax, 0x10
jb 0x10009693
mov eax, dword [ebp + 4]
jmp 0x10009696
lea eax, [ebp + 4]
push 0x100
lea ecx, [esp + 0x50]
push ecx
push eax
call fcn.10026dd0
add esp, 0xc
jmp 0x100096c9
cmp eax, 0x10
jb 0x100096b5
mov eax, dword [ebp + 4]
jmp 0x100096b8
lea eax, [ebp + 4]
push 0x100
push eax
lea edx, [esp + 0x54]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov ecx, dword [esi + 0x24]
lea eax, [esp + 0x4c]
push eax
push ecx
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
test eax, eax
mov dword [esi + 0x28], eax
jne 0x100096f3
push 0x100539ea
mov ecx, esi
call fcn.10008de0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
mov cl, byte [esi + 4]
cmp eax, 0xb7
setne al
test cl, cl
mov byte [esi + 0x34], al
je 0x10009723
test al, al
je 0x10009723
call fcn.10026ca0
test al, al
je 0x10009723
mov edi, dword [esi + 0x28]
call fcn.10008950
mov edx, dword [esi + 0x28]
push 0
push 0
push 0
push 2
push edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [esi + 0x40], eax
jne 0x10009748
push 0x100539ea
mov ecx, esi
call fcn.10008de0
push 0xffffffffffffffff
push 0
push ebp
lea ecx, [esp + 0x24]
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], 0
mov byte [esp + 0x28], 0
call fcn.10001320
push 1
push 0x10053cf8
lea ecx, [esp + 0x20]
mov byte [esp + 0x164], 1
call fcn.100081c0
mov al, byte [esi + 4]
test al, al
mov eax, dword [esp + 0x30]
je 0x100097b0
cmp eax, 0x10
mov eax, dword [esp + 0x1c]
jae 0x1000979b
lea eax, [esp + 0x1c]
push 0x100
lea ecx, [esp + 0x54]
push ecx
push eax
call fcn.10026dd0
add esp, 0xc
jmp 0x100097ce
cmp eax, 0x10
mov eax, dword [esp + 0x1c]
jae 0x100097bd
lea eax, [esp + 0x1c]
push 0x100
push eax
lea edx, [esp + 0x58]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [esp + 0x50]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
test eax, eax
mov dword [esi + 0x2c], eax
jne 0x100097f0
push 0x100539ea
mov ecx, esi
call fcn.10008de0
call ebx
cmp eax, 0xb7
mov al, byte [esi + 4]
setne bl
test al, al
je 0x10009816
test bl, bl
je 0x10009816
call fcn.10026ca0
test al, al
je 0x10009816
mov edi, dword [esi + 0x2c]
call fcn.10008950
mov eax, dword [esi + 0x40]
lea ecx, [eax + 4]
mov dword [esi + 0x48], ecx
add ecx, 4
test bl, bl
mov dword [esi + 0x44], eax
mov dword [esi + 0x4c], ecx
je 0x10009867
mov dword [eax], 1
mov ecx, dword [esi + 0x48]
mov dword [ecx], 1
mov edx, dword [esi + 0x4c]
mov dword [edx], 0
mov eax, dword [esi + 0x4c]
mov dword [eax + 4], 0
add eax, 4
mov eax, dword [esi + 0x44]
mov ecx, dword [eax]
mov dword [esi + 0x3c], ecx
inc dword [eax]
mov edx, dword [esi + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x1000987f
mov ecx, esi
call fcn.10008e90
mov eax, dword [esi + 0x44]
mov ecx, dword [eax]
mov dword [esi + 0x3c], ecx
inc dword [eax]
mov ecx, esi
call fcn.10008f30
push ebp
lea ecx, [esp + 0x38]
call fcn.10001500
push 0x10053cb0
lea ecx, [esp + 0x38]
mov byte [esp + 0x160], 2
call fcn.100095f0
mov al, byte [esi + 4]
test al, al
mov eax, dword [esp + 0x4c]
je 0x100098cc
cmp eax, 0x10
mov eax, dword [esp + 0x38]
jae 0x100098b7
lea eax, [esp + 0x38]
push 0x100
lea edx, [esp + 0x54]
push edx
push eax
call fcn.10026dd0
add esp, 0xc
jmp 0x100098ea
cmp eax, 0x10
mov eax, dword [esp + 0x38]
jae 0x100098d9
lea eax, [esp + 0x38]
push 0x100
push eax
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea ecx, [esp + 0x50]
push ecx
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
test eax, eax
mov dword [esi + 0x30], eax
jne 0x1000990e
push 0x100539ea
mov ecx, esi
call fcn.10008de0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov cl, byte [esi + 4]
cmp eax, 0xb7
setne al
test cl, cl
je 0x10009938
test al, al
je 0x10009938
call fcn.10026ca0
test al, al
je 0x10009938
mov edi, dword [esi + 0x30]
call fcn.10008950
lea ecx, [esp + 0x34]
call fcn.100246d0
lea ecx, [esp + 0x18]
call fcn.100246d0
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebx
pop ebp
mov ecx, dword [esp + 0x14c]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x144]
pop esi
call fcn.1004189e
add esp, 0x150
ret