Function at 0x140172a50
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r12
push r13
push r14
push r15
sub rsp, 0x410
mov rax, qword [0x140452d00]
xor rax, rsp
mov qword [rsp + 0x400], rax
xor edi, edi
lea rax, [rsp + 0x2f0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, reloc.WLDAP32.dll_Ordinal_26
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
xorps xmm0, xmm0
xorps xmm1, xmm1
movups xmmword [rsp + 0x30], xmm0
movdqu xmmword [rsp + 0x40], xmm1
test eax, eax
je 0x140172ac6
xor r8d, r8d
lea rdx, [0x14041eab6]
jmp 0x140172ae6
lea rax, [rsp + 0x2f0]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], dil
jne 0x140172ad5
lea rdx, [rsp + 0x2f0]
lea rcx, [rsp + 0x30]
call fcn.14016ef00
nop
mov r8d, Ordinal_33
lea rdx, str.discord_sentry_scope_v3.json
lea rcx, [rsp + 0x30]
call fcn.14016ee30
xorps xmm0, xmm0
movups xmmword [rsp + 0x1c0], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x1d0], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x1c0], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x1d0], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x140172b85
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140172b80
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140172b80
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14036d690
movdqa xmm0, xmmword [0x140426750]
movdqu xmmword [rsp + 0x40], xmm0
mov byte [rsp + 0x30], 0
xor edx, edx
mov r8d, 0x110
lea rcx, [rsp + 0x1e0]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x1c0]
cmp qword [rsp + 0x1d8], 0xf
cmova rdx, qword [rsp + 0x1c0]
lea rcx, [rsp + 0x1e0]
call fcn.14017daa0
mov rax, qword [rsp + 0x1e0]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x1e0], rax
mov rax, qword [rsp + 0x1e0]
movsxd rcx, dword [rax + 4]
lea r8d, [rcx - 0xb0]
mov dword [rsp + rcx + 0x1dc], r8d
cmp qword [rsp + 0x270], 0
jne 0x140172c48
xorps xmm0, xmm0
movups xmmword [0x1404656d8], xmm0
mov qword [0x1404656e8], rdi
mov qword [0x1404656f0], rdi
xor r8d, r8d
lea rdx, [0x14041eab6]
lea rcx, [0x1404656d8]
call fcn.14016ef00
jmp 0x140173192
xor edx, edx
lea rcx, [rsp + 0x1b0]
call fcn.14017dcc0
nop
mov qword [rsp + 0xb0], rdi
lea rax, [rsp + 0x1e0]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x1e0]
movsxd rcx, dword [rax + 4]
mov rax, qword [rsp + rcx + 0x228]
mov qword [rsp + 0x38], rax
lea r8, [rsp + 0x78]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0xc0]
call fcn.140181c80
nop
lea r8, [rsp + 0x1b0]
mov rcx, rax
call fcn.14017d620
nop
lea rcx, [rsp + 0x108]
call fcn.14017d480
mov rcx, qword [rsp + 0xf8]
test rcx, rcx
je 0x140172cde
mov rax, qword [rcx]
lea rdx, [rsp + 0xc0]
cmp rcx, rdx
setne dl
call qword [rax + reloc.WLDAP32.dll_Ordinal_32]
nop
cmp byte [rsp + 0x1b0], 1
jne 0x140172d91
mov rax, qword [rsp + 0x1b8]
mov r14, qword [rax]
mov rbx, qword [r14 + 8]
mov rsi, r14
mov r12d, 5
cmp byte [rbx + 0x19], 0
jne 0x140172d54
nop word [rax + rax]
lea rcx, [rbx + 0x20]
mov rdi, qword [rcx + 0x10]
cmp qword [rcx + 0x18], 0xf
jbe 0x140172d22
mov rcx, qword [rcx]
mov r8, rdi
cmp rdi, r12
cmova r8, r12
lea rdx, str.scope
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x140172e81
js 0x140172e8a
mov rsi, rbx
mov rbx, qword [rbx]
cmp byte [rbx + 0x19], 0
je 0x140172d10
xor edi, edi
cmp byte [rsi + 0x19], 0
jne 0x140172d91
lea rcx, [rsi + 0x20]
mov rbx, qword [rcx + 0x10]
cmp qword [rcx + 0x18], 0xf
jbe 0x140172d6c
mov rcx, qword [rcx]
mov r8, rbx
cmp rbx, 5
cmova r8, r12
lea rdx, str.scope
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x140172e93
js 0x140172e9d
xorps xmm0, xmm0
movups xmmword [0x1404656d8], xmm0
mov qword [0x1404656e8], rdi
mov qword [0x1404656f0], rdi
xor r8d, r8d
lea rdx, [0x14041eab6]
lea rcx, [0x1404656d8]
call fcn.14016ef00
nop
movzx edx, byte [rsp + 0x1b0]
lea rcx, [rsp + 0x1b8]
call fcn.14017e8c0
nop
mov rax, qword [rsp + 0x1e0]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x1e0], rax
mov rax, qword [rsp + 0x1e0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rsp + rcx + 0x1dc], edx
lea rcx, [rsp + 0x1f0]
call fcn.14017c720
lea rcx, [rsp + 0x1f8]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rsp + 0x290]
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 [rsp + 0x1d8]
cmp rdx, 0xf
jbe 0x140173274
inc rdx
mov rcx, qword [rsp + 0x1c0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14017322e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14017322e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
cmp rdi, r12
jae 0x140172d46
mov rbx, qword [rbx + 0x10]
jmp 0x140172d4c
cmp rbx, 5
ja 0x140172d91
cmp rsi, r14
je 0x140172d91
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], rdi
mov r8, r12
lea rdx, str.scope
lea rcx, [rsp + 0x30]
call fcn.14016ef00
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x1b0]
call fcn.140186ed0
cmp byte [rax], 1
jne 0x140172d91
mov rax, qword [rax + 8]
mov r14, qword [rax]
mov rbx, qword [r14 + 8]
mov rsi, r14
mov r15d, 4
cmp byte [rbx + 0x19], 0
jne 0x140172f3d
lea rcx, [rbx + 0x20]
mov rdi, qword [rcx + 0x10]
cmp qword [rcx + 0x18], 0xf
jbe 0x140172f13
mov rcx, qword [rcx]
mov r8, rdi
cmp rdi, r15
cmova r8, r15
lea rdx, str.user
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x140172f7c
js 0x140172f81
mov rsi, rbx
mov rbx, qword [rbx]
cmp byte [rbx + 0x19], 0
je 0x140172f01
xor edi, edi
cmp byte [rsi + 0x19], 0
jne 0x140172d91
lea rcx, [rsi + 0x20]
mov rbx, qword [rcx + 0x10]
cmp qword [rcx + 0x18], 0xf
jbe 0x140172f59
mov rcx, qword [rcx]
mov r8, rbx
cmp rbx, 4
cmova r8, r15
lea rdx, str.user
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x140172f87
jns 0x140172d91
jmp 0x140172f91
cmp rdi, r15
jae 0x140172f2f
mov rbx, qword [rbx + 0x10]
jmp 0x140172f35
cmp rbx, 4
ja 0x140172d91
cmp rsi, r14
je 0x140172d91
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x68], rdi
mov r8, r12
lea rdx, str.scope
lea rcx, [rsp + 0x50]
call fcn.14016ef00
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x1b0]
call fcn.140186ed0
mov rbx, rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], rdi
mov r8, r15
lea rdx, str.user
lea rcx, [rsp + 0x30]
call fcn.14016ef00
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.140186ed0
cmp byte [rax], 1
jne 0x140172d91
mov rax, qword [rax + 8]
mov r13, qword [rax]
mov rbx, qword [r13 + 8]
mov rsi, r13
mov r14d, 2
cmp byte [rbx + 0x19], 0
jne 0x14017306c
nop dword [rax + rax]
lea rcx, [rbx + 0x20]
mov rdi, qword [rcx + 0x10]
cmp qword [rcx + 0x18], 0xf
jbe 0x140173042
mov rcx, qword [rcx]
mov r8, rdi
cmp rdi, r14
cmova r8, r14
lea rdx, [0x140424048]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x1401730ab
js 0x1401730b0
mov rsi, rbx
mov rbx, qword [rbx]
cmp byte [rbx + 0x19], 0
je 0x140173030
xor edi, edi
cmp byte [rsi + 0x19], 0
jne 0x140172d91
lea rcx, [rsi + 0x20]
mov rbx, qword [rcx + 0x10]
cmp qword [rcx + 0x18], 0xf
jbe 0x140173088
mov rcx, qword [rcx]
mov r8, rbx
cmp rbx, 2
cmova r8, r14
lea rdx, [0x140424048]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x1401730b6
jns 0x140172d91
jmp 0x1401730c0
cmp rdi, r14
jae 0x14017305e
mov rbx, qword [rbx + 0x10]
jmp 0x140173064
cmp rbx, 2
ja 0x140172d91
cmp rsi, r13
je 0x140172d91
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x68], rdi
mov r8, r12
lea rdx, str.scope
lea rcx, [rsp + 0x50]
call fcn.14016ef00
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x1b0]
call fcn.140186ed0
mov rbx, rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x78], xmm0
mov qword [rsp + 0x88], rdi
mov qword [rsp + 0x90], rdi
mov r8, r15
lea rdx, str.user
lea rcx, [rsp + 0x78]
call fcn.14016ef00
lea rdx, [rsp + 0x78]
mov rcx, rbx
call fcn.140186ed0
mov rbx, rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x68], rdi
mov r8, r14
lea rdx, [0x140424048]
lea rcx, [rsp + 0x50]
call fcn.14016ef00
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.140186ed0
mov rcx, rax
call fcn.140181390
nop
movzx edx, byte [rsp + 0x1b0]
lea rcx, [rsp + 0x1b8]
call fcn.14017e8c0
nop
mov rax, qword [rsp + 0x1e0]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x1e0], rax
mov rax, qword [rsp + 0x1e0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rsp + rcx + 0x1dc], edx
lea rcx, [rsp + 0x1f0]
call fcn.14017c720
lea rcx, [rsp + 0x1f8]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rsp + 0x290]
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 [rsp + 0x1d8]
cmp rdx, 0xf
jbe 0x140173274
inc rdx
mov rcx, qword [rsp + 0x1c0]
cmp rdx, 0x1000
mov rax, rcx
jb 0x14017322e
mov rcx, qword [rcx - 8]
sub rax, rcx
add rdx, 0x27
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140172e7a
call fcn.14036d690
jmp 0x140173274
lea rax, [0x1404656d8]
mov rcx, qword [rsp + 0x400]
xor rcx, rsp
call fcn.14036d240
lea r11, [rsp + 0x410]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r13
ret