Function at 0x1400f53e0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push rbp
lea rbp, [rsp - 0x440]
sub rsp, 0x540
mov rax, qword [0x1403486d0]
xor rax, rsp
mov qword [rbp + 0x430], rax
xor r14d, r14d
mov ecx, dword [0x140376e10]
mov rax, qword gs:[0x58]
mov edx, 4
mov rcx, qword [rax + rcx*8]
mov eax, dword [rdx + rcx]
cmp dword [0x140377114], eax
jg 0x1400f5806
lea rsi, [0x140348860]
cmp byte [0x140377110], r14b
jne 0x1400f57a9
mov byte [0x140377110], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x48]
mov edx, 0x20008
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1400f57d0
mov dword [rsp + 0x50], 0x105
lea r8, [rsp + 0x50]
lea rdx, [rbp + 0x220]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.USERENV.dll_GetUserProfileDirectoryW]
test eax, eax
je 0x1400f57c5
cmp dword [rsp + 0x50], r14d
jbe 0x1400f57c5
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x20], r14
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x38], 7
mov word [rsp + 0x20], r14w
lea rax, [rbp + 0x220]
mov rdi, 0xffffffffffffffff
mov rdx, rdi
inc rdx
cmp word [rax + rdx*2], r14w
jne 0x1400f54e2
lea rcx, [rsp + 0x20]
cmp rdx, 7
ja 0x1400f5517
mov qword [rsp + 0x30], rdx
lea rbx, [rdx + rdx]
mov r8, rbx
lea rdx, [rbp + 0x220]
call fcn.1400f9752
mov word [rsp + rbx + 0x20], r14w
jmp 0x1400f5527
lea r9, [rbp + 0x220]
xor r8d, r8d
call fcn.140053660
nop
lea rdx, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae rdx, qword [rsp + 0x20]
mov r8d, 0x104
lea rcx, [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_lstrcpynW]
mov word [rbp + 0x218], r14w
lea rcx, [rbp + 0x10]
call qword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x58], xmm1
mov qword [rsp + 0x68], r14
lea rax, [rbp + 0x10]
mov qword [rsp + 0x40], rax
lea r8, [rsp + 0x40]
xor edx, edx
lea rcx, [rsp + 0x58]
call fcn.1400f52d0
lea rcx, [rbp + 0x10]
call qword [sym.imp.SHLWAPI.dll_PathFindNextComponentW]
mov qword [rsp + 0x40], rax
mov rbx, qword [rsp + 0x60]
test rax, rax
je 0x1400f55ea
nop dword [rax + rax]
cmp word [rax], 0
je 0x1400f55ea
cmp rbx, qword [rsp + 0x68]
je 0x1400f55bb
mov qword [rbx], rax
add rbx, 8
mov qword [rsp + 0x60], rbx
jmp 0x1400f55d7
lea r8, [rsp + 0x40]
mov rdx, rbx
lea rcx, [rsp + 0x58]
call fcn.1400f52d0
mov rbx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathFindNextComponentW]
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x1400f55a0
mov r9, qword [rbx - 8]
mov qword [rsp + 0x70], r14
mov qword [rbp - 0x80], r14
mov qword [rbp - 0x78], 7
mov word [rsp + 0x70], r14w
mov rdx, rdi
nop dword [rax + rax]
inc rdx
cmp word [r9 + rdx*2], 0
jne 0x1400f5610
lea rcx, [rsp + 0x70]
cmp rdx, 7
ja 0x1400f5641
mov qword [rbp - 0x80], rdx
lea rbx, [rdx + rdx]
mov r8, rbx
mov rdx, r9
call fcn.1400f9752
mov word [rsp + rbx + 0x70], r14w
jmp 0x1400f564a
xor r8d, r8d
call fcn.140053660
nop
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1400f5696
mov rax, qword [rsp + 0x68]
sub rax, rcx
sar rax, 3
lea rdx, [rax*8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400f5690
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400f5690
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400e6a28
nop
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x1400f56db
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400f56d6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400f56d6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400e6a28
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x38], 7
mov word [rsp + 0x20], r14w
xorps xmm0, xmm0
xor eax, eax
movaps xmmword [rbp - 0x40], xmm0
movaps xmmword [rbp - 0x30], xmm0
movaps xmmword [rbp - 0x20], xmm0
movaps xmmword [rbp - 0x10], xmm0
mov byte [rbp], al
mov rax, qword [rbp - 0x80]
lea r8, [rax + rax]
test r8, r8
je 0x1400f5765
lea rdx, [rsp + 0x70]
cmp qword [rbp - 0x78], 8
cmovae rdx, qword [rsp + 0x70]
lea r9, [rbp - 0x70]
mov ecx, 1
call fcn.1400f7b40
test eax, eax
jne 0x1400f5765
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x70]
call fcn.1400f7c40
lea rax, [rbp - 0x40]
inc rdi
cmp byte [rax + rdi], 0
jne 0x1400f5747
test rdi, rdi
je 0x1400f5765
mov r8, rdi
lea rdx, [rbp - 0x40]
mov rcx, rsi
call fcn.1400625a0
nop
mov rdx, qword [rbp - 0x78]
cmp rdx, 8
jb 0x1400f57a9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400f57a4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400f57a4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400e6a28
cmp qword [0x140348870], 0
je 0x1400f57d4
cmp qword [0x140348878], 0x10
cmovae rsi, qword [0x140348860]
jmp 0x1400f57d7
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1400f57da
mov rsi, r14
mov rax, rsi
mov rcx, qword [rbp + 0x430]
xor rcx, rsp
call fcn.1400e6b50
lea r11, [rsp + 0x540]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
lea rcx, [0x140377114]
call fcn.1400e73f8
cmp dword [0x140377114], 0xffffffff
jne 0x1400f543f
lea rcx, [0x140268480]
call fcn.1400e7188
lea rcx, [0x140377114]
call fcn.1400e7398
jmp 0x1400f543f