Function at 0x140087b04
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
lea rbp, [rax - 0x1e8]
sub rsp, 0x2e0
mov rax, qword [0x1401b40c0]
xor rax, rsp
mov qword [rbp + 0x1d0], rax
mov rbx, rcx
mov qword [rsp + 0x38], rcx
xor r14d, r14d
mov dword [rsp + 0x34], r14d
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r14 + 0x1a]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xorps xmm0, xmm0
test eax, eax
js 0x140087c2f
movups xmmword [rsp + 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x50], xmm1
lea rax, [rbp - 0x40]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], r14w
jne 0x140087b7f
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x40]
call fcn.14000a288
nop
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 7
cmova rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x50]
lea r8, [rcx + rax*2]
lea rdx, [rsp + 0x40]
cmova rdx, qword [rsp + 0x40]
lea r9, [rsp + 0x30]
lea rcx, [rbp - 0x80]
call fcn.1400093ec
mov edi, 2
mov dword [rsp + 0x34], edi
mov rdx, qword [rsp + 0x58]
cmp rdx, 7
jbe 0x140087c19
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140087c14
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140087c14
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140152204
movdqa xmm0, xmmword [0x1401981b0]
movdqu xmmword [rsp + 0x50], xmm0
mov word [rsp + 0x40], r14w
jmp 0x140087c4d
movups xmmword [rbp - 0x80], xmm0
movdqa xmm1, xmmword [0x1401981d0]
movdqu xmmword [rbp - 0x70], xmm1
mov byte [rbp - 0x80], r14b
mov edi, 2
mov dword [rsp + 0x34], edi
mov r8d, reloc.WS2_32.dll_ntohs
lea rdx, str.Xenethconfigs
lea rcx, [rbp - 0x80]
call fcn.1400089fc
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], r14
movups xmm0, xmmword [rax]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbx + 0x10], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], r14b
or edi, 4
or edi, 1
mov dword [rsp + 0x34], edi
mov rdx, qword [rbp - 0x68]
cmp rdx, 0xf
jbe 0x140087cd6
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140087cd1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140087cd1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140152204
movdqa xmm0, xmmword [0x1401981d0]
movdqu xmmword [rbp - 0x70], xmm0
mov byte [rbp - 0x80], r14b
mov r8b, r14b
mov rdx, rbx
lea rcx, [rbp - 0x60]
call fcn.14000e2fc
nop
mov dword [rsp + 0x60], r14d
lea rax, [0x1401b4158]
mov qword [rsp + 0x68], rax
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x60]
call fcn.140003028
mov dil, al
cmp dword [rsp + 0x60], r14d
jne 0x140087daa
lea rcx, [rbp - 0x60]
call fcn.140008918
test dil, dil
jne 0x140087d6b
mov r8b, r14b
mov rdx, rbx
lea rcx, [rsp + 0x60]
call fcn.14000e2fc
nop
lea rcx, [rsp + 0x60]
cmp qword [rsp + 0x78], 7
cmova rcx, qword [rsp + 0x60]
call fcn.140153608
shr rax, 0x20
test eax, eax
jne 0x140087d96
lea rcx, [rsp + 0x60]
call fcn.140008918
mov rax, rbx
mov rcx, qword [rbp + 0x1d0]
xor rcx, rsp
call fcn.140151f60
lea r11, [rsp + 0x2e0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
lea r8, [rsp + 0x60]
mov edx, eax
lea rcx, str.create_directory
call fcn.140002ef0
nop
lea r8, [rbp - 0x60]
lea rdx, [rsp + 0x60]
lea rcx, str.exists
call fcn.140002f54
int3