Function at 0x14005e640
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0xa0]
sub rsp, 0x1a0
mov rax, qword [0x1400f4080]
xor rax, rsp
mov qword [rbp + 0x90], rax
mov r14, rdx
xor r15d, r15d
lea r12, [0x1400f6810]
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r15 + 0x1a]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
xorps xmm0, xmm0
test eax, eax
je 0x14005e6c6
movups xmmword [0x1400f6810], xmm0
mov qword [0x1400f6820], r15
mov qword [0x1400f6828], 0xf
mov byte [0x1400f6810], r15b
jmp 0x14005e8f5
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x48], r15
lea rax, [rbp - 0x80]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], r15b
jne 0x14005e6e0
movabs rdi, 0x7fffffffffffffff
cmp rbx, rdi
ja 0x14005e923
mov qword [rsp + 0x48], reloc.WS2_32.dll_ntohs
cmp rbx, 0x10
jae 0x14005e72b
mov qword [rsp + 0x40], rbx
mov r8, rbx
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memcpy
mov byte [rsp + rbx + 0x30], r15b
jmp 0x14005e7c3
mov rax, rbx
or rax, 0xf
cmp rax, rdi
jbe 0x14005e764
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.1400ca690
test rax, rax
je 0x14005e8e9
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x14005e7a1
mov rdi, rax
mov ecx, reloc.WLDAP32.dll_Ordinal_22
cmp rax, rcx
cmovb rdi, rcx
lea rcx, [rdi + 1]
cmp rcx, 0x1000
jb 0x14005e78f
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x14005e929
jmp 0x14005e745
test rcx, rcx
je 0x14005e79e
call fcn.1400ca690
mov rsi, rax
jmp 0x14005e7a1
mov rsi, r15
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rdi
mov r8, rbx
lea rdx, [rbp - 0x80]
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov byte [rsi + rbx], r15b
mov r8d, 1
lea rdx, [0x1400e237c]
lea rcx, [rsp + 0x30]
call fcn.140011b40
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x68], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x58], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x68], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov r8, qword [r14 + 0x10]
cmp qword [r14 + 0x18], 0x10
jb 0x14005e819
mov r14, qword [r14]
mov rdx, r14
lea rcx, [rsp + 0x58]
call fcn.140011b40
xorps xmm0, xmm0
movups xmmword [0x1400f6810], xmm0
mov qword [0x1400f6820], r15
mov qword [0x1400f6828], r15
movups xmm0, xmmword [rax]
movups xmmword [0x1400f6810], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [0x1400f6820], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov rdx, qword [rsp + 0x70]
cmp rdx, 0x10
jb 0x14005e8a2
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005e89d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005e89d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400ca6cc
movdqa xmm0, xmmword [0x1400e2e10]
movdqu xmmword [rsp + 0x68], xmm0
mov byte [rsp + 0x58], 0
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x14005e8f5
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005e8f0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005e8f0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400ca6cc
mov rax, r12
mov rcx, qword [rbp + 0x90]
xor rcx, rsp
call fcn.1400ca670
lea r11, [rsp + 0x1a0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call fcn.140011210
int3
call fcn.140011170
int3