Function at 0x140002a54
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x218]
sub rsp, 0x2f0
mov rax, qword [0x140097040]
xor rax, rsp
mov qword [rbp + 0x1e0], rax
xor esi, esi
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [rsi + 0x1a]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea r14d, [rsi + 0xf]
mov r15d, 0x1000
xorps xmm0, xmm0
test eax, eax
js 0x140002b6b
movups xmmword [rbp - 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x40], xmm1
lea rax, [rbp - 0x30]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], si
jne 0x140002ad0
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x50]
call fcn.14000496c
nop
lea rcx, [rbp - 0x50]
cmp qword [rbp - 0x38], 7
cmova rcx, qword [rbp - 0x50]
mov rax, qword [rbp - 0x40]
lea r8, [rcx + rax*2]
lea rdx, [rbp - 0x50]
cmova rdx, qword [rbp - 0x50]
lea rcx, [rbp - 0x70]
call fcn.1400045a0
nop
mov rdx, qword [rbp - 0x38]
cmp rdx, 7
jbe 0x140002b50
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, r15
jb 0x140002b4b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002b4b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140073824
movdqa xmm0, xmmword [0x14008ba30]
movdqu xmmword [rbp - 0x40], xmm0
mov word [rbp - 0x50], si
mov rdx, qword [rbp - 0x58]
mov rcx, qword [rbp - 0x60]
jmp 0x140002b81
movups xmmword [rbp - 0x70], xmm0
mov rcx, rsi
mov qword [rbp - 0x60], rcx
mov rdx, r14
mov qword [rbp - 0x58], rdx
mov byte [rbp - 0x70], sil
movabs rbx, 0x7fffffffffffffff
mov rax, rbx
sub rax, rcx
mov r12d, 5
cmp rax, r12
jb 0x140002f60
lea r9, [rbp - 0x70]
cmp rdx, r14
cmova r9, qword [rbp - 0x70]
mov qword [rsp + 0x30], r12
lea r13, str.zels
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0x50]
call fcn.1400052c4
nop
lea rax, [rsp + 0x50]
cmp qword [rsp + 0x68], r14
cmova rax, qword [rsp + 0x50]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x70]
call fcn.140005b9c
nop
lea rcx, [rsp + 0x70]
call fcn.1400028c0
mov dil, al
lea rcx, [rsp + 0x70]
call fcn.140003a7c
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, r14
jbe 0x140002c4f
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, r15
jb 0x140002c4a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002c4a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140073824
test dil, dil
jne 0x140002d26
mov rax, rbx
mov rcx, qword [rbp - 0x60]
sub rax, rcx
cmp rax, r12
jb 0x140002f66
lea r9, [rbp - 0x70]
cmp qword [rbp - 0x58], r14
cmova r9, qword [rbp - 0x70]
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0x70]
call fcn.1400052c4
nop
lea rax, [rsp + 0x70]
cmp qword [rbp - 0x78], r14
cmova rax, qword [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov rax, qword [rbp - 0x80]
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x50]
call fcn.140005b9c
nop
lea rcx, [rsp + 0x50]
cmp qword [rsp + 0x68], 7
cmova rcx, qword [rsp + 0x50]
call fcn.140074a48
shr rax, 0x20
test eax, eax
jne 0x140002f6c
lea rcx, [rsp + 0x50]
call fcn.140003a7c
nop
mov rdx, qword [rbp - 0x78]
cmp rdx, r14
jbe 0x140002d26
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, r15
jb 0x140002d21
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002d21
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140073824
mov rax, rbx
mov rcx, qword [rbp - 0x60]
sub rax, rcx
mov r12d, 0xd
cmp rax, r12
jb 0x140002f80
lea r9, [rbp - 0x70]
cmp qword [rbp - 0x58], r14
cmova r9, qword [rbp - 0x70]
mov qword [rsp + 0x30], r12
lea r13, str.zelsconfigs
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0x70]
call fcn.1400052c4
nop
lea rax, [rsp + 0x70]
cmp qword [rbp - 0x78], r14
cmova rax, qword [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov rax, qword [rbp - 0x80]
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x50]
call fcn.140005b9c
nop
lea rcx, [rsp + 0x50]
call fcn.1400028c0
mov dil, al
lea rcx, [rsp + 0x50]
call fcn.140003a7c
nop
mov rdx, qword [rbp - 0x78]
cmp rdx, r14
jbe 0x140002dec
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, r15
jb 0x140002de7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002de7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140073824
test dil, dil
jne 0x140002ec2
mov rax, qword [rbp - 0x60]
sub rbx, rax
cmp rbx, r12
jb 0x140002f86
lea r9, [rbp - 0x70]
cmp qword [rbp - 0x58], r14
cmova r9, qword [rbp - 0x70]
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x50]
call fcn.1400052c4
nop
lea rax, [rsp + 0x50]
cmp qword [rsp + 0x68], r14
cmova rax, qword [rsp + 0x50]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x70]
call fcn.140005b9c
nop
lea rcx, [rsp + 0x70]
cmp qword [rbp - 0x78], 7
cmova rcx, qword [rsp + 0x70]
call fcn.140074a48
shr rax, 0x20
test eax, eax
jne 0x140002f4c
lea rcx, [rsp + 0x70]
call fcn.140003a7c
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, r14
jbe 0x140002ec2
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, r15
jb 0x140002ebd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002ebd
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140073824
call fcn.14000d43c
lea rcx, str.Error_Code_22245___Restart_PC_To_Fix
call fcn.14000181c
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::basic_istream_char__struct_std::char_traits_char__::get_void____ptr64]
nop
mov rdx, qword [rbp - 0x58]
cmp rdx, r14
jbe 0x140002f1a
inc rdx
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, r15
jb 0x140002f15
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002f15
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140073824
xor eax, eax
mov rcx, qword [rbp + 0x1e0]
xor rcx, rsp
call fcn.1400737c0
lea r11, [rsp + 0x2f0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
lea r8, [rsp + 0x70]
mov edx, eax
lea rcx, str.create_directory
call fcn.14000278c
nop
call fcn.140001a28
int3
call fcn.140001a28
nop
lea r8, [rsp + 0x50]
mov edx, eax
lea rcx, str.create_directory
call fcn.14000278c
nop
call fcn.140001a28
int3
call fcn.140001a28
int3