Function at 0x140008760
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 rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x140087010]
xor rax, rsp
mov qword [rbp - 8], rax
mov r12, qword [0x1400884f8]
lea rdx, [0x1400885a8]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], 0
jne 0x1400087a6
test r8, r8
jne 0x1400087bc
xor al, al
jmp 0x140008a5a
xorps xmm0, xmm0
movups xmmword [rbp - 0x28], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x18], xmm1
lea rcx, [rbp - 0x28]
call fcn.14000a270
nop
lea rdi, [rbp - 0x28]
mov r8, qword [rbp - 0x28]
cmp qword [rbp - 0x10], 0x10
cmovae rdi, r8
lea rcx, [rbp - 0x28]
cmovae rcx, r8
mov rsi, qword [rbp - 0x18]
add rsi, rcx
lea rbx, [rbp - 0x28]
cmp qword [rbp - 0x10], 0x10
cmovae rbx, r8
cmp rbx, rsi
je 0x140008824
sub rdi, rbx
nop word [rax + rax]
movsx ecx, byte [rbx]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_toupper]
mov byte [rbx + rdi], al
inc rbx
cmp rbx, rsi
jne 0x140008810
mov ecx, 0x104
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x1a]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jne 0x1400089eb
mov ecx, 0x104
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
lea r15, [rbp - 0x28]
cmp qword [rbp - 0x10], 0x10
cmovae r15, qword [rbp - 0x28]
movdqa xmm0, xmmword [0x140079cf0]
mov dword [rbp - 0x38], 0x3c9219e8
mov dword [rbp - 0x34], 0xdc128331
mov rax, qword gs:[0x58]
mov r14, qword [rax]
mov ecx, 0x8fc
mov eax, dword [rcx + r14]
mov ebx, 0x648
add rbx, r14
test al, 1
jne 0x1400088f6
or eax, 1
mov dword [rcx + r14], eax
mov byte [rbx + 0x19], 1
lea rax, [rbx + 0x18]
lea rcx, [rbp - 0x30]
cmp rbx, rcx
ja 0x1400088d8
lea rcx, [rbp - 0x48]
cmp rax, rcx
jb 0x1400088d8
movups xmmword [rbx], xmm0
movsd xmm0, qword [rbp - 0x38]
movsd qword [rbx + 0x10], xmm0
mov byte [rbx + 0x18], 0x9b
jmp 0x1400088e9
movups xmmword [rbx], xmm0
movsd xmm0, qword [rbp - 0x38]
movsd qword [rbx + 0x10], xmm0
mov byte [rbx + 0x18], 0x9b
lea rcx, [0x14006f1d0]
call fcn.1400684c0
nop
cmp byte [rbx + 0x19], 0
je 0x140008963
xor byte [rbx], 0x9b
xor byte [rbx + 1], 0x37
xor byte [rbx + 2], 0xd9
xor byte [rbx + 3], 0x79
xor byte [rbx + 4], 0x7d
xor byte [rbx + 5], 0xd3
xor byte [rbx + 6], 0x5b
xor byte [rbx + 7], 0x99
xor byte [rbx + 8], 0x9b
xor byte [rbx + 9], 0x37
xor byte [rbx + 0xa], 0xd9
xor byte [rbx + 0xb], 0x79
xor byte [rbx + 0xc], 0x7d
xor byte [rbx + 0xd], 0xd3
xor byte [rbx + 0xe], 0x5b
xor byte [rbx + 0xf], 0x99
xor byte [rbx + 0x10], 0x9b
xor byte [rbx + 0x11], 0x37
xor byte [rbx + 0x12], 0xd9
xor byte [rbx + 0x13], 0x79
xor byte [rbx + 0x14], 0x7d
xor byte [rbx + 0x15], 0xd3
xor byte [rbx + 0x16], 0x5b
xor byte [rbx + 0x17], 0x99
xor byte [rbx + 0x18], 0x9b
mov byte [rbx + 0x19], 0
mov qword [rsp + 0x20], r15
mov r9, rdi
mov r8, rbx
mov edx, 0x104
mov rcx, rsi
call fcn.140002540
mov ecx, 0x920
mov eax, dword [rcx + r14]
mov edx, 0x2f8
test al, 1
jne 0x1400089b0
or eax, 1
mov dword [rcx + r14], eax
lea rbx, [rdx + r14]
mov word [rbx + 1], 0x189
mov byte [rbx], 0x40
lea rcx, [0x14006f1b0]
call fcn.1400684c0
nop
jmp 0x1400089b4
lea rbx, [rdx + r14]
cmp byte [rbx + 2], 0
je 0x1400089c5
xor byte [rbx], 0x21
xor byte [rbx + 1], 0x89
mov byte [rbx + 2], 0
mov r8, rbx
mov rdx, rsi
lea rcx, [rbp - 0x50]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
test eax, eax
je 0x140008a26
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor bl, bl
mov rdx, qword [rbp - 0x10]
cmp rdx, 0x10
jb 0x140008a57
inc rdx
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140008a52
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140008a52
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rcx, r12
call fcn.140008c70
mov rcx, rdi
test al, al
je 0x1400089dc
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov bl, 1
jmp 0x1400089ed
call fcn.1400683e4
movzx eax, bl
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140068380
lea r11, [rsp + 0x80]
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 rbp
ret