Function at 0x100068b08
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 [0x100083138]
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 [0x100084758], ebx
je 0x100068b6d
mov edi, ebx
jmp 0x100068d15
lea rcx, [rsp + 0x60]
call fcn.100068f30
cmp eax, ebx
jne 0x100068d17
lea r8, [0x1000062d0]
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 0x100068bb9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rcx, [rsp + 0x60]
call fcn.1000690dc
mov eax, ebx
jmp 0x100068d17
lea rcx, [rsp + 0x60]
call fcn.1000690dc
nop
or edx, 0xffffffff
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, ebx
je 0x100068bec
cmp eax, 0x80
je 0x100068bec
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [rsp + 0x30], eax
jmp 0x100068cf3
mov esi, 1
mov dword [rsp + 0x34], esi
cmp dword [0x100084758], ebx
je 0x100068c08
mov edi, ebx
mov dword [rsp + 0x30], ebx
jmp 0x100068cf3
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 0x100068c37
mov qword [rsp + 0x90], rbx
mov eax, esi
jmp 0x100068c44
lea rcx, [rsp + 0xa0]
call fcn.100068e1c
cmp eax, ebx
je 0x100068c56
mov edi, 0x6e
mov dword [rsp + 0x30], edi
jmp 0x100068cf3
mov edi, ebx
mov qword [rsp + 0x50], rbx
xor r9d, r9d
lea r8, [rsp + 0x50]
mov edx, esi
lea rcx, [0x100015330]
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW
cmp eax, ebx
jne 0x100068c81
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x100068c97
mov dword [rsp + 0x38], 0x18
mov dword [rsp + 0x48], ebx
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x40], rax
cmp edi, ebx
je 0x100068ca1
mov dword [rsp + 0x30], edi
jmp 0x100068cf3
lea rdx, [rsp + 0x38]
lea rcx, [0x1000842b0]
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 0x100068cca
cmp eax, 0xb7
jne 0x100068cd6
mov edi, ebx
mov dword [rsp + 0x30], ebx
mov dword [0x100084758], esi
mov rcx, qword [rsp + 0x40]
cmp rcx, rbx
je 0x100068ce6
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 0x100068d0c
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp eax, ebx
jne 0x100068d0c
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.10006bd80
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