Function at 0x14003b030
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x930
mov qword [rsp + 0x80], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rax, qword [0x1400c2038]
xor rax, rsp
mov qword [rsp + 0x920], rax
mov ebp, r8d
mov rdi, rdx
test rdx, rdx
je 0x14003b3d2
mov eax, 0x2e
cmp ax, word [rdx]
jne 0x14003b3d2
xor ebx, ebx
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rbx
mov dword [rsp + 0x68], ebx
lea rdx, [0x14008ac98]
lea rcx, [rsp + 0x50]
call qword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
nop
mov r8, rdi
lea rdx, str._sShellEx8895b1c6_b41f_4c1c_a562_0d564250836f
lea rcx, [rsp + 0x50]
call qword [sym.imp.mfc90u.dll_COleServerDoc::XOleObject::EnumAdvise]
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x60]
mov rdx, 0xffffffff80000000
lea rcx, [rsp + 0x40]
call fcn.14001f570
test eax, eax
je 0x14003b280
mov qword [rsp + 0x70], rbx
mov dword [rsp + 0x78], ebx
mov r8, rdi
lea rdx, str._sOpenWithProgids
lea rcx, [rsp + 0x50]
call qword [sym.imp.mfc90u.dll_COleServerDoc::XOleObject::EnumAdvise]
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x70]
mov rdx, 0xffffffff80000000
lea rcx, [rsp + 0x40]
call fcn.14001f570
test eax, eax
je 0x14003b133
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x14003b25b
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14003b25b
mov word [rsp + 0x120], bx
xor edx, edx
mov r8d, 0x7fe
lea rcx, [rsp + 0x122]
call sub.MSVCR90.dll_memset
mov dword [rsp + 0x44], CDHtmlElementEventSink::AddRef
mov edi, ebx
mov dword [rsp + 0x48], ebx
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x44]
lea r8, [rsp + 0x120]
xor edx, edx
mov rsi, qword [rsp + 0x70]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x14003b249
nop dword [rax]
inc edi
mov dword [rsp + 0x44], CDHtmlElementEventSink::AddRef
lea r8, [rsp + 0x120]
lea rdx, str._s_shellex8895b1c6_b41f_4c1c_a562_0d564250836f
lea rcx, [rsp + 0x50]
call qword [sym.imp.mfc90u.dll_COleServerDoc::XOleObject::EnumAdvise]
test ebp, ebp
je 0x14003b1ea
lea rdx, [0x140096c88]
lea rcx, [rsp + 0x120]
call qword [sym.imp.MSVCR90.dll_wcsstr]
lea rcx, [rsp + 0x120]
cmp rax, rcx
jne 0x14003b209
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x60]
mov rdx, 0xffffffff80000000
lea rcx, [rsp + 0x40]
call fcn.14001f570
test eax, eax
je 0x14003b244
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x44]
lea r8, [rsp + 0x120]
mov edx, edi
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x14003b1a0
jmp 0x14003b249
mov ebx, 1
test rsi, rsi
je 0x14003b257
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x14003b280
lea rcx, [rsp + 0x50]
call qword [sym.imp.mfc90u.dll_CView::CView]
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14003b3cb
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14003b3cb
lea rcx, [rsp + 0x88]
mov eax, dword [0x14008abc8]
mov dword [rcx], eax
mov eax, dword [0x14008abcc]
mov dword [rcx + 4], eax
mov eax, dword [0x14008abd0]
mov dword [rcx + 8], eax
mov eax, dword [0x14008abd4]
mov dword [rcx + 0xc], eax
mov dword [rsp + 0x48], 0x80
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x44]
xor r8d, r8d
xor edx, edx
mov rbx, qword [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14003b3b1
mov eax, dword [rsp + 0x44]
cmp eax, 1
je 0x14003b2fc
cmp eax, 2
jne 0x14003b3b1
mov eax, dword [rsp + 0x48]
test eax, eax
je 0x14003b3b1
test al, 1
jne 0x14003b3b1
shr rax, 1
cmp word [rsp + rax*2 + 0x9e], 0
jne 0x14003b3b1
cmp word [rsp + 0xa0], 0x7b
jne 0x14003b3b1
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0xa0]
call qword [sym.imp.ole32.dll_CLSIDFromString]
test eax, eax
js 0x14003b3b1
cmp qword [rsp + 0x58], 0
je 0x14003b36f
lea rcx, [rsp + 0x50]
call qword [sym.imp.mfc90u.dll_CView::CView]
nop
test rbx, rbx
je 0x14003b3cb
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14003b3cb
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
lea r9, [0x140097050]
xor edx, edx
lea r8d, [rdx + 5]
lea rcx, [rsp + 0x88]
call qword [sym.imp.ole32.dll_CoCreateInstance]
nop
lea rcx, [rsp + 0x50]
call qword [sym.imp.mfc90u.dll_CView::CView]
nop
test rbx, rbx
je 0x14003b3cb
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14003b3cb
lea rcx, [rsp + 0x50]
call qword [sym.imp.mfc90u.dll_CView::CView]
nop
test rbx, rbx
je 0x14003b3cb
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, qword [rsp + 0x58]
jmp 0x14003b3d4
xor eax, eax
mov rcx, qword [rsp + 0x920]
xor rcx, rsp
call fcn.140077470
lea r11, [rsp + 0x930]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret