Function at 0x140030bf0
Capabilities:
Get common file path
Get startup folder

Disassembly:
sub rsp, 0x3b8
mov rax, qword [0x140119040]
xor rax, rsp
mov qword [rsp + 0x3a8], rax
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rsp + 0x38], rax
mov dx, 3
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov dx, 7
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
lea rax, [rsp + 0x170]
mov qword [rsp + 0x48], rax
lea rdx, str.cs2.exe
mov rcx, qword [rsp + 0x48]
call fcn.140006c60
mov qword [rsp + 0x50], rax
mov rdx, qword [rsp + 0x50]
lea rcx, [0x1401bc608]
call fcn.14002f430
mov dword [rsp + 0x44], eax
lea rax, [rsp + 0x290]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 5
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
je 0x140030cc2
lea rdx, [0x1400e94b2]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140021590
mov qword [rsp + 0x58], rax
lea rdx, [0x140021970]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
call fcn.140030bd0
lea rdx, [rsp + 0x290]
lea rcx, [0x1401bc8d0]
call fcn.14001f040
lea rdx, [0x1400eb420]
lea rcx, [0x1401bc8d0]
call fcn.140032630
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 1
je 0x140030d08
cmp dword [rsp + 0x40], 2
je 0x140030d1c
cmp dword [rsp + 0x40], 3
je 0x140030d30
jmp 0x140030d44
mov dx, 4
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
call fcn.140030bd0
mov dx, 4
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
call fcn.140030bd0
mov dx, 4
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
call fcn.140030bd0
call fcn.140035230
movzx eax, al
test eax, eax
jne 0x140030d64
mov dx, 4
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
call fcn.140030bd0
lea rcx, [0x1401bc640]
call fcn.14002e0d0
movzx eax, al
test eax, eax
jne 0x140030d8b
mov dx, 4
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
call fcn.140030bd0
xor r8d, r8d
lea rdx, [0x1401bc8d0]
lea rcx, [rsp + 0x130]
call fcn.140033cf0
nop
lea rcx, [rsp + 0x130]
call fcn.1400309c0
mov byte [rsp + 0x30], al
lea rcx, [rsp + 0x130]
call fcn.140030030
movzx eax, byte [rsp + 0x30]
test eax, eax
je 0x140030dcc
jmp 0x140030e12
xor r8d, r8d
lea rdx, [0x1401bc8d0]
lea rcx, [rsp + 0x150]
call fcn.140033cf0
nop
lea rcx, [rsp + 0x150]
call fcn.140030b80
mov byte [rsp + 0x31], al
lea rcx, [rsp + 0x150]
call fcn.140030030
movzx eax, byte [rsp + 0x31]
test eax, eax
je 0x140030e0d
jmp 0x140030e12
call fcn.140030bd0
lea rdx, [0x140021970]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov dx, 2
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov dx, 6
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
lea rdx, [0x140021970]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov dx, 7
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
nop
lea rax, [rsp + 0x210]
mov qword [rsp + 0x60], rax
lea rdx, [0x14001c210]
mov rcx, qword [rsp + 0x60]
call fcn.140033d40
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0xa0], rax
lea rax, [rsp + 0x190]
mov qword [rsp + 0x78], rax
lea rdx, [0x1400eb418]
mov rcx, qword [rsp + 0x78]
call fcn.140006c60
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0xa8], rax
lea rax, [rsp + 0x1b0]
mov qword [rsp + 0x90], rax
lea rdx, [0x1400eb438]
mov rcx, qword [rsp + 0x90]
call fcn.140006c60
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0xb0], rax
mov r9, qword [rsp + 0xa0]
mov r8, qword [rsp + 0xa8]
mov rdx, qword [rsp + 0xb0]
mov rcx, qword [0x1401bc6f8]
call fcn.1400d5b70
nop
jmp 0x140030f4b
mov rcx, qword [rsp + 0x3a8]
xor rcx, rsp
call fcn.1400e1190
add rsp, 0x3b8
ret