Function at 0x180030280
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 - 0x318]
sub rsp, 0x3f0
mov rax, qword [0x1801b9d00]
xor rax, rsp
mov qword [rbp + 0x2e0], rax
xor r13d, r13d
lea rax, [rbp + 0x1d0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r13 + 5]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jne 0x180030aae
lea rdx, [rbp + 0x1d0]
lea rcx, [rbp + 0x80]
call fcn.1800341cc
nop
lea rdx, str.skins.cfg
lea rcx, [rbp + 0xa0]
call fcn.1800341cc
nop
movabs rax, 0x7fffffffffffffff
mov rcx, qword [rbp + 0x90]
sub rax, rcx
lea r15d, [r13 + 1]
cmp rax, r15
jb 0x180030b14
lea r9, [rbp + 0x80]
cmp qword [rbp + 0x98], 0xf
cmova r9, qword [rbp + 0x80]
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x20], rcx
lea rcx, [rbp - 0x48]
call fcn.1800388a8
nop
lea rdx, [rbp + 0xa0]
lea rcx, [rbp - 0x48]
call fcn.180033f80
xorps xmm0, xmm0
movups xmmword [rbp + 0x60], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x70], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x60], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x70], xmm1
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], 0xf
mov byte [rax], r13b
mov ebx, 0x1000
mov rdx, qword [rbp - 0x30]
cmp rdx, 0xf
jbe 0x1800303d0
inc rdx
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, rbx
jb 0x1800303cb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800303cb
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 [rbp - 0x38], xmm0
mov byte [rbp - 0x48], r13b
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp + 0xc0]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rbp + 0x60]
lea rcx, [rbp + 0xc0]
call fcn.180033910
nop
cmp qword [rbp + 0x150], r13
je 0x180030976
mov rax, qword [rbp + 0xc0]
movsxd rcx, dword [rax + 4]
mov rdx, qword [rbp + rcx + 0x108]
test rdx, rdx
sete cl
mov qword [rbp - 0x10], r13
mov word [rbp - 8], 1
mov eax, dword [rbp + 0x2a]
mov dword [rbp - 6], eax
movzx eax, word [rbp + 0x2e]
mov word [rbp - 2], ax
mov qword [rbp - 0x20], rdx
mov byte [rbp - 0x18], cl
mov byte [rbp - 0x17], r13b
mov eax, dword [rbp + 0x2a]
mov dword [rbp - 0x16], eax
movzx eax, word [rbp + 0x2e]
mov word [rbp - 0x12], ax
xorps xmm0, xmm0
movups xmmword [rbp - 0x48], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x38], xmm1
movaps xmm0, xmmword [rbp - 0x20]
movdqa xmmword [rbp - 0x20], xmm0
movaps xmm1, xmmword [rbp - 0x10]
movdqa xmmword [rbp], xmm1
lea rdx, [rbp]
lea rcx, [rbp - 0x20]
call fcn.180036f1c
test al, al
je 0x1800304a2
movdqa xmm0, xmmword [0x18017b150]
movdqu xmmword [rbp - 0x38], xmm0
mov byte [rbp - 0x48], r13b
jmp 0x1800304c6
movaps xmm0, xmmword [rbp]
movdqa xmmword [rbp + 0x20], xmm0
movaps xmm1, xmmword [rbp - 0x20]
movdqa xmmword [rbp], xmm1
lea r8, [rbp + 0x20]
lea rdx, [rbp]
lea rcx, [rbp - 0x48]
call fcn.18003ac44
nop
mov qword [rsp + 0x78], r13
lea r8, [rsp + 0x40]
lea rdx, [rbp - 0x48]
lea rcx, [rbp + 0x20]
call fcn.180036584
mov dl, byte [0x18023c0f0]
mov cl, byte [rax]
mov byte [0x18023c0f0], cl
mov byte [rax], dl
lea rcx, [rax + 8]
mov rdx, qword [0x18023c0f8]
mov r8, qword [rcx]
mov qword [0x18023c0f8], r8
mov qword [rcx], rdx
mov dl, byte [rax]
call fcn.180035e40
nop
lea rcx, [rbp + 0xd0]
call fcn.180035324
test rax, rax
jne 0x180030541
mov rax, qword [rbp + 0xc0]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0xc0]
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]
nop
mov rdx, qword [rbp - 0x30]
cmp rdx, 0xf
jbe 0x18003057b
inc rdx
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, rbx
jb 0x180030576
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180030576
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180137e5c
call fcn.1800465a0
lea r8, [0x18023c0f0]
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x28], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x30], xmm1
movabs r14, 0x8000000000000000
mov rsi, r14
movzx ecx, byte [r8]
cmp ecx, 5
ja 0x1800305bf
je 0x1800305bf
mov edx, ecx
test ecx, ecx
je 0x1800305bf
sub edx, 1
je 0x1800305db
cmp edx, 1
je 0x1800305d2
cmp ecx, 4
ja 0x1800305f0
test ecx, ecx
je 0x1800305eb
sub ecx, 1
je 0x1800305db
sub ecx, 1
jne 0x1800305f0
mov rdi, qword [r8 + 8]
mov rdi, qword [rdi]
jmp 0x1800305f7
mov rax, qword [r8 + 8]
mov rbx, qword [rax]
mov rbx, qword [rbx]
mov rdi, qword [rbp + 0x30]
jmp 0x1800305fb
mov rsi, r15
jmp 0x1800305f3
mov rsi, r13
mov rdi, qword [rbp + 0x30]
mov rbx, qword [rbp + 0x28]
movdqu xmmword [rbp - 0x40], xmm0
movdqu xmmword [rbp - 0x38], xmm1
movzx ecx, byte [r8]
cmp ecx, 5
ja 0x180030620
je 0x180030620
mov edx, ecx
test ecx, ecx
je 0x180030620
sub edx, 1
je 0x18003063d
cmp edx, 1
je 0x180030633
cmp ecx, 4
ja 0x18003064b
test ecx, ecx
je 0x18003064b
sub ecx, 1
je 0x18003063d
sub ecx, 1
jne 0x18003064b
mov r15, qword [r8 + 8]
mov r15, qword [r15 + 8]
jmp 0x180030652
mov r12, qword [r8 + 8]
mov r12, qword [r12]
mov r15, qword [rbp - 0x38]
jmp 0x180030656
mov r14, r15
mov r15, qword [rbp - 0x38]
mov r12, qword [rbp - 0x40]
movzx ecx, byte [r8]
cmp ecx, 5
ja 0x18003067b
je 0x18003067b
mov edx, ecx
test ecx, ecx
je 0x18003067b
sub edx, 1
je 0x180030676
sub edx, 1
jne 0x18003067b
cmp rdi, r15
jmp 0x18003067e
cmp rbx, r12
jmp 0x18003067e
cmp rsi, r14
setne al
test al, al
je 0x180030984
cmp ecx, 4
ja 0x1800306ab
test ecx, ecx
je 0x180030b1a
sub ecx, 1
je 0x1800306a5
sub ecx, 1
jne 0x1800306ab
mov rdx, rdi
jmp 0x1800306b7
lea rdx, [rbx + 0x40]
jmp 0x1800306b7
test rsi, rsi
jne 0x180030ade
mov rdx, r8
lea rcx, [rbp]
call fcn.180033de8
nop
mov rax, qword [0x18023c3b8]
test rax, rax
je 0x1800308e8
call rax
mov r13, rax
test rax, rax
je 0x1800308e5
call fcn.180048db0
mov qword [rbp - 0x20], rax
lea rdx, [rbp + 0x20]
mov rcx, rax
call fcn.180048ec4
mov rcx, qword [rbp + 0x20]
inc rcx
mov qword [r13 + 0x10], rcx
mov ecx, dword [rbp + 0x28]
inc ecx
mov dword [r13 + 0x2c], ecx
mov rax, qword [rbp - 0x20]
movups xmm0, xmmword [rax + 0x10]
movd dword [r13 + 0x28], xmm0
lea rdx, str.m_unDefIndex
lea rcx, [rbp - 0x48]
call fcn.1800341cc
mov rdx, rax
lea rcx, [rbp]
call fcn.180038640
mov rcx, rax
call fcn.18003693c
mov word [r13 + 0x30], ax
lea rdx, str.m_nRarity
lea rcx, [rbp - 0x48]
call fcn.1800341cc
mov rdx, rax
lea rcx, [rbp]
call fcn.180038640
mov rcx, rax
call fcn.18003693c
shl ax, 0xb
xor ax, word [r13 + 0x32]
mov ecx, 0x7800
and ax, cx
xor word [r13 + 0x32], ax
lea rdx, str.m_ID
lea rcx, [rbp - 0x48]
call fcn.1800341cc
mov rdx, rax
lea rcx, [rbp]
call fcn.180038640
mov r9, rax
movzx edx, byte [rax]
cmp edx, 5
ja 0x18003080d
je 0x1800307ee
mov r8d, edx
test edx, edx
je 0x180030b4e
sub r8d, 1
je 0x180030b4e
sub r8d, 1
je 0x180030b4e
sub r8d, 1
je 0x180030b4e
cmp r8d, 1
jne 0x180030b4e
add rax, 8
xor ecx, ecx
cmp dl, 4
cmove rcx, rax
movzx eax, byte [rcx]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
jmp 0x180030868
sub dl, 5
cmp dl, 1
setbe al
lea rcx, [r9 + 8]
neg al
sbb rdx, rdx
and rdx, rcx
xorps xmm0, xmm0
cvtsi2ss xmm0, qword [rdx]
jmp 0x180030868
mov ecx, edx
sub ecx, 6
je 0x180030834
cmp ecx, 1
jne 0x180030b4e
add rax, 8
xor ecx, ecx
cmp dl, 7
cmove rcx, rax
movsd xmm0, qword [rcx]
cvtpd2ps xmm0, xmm0
jmp 0x180030868
add rax, 8
xor ecx, ecx
cmp dl, 6
cmove rcx, rax
mov rdx, qword [rcx]
xorps xmm0, xmm0
test rdx, rdx
js 0x180030853
cvtsi2ss xmm0, rdx
jmp 0x180030868
mov rax, rdx
shr rax, 1
and edx, 1
or rax, rdx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
movss dword [rbp + 0x10], xmm0
lea r8, [rbp + 0x10]
mov edx, 6
mov rcx, r13
call fcn.180049048
mov dword [rbp - 0x10], 0x3f800000
lea r8, [rbp - 0x10]
mov edx, 7
mov rcx, r13
call fcn.180049048
and dword [rbp - 0x10], 0
lea r8, [rbp - 0x10]
mov edx, 8
mov rcx, r13
call fcn.180049048
mov rdx, r13
mov rcx, qword [rbp - 0x20]
call fcn.180048e10
test al, al
je 0x1800308e5
mov rdx, qword [0x18023c158]
cmp rdx, qword [0x18023c160]
je 0x1800308dc
mov rax, qword [r13 + 0x10]
mov qword [rdx], rax
add qword [0x18023c158], 8
jmp 0x1800308e5
lea r8, [r13 + 0x10]
call fcn.180046708
xor r13d, r13d
mov dl, byte [rbp]
lea rcx, [rbp + 8]
call fcn.180035e40
nop
lea r8, [0x18023c0f0]
movzx ecx, byte [r8]
cmp ecx, 5
ja 0x18003096e
je 0x18003096e
test ecx, ecx
je 0x18003096e
sub ecx, 1
je 0x18003091e
sub ecx, 1
jne 0x18003096e
add rdi, 0x10
jmp 0x180030656
mov rax, rbx
mov rbx, qword [rbx + 0x10]
cmp byte [rbx + 0x19], r13b
je 0x18003094d
mov rbx, qword [rax + 8]
jmp 0x180030942
cmp rax, qword [rbx + 0x10]
jne 0x180030656
mov rax, rbx
mov rbx, qword [rbx + 8]
cmp byte [rbx + 0x19], r13b
je 0x180030931
jmp 0x180030656
mov rcx, qword [rbx]
cmp byte [rcx + 0x19], r13b
jne 0x180030656
mov rbx, rcx
mov rax, qword [rcx]
mov rcx, rax
cmp byte [rax + 0x19], r13b
je 0x18003095a
jmp 0x180030656
inc rsi
jmp 0x180030656
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1800367dc
jmp 0x180030989
mov ebx, 0x1000
mov rax, qword [rbp + 0xc0]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0xc0], rax
mov rax, qword [rbp + 0xc0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx + 0xbc], edx
lea rcx, [rbp + 0xd0]
call fcn.1800338a4
lea rcx, [rbp + 0xd8]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x170]
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 + 0x78]
cmp rdx, 0xf
jbe 0x180030a1c
inc rdx
mov rcx, qword [rbp + 0x60]
mov rax, rcx
cmp rdx, rbx
jb 0x180030a17
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180030a17
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 [rbp + 0x70], xmm0
mov byte [rbp + 0x60], r13b
mov rdx, qword [rbp + 0xb8]
cmp rdx, 0xf
jbe 0x180030a6e
inc rdx
mov rcx, qword [rbp + 0xa0]
mov rax, rcx
cmp rdx, rbx
jb 0x180030a68
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180030a68
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 + 0x98]
cmp rdx, 0xf
jbe 0x180030aae
inc rdx
mov rcx, qword [rbp + 0x80]
mov rax, rcx
cmp rdx, rbx
jb 0x180030aa9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180030aa9
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 + 0x2e0]
xor rcx, rsp
call fcn.180137ad0
lea r11, [rsp + 0x3f0]
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 rdx, str.cannot_get_value
lea rcx, [rbp - 0x48]
call fcn.1800341cc
nop
lea r8, [rbp - 0x48]
mov edx, 0xd6
lea rcx, [rsp + 0x40]
call fcn.180036b20
lea rdx, [0x1801846a8]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
call fcn.18002f6a8
nop
lea rdx, str.cannot_get_value
lea rcx, [rbp - 0x48]
call fcn.1800341cc
nop
lea r8, [rbp - 0x48]
mov edx, 0xd6
lea rcx, [rbp - 0x80]
call fcn.180036b20
lea rdx, [0x1801846a8]
lea rcx, [rbp - 0x80]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
mov rcx, r9
call fcn.180035748
mov qword [rbp - 0x20], rax
lea r8, [rbp - 0x20]
lea rcx, [rbp - 0x48]
call fcn.180043bb8
nop
mov r8, rax
lea rcx, [rbp + 0x20]
call fcn.180043c44
lea rdx, [0x180184688]
lea rcx, [rbp + 0x20]
call sub.VCRUNTIME140.dll__CxxThrowException
int3