Function at 0x180030bec
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rdi
push rbp
lea rbp, [rsp - 0x200]
sub rsp, 0x300
mov rax, qword [0x1801b9d00]
xor rax, rsp
mov qword [rbp + 0x1f0], rax
lea rax, [rbp + 0xe0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 5]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jne 0x180030ea0
lea rdx, [rbp + 0xe0]
lea rcx, [rbp - 0x78]
call fcn.1800341cc
nop
lea rdx, str.skins.cfg
lea rcx, [rbp - 0x58]
call fcn.1800341cc
nop
movabs rax, 0x7fffffffffffffff
mov rcx, qword [rbp - 0x68]
sub rax, rcx
cmp rax, 1
jb 0x180030ec0
lea r9, [rbp - 0x78]
cmp qword [rbp - 0x60], 0xf
cmova r9, qword [rbp - 0x78]
mov qword [rsp + 0x30], 1
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0x48]
call fcn.1800388a8
nop
lea rdx, [rbp - 0x58]
lea rcx, [rsp + 0x48]
call fcn.180033f80
xorps xmm0, xmm0
movups xmmword [rsp + 0x68], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x78], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x68], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x78], xmm1
and qword [rax + 0x10], 0
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov edi, 0x1000
mov rdx, qword [rsp + 0x60]
cmp rdx, 0xf
jbe 0x180030d1d
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, rdi
jb 0x180030d18
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180030d18
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180137e5c
movdqa xmm0, xmmword [0x18017b150]
movdqu xmmword [rsp + 0x58], xmm0
mov byte [rsp + 0x48], 0
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp - 0x30]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x30]
call fcn.180032d74
nop
cmp qword [rbp + 0x58], 0
je 0x180030d8c
lea rcx, [rbp - 0x30]
call fcn.180033a34
lea rcx, [rbp - 0x28]
call fcn.180035324
test rax, rax
jne 0x180030d99
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x30]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
jmp 0x180030d99
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1800367dc
nop
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x30], rax
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx - 0x34], edx
lea rcx, [rbp - 0x28]
call fcn.1800338a4
lea rcx, [rbp - 0x20]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x78]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
mov rdx, qword [rbp - 0x80]
cmp rdx, 0xf
jbe 0x180030e18
inc rdx
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, rdi
jb 0x180030e13
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180030e13
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180137e5c
movdqa xmm0, xmmword [0x18017b150]
movdqu xmmword [rsp + 0x78], xmm0
mov byte [rsp + 0x68], 0
mov rdx, qword [rbp - 0x40]
cmp rdx, 0xf
jbe 0x180030e66
inc rdx
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, rdi
jb 0x180030e60
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180030e60
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180137e5c
nop
mov rdx, qword [rbp - 0x60]
cmp rdx, 0xf
jbe 0x180030ea0
inc rdx
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, rdi
jb 0x180030e9b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180030e9b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180137e5c
mov rcx, qword [rbp + 0x1f0]
xor rcx, rsp
call fcn.180137ad0
mov rdi, qword [rsp + 0x310]
add rsp, 0x300
pop rbp
ret
call fcn.18002f6a8
nop
int3