Function at 0x1800099a0
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 [0x1804ca010]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
mov r8, qword [rcx + 0x18]
test r8, r8
je 0x180009d33
cmp qword [rcx + 0x10], 0
je 0x180009d33
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 [0x1803e6740]
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 0x180009a79
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 0x180009a60
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x50]
call fcn.180004e70
mov edx, 0x10
lea rcx, [rsp + 0x50]
call fcn.18015a5e0
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x68]
mov rax, rdx
sub rax, rcx
cmp rax, 0xb
jb 0x180009ad2
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 0x180009af3
mov qword [rsp + 0x20], 0xb
lea r9, str.mspaint.exe
xor r8d, r8d
lea edx, [r8 + 0xb]
lea rcx, [rsp + 0x50]
call fcn.180009e00
lea rcx, [rsp + 0x70]
call fcn.180155970
test al, al
je 0x180009c81
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x70]
call fcn.18015adb0
mov rbx, rax
lea rax, [rsp + 0x50]
cmp rax, rbx
je 0x180009b4a
lea rcx, [rsp + 0x50]
call fcn.180004df0
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 0x180009b8d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180009b88
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180009b88
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180385c70
movdqa xmm0, xmmword [0x1803e6740]
movdqu xmmword [rbp - 0x60], xmm0
mov word [rbp - 0x70], si
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x70]
call fcn.18015adb0
mov rbx, rax
lea rax, [rsp + 0x70]
cmp rax, rbx
je 0x180009be2
lea rcx, [rsp + 0x70]
call fcn.180004df0
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 0x180009c25
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180009c20
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180009c20
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180385c70
movdqa xmm0, xmmword [0x1803e6740]
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.1801fe5d0
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x180009cc6
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180009cc1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180009cc1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180385c70
movdqa xmm0, xmmword [0x1803e6740]
movdqu xmmword [rsp + 0x60], xmm0
mov word [rsp + 0x50], si
mov rdx, qword [rbp - 0x78]
cmp rdx, 8
jb 0x180009d1d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180009d18
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180009d18
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180385c70
movdqa xmm0, xmmword [0x1803e6740]
movdqu xmmword [rbp - 0x80], xmm0
mov word [rsp + 0x70], si
mov al, 1
jmp 0x180009d35
xor al, al
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.180385c10
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