Function at 0x1400613d4
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x1a8]
sub rsp, 0x290
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140178478]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov rdi, rcx
xor r14d, r14d
mov esi, r14d
mov dword [rsp + 0x20], r14d
call fcn.14005effc
and eax, 0xffff0000
lea r15d, [r14 + 7]
cmp eax, 0x800000
jl 0x14006148e
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], r15
mov word [rsp + 0x30], r14w
lea rdx, str.API_MS_WIN
lea rcx, [rsp + 0x30]
call fcn.14000954c
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 0x140061476
mov rcx, qword [rdi]
mov r8, qword [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsnicmp]
nop dword [rax + rax]
test eax, eax
mov bl, sil
je 0x140061491
mov bl, r14b
test sil, 1
je 0x1400614b4
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x1400614b4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
call fcn.14000c220
test bl, bl
je 0x14006154e
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r14
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x1400614d7
mov rcx, qword [rdi]
test rcx, rcx
jne 0x1400614e1
mov rdx, r14
jmp 0x1400614f2
or rdx, 0xffffffffffffffff
inc rdx
cmp word [rcx + rdx*2], r14w
jne 0x1400614e5
inc rdx
lea r8, [rsp + 0x30]
call fcn.1400612c0
mov rsi, rax
mov rbx, r14
test rax, rax
je 0x140061618
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]
nop dword [rax + rax]
test eax, eax
je 0x140061606
add rbx, 8
cmp rbx, 0x30
jb 0x14006150b
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14006154e
mov rdx, qword [rsp + 0x40]
sub rdx, rcx
call fcn.14000c220
mov edx, 0x104
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
nop dword [rax + rax]
dec eax
cmp eax, 0x103
ja 0x140061634
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], r15
mov word [rsp + 0x30], r14w
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x30]
call fcn.14000954c
nop
mov r8, rdi
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.14006166c
cmp qword [rax + 0x18], 8
jb 0x1400615ad
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
nop dword [rax + rax]
mov rbx, rax
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x1400615dc
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
call fcn.14000c220
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], r15
mov word [rsp + 0x50], r14w
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x14006162f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
jmp 0x14006162a
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
nop dword [rax + rax]
mov rbx, rax
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14006162f
mov rdx, qword [rsp + 0x40]
sub rdx, rcx
call fcn.14000c220
mov rax, rbx
jmp 0x140061636
xor eax, eax
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.1400d24e0
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