Function at 0x10005a0ec
Capabilities:
Check mutex on windows
Create directory
Get common file path
Get program files directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r12
sub rsp, 0x2c0
mov rax, qword [0x100081138]
xor rax, rsp
mov qword [rsp + 0x2b0], rax
xor ebx, ebx
mov esi, ebx
mov dword [rsp + 0x34], ebx
mov dword [rsp + 0x60], ebx
xor edx, edx
lea r8d, [rbx + 0x28]
lea rcx, [rsp + 0x68]
call sub.msvcrt.dll_memset
mov dword [rsp + 0x38], ebx
xor eax, eax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
cmp dword [0x100082768], ebx
je 0x10005a151
mov edi, ebx
jmp 0x10005a2f9
lea rcx, [rsp + 0x60]
call fcn.100057130
cmp eax, ebx
jne 0x10005a2fb
lea r8, [0x100002540]
xor edx, edx
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov r12, rax
mov qword [rsp + 0x58], rax
cmp rax, rbx
jne 0x10005a19d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rcx, [rsp + 0x60]
call fcn.1000572dc
mov eax, ebx
jmp 0x10005a2fb
lea rcx, [rsp + 0x60]
call fcn.1000572dc
nop
or edx, 0xffffffff
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, ebx
je 0x10005a1d0
cmp eax, 0x80
je 0x10005a1d0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [rsp + 0x30], eax
jmp 0x10005a2d7
mov esi, 1
mov dword [rsp + 0x34], esi
cmp dword [0x100082768], ebx
je 0x10005a1ec
mov edi, ebx
mov dword [rsp + 0x30], ebx
jmp 0x10005a2d7
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x20], rax
mov r9d, esi
xor r8d, r8d
lea edx, [r8 + 0x26]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
cmp eax, ebx
je 0x10005a21b
mov qword [rsp + 0x90], rbx
mov eax, esi
jmp 0x10005a228
lea rcx, [rsp + 0xa0]
call fcn.10005a39c
cmp eax, ebx
je 0x10005a23a
mov edi, 0x6e
mov dword [rsp + 0x30], edi
jmp 0x10005a2d7
mov edi, ebx
mov qword [rsp + 0x50], rbx
xor r9d, r9d
lea r8, [rsp + 0x50]
mov edx, esi
lea rcx, [0x100014e90]
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW
cmp eax, ebx
jne 0x10005a265
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x10005a27b
mov dword [rsp + 0x38], 0x18
mov dword [rsp + 0x48], ebx
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x40], rax
cmp edi, ebx
je 0x10005a285
mov dword [rsp + 0x30], edi
jmp 0x10005a2d7
lea rdx, [rsp + 0x38]
lea rcx, [0x1000822b0]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [rsp + 0x30], eax
cmp eax, ebx
je 0x10005a2ae
cmp eax, 0xb7
jne 0x10005a2ba
mov edi, ebx
mov dword [rsp + 0x30], ebx
mov dword [0x100082768], esi
mov rcx, qword [rsp + 0x40]
cmp rcx, rbx
je 0x10005a2ca
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x48], ebx
mov qword [rsp + 0x40], rbx
cmp esi, ebx
je 0x10005a2f0
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp eax, ebx
jne 0x10005a2f0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov rcx, qword [rsp + 0x2b0]
xor rcx, rsp
call fcn.10005cbe0
lea r11, [rsp + 0x2c0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop r12
ret