Function at 0x1400a55bc
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rax - 0x1c8]
sub rsp, 0x2a0
mov qword [rbp + 0x18], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1401730f8]
xor rax, rsp
mov qword [rbp + 0x190], rax
mov rbx, rcx
xor r13d, r13d
mov dword [rbp - 0x78], r13d
mov qword [rbp - 0x80], r13
mov qword [rsp + 0x78], r13
mov qword [rsp + 0x70], r13
mov qword [rsp + 0x68], r13
mov qword [rbp - 0x70], r13
mov dword [rbp + 0x48], r13d
mov word [rbp + 0x4c], 0x100
lea esi, [r13 + 1]
mov dword [rbp + 0x40], r13d
mov word [rbp + 0x44], 0x500
lea rax, [rbp - 0x80]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], r13d
mov dword [rsp + 0x40], r13d
mov dword [rsp + 0x38], r13d
mov dword [rsp + 0x30], r13d
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
mov dl, sil
lea rcx, [rbp + 0x48]
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x1400a56a6
lea rsi, [0x140102478]
mov qword [rbx], rsi
lea r14, [0x1401025f8]
mov qword [rbx + 0x40], r14
xor r9d, r9d
lea r8, [rsp + 0x60]
lea rdx, [0x1400fc414]
mov rcx, rbx
call fcn.140003cb0
nop
mov edx, 0x28
xor ecx, ecx
jmp 0x1400a59c3
lea rax, [rsp + 0x78]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], r13d
mov dword [rsp + 0x40], r13d
mov dword [rsp + 0x38], r13d
mov dword [rsp + 0x30], r13d
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], r13d
mov r9d, 0x220
mov r14d, 0x20
mov r8d, r14d
lea edi, [r14 - 0x1e]
mov dl, dil
lea rcx, [rbp + 0x40]
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x1400a566d
lea rax, [rsp + 0x70]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], r13d
mov dword [rsp + 0x40], r13d
mov dword [rsp + 0x38], r13d
mov dword [rsp + 0x30], r13d
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], r13d
mov r9d, 0x221
mov r8d, r14d
mov dl, dil
lea rcx, [rbp + 0x40]
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x1400a566d
xor edx, edx
lea r8d, [r14 + 0x40]
lea rcx, [rbp - 0x60]
call fcn.1400b52d0
mov dword [rbp - 0x60], 0x1200a9
mov dword [rbp - 0x5c], esi
lea edx, [rdi + 1]
mov dword [rbp - 0x58], edx
mov qword [rbp - 0x50], r13
mov qword [rbp - 0x48], r13
mov dword [rbp - 0x40], 5
mov rax, qword [rsp + 0x70]
mov qword [rbp - 0x38], rax
mov dword [rbp - 0x30], 0x1f01ff
mov dword [rbp - 0x2c], esi
mov dword [rbp - 0x28], edx
mov qword [rbp - 0x20], r13
mov qword [rbp - 0x18], r13
mov dword [rbp - 0x10], edi
mov rax, qword [rsp + 0x78]
mov qword [rbp - 8], rax
lea r9, [rsp + 0x68]
xor r8d, r8d
lea rdx, [rbp - 0x60]
mov ecx, edi
call qword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
test eax, eax
jne 0x1400a566d
lea edi, [rax + 0x28]
mov ecx, edi
call fcn.1400b321c
mov r15, rax
test rax, rax
je 0x1400a57cb
mov edx, edi
xor ecx, ecx
call fcn.1400b3214
mov qword [rbp - 0x70], r15
test r15, r15
jne 0x1400a5808
lea rsi, [0x140102478]
mov qword [rbx], rsi
lea r14, [0x1401025f8]
mov qword [rbx + 0x40], r14
xor r9d, r9d
lea r8, [rsp + 0x60]
lea rdx, [0x1400fc414]
mov rcx, rbx
call fcn.140003cb0
nop
xor ecx, ecx
jmp 0x1400a59c0
mov edx, esi
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
xor r9d, r9d
test eax, eax
jne 0x1400a5848
lea rsi, [0x140102478]
lea r14, [0x1401025f8]
mov qword [rbx + 0x40], r14
mov qword [rbx], rsi
lea r8, [rsp + 0x60]
lea rdx, [0x1400fc414]
mov rcx, rbx
call fcn.140003cb0
jmp 0x1400a59bd
mov r8, qword [rsp + 0x68]
mov edx, esi
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
lea rsi, [0x140102478]
lea r14, [0x1401025f8]
test eax, eax
jne 0x1400a586f
xor r9d, r9d
jmp 0x1400a5828
mov dword [rbp], SafeArrayPutElement
mov qword [rbp + 8], r15
mov dword [rbp + 0x10], r13d
mov qword [rbp + 0x50], rsi
mov qword [rbp + 0x90], r14
xor r8d, r8d
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0x50]
call fcn.1400047b0
nop
mov r8d, 0x104
lea rdx, [rbp + 0x28]
lea rcx, [rbp + 0x50]
call fcn.140009620
nop
mov byte [rax + 8], 1
mov rcx, qword [rax]
call fcn.140002ef0
mov rdx, qword [rax]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
nop
lea rcx, [rbp + 0x28]
call fcn.140009c60
lea rcx, [rbp + 0x140]
call fcn.1400a5418
nop
mov r8, rax
lea rdx, [0x1400f4850]
lea rcx, [rbp + 0xf0]
call fcn.14000ccf0
nop
lea r8, [0x1400f480c]
mov rdx, rax
lea rcx, [rbp + 0xa0]
call fcn.14000cde0
nop
test rax, rax
lea rdx, [rax + 8]
jne 0x1400a591a
mov rdx, r13
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rbp + 0x58]
call fcn.1400039a0
nop
lea rcx, [rbp + 0xa0]
call fcn.1400048d0
nop
lea rcx, [rbp + 0xf0]
call fcn.1400048d0
nop
lea rcx, [rbp + 0x140]
call fcn.1400048d0
mov qword [rbp + 0xa0], rsi
mov qword [rbp + 0xe0], r14
xor r8d, r8d
lea rdx, [rbp + 0x50]
lea rcx, [rbp + 0xa0]
call fcn.140006eb0
lea rdx, [rbp]
lea rcx, [rbp + 0xa0]
call fcn.1400a2b20
test eax, eax
jne 0x1400a59a6
mov qword [rbx], rsi
mov qword [rbx + 0x40], r14
xor r9d, r9d
lea r8, [rsp + 0x60]
lea rdx, [0x1400fc414]
mov rcx, rbx
call fcn.140003cb0
jmp 0x1400a59b3
mov rdx, rbx
lea rcx, [rbp + 0x50]
call fcn.14003c1a0
nop
lea rcx, [rbp + 0x50]
call fcn.1400048d0
nop
mov rcx, r15
mov rdx, rdi
call fcn.1400b3214
nop
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400a59e7
cmp qword [sym.imp.KERNEL32.dll_LocalFree], r13
je 0x1400a59e7
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rsp + 0x68], r13
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x1400a5a05
cmp qword [sym.imp.ADVAPI32.dll_FreeSid], r13
je 0x1400a5a05
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov qword [rsp + 0x70], r13
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x1400a5a23
cmp qword [sym.imp.ADVAPI32.dll_FreeSid], r13
je 0x1400a5a23
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov qword [rsp + 0x78], r13
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x1400a5a3b
cmp qword [sym.imp.ADVAPI32.dll_FreeSid], r13
je 0x1400a5a3b
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rax, rbx
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.1400b31f0
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret