Function at 0x180019d20
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x2c0]
sub rsp, 0x3c0
mov rax, qword [0x180040030]
xor rax, rsp
mov qword [rbp + 0x2b0], rax
xor r13d, r13d
lea rdi, [0x1800413b8]
lea rax, [rbp + 0xa0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r13 + 0x28]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea rbx, [r13 - 1]
test eax, eax
js 0x18001a0b6
xorps xmm0, xmm0
movups xmmword [rbp - 0x80], xmm0
mov qword [rbp - 0x70], r13
mov qword [rbp - 0x68], r13
lea rax, [rbp + 0xa0]
mov r8, rbx
inc r8
cmp word [rax + r8*2], r13w
jne 0x180019da5
lea rdx, [rbp + 0xa0]
lea rcx, [rbp - 0x80]
call fcn.180005150
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
movdqa xmm1, xmmword [0x1800371b0]
movdqu xmmword [rsp + 0x70], xmm1
mov word [rsp + 0x60], r13w
lea rdi, [rbp - 0x80]
mov rsi, qword [rbp - 0x80]
mov r15, qword [rbp - 0x68]
cmp r15, 8
cmovae rdi, rsi
mov r14, qword [rbp - 0x70]
test r14, r14
je 0x180019ed1
mov r12d, pe_nt_image_headers64
mov r8d, r12d
xor edx, edx
lea rcx, [rbp - 0x60]
call sub.VCRUNTIME140.dll_memset
lea rcx, [0x180035b88]
lea rdx, [0x180035b8a]
nop
movzx eax, word [rcx]
cmp ax, r12w
jae 0x180019e6b
movzx eax, al
mov byte [rbp + rax - 0x60], 1
add rcx, 2
cmp rcx, rdx
jne 0x180019e20
lea rcx, [r14 - 1]
mov rax, rbx
cmp rcx, rbx
cmovb rax, rcx
lea rcx, [rdi + rax*2]
nop dword [rax]
movzx eax, word [rcx]
cmp ax, r12w
jae 0x180019e60
cmp byte [rbp + rax - 0x60], 0
jne 0x180019ec9
cmp rcx, rdi
je 0x180019ed1
sub rcx, 2
jmp 0x180019e50
lea rcx, [r14 - 1]
mov rax, rbx
cmp rcx, rbx
cmovb rax, rcx
lea rcx, [rdi + rax*2]
mov r9d, 0x5c
nop dword [rax]
nop word [rax + rax]
mov edx, 1
movzx r8d, word [rcx]
lea rax, [0x180035b88]
cmp r9w, r8w
je 0x180019ec9
cmp rdx, 1
je 0x180019ebe
dec rdx
add rax, 2
cmp word [rax], r8w
jne 0x180019ea6
test rax, rax
jne 0x180019ec9
cmp rcx, rdi
je 0x180019ed1
sub rcx, 2
jmp 0x180019e90
sub rcx, rdi
sar rcx, 1
jmp 0x180019ed4
mov rcx, rbx
cmp rcx, 0xffffffffffffffff
je 0x18001a05d
inc rcx
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x50], xmm1
cmp r14, rcx
jb 0x18001a160
sub r14, rcx
cmp r14, 0xffffffffffffffff
cmovb rbx, r14
lea rax, [rbp - 0x80]
cmp r15, 8
cmovae rax, rsi
lea rdx, [rax + rcx*2]
mov r8, rbx
lea rcx, [rsp + 0x40]
call fcn.180005150
mov rdx, qword [rsp + 0x78]
cmp rdx, 8
jb 0x180019f68
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180019f63
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180019f63
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180030790
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rsp + 0x60], xmm0
movups xmm1, xmmword [rsp + 0x50]
movdqu xmmword [rsp + 0x70], xmm1
lea rdx, [rsp + 0x60]
movq r9, xmm0
movdqa xmm0, xmm1
psrldq xmm0, 8
movq rcx, xmm0
cmp rcx, 8
cmovae rdx, r9
movq rax, xmm1
lea r8, [rdx + rax*2]
lea rdx, [rsp + 0x60]
cmovae rdx, r9
lea rcx, [0x1800413b8]
call fcn.180004700
nop
mov rdx, qword [rsp + 0x78]
cmp rdx, 8
jb 0x18001a001
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180019ffc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180019ffc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180030790
movdqa xmm0, xmmword [0x1800371b0]
movdqu xmmword [rsp + 0x70], xmm0
mov word [rsp + 0x60], r13w
mov rdx, qword [rbp - 0x68]
cmp rdx, 8
jb 0x18001a051
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18001a04c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18001a0a0
call fcn.180030790
lea rax, [0x1800413b8]
jmp 0x18001a130
movdqa xmm0, xmmword [0x1800371b0]
movdqu xmmword [rsp + 0x70], xmm0
mov word [rsp + 0x60], r13w
cmp r15, 8
jb 0x18001a0af
lea rdx, [r15*2 + 2]
mov rax, rsi
cmp rdx, 0x1000
jb 0x18001a0a7
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18001a0a7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rsi
call fcn.180030790
lea rdi, [0x1800413b8]
mov byte [rsp + 0x30], 0x6e
mov al, 0x2b
mov cl, 0x1c
movzx edx, cl
mov r8b, 1
movzx r9d, cl
xor r10d, r10d
xor al, 0x6e
mov byte [rsp + 0x31], al
xor cl, 0x6e
mov byte [rsp + 0x32], cl
xor dl, 0x6e
mov byte [rsp + 0x33], dl
xor r8b, 0x6e
mov byte [rsp + 0x34], r8b
xor r9b, 0x6e
mov byte [rsp + 0x35], r9b
mov byte [rsp + 0x36], r10b
xorps xmm0, xmm0
movups xmmword [0x1800413b8], xmm0
mov qword [0x1800413c8], r13
mov qword [0x1800413d0], r13
lea rcx, [rsp + 0x31]
inc rbx
cmp byte [rcx + rbx], r10b
jne 0x18001a114
mov r8, rbx
lea rdx, [rsp + 0x31]
mov rcx, rdi
call fcn.1800053f0
mov rax, rdi
mov rcx, qword [rbp + 0x2b0]
xor rcx, rsp
call fcn.180030770
lea r11, [rsp + 0x3c0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.180005770
nop
int3