Function at 0x140002e10
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 0x14000304d
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 0x140002e80
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.1400093f0
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 0x140002ef3
mov rax, rdi
mov rcx, rdx
mov r8, rsi
cmp word [rdx], 0x5c
je 0x140002ee3
nop word [rax + rax]
cmp rax, 1
je 0x140002ee6
dec rax
add rcx, 2
cmp word [rcx], 0x5c
jne 0x140002ed0
mov r8, rcx
test r8, r8
je 0x140002ef3
sub r8, rdx
sar r8, 1
jmp 0x140002efa
mov r8, 0xffffffffffffffff
cmp r8, 0xffffffffffffffff
je 0x140002fa7
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.1400093f0
mov rdx, qword [rsp + 0x60]
cmp rdx, 7
jbe 0x140002f7b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002f76
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002f76
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400109f0
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 0x140002fef
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 0x140002fff
mov rdx, rdi
lea rcx, [0x14001c0e8]
call fcn.1400090a0
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 7
jbe 0x1400030ce
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003043
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003043
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400109f0
jmp 0x1400030ce
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.1400087b0
lea rdx, [0x140008b70]
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 0x1400030b6
lea rbx, [0x14001c0e8]
cmp rax, 7
cmova rbx, qword [0x14001c0e8]
mov qword [0x14001c0f8], 3
mov r8d, 6
lea rdx, [0x140013c40]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + 6], si
jmp 0x1400030ce
lea r9, [0x140013c40]
mov edx, 3
lea rcx, [0x14001c0e8]
call fcn.1400090a0
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.1400103e0
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