Function at 0x14005e96c
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x190]
sub rsp, 0x290
mov rax, qword [0x140165040]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov rdi, rcx
xor r15d, r15d
mov esi, r15d
mov dword [rsp + 0x20], r15d
call fcn.14005c62c
and eax, 0xffff0000
cmp eax, 0x800000
jl 0x14005ea18
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x40], r15
lea r8d, [r15 + 0xa]
lea rdx, str.API_MS_WIN
lea rcx, [rsp + 0x28]
call fcn.140005d34
lea esi, [r15 + 1]
lea rdx, [rsp + 0x28]
cmp qword [rsp + 0x40], 7
cmova rdx, qword [rsp + 0x28]
mov rcx, rdi
cmp qword [rdi + 0x18], 7
jbe 0x14005ea06
mov rcx, qword [rdi]
mov r8, qword [rsp + 0x38]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
test eax, eax
mov bl, sil
je 0x14005ea1b
mov bl, r15b
mov r12d, 0x1000
test sil, 1
je 0x14005ea65
mov rax, qword [rsp + 0x40]
cmp rax, 7
jbe 0x14005ea65
lea rax, [rax*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rdx, rcx
cmp rax, r12
jb 0x14005ea5f
mov rcx, qword [rcx - 8]
sub rdx, rcx
lea rax, [rdx - 8]
cmp rax, 0x1f
jbe 0x14005ea5f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
or rsi, 0xffffffffffffffff
test bl, bl
je 0x14005eb1a
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x38], r15
mov rcx, rdi
cmp qword [rdi + 0x18], 7
jbe 0x14005ea8c
mov rcx, qword [rdi]
test rcx, rcx
jne 0x14005ea96
mov rdx, r15
jmp 0x14005eaa6
mov rdx, rsi
inc rdx
cmp word [rcx + rdx*2], r15w
jne 0x14005ea99
inc rdx
lea r8, [rsp + 0x28]
call fcn.14005e848
mov r14, rax
mov rbx, r15
test rax, rax
je 0x14005ebd7
lea rdx, str.API_MS_WIN_CORE_PROCESSTHREADS_L1_1_0.DLL
mov rdx, qword [rbx + rdx]
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x14005ebcc
add rbx, 8
cmp rbx, 0x30
jb 0x14005eabf
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x14005eb1a
mov rax, qword [rsp + 0x38]
sub rax, rcx
mov rdx, rcx
cmp rax, r12
jb 0x14005eb14
mov rcx, qword [rcx - 8]
sub rdx, rcx
lea rax, [rdx - 8]
cmp rax, 0x1f
ja 0x14005ec02
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov edx, 0x104
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
dec eax
cmp eax, 0x103
ja 0x14005ec6c
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x38], xmm1
lea rax, [rsp + 0x70]
inc rsi
cmp word [rax + rsi*2], r15w
jne 0x14005eb4d
mov r8, rsi
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x28]
call fcn.140005d34
mov r8, rdi
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x48]
call fcn.14005ec9c
cmp qword [rax + 0x18], 7
jbe 0x14005eb85
mov rax, qword [rax]
mov rcx, rax
call fcn.14005e794
mov rbx, rax
mov rcx, qword [rsp + 0x60]
cmp rcx, 7
jbe 0x14005ec20
lea rcx, [rcx*2 + 2]
mov rdx, qword [rsp + 0x48]
mov rax, rdx
cmp rcx, r12
jb 0x14005ec17
mov rdx, qword [rdx - 8]
sub rax, rdx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005ec17
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov rcx, r14
call fcn.14005e6e0
mov rbx, rax
mov rdx, qword [rsp + 0x28]
test rdx, rdx
je 0x14005ec12
mov rcx, qword [rsp + 0x38]
sub rcx, rdx
mov rax, rdx
cmp rcx, r12
jb 0x14005ec09
mov rdx, qword [rdx - 8]
sub rax, rdx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005ec09
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rdx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, rbx
jmp 0x14005ec6e
mov rcx, rdx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
movdqa xmm0, xmmword [0x140137c10]
movdqu xmmword [rsp + 0x58], xmm0
mov word [rsp + 0x48], r15w
mov rax, qword [rsp + 0x40]
cmp rax, 7
jbe 0x14005ec12
lea rax, [rax*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rdx, rcx
cmp rax, r12
jb 0x14005ec0c
mov rcx, qword [rcx - 8]
sub rdx, rcx
lea rax, [rdx - 8]
cmp rax, 0x1f
jbe 0x14005ec0c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
xor eax, eax
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.1400e4b70
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret