Function at 0x14003f578
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x1a8]
sub rsp, 0x290
mov rax, qword [0x1400ab2e8]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov rdi, rcx
xor r15d, r15d
mov r14d, r15d
mov dword [rsp + 0x20], r15d
call fcn.14003d664
and eax, 0xffff0000
cmp eax, 0x800000
jl 0x14003f62d
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x40], 7
lea rdx, str.API_MS_WIN
lea rcx, [rsp + 0x28]
call fcn.140003d68
lea r14d, [r15 + 1]
lea rdx, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rdx, qword [rsp + 0x28]
mov rcx, rdi
lea rbx, [rdi + 0x18]
cmp qword [rbx], 8
jb 0x14003f613
mov rcx, qword [rdi]
mov r8, qword [rsp + 0x38]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsnicmp]
nop dword [rax + rax]
test eax, eax
jne 0x14003f631
mov sil, r14b
jmp 0x14003f634
lea rbx, [rdi + 0x18]
mov sil, r15b
test r14b, 1
je 0x14003f644
lea rcx, [rsp + 0x28]
call fcn.140003cf8
test sil, sil
je 0x14003f6e8
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x38], r15
mov rcx, rdi
cmp qword [rbx], 8
jb 0x14003f667
mov rcx, qword [rdi]
lea rdx, [rsp + 0x28]
call fcn.14003f34c
mov rsi, rax
mov rbx, r15
test rax, rax
je 0x14003f78b
lea rdx, str._br_b_
mov rdx, qword [rbx + rdx]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__stricmp]
nop dword [rax + rax]
test eax, eax
je 0x14003f779
add rbx, 8
cmp rbx, 0x30
jb 0x14003f680
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x14003f6e8
mov rdx, qword [rsp + 0x38]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003f6e3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003f7be
call fcn.140061da8
mov edx, 0x104
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
nop dword [rax + rax]
dec eax
cmp eax, 0x103
ja 0x14003f7d5
mov qword [rsp + 0x28], r15
movdqa xmm0, xmmword [0x140092240]
movdqu xmmword [rsp + 0x38], xmm0
mov word [rsp + 0x28], r15w
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x28]
call fcn.140003d68
nop
mov r8, rdi
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x48]
call fcn.14003f9d0
cmp qword [rax + 0x18], 8
jb 0x14003f750
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
nop dword [rax + rax]
mov rbx, rax
lea rcx, [rsp + 0x48]
call fcn.140003cf8
nop
lea rcx, [rsp + 0x28]
call fcn.140003cf8
jmp 0x14003f7d0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
nop dword [rax + rax]
mov rbx, rax
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x14003f7d0
mov rdx, qword [rsp + 0x38]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003f7cb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14003f7cb
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__invalid_parameter_noinfo_noreturn]
nop dword [rax + rax]
int3
call fcn.140061da8
mov rax, rbx
jmp 0x14003f7d7
xor eax, eax
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.140061ac0
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret