Function at 0x499330
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x78
xor r14d, r14d
xor r15d, r15d
lea rbp, [rcx + 0x10]
mov word [rcx + 0x10], r14w
lea r14, [rcx + 0x20]
mov r12, rcx
mov qword [rcx], rbp
lea rdi, [rsp + 0x30]
mov rsi, rdx
lea r13, [rsp + 0x20]
mov qword [rcx + 8], 0
mov rcx, r14
call sym.unk_3530
mov qword [rsp + 0x20], rdi
mov edx, 0x400
mov rbx, qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov qword [rsp + 0x28], 0
mov word [rsp + 0x30], r15w
nop word cs:[rax + rax]
xor r8d, r8d
mov rcx, r13
call sym.unk_3321
mov rdx, qword [rsp + 0x20]
mov ecx, dword [rsp + 0x28]
call rbx
mov edx, eax
cmp rdx, qword [rsp + 0x28]
ja 0x4993a0
test eax, eax
jne 0x499400
call sym.unk_2897
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi], eax
mov qword [rsi + 8], rbx
mov rcx, qword [rsp + 0x20]
cmp rcx, rdi
je 0x4993e6
call sym.operator_delete_void_
mov rax, r12
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
xor r8d, r8d
mov rcx, r13
call sym.unk_3321
mov rax, qword [rsp + 0x20]
lea rbx, [rsp + 0x50]
mov qword [rsp + 0x40], rbx
cmp rax, rdi
je 0x499580
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x28]
lea r15, [rsp + 0x60]
xor r13d, r13d
mov qword [rsp + 0x20], rdi
mov rcx, r15
mov word [rsp + 0x30], r13w
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x28], 0
call sym.unk_3530
lea r13, [rsp + 0x40]
mov rcx, r13
call sym.unk_3550
mov rdx, qword [rsp + 0x40]
mov rcx, qword [r12]
mov rax, qword [rsp + 0x48]
cmp rdx, rbx
je 0x4995b0
mov r8, qword [rsp + 0x50]
cmp rbp, rcx
je 0x4995f0
movq xmm0, rax
movq xmm1, r8
mov r9, qword [r12 + 0x10]
mov qword [r12], rdx
punpcklqdq xmm0, xmm1
movups xmmword [r12 + 8], xmm0
test rcx, rcx
je 0x499608
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x50], r9
mov rax, qword [rsp + 0x60]
mov rdx, qword [r12 + 0x20]
xor r10d, r10d
mov qword [rsp + 0x48], 0
mov word [rcx], r10w
mov qword [rsp + 0x60], 0
mov qword [r12 + 0x20], rax
test rdx, rdx
je 0x4994fc
mov rcx, r14
call sym.unk_3525
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x48], 0
xor r9d, r9d
mov word [rcx], r9w
mov rcx, r13
call sym.unk_3550
mov rdx, qword [rsp + 0x60]
test rdx, rdx
je 0x499526
mov rcx, r15
call sym.unk_3525
mov rcx, qword [rsp + 0x40]
cmp rcx, rbx
je 0x499535
call sym.operator_delete_void_
mov rdx, rsi
mov rcx, r12
call sym.unk_3477
mov r8d, dword [rsi]
test r8d, r8d
jne 0x499590
cmp al, 2
je 0x4993d7
mov rax, qword [r12]
xor edx, edx
mov rcx, r12
mov qword [r12 + 8], 0
mov word [rax], dx
call sym.unk_3550
call sym.unk_2898
mov dword [rsi], 0x14
mov qword [rsi + 8], rax
jmp 0x4993d7
movdqa xmm2, xmmword [rsp + 0x30]
movaps xmmword [rsp + 0x50], xmm2
jmp 0x499432
mov qword [r12 + 8], 0
mov rax, qword [r12]
xor ecx, ecx
mov word [rax], cx
mov rcx, r12
call sym.unk_3550
jmp 0x4993d7
lea r8, [rax + rax]
mov rdx, rbx
test rax, rax
je 0x4995d9
cmp rax, 1
je 0x49961a
call sym.memcpy
mov rax, qword [rsp + 0x48]
mov rcx, qword [r12]
mov rdx, qword [rsp + 0x40]
lea r8, [rax + rax]
xor r11d, r11d
mov qword [r12 + 8], rax
mov word [rcx + r8], r11w
mov rcx, rdx
jmp 0x4994c2
movq xmm0, rax
movq xmm3, r8
mov qword [r12], rdx
punpcklqdq xmm0, xmm3
movups xmmword [r12 + 8], xmm0
mov qword [rsp + 0x40], rbx
lea rbx, [rsp + 0x50]
mov rcx, rbx
jmp 0x4994c2
movzx edx, word [rsp + 0x50]
mov r8d, 2
mov word [rcx], dx
mov rdx, rbx
jmp 0x4995d9