Function at 0x140002cc0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x190]
sub rsp, 0x290
mov rax, qword [0x140018040]
xor rax, rsp
mov qword [rbp + 0x180], rax
xor esi, esi
mov edx, 0x104
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x140002efd
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], rsi
lea rax, [rsp + 0x70]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rax + r8*2], si
jne 0x140002d30
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.1400085f0
nop
lea rdx, [rsp + 0x48]
mov r10, qword [rsp + 0x48]
mov r11, qword [rsp + 0x60]
cmp r11, 7
cmova rdx, r10
mov rdi, qword [rsp + 0x58]
test rdi, rdi
je 0x140002da3
mov rax, rdi
mov rcx, rdx
mov r8, rsi
cmp word [rdx], 0x5c
je 0x140002d93
nop word [rax + rax]
cmp rax, 1
je 0x140002d96
dec rax
add rcx, 2
cmp word [rcx], 0x5c
jne 0x140002d80
mov r8, rcx
test r8, r8
je 0x140002da3
sub r8, rdx
sar r8, 1
jmp 0x140002daa
mov r8, 0xffffffffffffffff
cmp r8, 0xffffffffffffffff
je 0x140002e57
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x38], xmm1
inc r8
cmp rdi, r8
cmovb r8, rdi
lea rdx, [rsp + 0x48]
cmp r11, 7
cmova rdx, r10
lea rcx, [rsp + 0x28]
call fcn.1400085f0
mov rdx, qword [rsp + 0x60]
cmp rdx, 7
jbe 0x140002e2b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002e26
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002e26
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000e310
movups xmm2, xmmword [rsp + 0x28]
movups xmmword [rsp + 0x48], xmm2
movups xmm1, xmmword [rsp + 0x38]
movups xmmword [rsp + 0x58], xmm1
movdqa xmm0, xmm1
psrldq xmm0, 8
movq r11, xmm0
movq rdi, xmm1
movq r10, xmm2
lea r9, [rsp + 0x48]
cmp r11, 7
cmova r9, r10
mov rax, qword [0x140018110]
cmp rdi, rax
ja 0x140002e9f
lea rbx, [0x1400180f8]
cmp rax, 7
cmova rbx, qword [0x1400180f8]
mov qword [0x140018108], rdi
lea r8, [rdi + rdi]
mov rdx, r9
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + rdi*2], si
jmp 0x140002eaf
mov rdx, rdi
lea rcx, [0x1400180f8]
call fcn.1400082a0
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 7
jbe 0x140002f7e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002ef3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002ef3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000e310
jmp 0x140002f7e
lea rdx, str.Failed_to_get_system_directory._Setting_current_directory_to_C:_by_default.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
call fcn.1400079c0
lea rdx, [0x140007ba0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
mov rax, qword [0x140018110]
cmp rax, 3
jb 0x140002f66
lea rbx, [0x1400180f8]
cmp rax, 7
cmova rbx, qword [0x1400180f8]
mov qword [0x140018108], 3
mov r8d, 6
lea rdx, [0x140010bf0]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + 6], si
jmp 0x140002f7e
lea r9, [0x140010bf0]
mov edx, 3
lea rcx, [0x1400180f8]
call fcn.1400082a0
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.14000dd00
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret