Function at 0x14001d1d0
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x1c8]
sub rsp, 0x2c0
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1400e9088]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
mov rdi, rcx
mov qword [rsp + 0x30], rcx
xor ebx, ebx
mov dword [rsp + 0x20], ebx
mov qword [rcx + 0x18], 7
mov qword [rcx + 0x10], rbx
mov word [rcx], bx
mov dword [rsp + 0x20], 1
call fcn.14001eb50
test al, al
je 0x14001d374
mov qword [rbp - 0x78], rbx
mov qword [rbp - 0x70], rbx
mov qword [rbp - 0x70], 7
mov qword [rbp - 0x78], rbx
mov word [rsp + 0x78], bx
lea rcx, str.shell32
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x14001d303
lea rdx, str.SHGetKnownFolderPath
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14001d2e1
mov qword [rsp + 0x70], rbx
lea r9, [rsp + 0x70]
xor r8d, r8d
xor edx, edx
lea rcx, [0x1400a87c0]
call rax
test eax, eax
js 0x14001d2d2
mov rdx, qword [rsp + 0x70]
cmp word [rdx], bx
jne 0x14001d2ab
mov eax, ebx
jmp 0x14001d2ba
or rax, 0xffffffffffffffff
nop
inc rax
cmp word [rdx + rax*2], 0
jne 0x14001d2b0
mov r8, rax
mov rcx, rdi
call fcn.140011970
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x14001d2f8
mov r8d, 0x23
lea rdx, str.Call_to_SHGetKnownFolderPath_failed
jmp 0x14001d2ee
mov r8d, 0x36
lea rdx, str.Unable_to_get_address_of_SHGetKnownFolderPath_function
lea rcx, [rsp + 0x78]
call fcn.140011970
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x14001d31a
mov r8d, 0x1a
lea rdx, str.Unable_to_load_shell32.dll
lea rcx, [rsp + 0x78]
call fcn.140011970
cmp qword [rbp - 0x78], 0
je 0x14001d342
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x38]
call fcn.14001a6e0
lea rdx, [0x1400e6e78]
lea rcx, [rsp + 0x38]
call fcn.140075be0
nop
mov r8, qword [rbp - 0x70]
cmp r8, 8
jb 0x14001d35e
inc r8
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x78]
call fcn.1400129b0
mov qword [rbp - 0x70], 7
mov qword [rbp - 0x78], rbx
mov word [rsp + 0x78], bx
jmp 0x14001d459
xor edx, edx
mov r8d, 0x20a
lea rcx, [rbp - 0x60]
call fcn.140077860
xor r9d, r9d
lea r8d, [r9 + 0x23]
lea rdx, [rbp - 0x60]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x14001d42a
mov qword [rbp - 0x78], rbx
mov qword [rbp - 0x70], rbx
mov qword [rbp - 0x70], 7
mov qword [rbp - 0x78], rbx
mov word [rsp + 0x78], bx
lea r8d, [rax + 0x4e]
lea rdx, str.Unable_to_retrieve_the_directory_that_contains_application_data_for_all_users.
lea rcx, [rsp + 0x78]
call fcn.140011970
nop
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x38]
call fcn.14001a6e0
nop
mov r8, qword [rbp - 0x70]
cmp r8, 8
jb 0x14001d3fb
inc r8
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x78]
call fcn.1400129b0
mov qword [rbp - 0x70], 7
mov qword [rbp - 0x78], rbx
mov word [rsp + 0x78], bx
lea rax, vtable.HP::Pdsmq::Common::PeptoException.0
mov qword [rsp + 0x38], rax
lea rdx, [0x1400e6e78]
lea rcx, [rsp + 0x38]
call fcn.140075be0
int3
cmp word [rbp - 0x60], 0
je 0x14001d44a
lea rcx, [rbp - 0x60]
or rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp word [rcx + rbx*2], 0
jne 0x14001d440
mov r8, rbx
lea rdx, [rbp - 0x60]
mov rcx, rdi
call fcn.140011970
mov rax, rdi
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.140056280
lea r11, [rsp + 0x2c0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret