Function at 0x14003d63c
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x1a8]
sub rsp, 0x290
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1400bc298]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov rdi, rcx
xor r14d, r14d
mov esi, r14d
mov dword [rsp + 0x20], r14d
call fcn.14003bc3c
and eax, 0xffff0000
cmp eax, 0x800000
jl 0x14003d6eb
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], r14w
lea rdx, str.API_MS_WIN
lea rcx, [rsp + 0x30]
call fcn.1400033fc
lea esi, [r14 + 1]
lea rdx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rdx, qword [rsp + 0x30]
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x14003d6d9
mov rcx, qword [rdi]
mov r8, qword [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsnicmp]
test eax, eax
mov bl, sil
je 0x14003d6ee
mov bl, r14b
test sil, 1
je 0x14003d6fe
lea rcx, [rsp + 0x30]
call fcn.140003388
test bl, bl
je 0x14003d7a5
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x40], r14
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x14003d722
mov rcx, qword [rdi]
lea rdx, [rsp + 0x30]
call fcn.14003d4ac
mov rsi, rax
mov rbx, r14
test rax, rax
je 0x14003d831
lea rdx, str.API_MS_WIN_CORE_PROCESSTHREADS_L1_1_0.DLL
mov rdx, qword [rbx + rdx]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__stricmp]
test eax, eax
je 0x14003d825
add rbx, 8
cmp rbx, 0x30
jb 0x14003d73b
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14003d7a5
mov rax, qword [rsp + 0x40]
sub rax, rcx
mov rdx, rcx
cmp rax, 0x1000
jb 0x14003d7a0
test dl, 0x1f
jne 0x14003d799
mov rcx, qword [rcx - 8]
cmp rcx, rdx
jae 0x14003d799
sub rdx, rcx
sub rdx, 8
cmp rdx, 0x1f
jbe 0x14003d7a0
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__invalid_parameter_noinfo_noreturn]
int3
call fcn.140060114
mov edx, 0x104
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
dec eax
cmp eax, 0x103
ja 0x14003d87f
movdqa xmm0, xmmword [0x140093ca0]
movdqu xmmword [rsp + 0x40], xmm0
mov word [rsp + 0x30], r14w
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x30]
call fcn.1400033fc
nop
mov r8, rdi
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.14003db24
cmp qword [rax + 0x18], 8
jb 0x14003d802
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
lea rcx, [rsp + 0x50]
call fcn.140003388
nop
lea rcx, [rsp + 0x30]
call fcn.140003388
jmp 0x14003d87a
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
mov rdx, qword [rsp + 0x30]
test rdx, rdx
je 0x14003d87a
mov r8, rdx
mov rcx, qword [rsp + 0x40]
sub rcx, rdx
cmp rcx, 0x1000
jb 0x14003d872
test r8b, 0x1f
jne 0x14003d86b
mov rdx, qword [rdx - 8]
cmp rdx, r8
jae 0x14003d86b
sub r8, rdx
sub r8, 8
cmp r8, 0x1f
jbe 0x14003d872
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rdx
call fcn.140060114
mov rax, rbx
jmp 0x14003d881
xor eax, eax
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.140060130
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret