Function at 0x140002c40
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 [0x14001c040]
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 0x140002e7d
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 0x140002cb0
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.140008d50
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 0x140002d23
mov rax, rdi
mov rcx, rdx
mov r8, rsi
cmp word [rdx], 0x5c
je 0x140002d13
nop word [rax + rax]
cmp rax, 1
je 0x140002d16
dec rax
add rcx, 2
cmp word [rcx], 0x5c
jne 0x140002d00
mov r8, rcx
test r8, r8
je 0x140002d23
sub r8, rdx
sar r8, 1
jmp 0x140002d2a
mov r8, 0xffffffffffffffff
cmp r8, 0xffffffffffffffff
je 0x140002dd7
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.140008d50
mov rdx, qword [rsp + 0x60]
cmp rdx, 7
jbe 0x140002dab
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002da6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002da6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140011690
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 [0x14001c100]
cmp rdi, rax
ja 0x140002e1f
lea rbx, [0x14001c0e8]
cmp rax, 7
cmova rbx, qword [0x14001c0e8]
mov qword [0x14001c0f8], rdi
lea r8, [rdi + rdi]
mov rdx, r9
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + rdi*2], si
jmp 0x140002e2f
mov rdx, rdi
lea rcx, [0x14001c0e8]
call fcn.140008a00
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 7
jbe 0x140002efe
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002e73
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002e73
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140011690
jmp 0x140002efe
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.140008110
lea rdx, [0x1400084d0]
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 [0x14001c100]
cmp rax, 3
jb 0x140002ee6
lea rbx, [0x14001c0e8]
cmp rax, 7
cmova rbx, qword [0x14001c0e8]
mov qword [0x14001c0f8], 3
mov r8d, 6
lea rdx, [0x140013c30]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + 6], si
jmp 0x140002efe
lea r9, [0x140013c30]
mov edx, 3
lea rcx, [0x14001c0e8]
call fcn.140008a00
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.140011080
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