Function at 0x1800099d0
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x1d8]
sub rsp, 0x2d0
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1804cc010]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
mov r8, qword [rcx + 0x18]
test r8, r8
je 0x180009d63
cmp qword [rcx + 0x10], 0
je 0x180009d63
mov rax, qword [r8]
lea rdx, [rsp + 0x70]
mov rcx, r8
call qword [rax + 0x68]
nop
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x60], xmm0
movdqa xmm1, xmmword [0x1803e7600]
movdqu xmmword [rsp + 0x60], xmm1
xor esi, esi
mov word [rsp + 0x50], si
xor edx, edx
mov r8d, 0x20c
lea rcx, [rbp - 0x50]
call sub.VCRUNTIME140.dll_memset
mov edx, 0x105
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
dec eax
cmp eax, 0x103
ja 0x180009aa9
mov word [rbp + 0x1ba], si
lea rax, [rbp - 0x50]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x180009a90
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x50]
call fcn.180004ea0
mov edx, 0x10
lea rcx, [rsp + 0x50]
call fcn.18015a4f0
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x68]
mov rax, rdx
sub rax, rcx
cmp rax, 0xb
jb 0x180009b02
lea rdi, [rcx + 0xb]
mov qword [rsp + 0x60], rdi
lea rbx, [rsp + 0x50]
cmp rdx, 8
cmovae rbx, qword [rsp + 0x50]
lea rcx, [rbx + rcx*2]
mov r8d, 0x16
lea rdx, str.mspaint.exe
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + rdi*2], si
jmp 0x180009b23
mov qword [rsp + 0x20], 0xb
lea r9, str.mspaint.exe
xor r8d, r8d
lea edx, [r8 + 0xb]
lea rcx, [rsp + 0x50]
call fcn.180009e30
lea rcx, [rsp + 0x70]
call fcn.180155880
test al, al
je 0x180009cb1
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x70]
call fcn.18015acc0
mov rbx, rax
lea rax, [rsp + 0x50]
cmp rax, rbx
je 0x180009b7a
lea rcx, [rsp + 0x50]
call fcn.180004e20
movups xmm0, xmmword [rbx]
movups xmmword [rsp + 0x50], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rsp + 0x60], xmm1
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], 7
mov word [rbx], si
mov rdx, qword [rbp - 0x58]
cmp rdx, 8
jb 0x180009bbd
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180009bb8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180009bb8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180386950
movdqa xmm0, xmmword [0x1803e7600]
movdqu xmmword [rbp - 0x60], xmm0
mov word [rbp - 0x70], si
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x70]
call fcn.18015acc0
mov rbx, rax
lea rax, [rsp + 0x70]
cmp rax, rbx
je 0x180009c12
lea rcx, [rsp + 0x70]
call fcn.180004e20
movups xmm0, xmmword [rbx]
movups xmmword [rsp + 0x70], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rbp - 0x80], xmm1
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], 7
mov word [rbx], si
mov rdx, qword [rbp - 0x58]
cmp rdx, 8
jb 0x180009c55
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180009c50
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180009c50
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180386950
movdqa xmm0, xmmword [0x1803e7600]
movdqu xmmword [rbp - 0x60], xmm0
mov word [rbp - 0x70], si
mov dword [rsp + 0x40], esi
lea r8, [rsp + 0x70]
cmp qword [rbp - 0x78], 8
cmovae r8, qword [rsp + 0x70]
lea rdx, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rdx, qword [rsp + 0x50]
mov dword [rsp + 0x38], 1
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], esi
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor ecx, ecx
call fcn.1801fe4b0
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x180009cf6
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180009cf1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180009cf1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180386950
movdqa xmm0, xmmword [0x1803e7600]
movdqu xmmword [rsp + 0x60], xmm0
mov word [rsp + 0x50], si
mov rdx, qword [rbp - 0x78]
cmp rdx, 8
jb 0x180009d4d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180009d48
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180009d48
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180386950
movdqa xmm0, xmmword [0x1803e7600]
movdqu xmmword [rbp - 0x80], xmm0
mov word [rsp + 0x70], si
mov al, 1
jmp 0x180009d65
xor al, al
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.1803868f0
lea r11, [rsp + 0x2d0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret