Function at 0x14023a95c
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x3a8]
sub rsp, 0x4a0
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
mov rax, qword [0x1403eab08]
xor rax, rsp
mov qword [rbp + 0x390], rax
xor edi, edi
mov ebx, edi
mov dword [rsp + 0x34], edi
lea rdx, [rsp + 0x58]
call qword [sym.imp.ole32.dll_StringFromCLSID]
test eax, eax
jns 0x14023a9b2
xor eax, eax
jmp 0x14023ac73
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r14d, 0x20019
mov r9d, r14d
xor r8d, r8d
lea rdx, str.CLSID
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14023ab48
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x50]
call fcn.14000750c
nop
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, r14d
xor r8d, r8d
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14023ab0d
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, r14d
xor r8d, r8d
lea rdx, str.DefaultIcon
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14023ab02
mov dword [rsp + 0x30], 0x20a
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14023aaf7
lea rdx, [rbp + 0x180]
lea r8, [rsp + 0x70]
movzx eax, word [rsp + 0x70]
cmp ax, 0x2c
je 0x14023aab5
movzx ecx, ax
movzx eax, cx
test cx, cx
je 0x14023aab5
mov word [rdx], cx
add rdx, 2
add r8, 2
movzx eax, word [r8]
movzx ecx, ax
cmp ax, 0x2c
jne 0x14023aa95
mov word [rdx], di
test ax, ax
je 0x14023aaca
lea rcx, [r8 + 2]
call fcn.1402853fc
mov ebx, eax
jmp 0x14023aacc
mov ebx, edi
call fcn.14000d7d4
mov rcx, qword [rax + 8]
mov r8d, ebx
lea rdx, [rbp + 0x180]
mov rcx, qword [rcx + 0x88]
call qword [sym.imp.SHELL32.dll_ExtractIconW]
mov rbx, rax
cmp rax, 1
cmove rbx, rdi
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14023ab3f
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400643c6.0]
test rbx, rbx
jne 0x14023ac65
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, r14d
xor r8d, r8d
lea rdx, str.DocShortcut
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14023ac65
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, r14d
xor r8d, r8d
lea rdx, str.DefaultIcon
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14023ac5a
mov dword [rsp + 0x30], 0x20a
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14023ac4f
lea rdx, [rbp + 0x180]
lea r8, [rsp + 0x70]
movzx eax, word [rsp + 0x70]
cmp ax, 0x2c
je 0x14023ac0d
movzx ecx, ax
movzx eax, cx
test cx, cx
je 0x14023ac0d
mov word [rdx], cx
add rdx, 2
add r8, 2
movzx eax, word [r8]
movzx ecx, ax
cmp ax, 0x2c
jne 0x14023abed
mov word [rdx], di
test ax, ax
je 0x14023ac22
lea rcx, [r8 + 2]
call fcn.1402853fc
mov ebx, eax
jmp 0x14023ac24
mov ebx, edi
call fcn.14000d7d4
mov rcx, qword [rax + 8]
mov r8d, ebx
lea rdx, [rbp + 0x180]
mov rcx, qword [rcx + 0x88]
call qword [sym.imp.SHELL32.dll_ExtractIconW]
mov rbx, rax
cmp rax, 1
cmove rbx, rdi
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rax, rbx
mov rcx, qword [rbp + 0x390]
xor rcx, rsp
call fcn.140257b10
lea r11, [rsp + 0x4a0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret