Function at 0x140211a48
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x3a8]
sub rsp, 0x4a0
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
mov rax, qword [0x1403e39c0]
xor rax, rsp
mov qword [rbp + 0x390], rax
xor edi, edi
mov ebx, edi
mov dword [rsp + 0x30], edi
lea rdx, [rsp + 0x60]
call qword [sym.imp.ole32.dll_StringFromCLSID]
test eax, eax
jns 0x140211a9e
xor eax, eax
jmp 0x140211d3c
lea rax, [rsp + 0x50]
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 0x140211c1f
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x58]
call fcn.140010f60
nop
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, r14d
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140211beb
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 0x140211be0
mov dword [rsp + 0x48], 0x20a
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140211bd5
lea rdx, [rbp + 0x180]
lea rcx, [rsp + 0x70]
movzx eax, word [rsp + 0x70]
jmp 0x140211b8d
test ax, ax
je 0x140211b93
mov word [rdx], ax
add rdx, 2
add rcx, 2
movzx eax, word [rcx]
cmp ax, 0x2c
jne 0x140211b7a
mov word [rdx], di
cmp word [rcx], di
je 0x140211ba8
add rcx, 2
call fcn.14028f090
mov ebx, eax
jmp 0x140211baa
mov ebx, edi
call fcn.1400321b4
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 + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140211c16
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test rbx, rbx
jne 0x140211d2e
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 0x140211d2e
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 0x140211d23
mov dword [rsp + 0x4c], 0x20a
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140211d18
lea rdx, [rbp + 0x180]
lea rcx, [rsp + 0x70]
movzx eax, word [rsp + 0x70]
jmp 0x140211cd0
test ax, ax
je 0x140211cd6
mov word [rdx], ax
add rdx, 2
add rcx, 2
movzx eax, word [rcx]
cmp ax, 0x2c
jne 0x140211cbd
mov word [rdx], di
cmp word [rcx], di
je 0x140211ceb
add rcx, 2
call fcn.14028f090
mov ebx, eax
jmp 0x140211ced
mov ebx, edi
call fcn.1400321b4
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 + 0x60]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rax, rbx
mov rcx, qword [rbp + 0x390]
xor rcx, rsp
call fcn.1402410d0
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