Function at 0x140021a10
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x1a8]
sub rsp, 0x2a0
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1402da8d8]
xor rax, rsp
mov qword [rbp + 0x190], rax
mov edi, edx
mov ebx, ecx
mov dword [rsp + 0x40], 0
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
mov dword [rsp + 0x60], 5
lea rcx, [rsp + 0x68]
call fcn.14001ff30
nop
xor r8d, r8d
mov edx, ebx
lea rcx, [rsp + 0x50]
call fcn.14001f3f0
lea rax, [rsp + 0x28]
mov qword [rsp + 0x38], rax
call fcn.14004adf0
mov rcx, rax
test rax, rax
je 0x140021d48
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x28], rax
lea rsi, [0x140280b88]
mov rdx, rsi
lea rcx, [rsp + 0x28]
call fcn.1400050a0
mov rbx, 0xffffffffffffffff
test al, al
jne 0x140021aeb
mov rax, rbx
nop dword [rax + rax]
inc rax
cmp word [rsi + rax*2], 0
jne 0x140021ad0
mov r8d, eax
mov rdx, rsi
lea rcx, [rsp + 0x28]
call fcn.1400054e0
nop
mov rcx, qword [rsp + 0x68]
add rcx, 0xffffffffffffffe8
call fcn.140004c20
add rax, 0x18
mov qword [rsp + 0x48], rax
lea r8, [rsp + 0x28]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x50]
call fcn.14001fda0
test edi, edi
je 0x140021c72
call fcn.14004adf0
mov rcx, rax
test rax, rax
je 0x140021d53
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x20], rax
mov rdx, rsi
lea rcx, [rsp + 0x20]
call fcn.1400050a0
test al, al
jne 0x140021b6d
mov rax, rbx
inc rax
cmp word [rsi + rax*2], 0
jne 0x140021b52
mov r8d, eax
mov rdx, rsi
lea rcx, [rsp + 0x20]
call fcn.1400054e0
nop
mov dword [rsp + 0x40], 1
mov edx, 0x104
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea rcx, [rbp - 0x80]
mov rax, rbx
nop dword [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x140021b90
mov r8d, eax
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x20]
call fcn.1400054e0
lea rdx, str.Drivers_rtwavesskdy.dat
mov rax, rbx
inc rax
cmp word [rdx + rax*2], 0
jne 0x140021bb5
mov r8d, eax
lea rcx, [rsp + 0x20]
call fcn.140004b30
lea rax, [rsp + 0x30]
mov qword [rsp + 0x78], rax
call fcn.14004adf0
mov rcx, rax
test rax, rax
je 0x140021d3d
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x30], rax
lea rdi, str.SKDY
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.1400050a0
test al, al
jne 0x140021c2c
mov rax, rbx
inc rax
cmp word [rdi + rax*2], 0
jne 0x140021c11
mov r8d, eax
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.1400054e0
nop
mov rdi, qword [rsp + 0x20]
lea rcx, [rdi - 0x18]
call fcn.140004c20
add rax, 0x18
mov qword [rsp + 0x38], rax
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x50]
call fcn.14001fda0
nop
mov eax, ebx
lock xadd dword [rdi - 8], eax
sub eax, 1
jg 0x140021c72
mov rcx, qword [rdi - 0x18]
mov rax, qword [rcx]
lea rdx, [rdi - 0x18]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdi, qword [rsp + 0x50]
test rdi, rdi
je 0x140021cc0
call fcn.140022520
test eax, eax
je 0x140021c9b
mov rax, qword [0x1402e9cd0]
test rax, rax
je 0x140021c9b
mov r8d, ebx
mov edx, ebx
mov rcx, rdi
call rax
call fcn.140022520
test eax, eax
je 0x140021cb5
mov rax, qword [0x1402e9ce0]
test rax, rax
je 0x140021cb5
mov rcx, rdi
call rax
mov qword [rsp + 0x50], 0
jmp 0x140021ced
mov rdi, qword [rsp + 0x58]
test rdi, rdi
je 0x140021ced
call fcn.140022520
test eax, eax
je 0x140021ce4
mov rax, qword [0x1402e9ce0]
test rax, rax
je 0x140021ce4
mov rcx, rdi
call rax
mov qword [rsp + 0x58], 0
mov rdx, qword [rsp + 0x68]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x140021d0a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rcx, [rsp + 0x50]
call fcn.14001fcf0
nop
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.1401e3920
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
mov ecx, 0x80004005
call fcn.140005680
nop
mov ecx, 0x80004005
call fcn.140005680
nop
mov ecx, 0x80004005
call fcn.140005680
int3