Function at 0x164e4ff60
Capabilities:
Create shortcut via ishelllink
Get disk information
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x14b0
call fcn.165001d20
sub rsp, rax
mov rax, qword [0x16514b200]
xor rax, rsp
mov qword [rsp + 0x14a0], rax
mov r14, qword [rsp + 0x14f0]
mov rbx, qword [rsp + 0x14f8]
mov r12, qword [rsp + 0x1500]
mov r13, qword [rsp + 0x1508]
xor edi, edi
mov word [r12], di
test r13, r13
je 0x164e4ffce
mov qword [r13], rdi
mov rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], di
jne 0x164e4ffd5
cmp rax, 3
jb 0x164e50642
mov eax, dword [rbx]
mov dword [rsp + 0x4a0], eax
movzx eax, word [rbx + 4]
mov word [rsp + 0x4a4], ax
mov word [rsp + 0x4a6], di
lea rcx, [rsp + 0x4a0]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x164e50021
cmp eax, 6
jne 0x164e50642
mov rax, qword [r14 + 0xc0]
test rax, rax
je 0x164e500b8
cmp qword [r14 + 0xc8], rdi
je 0x164e500b8
lea r9, [rsp + 0x3b0]
lea r8, [rsp + 0x450]
lea rdx, [rsp + 0x400]
mov rcx, rbx
call qword [case.0x164e9d7b8.0]
test eax, eax
jne 0x164e500b8
mov esi, 0x400
mov dword [rsp + 0xe8], esi
lea r9, [rsp + 0xe8]
lea r8, [rsp + 0x4a0]
lea rdx, [rsp + 0x3b0]
lea rcx, [rsp + 0x400]
mov rax, qword [r14 + 0xc8]
call qword [case.0x164e9d7b8.0]
cmp eax, 3
jne 0x164e500bd
mov r8d, esi
lea rdx, [rsp + 0x4a0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_lstrcpynW]
xor eax, eax
jmp 0x164e50647
mov esi, 0x400
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x100], xmm0
movups xmmword [rsp + 0x110], xmm0
movups xmmword [rsp + 0x120], xmm0
movups xmmword [rsp + 0x130], xmm0
movups xmmword [rsp + 0x140], xmm0
mov qword [rsp + 0x150], rax
lea rax, vtable.std::_Func_impl_no_alloc_class__public:_void___cdecl_asw::wrappers::co_initializer::constructor_unsigned_long_int____ptr64::_1::_lambda_2____void___.0
mov qword [rsp + 0x78], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0xb0], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0xe0], rax
lea rax, vtable.std::_Func_impl_no_alloc_class__public:_void___cdecl_asw::wrappers::co_initializer::constructor_unsigned_long_int____ptr64::_1::_lambda_1____long_int___.0
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x38], 2
lea rax, [rsp + 0x30]
mov qword [rsp + 0x68], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0xd8], rax
lea rax, vtable.asw::wrappers::detail::initializer.0
mov qword [rsp + 0x100], rax
lea rax, [rsp + 0x108]
mov qword [rsp + 0xf8], rax
mov qword [rsp + 0x140], rdi
lea rdx, [rsp + 0x108]
lea rcx, [rsp + 0x78]
call fcn.164e5bb10
mov qword [rsp + 0x140], rax
lea rax, [0x1650a8418]
mov qword [rsp + 0x148], rax
mov dword [rsp + 0x154], edi
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x164e5066a
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x164e9d7b8.0]
test eax, eax
jns 0x164e501c4
cmp eax, 0x80010106
jne 0x164e50670
shr eax, 0x1f
xor al, 1
mov byte [rsp + 0x150], al
je 0x164e501df
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [rsp + 0x154], eax
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x164e50206
mov rax, qword [rcx]
lea rdx, [rsp + 0x30]
cmp rcx, rdx
setne dl
mov rax, qword [rax + 0x20]
call qword [case.0x164e9d7b8.0]
mov qword [rsp + 0x68], rdi
mov rcx, qword [rsp + 0xb0]
test rcx, rcx
je 0x164e5022b
mov rax, qword [rcx]
lea rdx, [rsp + 0x78]
cmp rcx, rdx
setne dl
mov rax, qword [rax + 0x20]
call qword [case.0x164e9d7b8.0]
lea rax, vtable.asw::wrappers::co_initializer.0
mov qword [rsp + 0x100], rax
mov qword [rsp + 0xf0], rdi
lea rax, [rsp + 0xf0]
mov qword [rsp + 0x20], rax
lea r9, [0x1650a3cb8]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x1650773a0]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov r15d, eax
test eax, eax
js 0x164e505fd
mov qword [rsp + 0xf8], rdi
mov rcx, qword [rsp + 0xf0]
test rcx, rcx
je 0x164e502b0
mov rax, qword [rcx]
lea r8, [rsp + 0xf8]
lea rdx, [0x1650a3cc8]
mov rax, qword [rax]
call qword [case.0x164e9d7b8.0]
test eax, eax
jns 0x164e502b0
mov qword [rsp + 0xf8], rdi
mov r8, rsi
mov rdx, rbx
lea rcx, [rsp + 0xca0]
call fcn.165010f28
mov rcx, qword [rsp + 0xf8]
mov rax, qword [rcx]
mov r8d, 0x20
lea rdx, [rsp + 0xca0]
mov rax, qword [rax + 0x28]
call qword [case.0x164e9d7b8.0]
mov r15d, eax
test eax, eax
js 0x164e505e2
mov rcx, qword [rsp + 0xf0]
mov rax, qword [rcx]
xor edx, edx
lea r8d, [rdx + 0x79]
mov rax, qword [rax + 0x98]
call qword [case.0x164e9d7b8.0]
mov r15d, eax
test eax, eax
js 0x164e505e2
mov rcx, qword [rsp + 0xf0]
mov rax, qword [rcx]
lea rdx, [rsp + 0xe0]
mov rax, qword [rax + 0x20]
call qword [case.0x164e9d7b8.0]
test eax, eax
js 0x164e504f7
mov rax, qword [rsp + 0xe0]
test rax, rax
je 0x164e504f7
cmp word [rax], 0x12
jb 0x164e504f7
movups xmm0, xmmword [rax + 4]
movq rax, xmm0
cmp qword [0x1650a9d78], rax
jne 0x164e504f7
psrldq xmm0, 8
movq rax, xmm0
cmp qword [0x1650a9d80], rax
jne 0x164e504f7
mov qword [rsp + 0xd8], rdi
lea rax, [rsp + 0xd8]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.CLSID871C5380_42A0_1069_A2EA_08002B30309D_shellOpenHomePageCommand
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov r14, rdi
test eax, eax
cmove r14, qword [rsp + 0xd8]
mov ebx, edi
cmovne ebx, eax
test ebx, ebx
jne 0x164e504e5
mov dword [rsp + 0xe8], esi
lea rax, [rsp + 0xe8]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x4a0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0xec]
xor r8d, r8d
lea rdx, [0x1650a825c]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
jne 0x164e504e5
mov eax, dword [rsp + 0xec]
dec eax
cmp eax, 1
jbe 0x164e50432
mov ebx, reloc.OLEAUT32.dll_DosDateTimeToVariantTime
jmp 0x164e504e5
mov eax, dword [rsp + 0xe8]
test eax, eax
je 0x164e50459
test al, 1
jne 0x164e50428
shr rax, 1
cmp word [rsp + rax*2 + 0x49e], 0
jne 0x164e50428
movzx eax, word [rsp + 0x4a0]
jmp 0x164e50463
mov eax, edi
mov word [rsp + 0x4a0], ax
mov ebx, edi
cmp ax, 0x22
jne 0x164e504e5
lea rcx, [rsp + 0x4a0]
mov r15, 0xffffffffffffffff
mov rax, r15
nop dword [rax]
lea rax, [rax + 1]
cmp word [rcx + rax*2], bx
jne 0x164e50480
mov word [rsp + rax*2 + 0x49e], di
lea rax, [rsp + 0x4a0]
mov r8, r15
nop dword [rax]
lea r8, [r8 + 1]
cmp word [rax + r8*2], bx
jne 0x164e504a0
lea r8, [r8*2 - 2]
lea rdx, [rsp + 0x4a2]
lea rcx, [rsp + 0x4a0]
call fcn.16503fa90
lea rcx, [rsp + 0x4a0]
mov rax, r15
lea rax, [rax + 1]
cmp word [rcx + rax*2], bx
jne 0x164e504d3
mov word [rsp + rax*2 + 0x49e], di
test r14, r14
je 0x164e504f3
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x164e50532
mov rcx, qword [rsp + 0xf0]
mov rax, qword [rcx]
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x160]
mov r8d, esi
lea rdx, [rsp + 0x4a0]
mov rax, qword [rax + 0x18]
call qword [case.0x164e9d7b8.0]
mov r15d, eax
test eax, eax
js 0x164e505e2
mov r8d, esi
lea rdx, [rsp + 0x4a0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_lstrcpynW]
mov r15d, edi
test r13, r13
je 0x164e505e2
mov r14d, edi
cmp r14d, 0xa
jae 0x164e505d9
mov r12d, esi
mov eax, 2
mul r12
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rdx, rax
mov rcx, rdi
call fcn.165010eb8
mov rbx, rax
test rax, rax
je 0x164e505d9
mov rdi, rax
mov rcx, qword [rsp + 0xf0]
mov rdx, qword [rcx]
mov rax, qword [rdx + 0x50]
mov r8d, esi
mov rdx, rbx
call qword [case.0x164e9d7b8.0]
test eax, eax
jne 0x164e5062b
mov rcx, 0xffffffffffffffff
inc rcx
cmp word [rbx + rcx*2], 0
jne 0x164e505b5
lea rax, [rcx + 1]
cmp rax, r12
jae 0x164e5062b
test rcx, rcx
je 0x164e505d9
mov rcx, rbx
call fcn.165010e34
mov qword [r13], rax
mov rcx, rdi
call fcn.165015e80
nop
mov rcx, qword [rsp + 0xf8]
test rcx, rcx
je 0x164e505fd
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x164e9d7b8.0]
nop
mov rcx, qword [rsp + 0xf0]
test rcx, rcx
je 0x164e50618
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x164e9d7b8.0]
nop
lea rcx, [rsp + 0x100]
call fcn.164fb2530
nop
mov eax, r15d
jmp 0x164e50647
add esi, esi
inc r14d
jmp 0x164e50555
mov eax, 1
mov rcx, qword [rsp + 0x14a0]
xor rcx, rsp
call fcn.165001080
add rsp, 0x14b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
call fcn.164ffea70
nop
lea r8, [0x1650a8428]
mov edx, eax
lea rcx, [rsp + 0xb8]
call fcn.164e9bd80
lea rdx, [0x165147178]
lea rcx, [rsp + 0xb8]
call fcn.165003be0
int3