Function at 0x1400c9040
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0xad0]
sub rsp, 0xbd0
mov rax, qword [0x1401ce8a8]
xor rax, rsp
mov qword [rbp + 0xac0], rax
mov rdi, rcx
mov qword [rsp + 0x40], rcx
lea rax, [rbp + 0x4a0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x1c]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov ebx, eax
test eax, eax
je 0x1400c914a
xor esi, esi
mov qword [rsp + 0x50], rsi
lea rax, str.failed_to_get_local_application_data_folder__HRESULT__d
mov qword [rsp + 0x58], rax
lea rax, [rbp - 0x78]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], 0x200
mov qword [rsp + 0x70], rsi
mov dword [rsp + 0x78], 4
lea rax, str.BNL_Scene
mov qword [rbp - 0x80], rax
xor r8d, r8d
lea rdx, [0x140164ba1]
lea rcx, [rsp + 0x50]
call fcn.1400e9b00
nop
mov edx, ebx
lea rcx, [rsp + 0x50]
call fcn.1400e8ac0
nop
lea rcx, [rsp + 0x50]
call fcn.1400e9e30
nop
lea rcx, [rsp + 0x50]
call fcn.1400e8d90
nop
mov qword [rdi + 8], rsi
lea rcx, [rdi + 0x18]
mov qword [rdi], rcx
movabs rdx, 0x800000000000000f
mov qword [rdi + 0x10], rdx
mov byte [rcx], sil
xor edx, edx
mov rcx, rdi
call fcn.1400754f0
mov rcx, qword [rdi]
mov byte [rcx], sil
mov qword [rdi + 8], rsi
jmp 0x1400c92bd
xor edx, edx
mov r8d, 0x30d
lea rcx, [rbp + 0x190]
call fcn.14012b560
xor esi, esi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x30d
lea rax, [rbp + 0x190]
mov qword [rsp + 0x20], rax
mov rbx, 0xffffffffffffffff
mov r9d, ebx
lea r8, [rbp + 0x4a0]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x1400c924f
mov qword [rsp + 0x50], rsi
lea rax, str.failed_to_translate_local_application_data_path:_WideCharToMultiByte___error__d
mov qword [rsp + 0x58], rax
lea rax, [rbp - 0x78]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], 0x200
mov qword [rsp + 0x70], rsi
mov dword [rsp + 0x78], 4
lea rax, str.BNL_Scene
mov qword [rbp - 0x80], rax
xor r8d, r8d
lea rdx, [0x140164ba1]
lea rcx, [rsp + 0x50]
call fcn.1400e9b00
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x50]
call fcn.1400e8b10
nop
lea rcx, [rsp + 0x50]
call fcn.1400e9e30
nop
lea rcx, [rsp + 0x50]
call fcn.1400e8d90
nop
mov qword [rdi + 8], rsi
lea rax, [rdi + 0x18]
mov qword [rdi], rax
movabs rdx, 0x800000000000000f
mov qword [rdi + 0x10], rdx
mov byte [rax], sil
xor edx, edx
mov rcx, rdi
call fcn.1400754f0
mov rax, qword [rdi]
mov byte [rax], sil
mov qword [rdi + 8], rsi
jmp 0x1400c92bd
mov byte [rbp + 0x49c], sil
cmp byte [rbp + 0x190], sil
je 0x1400c9271
lea rax, [rbp + 0x190]
inc rbx
cmp byte [rax + rbx], sil
jne 0x1400c9266
jmp 0x1400c9274
mov rbx, rsi
mov qword [rdi + 8], rsi
lea rax, [rdi + 0x18]
mov qword [rdi], rax
movabs rdx, 0x800000000000000f
mov qword [rdi + 0x10], rdx
mov byte [rax], sil
mov rdx, rbx
mov rcx, rdi
call fcn.1400754f0
test rbx, rbx
je 0x1400c92b2
mov r8, rbx
lea rdx, [rbp + 0x190]
mov rcx, qword [rdi]
call fcn.14012aeb0
mov rax, qword [rdi]
mov byte [rbx + rax], sil
mov qword [rdi + 8], rbx
mov rax, rdi
mov rcx, qword [rbp + 0xac0]
xor rcx, rsp
call fcn.140128f20
lea r11, [rsp + 0xbd0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret