Function at 0x1401f3320
Capabilities:
Get common file path

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x680
mov rsi, rcx
mov dword [rsp + 0x150], 0x114
lea rcx, [rsp + 0x150]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [rsp + 0x15c]
mov dword [rsi + 0xe0], eax
cmp eax, 0x1db1
jb 0x1401f3762
xor edx, edx
lea rcx, [rsp + 0x270]
mov r8d, 0x410
call sub.VCRUNTIME140.dll_memset
mov edx, 0x104
lea rcx, [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea rcx, [rsp + 0x270]
mov rax, 0xffffffffffffffff
nop word [rax + rax]
cmp word [rcx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x1401f33a0
cmp dword [rsi + 0xe0], 0x23f0
mov ecx, 0x5c
mov word [rsp + rax*2 + 0x270], cx
lea rcx, [0x140004818]
jb 0x1401f33db
lea rcx, [0x140004838]
call fcn.140dd1755
nop
mov edx, 0x208
lea rcx, [rsp + 0x270]
mov r8, rax
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
mov rcx, rbx
call fcn.140dd1792
nop
xor edx, edx
lea rcx, [rsp + 0x270]
lea r8d, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
test rax, rax
je 0x1401f3762
cmp dword [rsi + 0xe0], 0x23f0
lea rcx, [0x140004848]
movsxd rbx, dword [rax + 0x3c]
mov qword [rsp + 0x6a8], rbp
mov qword [rsp + 0x6b0], r14
jb 0x1401f3455
lea rcx, [0x140004868]
call fcn.140dd1755
nop
mov r8d, dword [rbx + rdi + 0x50]
lea rcx, [rsp + 0x6a0]
mov r9, rax
mov rdx, rdi
mov rbp, rax
call fcn.1401f2f10
mov rcx, rbp
mov rbx, rax
call fcn.140dd1792
nop
xor r14d, r14d
test rbx, rbx
jne 0x1401f3506
lea edx, [rbx + 1]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbp, rax
test rax, rax
je 0x1401f34f4
lea rcx, [0x140004888]
call fcn.140dd1755
nop
mov r8d, 0x1000
lea rcx, [rsp + 0x6a0]
mov r9, rax
mov rdx, rbp
mov rbx, rax
call fcn.1401f2f10
mov rcx, rbx
mov rbp, rax
call fcn.140dd1792
nop
test rbp, rbp
je 0x1401f34f4
movsxd rcx, dword [rbp + 2]
add rbp, 6
add rbp, rcx
jmp 0x1401f3524
mov ecx, 0xc000001d
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1401f373e
cmp dword [rsi + 0xe0], 0x23f0
mov rax, r14
movsxd rbp, dword [rbx + 2]
setb al
add rax, 6
add rax, rbx
add rbp, rax
mov rcx, rdi
mov qword [rsp + 0x6b8], r15
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
sub rbp, rdi
lea rcx, [0x1400048a0]
cmp dword [rsi + 0xe0], 0x23f0
jb 0x1401f3556
lea rcx, [0x1400048b0]
call fcn.140dd1755
nop
mov rsi, rax
mov rax, qword [0x140217150]
test rax, rax
jne 0x1401f35c4
lea rcx, [0x140004750]
call fcn.140dd1755
nop
lea rcx, [0x140004690]
mov rdi, rax
call fcn.140dd1755
nop
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rdi
mov qword [0x140217150], rax
call fcn.140dd1792
nop
mov rcx, rbx
call fcn.140dd1792
nop
mov rax, qword [0x140217150]
xor edx, edx
lea r9, [rsp + 0x6a0]
xor r8d, r8d
lea ecx, [rdx + 0xb]
call rax
mov eax, dword [rsp + 0x6a0]
lea ecx, [rax + rax]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edx, dword [rsp + 0x6a0]
mov rcx, rax
mov r15, rax
lea r8d, [rdx + rdx]
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov r8d, dword [rsp + 0x6a0]
lea r9, [rsp + 0x6a0]
add r8d, r8d
mov rdx, r15
mov ecx, SHCreateMemStream
call qword [0x140217150]
mov eax, dword [r15]
dec eax
movsxd rbx, eax
cmp rbx, 0xffffffffffffffff
je 0x1401f370e
imul rdi, rbx, 0x128
add rdi, 8
add rdi, r15
nop dword [rax]
mov rcx, rdi
lea rax, [rsp + 0x20]
mov edx, 2
nop dword [rax]
lea rax, [rax + 0x80]
movups xmm0, xmmword [rcx]
movups xmm1, xmmword [rcx + 0x10]
lea rcx, [rcx + 0x80]
movups xmmword [rax - 0x80], xmm0
movups xmm0, xmmword [rcx - 0x60]
movups xmmword [rax - 0x70], xmm1
movups xmm1, xmmword [rcx - 0x50]
movups xmmword [rax - 0x60], xmm0
movups xmm0, xmmword [rcx - 0x40]
movups xmmword [rax - 0x50], xmm1
movups xmm1, xmmword [rcx - 0x30]
movups xmmword [rax - 0x40], xmm0
movups xmm0, xmmword [rcx - 0x20]
movups xmmword [rax - 0x30], xmm1
movups xmm1, xmmword [rcx - 0x10]
movups xmmword [rax - 0x20], xmm0
movups xmmword [rax - 0x10], xmm1
sub rdx, 1
jne 0x1401f3653
movups xmm0, xmmword [rcx]
mov rdx, rsi
movups xmm1, xmmword [rcx + 0x10]
mov rcx, qword [rcx + 0x20]
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm1
mov qword [rax + 0x20], rcx
lea rcx, [rsp + 0x48]
movzx eax, word [rsp + 0x46]
add rcx, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x1401f3709
dec rbx
sub rdi, 0x128
cmp rbx, 0xffffffffffffffff
jne 0x1401f3643
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rsi
call fcn.140dd1792
nop
jmp 0x1401f3729
mov r14, qword [rsp + 0x30]
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rsi
call fcn.140dd1792
nop
test r14, r14
jne 0x1401f3759
mov ecx, 0xc0000139
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov r15, qword [rsp + 0x6b8]
mov rbp, qword [rsp + 0x6a8]
mov r14, qword [rsp + 0x6b0]
add rsp, 0x680
pop rdi
pop rsi
pop rbx
ret
lea rax, [r14 + rbp]
jmp 0x1401f3736
xor eax, eax
add rsp, 0x680
pop rdi
pop rsi
pop rbx
ret