Function at 0x14004e0f8
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x390]
sub rsp, 0x490
mov rax, qword [0x1400dc7a8]
xor rax, rsp
mov qword [rbp + 0x380], rax
mov r12, rdx
mov r15, rcx
call fcn.140053098
test al, al
jne 0x14004e140
xor eax, eax
jmp 0x14004e60c
lea rcx, [rsp + 0x40]
call fcn.1400502cc
mov edi, eax
mov rcx, qword [rbp + 0x3b8]
test eax, eax
jns 0x14004e1dc
mov r9d, eax
lea r8, [0x1400b49c8]
mov edx, 0x570
call fcn.14002061c
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x48], xmm0
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x60]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov r8d, 0x104
lea rdx, [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleFileNameW]
nop dword [rax + rax]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x48]
call fcn.14005050c
mov r9d, dword [r15 + 0x10]
mov r8, qword [r15 + 8]
mov edx, 0x7e1
lea rcx, [rsp + 0x48]
call fcn.140050e1c
mov dword [r15 + 0x14], eax
lea rcx, [rsp + 0x48]
call fcn.140023ab0
jmp 0x14004e60a
mov byte [rsp + 0x30], 0
lea rcx, [rsp + 0x30]
call fcn.14005316c
mov edi, eax
mov rcx, qword [rbp + 0x3b8]
lea rsi, [0x1400b49c8]
test eax, eax
jns 0x14004e20f
mov r9d, eax
mov r8, rsi
mov edx, 0x578
call fcn.14002061c
and qword [rsp + 0x58], 0
xor r14b, r14b
mov byte [rsp + 0x31], r14b
test edi, edi
js 0x14004e5f9
lea rcx, [rsp + 0x58]
cmp byte [rsp + 0x30], r14b
je 0x14004e268
movabs rax, 0x5c003a0020
mov qword [rsp + 0x38], rax
movzx eax, word [rsp + 0x40]
mov word [rsp + 0x38], ax
lea rdx, [rsp + 0x38]
call fcn.14004a8f8
mov edi, eax
mov rcx, qword [rbp + 0x3b8]
test eax, eax
jns 0x14004e29c
mov edx, 0x584
jmp 0x14004e287
lea r8, [rsp + 0x31]
mov rdx, r15
call fcn.14004fcc0
mov edi, eax
mov rcx, qword [rbp + 0x3b8]
test eax, eax
jns 0x14004e297
mov edx, 0x589
mov r8, rsi
mov r9d, eax
call fcn.14002061c
jmp 0x14004e5f9
mov r14b, byte [rsp + 0x31]
lea rdx, str.file:___
lea rcx, [rsp + 0x38]
call fcn.140019fac
nop
mov rbx, qword [rsp + 0x38]
mov rax, rbx
neg rax
sbb edi, edi
not edi
and edi, 0x8007000e
mov rcx, qword [rbp + 0x3b8]
jge 0x14004e2d3
mov edx, 0x591
jmp 0x14004e305
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x38]
call fcn.14004a21c
mov rbx, qword [rsp + 0x38]
mov rax, rbx
neg rax
sbb edi, edi
not edi
and edi, 0x8007000e
mov rcx, qword [rbp + 0x3b8]
jge 0x14004e315
mov edx, 0x597
mov r8, rsi
mov r9d, edi
call fcn.14002061c
jmp 0x14004e39c
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x1400401f0]
lea rcx, [0x1400dd5e8]
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_InitOnceExecuteOnce]
nop dword [rax + rax]
cmp byte [0x1400ddd59], 0
jne 0x14004e39c
test r14b, r14b
je 0x14004e34c
call fcn.14000eca4
test al, al
jne 0x14004e39c
mov rax, qword [r12]
movabs r10, 0xe1cdb7097e59e370
xor r9d, r9d
lea r8d, [r9 + 1]
mov rdx, rbx
mov rcx, r12
mov rax, qword [rax + 0x18]
call qword [case.0x140001f80.0]
mov edi, eax
mov rcx, qword [rbp + 0x3b8]
mov qword [rsp + 0x28], rbx
lea rax, str.StartPage:__ls
mov qword [rsp + 0x20], rax
mov r9d, edi
mov r8, rsi
mov edx, 0x59f
call fcn.140050f14
nop
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop dword [rax + rax]
test edi, edi
js 0x14004e5f9
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x1400401f0]
lea rcx, [0x1400dd5e8]
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_InitOnceExecuteOnce]
nop dword [rax + rax]
cmp byte [0x1400ddd59], 0
jne 0x14004e5f9
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea edx, [r9 + 0x15]
xor ecx, ecx
call qword [sym.imp.ext_ms_win_shell32_shellfolders_l1_1_0.dll_SHGetFolderPathW]
nop dword [rax + rax]
mov edi, eax
test eax, eax
js 0x14004e538
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x48]
call fcn.140019fac
nop
mov rax, qword [rsp + 0x48]
neg rax
sbb edi, edi
not edi
mov r14d, 0x8007000e
and edi, r14d
mov rcx, qword [rbp + 0x3b8]
jge 0x14004e452
mov r9d, edi
mov r8, rsi
mov edx, 0x5ad
call fcn.14002061c
jmp 0x14004e522
lea rdx, str.file:___
lea rcx, [rsp + 0x38]
call fcn.140019fac
nop
mov rbx, qword [rsp + 0x38]
mov rax, rbx
neg rax
sbb edi, edi
not edi
and edi, r14d
mov rcx, qword [rbp + 0x3b8]
jge 0x14004e486
mov edx, 0x5b3
jmp 0x14004e4b5
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x38]
call fcn.14004a294
mov rbx, qword [rsp + 0x38]
mov rax, rbx
neg rax
sbb edi, edi
not edi
and edi, r14d
mov rcx, qword [rbp + 0x3b8]
jge 0x14004e4c2
mov edx, 0x5b9
mov r8, rsi
mov r9d, edi
call fcn.14002061c
jmp 0x14004e512
mov rax, qword [r12]
movabs r10, 0xe1cdb7097e59e370
xor r9d, r9d
lea r8d, [r9 + 1]
mov rdx, rbx
mov rcx, r12
mov rax, qword [rax + 0x18]
call qword [case.0x140001f80.0]
mov edi, eax
mov rcx, qword [rbp + 0x3b8]
mov qword [rsp + 0x28], rbx
lea rax, str.StartPage:__ls
mov qword [rsp + 0x20], rax
mov r9d, edi
mov r8, rsi
mov edx, 0x5be
call fcn.140050f14
nop
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop dword [rax + rax]
nop
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop dword [rax + rax]
jmp 0x14004e5f9
cmp eax, 0x80070057
jne 0x14004e546
xor edi, edi
jmp 0x14004e5f9
mov rcx, qword [rbp + 0x3b8]
mov r9d, eax
mov r8, rsi
mov edx, 0x5ca
call fcn.140050ea4
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x48], xmm0
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x170]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov r8d, 0x104
lea rdx, [rbp + 0x170]
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleFileNameW]
nop dword [rax + rax]
lea rdx, [rbp + 0x170]
lea rcx, [rsp + 0x48]
call fcn.14005050c
nop
mov r9d, dword [r15 + 0x10]
mov r8, qword [r15 + 8]
mov edx, 0x7df
lea rcx, [rsp + 0x48]
call fcn.140050e1c
mov dword [r15 + 0x14], eax
mov rdx, qword [r15]
mov r11, qword [rdx + 0x20]
movabs r10, 0x8cc4973714525370
or r9d, 0xffffffff
mov r8d, eax
lea rdx, str.CSIDL_COMMON_STARTMENU
mov rcx, r15
mov rax, r11
call qword [case.0x140001f80.0]
nop
lea rcx, [rsp + 0x48]
call fcn.140023ab0
nop
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop dword [rax + rax]
mov eax, edi
mov rcx, qword [rbp + 0x380]
xor rcx, rsp
call fcn.140024b20
lea r11, [rsp + 0x490]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret