Function at 0x140021800
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.14001fd20
nop
xor r8d, r8d
mov edx, ebx
lea rcx, [rsp + 0x50]
call fcn.14001f1e0
lea rax, [rsp + 0x28]
mov qword [rsp + 0x38], rax
call fcn.14004aa80
mov rcx, rax
test rax, rax
je 0x140021b38
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x28], rax
lea rsi, [0x140280a28]
mov rdx, rsi
lea rcx, [rsp + 0x28]
call fcn.1400050a0
mov rbx, 0xffffffffffffffff
test al, al
jne 0x1400218db
mov rax, rbx
nop dword [rax + rax]
inc rax
cmp word [rsi + rax*2], 0
jne 0x1400218c0
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.14001fb90
test edi, edi
je 0x140021a62
call fcn.14004aa80
mov rcx, rax
test rax, rax
je 0x140021b43
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 0x14002195d
mov rax, rbx
inc rax
cmp word [rsi + rax*2], 0
jne 0x140021942
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 0x140021980
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 0x1400219a5
mov r8d, eax
lea rcx, [rsp + 0x20]
call fcn.140004b30
lea rax, [rsp + 0x30]
mov qword [rsp + 0x78], rax
call fcn.14004aa80
mov rcx, rax
test rax, rax
je 0x140021b2d
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 0x140021a1c
mov rax, rbx
inc rax
cmp word [rdi + rax*2], 0
jne 0x140021a01
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.14001fb90
nop
mov eax, ebx
lock xadd dword [rdi - 8], eax
sub eax, 1
jg 0x140021a62
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 0x140021ab0
call fcn.140022310
test eax, eax
je 0x140021a8b
mov rax, qword [0x1402e9cd0]
test rax, rax
je 0x140021a8b
mov r8d, ebx
mov edx, ebx
mov rcx, rdi
call rax
call fcn.140022310
test eax, eax
je 0x140021aa5
mov rax, qword [0x1402e9ce0]
test rax, rax
je 0x140021aa5
mov rcx, rdi
call rax
mov qword [rsp + 0x50], 0
jmp 0x140021add
mov rdi, qword [rsp + 0x58]
test rdi, rdi
je 0x140021add
call fcn.140022310
test eax, eax
je 0x140021ad4
mov rax, qword [0x1402e9ce0]
test rax, rax
je 0x140021ad4
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 0x140021afa
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rcx, [rsp + 0x50]
call fcn.14001fae0
nop
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.1401e35b0
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