Function at 0x140046a40
Capabilities:
Get common file path

Disassembly:
push rbp
push rdi
push r12
push r13
push r14
lea rbp, [rsp - 0x1040]
mov eax, 0x1140
call fcn.140068770
sub rsp, rax
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rsp + 0x1180], rbx
mov qword [rsp + 0x1188], rsi
mov rax, qword [0x1400b14a0]
xor rax, rsp
mov qword [rbp + 0x1030], rax
mov rdi, rdx
mov r13, rcx
mov qword [rbp - 0x80], rcx
xor r14d, r14d
mov dword [rsp + 0x50], r14d
xor r8d, r8d
xor edx, edx
call fcn.140001678
mov dword [rsp + 0x50], 1
mov qword [rsp + 0x40], r14
lea ecx, [r14 + 0x70]
call fcn.14005baec
test rax, rax
je 0x140046e52
mov qword [rsp + 0x38], rax
mov qword [rax], rax
mov rax, qword [rsp + 0x38]
mov qword [rax + 8], rax
mov rax, qword [rsp + 0x38]
mov qword [rax + 0x10], rax
mov rax, qword [rsp + 0x38]
mov byte [rax + 0x68], 1
mov rax, qword [rsp + 0x38]
mov byte [rax + 0x69], 1
lea rax, [rbp + 0x30]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r14 + 0x1c]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea rdx, [rbp + 0x30]
lea rcx, [rbp - 0x20]
call fcn.14000264c
mov rbx, rax
lea rdx, str.localappdata
lea rcx, [rbp + 8]
call fcn.14000264c
nop
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.140025270
mov rdx, rbx
mov rcx, rax
call fcn.1400092e0
nop
lea rcx, [rbp + 8]
call fcn.140001624
nop
lea rcx, [rbp - 0x20]
call fcn.140001624
mov edx, 0x800
lea rcx, [rbp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea rdx, [rbp + 0x30]
lea rcx, [rbp + 8]
call fcn.14000264c
mov rbx, rax
lea rdx, str.windir
lea rcx, [rbp - 0x20]
call fcn.14000264c
nop
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.140025270
mov rdx, rbx
mov rcx, rax
call fcn.1400092e0
nop
lea rcx, [rbp - 0x20]
call fcn.140001624
nop
lea rcx, [rbp + 8]
call fcn.140001624
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x68]
call fcn.140001678
nop
lea rax, [rsp + 0x30]
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x30], r14
lea ecx, [r14 + 0x38]
call fcn.14005baec
test rax, rax
je 0x140046e34
mov qword [rbp - 0x38], rax
mov qword [rax], rax
mov rax, qword [rbp - 0x38]
mov qword [rax + 8], rax
lea ecx, [r14 + 0x18]
call fcn.14005baec
test rax, rax
je 0x140046c17
lea rcx, [rbp - 0x70]
mov qword [rax + 8], rcx
lea rcx, vtable.ParamFilterTextState.0
mov qword [rax], rcx
mov word [rax + 0x10], r14w
jmp 0x140046c1a
mov rax, r14
mov qword [rbp - 0x70], rax
mov rbx, qword [rbp - 0x40]
lea rax, [rsp + 0x30]
cmp rbx, rax
je 0x140046c51
mov r8, qword [rbx + 8]
mov r9, r8
mov r8, qword [r8]
lea rdx, [rsp + 0x58]
mov rcx, rbx
call fcn.140025510
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.1400434d0
nop
mov rdx, rdi
lea rcx, [rbp - 0x20]
call fcn.14000264c
mov rdi, rax
mov rcx, rax
call fcn.1400016d4
mov rbx, rax
mov rcx, rdi
call fcn.1400016d4
mov r11, rax
mov rax, qword [rdi + 0x10]
lea rax, [r11 + rax*2]
cmp rbx, rax
je 0x140046cab
mov rcx, qword [rbp - 0x70]
mov rax, qword [rcx]
movzx edx, word [rbx]
call qword [rax]
add rbx, 2
mov rcx, rdi
call fcn.1400016d4
mov r11, rax
mov rax, qword [rdi + 0x10]
lea rax, [r11 + rax*2]
cmp rbx, rax
jne 0x140046c83
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp - 0x68]
mov rcx, r13
call fcn.14000272c
xor edx, edx
lea rcx, [rbp - 0x68]
call fcn.140001648
nop
lea rcx, [rbp - 0x20]
call fcn.140001624
nop
mov rcx, qword [rbp - 0x70]
test rcx, rcx
je 0x140046ce6
call fcn.14005ba88
mov qword [rbp - 0x70], r14
mov rax, qword [rbp - 0x38]
mov rdi, qword [rax]
mov qword [rax], rax
mov rax, qword [rbp - 0x38]
mov qword [rax + 8], rax
mov qword [rbp - 0x30], r14
mov rcx, qword [rbp - 0x38]
cmp rdi, rcx
je 0x140046d30
nop word [rax + rax]
mov rbx, qword [rdi]
lea rcx, [rdi + 0x10]
call fcn.140001624
mov rcx, rdi
call fcn.14005ba88
mov rdi, rbx
mov rcx, qword [rbp - 0x38]
cmp rbx, rcx
jne 0x140046d10
call fcn.14005ba88
lea rcx, [rbp - 0x68]
call fcn.140001624
nop
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rdi]
cmp rbx, rbx
jne 0x140046db7
mov r12, qword [rdi + 8]
mov rsi, r12
cmp byte [r12 + 0x69], 0
jne 0x140046d9b
nop dword [rax + rax]
mov rdx, qword [rsi + 0x10]
lea rcx, [rsp + 0x30]
call fcn.1400264e0
mov rsi, qword [rsi]
lea rcx, [r12 + 0x40]
call fcn.140001624
lea rcx, [r12 + 0x18]
call fcn.140001624
mov rcx, r12
call fcn.14005ba88
mov r12, rsi
cmp byte [rsi + 0x69], 0
je 0x140046d60
mov rdi, qword [rsp + 0x38]
mov qword [rdi + 8], rdi
mov rax, qword [rsp + 0x38]
mov qword [rax], rax
mov rax, qword [rsp + 0x38]
mov qword [rax + 0x10], rax
mov qword [rsp + 0x40], r14
jmp 0x140046e22
cmp rbx, rdi
je 0x140046e27
nop dword [rax]
mov r8, rbx
cmp byte [rbx + 0x69], 0
jne 0x140046e0e
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x69], 0
jne 0x140046dee
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x69], 0
jne 0x140046e0e
nop
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x69], 0
je 0x140046de0
jmp 0x140046e0e
mov rax, qword [rbx + 8]
cmp byte [rax + 0x69], 0
jne 0x140046e0b
cmp rbx, qword [rax + 0x10]
jne 0x140046e0b
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x69], 0
je 0x140046df8
mov rbx, rax
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x30]
call fcn.140025920
cmp rbx, rdi
jne 0x140046dc0
mov rdi, qword [rsp + 0x38]
mov rcx, rdi
call fcn.14005ba88
mov rax, r13
jmp 0x140046e70
xor edx, edx
lea rcx, [rsp + 0x60]
call fcn.1400018d0
lea rdx, [0x1400aec60]
lea rcx, [rsp + 0x60]
call fcn.14005faac
nop
xor edx, edx
lea rcx, [rsp + 0x60]
call fcn.1400018d0
lea rdx, [0x1400aec60]
lea rcx, [rsp + 0x60]
call fcn.14005faac
nop
mov rcx, qword [rbp + 0x1030]
xor rcx, rsp
call fcn.14005ba60
lea r11, [rsp + 0x1140]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret