Function at 0x140054670
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1a0]
sub rsp, 0x2a0
mov rdi, rcx
xor ebx, ebx
xor edx, edx
mov r8d, 0x20a
lea rcx, [rbp - 0x70]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rbp - 0x70]
mov ecx, 0x105
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x104
ja 0x140054710
lea rcx, [rbp - 0x70]
mov r8, 0xffffffffffffffff
mov rax, r8
nop dword [rax + rax]
lea rax, [rax + 1]
cmp word [rcx + rax*2], bx
jne 0x1400546d0
cmp word [rbp + rax*2 - 0x72], 0x5c
jne 0x1400546e7
mov word [rbp + rax*2 - 0x72], bx
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rbx
lea rax, [rbp - 0x70]
nop dword [rax]
inc r8
cmp word [rax + r8*2], bx
jne 0x140054700
lea rdx, [rbp - 0x70]
jmp 0x14005472c
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rbx
xor r8d, r8d
lea rdx, [0x14017d354]
lea rcx, [rsp + 0x20]
call fcn.140029510
nop
mov r14, qword [rsp + 0x30]
test r14, r14
jne 0x1400547ae
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rbx
mov qword [rdi + 0x18], rbx
xor r8d, r8d
lea rdx, [0x14017d354]
mov rcx, rdi
call fcn.140029510
nop
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x140054915
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140054910
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140054910
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
lea rcx, [rsp + 0x68]
call fcn.1400544e0
mov qword [rbp + 0x1f0], rax
movabs rdx, 0x7ffffffffffffffe
mov rcx, rdx
sub rcx, r14
cmp rcx, 1
jb 0x140054933
lea rax, [rsp + 0x20]
mov rsi, qword [rsp + 0x20]
mov r12, qword [rsp + 0x38]
cmp r12, 8
cmovae rax, rsi
mov qword [rbp + 0x1e8], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea r13, [r14 + 1]
mov ebx, 7
lea r15, [rsp + 0x48]
cmp r13, rbx
jbe 0x140054847
mov rbx, r13
or rbx, 7
cmp rbx, rdx
jbe 0x140054823
mov rbx, rdx
jmp 0x14005482f
mov eax, 0xa
cmp rbx, rax
cmovb rbx, rax
lea rdx, [rbx + 1]
call fcn.140029ee0
mov r15, rax
mov qword [rsp + 0x48], rax
mov rax, qword [rbp + 0x1e8]
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x60], rbx
lea rbx, [r14 + r14]
mov r8, rbx
mov rdx, rax
mov rcx, r15
call sub.VCRUNTIME140.dll_memcpy
mov word [rbx + r15], 0x5c
xor eax, eax
mov word [r15 + r13*2], ax
mov r9, qword [rbp + 0x1f0]
lea r8, [rsp + 0x48]
mov rcx, rdi
call fcn.140058930
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x1400548cc
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400548c6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400548c6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1401582b8
nop
lea rcx, [rsp + 0x68]
call fcn.140028d40
nop
cmp r12, 8
jb 0x140054915
lea rdx, [r12*2 + 2]
mov rax, rsi
cmp rdx, 0x1000
jb 0x14005490d
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005490d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rsi
call fcn.1401582b8
mov rax, rdi
mov rbx, qword [rsp + 0x2e0]
add rsp, 0x2a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.14001fbe0
nop
int3