Function at 0x1400032bc
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r14
sub rsp, 0x170
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov rsi, rdx
mov rbp, rcx
xor ebx, ebx
mov qword [rsp + 0x40], rbx
lea rax, [0x140001c18]
mov qword [rsp + 0x48], rax
lea r12, [0x1400061d8]
cmp qword [0x1400061d8], r12
je 0x14000330e
lea rcx, [rsp + 0x40]
call fcn.1400037d8
nop
lea r14, [0x140006870]
cmp word [0x140006870], bx
jne 0x140003375
mov qword [rsp + 0x20], r14
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 5]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
cmp eax, ebx
jge 0x140003375
mov rcx, qword [0x1400061d8]
cmp rcx, r12
je 0x140003364
test byte [rcx + 0x1c], 4
je 0x140003364
mov edx, 0x12
mov r9d, eax
lea r8, [0x1400015d0]
mov rcx, qword [rcx + 0x10]
call fcn.1400025e0
nop
lea rcx, [rsp + 0x40]
call fcn.140003818
xor eax, eax
jmp 0x14000363a
cmp word [0x140006a80], bx
jne 0x140003616
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x1b0], rbx
mov qword [rsp + 0x1b8], rbx
mov qword [rsp + 0x30], rbx
lea rcx, [rsp + 0x38]
call qword [sym.imp.SHELL32.dll_SHGetMalloc]
mov edi, eax
cmp eax, ebx
jge 0x1400033e4
mov rcx, qword [0x1400061d8]
cmp rcx, r12
je 0x1400035a2
test byte [rcx + 0x1c], 4
je 0x1400035a2
mov edx, 0x13
mov r9d, eax
lea r8, [0x1400015d0]
mov rcx, qword [rcx + 0x10]
call fcn.1400025e0
jmp 0x1400035a2
lea rcx, [rsp + 0x1b8]
call qword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
mov edi, eax
cmp eax, ebx
jge 0x14000342f
mov rcx, qword [0x1400061d8]
cmp rcx, r12
je 0x1400035a2
test byte [rcx + 0x1c], 4
je 0x1400035a2
mov edx, 0x14
mov r9d, eax
lea r8, [0x1400015d0]
mov rcx, qword [rcx + 0x10]
call fcn.1400025e0
jmp 0x1400035a2
lea rax, [rsp + 0x1b0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 5]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderLocation]
mov edi, eax
cmp eax, ebx
jge 0x14000348b
mov rcx, qword [0x1400061d8]
cmp rcx, r12
je 0x1400035a2
test byte [rcx + 0x1c], 4
je 0x1400035a2
mov edx, 0x15
mov r9d, eax
lea r8, [0x1400015d0]
mov rcx, qword [rcx + 0x10]
call fcn.1400025e0
jmp 0x1400035a2
mov rcx, qword [rsp + 0x1b8]
cmp rcx, rbx
je 0x1400034ef
mov rdx, qword [rsp + 0x1b0]
cmp rdx, rbx
je 0x1400034ef
mov rax, qword [rcx]
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], r8
lea r9, [0x140001598]
xor r8d, r8d
call qword [rax + 0x28]
mov edi, eax
cmp eax, ebx
jge 0x1400034f7
mov rcx, qword [0x1400061d8]
cmp rcx, r12
je 0x1400034ef
test byte [rcx + 0x1c], 4
je 0x1400034ef
mov edx, 0x16
mov r9d, eax
lea r8, [0x1400015d0]
mov rcx, qword [rcx + 0x10]
call fcn.1400025e0
cmp edi, ebx
jl 0x1400035a2
cmp qword [rsp + 0x30], rbx
je 0x1400035a2
mov rcx, qword [rsp + 0x1b8]
mov rax, qword [rcx]
lea r9, [rsp + 0x60]
xor r8d, r8d
mov rdx, qword [rsp + 0x1b0]
call qword [rax + 0x58]
mov edi, eax
cmp eax, ebx
jge 0x140003552
mov rcx, qword [0x1400061d8]
cmp rcx, r12
je 0x1400035a2
test byte [rcx + 0x1c], 4
je 0x1400035a2
mov edx, 0x17
mov r9d, eax
lea r8, [0x1400015d0]
mov rcx, qword [rcx + 0x10]
call fcn.1400025e0
jmp 0x1400035a2
mov r9d, 0x104
lea r8, [0x140006a80]
mov rdx, qword [rsp + 0x1b0]
lea rcx, [rsp + 0x60]
call qword [sym.imp.SHLWAPI.dll_StrRetToBufW]
mov edi, eax
cmp eax, ebx
jge 0x1400035a2
mov rcx, qword [0x1400061d8]
cmp rcx, r12
je 0x1400035a2
test byte [rcx + 0x1c], 4
je 0x1400035a2
mov edx, 0x18
mov r9d, eax
lea r8, [0x1400015d0]
mov rcx, qword [rcx + 0x10]
call fcn.1400025e0
mov rcx, qword [rsp + 0x38]
cmp rcx, rbx
je 0x1400035d7
mov rdx, qword [rsp + 0x1b0]
cmp rdx, rbx
je 0x1400035cc
mov rax, qword [rcx]
call qword [rax + 0x28]
mov qword [rsp + 0x1b0], rbx
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rsp + 0x38], rbx
mov rcx, qword [rsp + 0x30]
cmp rcx, rbx
je 0x1400035ec
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rsp + 0x30], rbx
mov rcx, qword [rsp + 0x1b8]
cmp rcx, rbx
je 0x140003607
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rsp + 0x1b8], rbx
cmp edi, ebx
jge 0x140003616
cmp bx, word [0x140006a80]
jne 0x140003616
jmp 0x14000362e
mov r9, rsi
mov r8, rbp
lea rdx, [0x140006a80]
mov rcx, r14
call fcn.140003078
nop
mov ebx, eax
lea rcx, [rsp + 0x40]
call fcn.140003818
mov eax, ebx
mov rbx, qword [rsp + 0x1a0]
add rsp, 0x170
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret