Function at 0x1000ca3a
Capabilities:
Check mutex on windows

Disassembly:
mov eax, 0x100a08e1
call fcn.1007c8b4
sub esp, 0x44
push ebx
push esi
push edi
mov esi, ecx
call fcn.1007a7eb
mov bl, byte [ebp + 8]
test al, al
jne 0x1000cb47
push 1
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
xor edi, edi
lea eax, [ebp - 0x2c]
push edi
push edi
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
push dword [ebp + 0xc]
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x50]
push 0x100baaec
push eax
mov dword [ebp - 0x38], 0xc
call fcn.1000cdf0
add esp, 0xc
cmp dword [eax + 0x14], 0x10
jb 0x1000caa8
mov eax, dword [eax]
push eax
movzx eax, bl
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
lea ecx, [ebp - 0x50]
mov dword [esi], eax
call fcn.100028b5
cmp dword [esi], edi
jne 0x1000cad0
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1000cce6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1000cae5
push dword [esi]
call fcn.100785d7
pop ecx
push dword [ebp + 0xc]
lea eax, [ebp - 0x50]
push 0x100baaf0
push eax
call fcn.1000cdf0
add esp, 0xc
cmp dword [eax + 0x14], 0x10
jb 0x1000cb01
mov eax, dword [eax]
push eax
push 0x12000
push edi
push 4
pop ebx
push ebx
lea eax, [ebp - 0x38]
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
lea ecx, [ebp - 0x50]
mov dword [esi + 4], eax
call fcn.100028b5
cmp dword [esi + 4], edi
je 0x1000cac5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1000cc25
push dword [esi + 4]
call fcn.100785d7
pop ecx
jmp 0x1000cc25
xor edi, edi
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], edi
call fcn.10006c35
mov byte [ebp - 0x14], al
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x38]
push eax
push str.OSSMemRoute
lea ecx, [ebp - 0x18]
call fcn.10006e7f
mov eax, dword [ebp - 0x34]
mov ebx, dword [ebp - 0x38]
sub eax, ebx
mov ecx, dword [ebp - 0x24]
and eax, 0xfffffffc
cmp eax, 8
jne 0x1000cbd5
mov edx, dword [ebp - 0x20]
sub edx, ecx
sar edx, 2
cmp edx, 2
jne 0x1000cbd5
test edx, edx
je 0x1000cbd5
mov eax, ecx
sub eax, ebx
mov dword [ebp + 0xc], eax
cmp dword [eax + ebx], 0
jne 0x1000cbbd
mov eax, dword [ebx]
mov dword [esi + 4], eax
jmp 0x1000cbc7
cmp dword [eax + ebx], 1
jne 0x1000cbca
mov eax, dword [ebx]
mov dword [esi], eax
mov eax, dword [ebp + 0xc]
add ebx, 4
sub edx, 1
jne 0x1000cbb0
mov ebx, dword [ebp - 0x38]
cmp dword [esi + 4], edi
je 0x1000cca7
cmp dword [esi], edi
je 0x1000cca7
cmp dword [ebp - 0x18], 0
je 0x1000cbf8
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x1000cc0d
mov eax, dword [ebp - 0x1c]
sub eax, ecx
and eax, 0xfffffffc
push eax
push ecx
call fcn.10002f84
pop ecx
pop ecx
test ebx, ebx
je 0x1000cc22
mov eax, dword [ebp - 0x30]
sub eax, ebx
and eax, 0xfffffffc
push eax
push ebx
call fcn.10002f84
pop ecx
pop ecx
push 4
pop ebx
cmp byte [ebp + 8], 0
mov eax, 0xf001f
push 0x12000
push edi
push edi
cmovne ebx, eax
push ebx
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
jne 0x1000cc63
push 0xa000
push edi
push edi
push ebx
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
je 0x1000cac5
mov ecx, edi
jmp 0x1000cc69
lea ecx, [eax + 0xa000]
cmp byte [ebp + 8], 0
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
je 0x1000cca3
push 0xa000
push edi
push eax
call fcn.1007f880
add esp, 0xc
cmp dword [esi + 0xc], 0
je 0x1000cc9b
push 0x8000
push edi
push dword [esi + 0xc]
call fcn.1007f880
add esp, 0xc
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
xor eax, eax
jmp 0x1000cce6
cmp dword [ebp - 0x18], 0
je 0x1000ccb9
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x1000ccce
mov eax, dword [ebp - 0x1c]
sub eax, ecx
and eax, 0xfffffffc
push eax
push ecx
call fcn.10002f84
pop ecx
pop ecx
test ebx, ebx
je 0x1000cce3
mov eax, dword [ebp - 0x30]
sub eax, ebx
and eax, 0xfffffffc
push eax
push ebx
call fcn.10002f84
pop ecx
pop ecx
push 6
pop eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8