Function at 0x140031080
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x200]
sub rsp, 0x300
mov rax, qword [0x1400c5180]
xor rax, rsp
mov qword [rbp + 0x1f0], rax
mov rdi, rcx
mov qword [rsp + 0x40], rcx
xor r14d, r14d
xor edx, edx
mov r8d, 0x20a
lea rcx, [rbp - 0x20]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rbp - 0x20]
mov ecx, 0x105
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
lea rbx, [r14 - 1]
cmp eax, 0x104
ja 0x140031143
lea rcx, [rbp - 0x20]
mov rax, rbx
nop dword [rax]
lea rax, [rax + 1]
cmp word [rcx + rax*2], r14w
jne 0x1400310f0
cmp word [rbp + rax*2 - 0x22], 0x5c
jne 0x14003111d
lea rax, [rax*2 - 2]
cmp rax, 0x20a
jae 0x1400313c1
mov word [rbp + rax - 0x20], r14w
xorps xmm0, xmm0
movups xmmword [rbp - 0x58], xmm0
mov qword [rbp - 0x48], r14
mov qword [rbp - 0x40], r14
lea rax, [rbp - 0x20]
mov r8, rbx
inc r8
cmp word [rax + r8*2], r14w
jne 0x140031133
lea rdx, [rbp - 0x20]
jmp 0x14003115c
xorps xmm0, xmm0
movups xmmword [rbp - 0x58], xmm0
mov qword [rbp - 0x48], r14
mov qword [rbp - 0x40], r14
xor r8d, r8d
lea rdx, [0x1400acd14]
lea rcx, [rbp - 0x58]
call fcn.140037ca0
nop
cmp qword [rbp - 0x48], 0
jne 0x1400311d8
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], r14
xor r8d, r8d
lea rdx, [0x1400acd14]
mov rcx, rdi
call fcn.140037ca0
nop
mov rdx, qword [rbp - 0x40]
cmp rdx, 7
jbe 0x140031391
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003138c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14003138c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
lea rcx, [rsp + 0x68]
call fcn.140030e60
mov rsi, rax
movabs rax, 0xed471674a9f831e7
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x50], rcx
movabs rdx, 0xf6ed575168780ff8
mov qword [rsp + 0x40], rdx
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x58], rcx
movabs rax, 0xed471674a9f831bb
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x40]
mov qword [rbp - 0x30], rcx
mov qword [rsp + 0x40], rdx
mov rax, qword [rsp + 0x40]
mov qword [rbp - 0x28], rax
movdqa xmm0, xmmword [rsp + 0x50]
xorps xmm0, xmmword [rbp - 0x30]
movdqa xmmword [rsp + 0x50], xmm0
lea rax, [rsp + 0x50]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x140031252
movabs rax, 0x7ffffffffffffffe
mov rcx, qword [rbp - 0x48]
sub rax, rcx
cmp rax, rbx
jb 0x1400313bb
lea r9, [rbp - 0x58]
cmp qword [rbp - 0x40], 7
cmova r9, qword [rbp - 0x58]
mov qword [rsp + 0x30], rbx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea rcx, [rbp - 0x78]
call fcn.140038290
nop
mov r9, rsi
lea r8, [rbp - 0x78]
mov rcx, rdi
call fcn.140038070
nop
mov rdx, qword [rbp - 0x60]
cmp rdx, 7
jbe 0x1400312f6
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400312f0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400312f0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14008ffac
nop
mov rdx, qword [rbp - 0x80]
cmp rdx, 7
jbe 0x14003133a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140031335
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140031335
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14008ffac
movdqa xmm0, xmmword [0x1400ad090]
movdqu xmmword [rsp + 0x78], xmm0
mov word [rsp + 0x68], r14w
mov rdx, qword [rbp - 0x40]
cmp rdx, 7
jbe 0x140031391
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003138c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14003138c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14008ffac
mov rax, rdi
mov rcx, qword [rbp + 0x1f0]
xor rcx, rsp
call fcn.14008fcf0
lea r11, [rsp + 0x300]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call fcn.140030d80
nop
call fcn.14008fe18
int3