Function at 0x140201910
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x148
mov qword [rsp + 0xf0], 0xfffffffffffffffe
mov dword [rsp + 0xe8], 0
mov rax, qword [rsp + reloc.mfc90u.dll_CChevronOwnerDrawMenu::CChevronOwnerDrawMenu]
cmp dword [rax + 0x30], 0
je 0x140201952
xor eax, eax
jmp 0x140201e3a
mov rdx, qword [rsp + 0x158]
lea rcx, [rsp + 0x68]
call qword [0x1404094a8]
nop
lea rcx, [rsp + 0x68]
call qword [sym.imp.mfc90u.dll_CDocObjectServer::XOleObject::GetExtent]
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
jle 0x1402019ec
mov edx, dword [rsp + 0x60]
sub edx, 1
lea rcx, [rsp + 0x68]
call qword [sym.imp.mfc90u.dll_CDumpContext::operator__]
movzx eax, ax
cmp eax, 0x5c
jne 0x1402019ec
mov r8d, dword [rsp + 0x60]
sub r8d, 1
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x68]
call qword [sym.imp.mfc90u.dll_CDockState::GetVersion]
mov qword [rsp + 0xf8], rax
mov rax, qword [rsp + 0xf8]
mov qword [rsp + 0x100], rax
mov rdx, qword [rsp + 0x100]
lea rcx, [rsp + 0x68]
call qword [sym.imp.mfc90u.dll_CToolBarCtrl::CToolBarCtrl]
nop
lea rcx, [rsp + 0x90]
call qword [sym.imp.mfc90u.dll_CView::CView]
cmp dword [rsp + 0x160], 0
je 0x140201a04
mov qword [rsp + 0x108], 0xffffffff80000002
jmp 0x140201a10
mov qword [rsp + 0x108], 0xffffffff80000001
lea rcx, [rsp + 0x68]
call qword [sym.imp.mfc90u.dll_CDumpContext::operator___1]
mov rdx, rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
mov rcx, qword [rsp + 0x108]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [rsp + 0x78], eax
cmp dword [rsp + 0x78], 0
je 0x140201a6c
mov dword [rsp + 0x98], 0
lea rcx, [rsp + 0x68]
call qword [sym.imp.mfc90u.dll_CView::CView]
mov eax, dword [rsp + 0x98]
jmp 0x140201e3a
mov dword [rsp + 0x7c], 1
cmp dword [rsp + 0x7c], 0
jbe 0x140201d7b
mov dword [rsp + 0x7c], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
lea rax, [rsp + 0x80]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x7c]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x140201b18
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [rsp + 0x9c], 0
lea rcx, [rsp + 0x68]
call qword [sym.imp.mfc90u.dll_CView::CView]
mov eax, dword [rsp + 0x9c]
jmp 0x140201e3a
cmp dword [rsp + 0x7c], 0
jbe 0x140201d76
mov eax, dword [rsp + 0x80]
add eax, 1
mov ecx, eax
mov eax, 2
mul rcx
mov rcx, rax
mov rax, 0xffffffffffffffff
cmovo rcx, rax
call sub.mfc90u.dll_new__
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x88], rax
mov r9d, dword [rsp + 0x80]
add r9d, 1
mov r8, qword [rsp + 0x88]
xor edx, edx
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x140201c7b
lea rdx, [0x14041bad4]
lea rcx, [rsp + 0xb0]
call qword [0x140408a10]
nop
mov eax, dword [rsp + 0xe8]
or eax, 1
mov dword [rsp + 0xe8], eax
lea r8, [rsp + 0xb0]
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0xb8]
call fcn.14000779c
mov qword [rsp + 0x110], rax
mov rax, qword [rsp + 0x110]
mov qword [rsp + 0x118], rax
mov eax, dword [rsp + 0xe8]
or eax, 2
mov dword [rsp + 0xe8], eax
mov r8, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x118]
lea rcx, [rsp + 0xc0]
call fcn.140015bcc
mov qword [rsp + 0x120], rax
mov rax, qword [rsp + 0x120]
mov qword [rsp + 0x128], rax
mov eax, dword [rsp + 0xe8]
or eax, 4
mov dword [rsp + 0xe8], eax
mov rcx, qword [rsp + 0x128]
call qword [sym.imp.mfc90u.dll_CDumpContext::operator___1]
mov rdx, rax
mov rax, qword [rsp + reloc.mfc90u.dll_CChevronOwnerDrawMenu::CChevronOwnerDrawMenu]
mov rax, qword [rax]
mov r8d, dword [rsp + 0x160]
mov rcx, qword [rsp + reloc.mfc90u.dll_CChevronOwnerDrawMenu::CChevronOwnerDrawMenu]
call qword [rax + 0x60]
test eax, eax
je 0x140201c7b
mov dword [rsp + 0x130], 0
jmp 0x140201c86
mov dword [rsp + 0x130], 1
movzx eax, byte [rsp + 0x130]
mov byte [rsp + 0xa8], al
mov eax, dword [rsp + 0xe8]
and eax, 4
test eax, eax
je 0x140201cba
and dword [rsp + 0xe8], 0xfffffffb
lea rcx, [rsp + 0xc0]
call qword [sym.imp.mfc90u.dll_CView::CView]
nop
mov eax, dword [rsp + 0xe8]
and eax, 2
test eax, eax
je 0x140201cdf
and dword [rsp + 0xe8], 0xfffffffd
lea rcx, [rsp + 0xb8]
call qword [sym.imp.mfc90u.dll_CView::CView]
nop
mov eax, dword [rsp + 0xe8]
and eax, 1
test eax, eax
je 0x140201d03
and dword [rsp + 0xe8], 0xfffffffe
lea rcx, [rsp + 0xb0]
call qword [sym.imp.mfc90u.dll_CView::CView]
movzx eax, byte [rsp + 0xa8]
test eax, eax
je 0x140201d59
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0xc8], rax
mov rcx, qword [rsp + 0xc8]
call sub.mfc90u.dll_delete__
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [rsp + 0xd0], 0
lea rcx, [rsp + 0x68]
call qword [sym.imp.mfc90u.dll_CView::CView]
mov eax, dword [rsp + 0xd0]
jmp 0x140201e3a
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0xd8], rax
mov rcx, qword [rsp + 0xd8]
call sub.mfc90u.dll_delete__
jmp 0x140201a74
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0x160], 0
je 0x140201d9e
mov qword [rsp + 0x138], 0xffffffff80000002
jmp 0x140201daa
mov qword [rsp + 0x138], 0xffffffff80000001
lea rcx, [rsp + 0x68]
call qword [sym.imp.mfc90u.dll_CDumpContext::operator___1]
mov rdx, rax
mov rcx, qword [rsp + 0x138]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov dword [rsp + 0x78], eax
mov rcx, qword [rsp + reloc.mfc90u.dll_CChevronOwnerDrawMenu::CChevronOwnerDrawMenu]
mov eax, dword [rsp + 0x78]
mov dword [rcx + 8], eax
mov rax, qword [rsp + reloc.mfc90u.dll_CChevronOwnerDrawMenu::CChevronOwnerDrawMenu]
mov dword [rax + 0xc], 0
mov rax, qword [rsp + reloc.mfc90u.dll_CChevronOwnerDrawMenu::CChevronOwnerDrawMenu]
mov dword [rax + 0x10], 0
cmp dword [rsp + 0x78], 0
jne 0x140201e1d
mov dword [rsp + 0xe0], 1
lea rcx, [rsp + 0x68]
call qword [sym.imp.mfc90u.dll_CView::CView]
mov eax, dword [rsp + 0xe0]
jmp 0x140201e3a
mov dword [rsp + 0xe4], 0
lea rcx, [rsp + 0x68]
call qword [sym.imp.mfc90u.dll_CView::CView]
mov eax, dword [rsp + 0xe4]
add rsp, 0x148
ret