Function at 0x18000a940
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 [0x1804e0010]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
mov r8, qword [rcx + 0x18]
test r8, r8
je 0x18000acd3
cmp qword [rcx + 0x10], 0
je 0x18000acd3
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 [0x1803f7240]
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 0x18000aa19
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 0x18000aa00
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x50]
call fcn.180005cd0
mov edx, 0x10
lea rcx, [rsp + 0x50]
call fcn.18015fbe0
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x68]
mov rax, rdx
sub rax, rcx
cmp rax, 0xb
jb 0x18000aa72
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 0x18000aa93
mov qword [rsp + 0x20], 0xb
lea r9, str.mspaint.exe
xor r8d, r8d
lea edx, [r8 + 0xb]
lea rcx, [rsp + 0x50]
call fcn.18000ada0
lea rcx, [rsp + 0x70]
call fcn.18015af70
test al, al
je 0x18000ac21
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x70]
call fcn.180160990
mov rbx, rax
lea rax, [rsp + 0x50]
cmp rax, rbx
je 0x18000aaea
lea rcx, [rsp + 0x50]
call fcn.180005c50
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 0x18000ab2d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000ab28
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18000ab28
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180393fb0
movdqa xmm0, xmmword [0x1803f7240]
movdqu xmmword [rbp - 0x60], xmm0
mov word [rbp - 0x70], si
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x70]
call fcn.180160990
mov rbx, rax
lea rax, [rsp + 0x70]
cmp rax, rbx
je 0x18000ab82
lea rcx, [rsp + 0x70]
call fcn.180005c50
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 0x18000abc5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000abc0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18000abc0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180393fb0
movdqa xmm0, xmmword [0x1803f7240]
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.18036feb0
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x18000ac66
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000ac61
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18000ac61
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180393fb0
movdqa xmm0, xmmword [0x1803f7240]
movdqu xmmword [rsp + 0x60], xmm0
mov word [rsp + 0x50], si
mov rdx, qword [rbp - 0x78]
cmp rdx, 8
jb 0x18000acbd
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000acb8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18000acb8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180393fb0
movdqa xmm0, xmmword [0x1803f7240]
movdqu xmmword [rbp - 0x80], xmm0
mov word [rsp + 0x70], si
mov al, 1
jmp 0x18000acd5
xor al, al
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.180393f50
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