Function at 0x140039d10
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x210]
sub rsp, 0x310
mov rax, qword [0x1400d6040]
xor rax, rsp
mov qword [rbp + 0x200], rax
xor ebx, ebx
lea rax, [rbp - 0x10]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [rbx + 0x1a]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xorps xmm0, xmm0
test eax, eax
js 0x140039dce
movups xmmword [rbp - 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x20], xmm1
lea rax, [rbp - 0x10]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], bx
jne 0x140039d82
lea rdx, [rbp - 0x10]
lea rcx, [rbp - 0x30]
call fcn.14003a930
nop
lea rdx, [rbp - 0x30]
cmp qword [rbp - 0x18], 7
cmova rdx, qword [rbp - 0x30]
mov rax, qword [rbp - 0x20]
lea r8, [rdx + rax*2]
lea rdx, [rbp - 0x30]
cmova rdx, qword [rbp - 0x30]
lea rcx, [rbp - 0x50]
call fcn.14003a720
nop
lea rcx, [rbp - 0x30]
call fcn.14003a620
jmp 0x140039dee
movups xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x40], rbx
mov qword [rbp - 0x38], rbx
xor r8d, r8d
lea rdx, [0x1400af058]
lea rcx, [rbp - 0x50]
call fcn.140001a30
nop
movabs rax, 0x7fffffffffffffff
mov r14, rax
mov r13, qword [rbp - 0x40]
sub r14, r13
cmp r14, 0xb
jb 0x14003a4cd
lea r12, [rbp - 0x50]
cmp qword [rbp - 0x38], 0xf
cmova r12, qword [rbp - 0x50]
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
lea r15, [r13 + 0xb]
mov esi, 0xf
mov ebx, esi
lea rdi, [rsp + 0x30]
movabs rcx, 0x8000000000000000
lea edx, [rsi + 7]
cmp r15, rbx
jbe 0x140039eba
mov rbx, r15
or rbx, rsi
cmp rbx, rax
jbe 0x140039e7a
mov rbx, rax
lea rax, [rcx + 0x27]
mov rcx, rax
call fcn.1400a9e28
test rax, rax
je 0x140039e9d
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x140039eb5
cmp rbx, rdx
cmovb rbx, rdx
lea rcx, [rbx + 1]
cmp rcx, 0x1000
jb 0x140039ea4
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x14003a48b
jmp 0x140039e5f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rcx, rcx
je 0x140039eb3
call fcn.1400a9e28
mov rdi, rax
jmp 0x140039eb5
xor edi, edi
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x48], rbx
mov r8, r13
mov rdx, r12
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
movsd xmm0, qword [str._rrexternal]
movsd qword [rdi + r13], xmm0
movzx eax, word [0x1400b7838]
mov word [rdi + r13 + 8], ax
movzx eax, byte [0x1400b783a]
mov byte [rdi + r13 + 0xa], al
mov byte [rdi + r15], 0
mov rdi, qword [rsp + 0x40]
lea rbx, [rsp + 0x30]
cmp qword [rsp + 0x48], 0xf
cmova rbx, qword [rsp + 0x30]
call fcn.1400a916c
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rdi
lea r8, [rsp + 0x60]
mov edx, eax
lea rcx, [rbp - 0x80]
call fcn.1400395e0
nop
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x60]
call fcn.140039c30
movsd xmm0, qword [rax]
movsd qword [rsp + 0x50], xmm0
mov ecx, dword [rax + 8]
mov dword [rbp - 0x60], ecx
lea rax, [0x1400d60c8]
mov qword [rbp - 0x58], rax
movaps xmm0, xmmword [rbp - 0x60]
movdqa xmmword [rbp - 0x60], xmm0
mov eax, dword [rsp + 0x50]
test eax, eax
je 0x14003a006
cmp eax, 1
sete bl
lea rcx, [rbp - 0x80]
call fcn.14003a620
nop
lea rcx, [rsp + 0x30]
call fcn.140002060
test bl, bl
je 0x14003a10d
lea r12, [rbp - 0x50]
cmp qword [rbp - 0x38], 0xf
cmova r12, qword [rbp - 0x50]
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
mov rbx, rsi
lea rdi, [rsp + 0x30]
cmp r15, rbx
jbe 0x14003a05b
mov rbx, r15
or rbx, 0xf
movabs rax, 0x7fffffffffffffff
cmp rbx, rax
jbe 0x14003a015
mov rbx, rax
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.1400a9e28
test rax, rax
je 0x14003a03e
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x14003a056
mov bl, 1
test ecx, ecx
jne 0x14003a491
jmp 0x140039f78
cmp rbx, 0x16
mov eax, 0x16
cmovb rbx, rax
lea rcx, [rbx + 1]
cmp rcx, 0x1000
jb 0x14003a045
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x14003a4a6
jmp 0x140039feb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rcx, rcx
je 0x14003a054
call fcn.1400a9e28
mov rdi, rax
jmp 0x14003a056
xor edi, edi
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x48], rbx
mov r8, r13
mov rdx, r12
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
movsd xmm0, qword [str._rrexternal]
movsd qword [rdi + r13], xmm0
movzx eax, word [0x1400b7838]
mov word [rdi + r13 + 8], ax
movzx eax, byte [0x1400b783a]
mov byte [rdi + r13 + 0xa], al
mov byte [rdi + r15], 0
mov rdi, qword [rsp + 0x40]
lea rbx, [rsp + 0x30]
cmp qword [rsp + 0x48], 0xf
cmova rbx, qword [rsp + 0x30]
call fcn.1400a916c
mov qword [rbp - 0x60], rbx
mov qword [rbp - 0x58], rdi
lea r8, [rbp - 0x60]
mov edx, eax
lea rcx, [rsp + 0x60]
call fcn.1400395e0
nop
lea rcx, [rsp + 0x60]
cmp qword [rsp + 0x78], 7
cmova rcx, qword [rsp + 0x60]
call fcn.1400a93cc
mov rdx, rax
shr rax, 0x20
test eax, eax
jne 0x14003a4d3
lea rcx, [rsp + 0x60]
call fcn.14003a620
nop
lea rcx, [rsp + 0x30]
call fcn.140002060
cmp r14, 0x13
jb 0x14003a4e9
lea r15, [rbp - 0x50]
cmp qword [rbp - 0x38], 0xf
mov r12, qword [rbp - 0x50]
cmova r15, r12
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
lea r14, [r13 + 0x13]
mov rbx, rsi
lea rdi, [rsp + 0x30]
cmp r14, rbx
jbe 0x14003a1d6
mov rbx, r14
or rbx, 0xf
movabs rax, 0x7fffffffffffffff
cmp rbx, rax
jbe 0x14003a190
mov rbx, rax
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.1400a9e28
test rax, rax
je 0x14003a1b9
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x14003a1d1
cmp rbx, 0x16
mov eax, 0x16
cmovb rbx, rax
lea rcx, [rbx + 1]
cmp rcx, 0x1000
jb 0x14003a1c0
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x14003a4ac
jmp 0x14003a175
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rcx, rcx
je 0x14003a1cf
call fcn.1400a9e28
mov rdi, rax
jmp 0x14003a1d1
xor edi, edi
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], rbx
mov r8, r13
mov rdx, r15
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
movups xmm0, xmmword [str._rrexternalconfigs]
movups xmmword [rdi + r13], xmm0
movzx eax, word [0x1400b7850]
mov word [rdi + r13 + 0x10], ax
movzx eax, byte [0x1400b7852]
mov byte [rdi + r13 + 0x12], al
mov byte [rdi + r14], 0
mov rdi, qword [rsp + 0x40]
lea rbx, [rsp + 0x30]
cmp qword [rsp + 0x48], 0xf
cmova rbx, qword [rsp + 0x30]
call fcn.1400a916c
mov qword [rbp - 0x60], rbx
mov qword [rbp - 0x58], rdi
lea r8, [rbp - 0x60]
mov edx, eax
lea rcx, [rbp - 0x80]
call fcn.1400395e0
nop
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x60]
call fcn.140039c30
movsd xmm0, qword [rax]
movsd qword [rsp + 0x50], xmm0
mov ecx, dword [rax + 8]
mov dword [rbp - 0x60], ecx
lea rax, [0x1400d60c8]
mov qword [rbp - 0x58], rax
movaps xmm0, xmmword [rbp - 0x60]
movdqa xmmword [rbp - 0x60], xmm0
mov eax, dword [rsp + 0x50]
test eax, eax
je 0x14003a31a
cmp eax, 1
sete bl
lea rcx, [rbp - 0x80]
call fcn.14003a620
nop
lea rcx, [rsp + 0x30]
call fcn.140002060
test bl, bl
je 0x14003a41b
lea rdi, [rbp - 0x50]
cmp qword [rbp - 0x38], 0xf
cmova rdi, r12
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
lea rbx, [rsp + 0x30]
cmp r14, 0xf
jbe 0x14003a36f
mov rsi, r14
or rsi, 0xf
movabs rax, 0x7fffffffffffffff
cmp rsi, rax
jbe 0x14003a329
mov rsi, rax
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.1400a9e28
test rax, rax
je 0x14003a352
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x14003a36a
mov bl, 1
test ecx, ecx
jne 0x14003a4b2
jmp 0x14003a28f
cmp rsi, 0x16
mov eax, 0x16
cmovb rsi, rax
lea rcx, [rsi + 1]
cmp rcx, 0x1000
jb 0x14003a359
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x14003a4c7
jmp 0x14003a2ff
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rcx, rcx
je 0x14003a368
call fcn.1400a9e28
mov rbx, rax
jmp 0x14003a36a
xor ebx, ebx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], rsi
mov r8, r13
mov rdx, rdi
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
movups xmm0, xmmword [str._rrexternalconfigs]
movups xmmword [rbx + r13], xmm0
movzx eax, word [0x1400b7850]
mov word [rbx + r13 + 0x10], ax
movzx eax, byte [0x1400b7852]
mov byte [rbx + r13 + 0x12], al
mov byte [rbx + r14], 0
mov rdi, qword [rsp + 0x40]
lea rbx, [rsp + 0x30]
cmp qword [rsp + 0x48], 0xf
cmova rbx, qword [rsp + 0x30]
call fcn.1400a916c
mov qword [rbp - 0x60], rbx
mov qword [rbp - 0x58], rdi
lea r8, [rbp - 0x60]
mov edx, eax
lea rcx, [rsp + 0x60]
call fcn.1400395e0
nop
lea rcx, [rsp + 0x60]
cmp qword [rsp + 0x78], 7
cmova rcx, qword [rsp + 0x60]
call fcn.1400a93cc
mov rdx, rax
shr rax, 0x20
test eax, eax
jne 0x14003a475
lea rcx, [rsp + 0x60]
call fcn.14003a620
nop
lea rcx, [rsp + 0x30]
call fcn.140002060
call fcn.1400416f0
lea rcx, str._rrexternal_status_:_press_enter_to_close_console__closes_cheat_
call fcn.140038f00
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
lea rcx, [rbp - 0x50]
call fcn.140002060
xor eax, eax
mov rcx, qword [rbp + 0x200]
xor rcx, rsp
call fcn.1400a9ce0
lea r11, [rsp + 0x310]
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
shr rdx, 0x20
lea r8, [rsp + 0x60]
lea rcx, str.create_directory
call fcn.140039b60
nop
call fcn.140001930
nop
lea r8, [rbp - 0x80]
lea rdx, [rbp - 0x60]
lea rcx, str.exists
call fcn.140039bd0
nop
call fcn.140001930
int3
call fcn.140001930
nop
lea r8, [rbp - 0x80]
lea rdx, [rbp - 0x60]
lea rcx, str.exists
call fcn.140039bd0
nop
call fcn.140001930
int3
call fcn.1400019d0
nop
shr rdx, 0x20
lea r8, [rsp + 0x60]
lea rcx, str.create_directory
call fcn.140039b60
nop
call fcn.1400019d0
int3