Function at 0x140003120
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x1c0]
sub rsp, 0x2c0
mov rax, qword [0x14000c040]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
mov rsi, rcx
mov qword [rsp + 0x78], rcx
xor r12d, r12d
lea rdx, [rbp - 0x60]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
xorps xmm0, xmm0
test eax, eax
jne 0x140003195
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], r12
mov qword [rsi + 0x18], r12
xor r8d, r8d
lea rdx, [0x140008724]
mov rcx, rsi
call fcn.140005770
jmp 0x14000343b
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
mov r8d, 0xb
lea rdx, str.printer345
lea rcx, [rsp + 0x30]
call fcn.140005770
nop
lea rax, [rbp - 0x60]
mov rdi, 0xffffffffffffffff
inc rdi
cmp word [rax + rdi*2], 0
jne 0x1400031c6
mov r8, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
sub rax, r8
cmp rdi, rax
ja 0x140003287
lea rax, [rdi + r8]
mov qword [rsp + 0x40], rax
lea r15, [rsp + 0x30]
cmp rcx, 7
cmova r15, qword [rsp + 0x30]
lea rax, [rbp - 0x60]
lea rax, [rax + rdi*2]
cmp rax, r15
jbe 0x140003238
lea rax, [r15 + r8*2]
lea rcx, [rbp - 0x60]
cmp rcx, rax
ja 0x140003238
lea rax, [rbp - 0x60]
cmp r15, rax
ja 0x140003229
mov r14, r12
jmp 0x14000323b
lea rax, [rbp - 0x60]
mov r14, r15
sub r14, rax
sar r14, 1
jmp 0x14000323b
mov r14, rdi
lea rcx, [r15 + rdi*2]
lea r8, [r8*2 + 2]
mov rdx, r15
call sub.VCRUNTIME140.dll_memmove
lea rbx, [r14 + r14]
mov r8, rbx
lea rdx, [rbp - 0x60]
mov rcx, r15
call sub.VCRUNTIME140.dll_memcpy
mov r8, rdi
sub r8, r14
lea rax, [r14 + rdi]
lea rdx, [rbp - 0x60]
lea rdx, [rdx + rax*2]
lea rcx, [rbx + r15]
add r8, r8
call sub.VCRUNTIME140.dll_memcpy
lea rax, [rsp + 0x30]
jmp 0x1400032a2
mov qword [rsp + 0x28], rdi
lea rax, [rbp - 0x60]
mov qword [rsp + 0x20], rax
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.140006020
xorps xmm0, xmm0
movups xmmword [rbp - 0x80], xmm0
mov qword [rbp - 0x70], r12
mov qword [rbp - 0x68], r12
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x80], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x70], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], 7
mov word [rax], r12w
mov rdx, qword [rsp + 0x48]
cmp rdx, 7
jbe 0x140003315
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003310
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003310
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140006c44
movdqa xmm0, xmmword [0x140008a70]
movdqu xmmword [rsp + 0x40], xmm0
mov word [rsp + 0x30], r12w
lea rdx, [rbp - 0x80]
cmp qword [rbp - 0x68], 7
cmova rdx, qword [rbp - 0x80]
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x68], r12
mov r8, qword [rbp - 0x70]
lea rcx, [rsp + 0x50]
call fcn.140005770
nop
lea rcx, [rsp + 0x50]
cmp qword [rsp + 0x68], 7
cmova rcx, qword [rsp + 0x50]
call fcn.1400064f4
mov rbx, rax
shr rax, 0x20
test eax, eax
jne 0x140003469
mov rdx, qword [rsp + 0x68]
cmp rdx, 7
jbe 0x1400033c2
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400033bd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400033bd
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140006c44
test bl, bl
jne 0x14000342c
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], r12
mov qword [rsi + 0x18], r12
xor r8d, r8d
lea rdx, [0x140008724]
mov rcx, rsi
call fcn.140005770
nop
mov rdx, qword [rbp - 0x68]
cmp rdx, 7
jbe 0x14000343b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003425
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003425
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140006c44
jmp 0x14000343b
movups xmm0, xmmword [rbp - 0x80]
movups xmmword [rsi], xmm0
movups xmm1, xmmword [rbp - 0x70]
movups xmmword [rsi + 0x10], xmm1
mov rax, rsi
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.140006be0
lea r11, [rsp + 0x2c0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
shr rbx, 0x20
lea r8, [rsp + 0x50]
mov edx, ebx
call fcn.140002660
int3