Function at 0x14000e6e0
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x1a8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x120], 0xfffffffffffffffe
lea rax, [rbp - 0x50]
mov qword [rsp + 0x20], rax
xor ecx, ecx
mov edx, Ordinal_32
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
js 0x14000eb4a
xorps xmm0, xmm0
movups xmmword [rbp + 0x110], xmm0
movups xmmword [rbp + 0x100], xmm0
lea rcx, [rbp - 0x50]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
test rax, rax
js 0x14000eb62
mov rsi, rax
mov rdi, rax
cmp rax, 0xf
ja 0x14000e786
mov qword [rbp + 0x110], rdi
mov qword [rbp + 0x118], reloc.WS2_32.dll_ntohs
lea rcx, [rbp + 0x100]
lea rdx, [rbp - 0x50]
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
lea rax, [rsi + rbp]
add rax, 0x100
jmp 0x14000e7ff
mov rax, rsi
or rax, 0xf
cmp rax, 0x17
mov r14d, reloc.WLDAP32.dll_Ordinal_22
cmovae r14, rax
cmp rax, 0xfff
jb 0x14000e7c9
lea rcx, [r14 + 0x28]
call fcn.14004f794
test rax, rax
je 0x14000eb5c
mov rcx, rax
mov rbx, rax
add rbx, 0x27
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x14000e7d5
lea rcx, [r14 + 1]
call fcn.14004f794
mov rbx, rax
mov qword [rbp + 0x100], rbx
mov qword [rbp + 0x110], rdi
mov qword [rbp + 0x118], r14
lea rdx, [rbp - 0x50]
mov rcx, rbx
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
add rsi, rbx
mov rax, rsi
mov byte [rax], 0
mov rsi, qword [rbp + 0x110]
mov rax, qword [rbp + 0x118]
mov rcx, rax
sub rcx, rsi
cmp rcx, 0xb
jae 0x14000e856
lea rsi, [0x1400f3da0]
lea rdx, [0x1400a2a5a]
mov rcx, rsi
call fcn.14000f010
nop
mov qword [rsp + 0x20], select
lea rcx, [rbp + 0x100]
mov edx, ntohl
mov r9, rsi
call fcn.14000d6d0
nop
mov rdi, rax
jmp 0x14000e8a8
lea rcx, [rsi + 0xb]
mov qword [rbp + 0x110], rcx
lea rdi, [rbp + 0x100]
mov rcx, rdi
cmp rax, 0x10
jb 0x14000e878
mov rcx, qword [rbp + 0x100]
mov rbx, rcx
lea rcx, [0x1400f3da0]
lea rdx, [0x1400a2a5a]
call fcn.14000f010
mov rax, qword [0x1400f3da0]
mov qword [rbx + rsi], rax
mov eax, dword [0x1400f3da7]
mov dword [rbx + rsi + 7], eax
mov byte [rbx + rsi + 0xb], 0
movups xmm0, xmmword [rdi]
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [rbp + 0xd0], xmm1
movups xmmword [rbp + 0xc0], xmm0
mov qword [rdi + 0x10], 0
mov qword [rdi + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rdi], 0
mov rax, qword [rbp + 0x118]
cmp rax, 0x10
jb 0x14000e91a
mov rdx, qword [rbp + 0x100]
lea rcx, [rax + 1]
cmp rcx, 0x1000
jb 0x14000e90c
mov rcx, qword [rdx - 8]
add rdx, 0xfffffffffffffff8
sub rdx, rcx
cmp rdx, 0x20
jae 0x14000eb5c
add rax, 0x28
jmp 0x14000e912
mov rax, rcx
mov rcx, rdx
mov rdx, rax
call fcn.14004f7d8
mov qword [rbp + 0x110], 0
mov qword [rbp + 0x118], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0x100], 0
mov rsi, qword [rbp + 0xd0]
movabs rax, 0x7fffffffffffffed
cmp rsi, rax
jge 0x14000eb67
mov rbx, qword [rbp + 0xc0]
mov r15, qword [rbp + 0xd8]
xorps xmm0, xmm0
movups xmmword [rbp + 0xe0], xmm0
lea r14, [rsi + 0x13]
cmp r14, 0x10
jb 0x14000e985
cmp rsi, 0xffffffffffffffed
jge 0x14000e993
movabs rdi, 0x7fffffffffffffff
jmp 0x14000e9af
lea rdi, [rbp + 0xe0]
mov eax, reloc.WS2_32.dll_ntohs
jmp 0x14000e9ef
mov rax, r14
or rax, 0xf
cmp rax, 0x17
mov edi, reloc.WLDAP32.dll_Ordinal_22
cmovae rdi, rax
cmp rax, 0xfff
jb 0x14000e9d4
lea rcx, [rdi + 0x28]
nop
call fcn.14004f794
nop
test rax, rax
je 0x14000eb5c
mov rcx, rax
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x14000e9df
lea rcx, [rdi + 1]
nop
call fcn.14004f794
nop
mov rcx, rax
mov qword [rbp + 0xe0], rax
mov rax, rdi
mov rdi, rcx
cmp r15, 0x10
lea r15, [rbp + 0xc0]
mov rdx, rbx
cmovb rdx, r15
mov qword [rbp + 0xf0], r14
mov qword [rbp + 0xf8], rax
mov rcx, rdi
mov r8, rsi
call sub.VCRUNTIME140.dll_memcpy
lea rcx, [0x1400f3db0]
lea rdx, [0x1400a2a99]
call fcn.14000f090
movups xmm0, xmmword [0x1400f3db0]
movups xmmword [rdi + rsi], xmm0
mov eax, dword [0x1400f3dbf]
mov dword [rdi + rsi + 0xf], eax
mov byte [rdi + rsi + 0x13], 0
cmp qword [rbp + 0xd8], 0x10
mov rcx, r15
jb 0x14000ea5b
mov rcx, qword [rbp + 0xc0]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x14000ea93
and eax, 0x10
je 0x14000ea93
cmp qword [rbp + 0xf8], 0x10
jb 0x14000ea7e
mov rcx, qword [rbp + 0xe0]
jmp 0x14000ea85
lea rcx, [rbp + 0xe0]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
jne 0x14000ea93
xor eax, eax
jmp 0x14000ea95
mov al, 1
mov ebx, eax
mov rax, qword [rbp + 0xf8]
cmp rax, 0x10
jb 0x14000eae1
mov rdx, qword [rbp + 0xe0]
lea rcx, [rax + 1]
cmp rcx, 0x1000
jb 0x14000ead3
mov rcx, qword [rdx - 8]
add rdx, 0xfffffffffffffff8
sub rdx, rcx
cmp rdx, 0x20
jae 0x14000eb5c
add rax, 0x28
jmp 0x14000ead9
mov rax, rcx
mov rcx, rdx
mov rdx, rax
call fcn.14004f7d8
mov qword [rbp + 0xf0], 0
mov qword [rbp + reloc.WS2_32.dll_ntohs8], 0xf
mov byte [rbp + 0xe0], 0
mov rax, qword [rbp + 0xd8]
cmp rax, 0x10
jb 0x14000eb44
mov rdx, qword [rbp + 0xc0]
lea rcx, [rax + 1]
cmp rcx, 0x1000
jb 0x14000eb36
mov rcx, qword [rdx - 8]
add rdx, 0xfffffffffffffff8
sub rdx, rcx
cmp rdx, 0x20
jae 0x14000eb5c
add rax, 0x28
jmp 0x14000eb3c
mov rax, rcx
mov rcx, rdx
mov rdx, rax
call fcn.14004f7d8
mov al, 1
test bl, bl
je 0x14000eb4c
xor eax, eax
add rsp, 0x1a8
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
call fcn.140001e60
nop
call fcn.140001e60
nop
int3