Function at 0x140004210
Capabilities:
Query or enumerate registry value

Disassembly:
test r8b, 2
jne 0x1400048a0
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x400]
sub rsp, 0x500
mov rax, qword [0x14002f220]
xor rax, rsp
mov qword [rbp + 0x3f0], rax
xor r13d, r13d
lea r15, [rcx + 0xec8]
cmp dword [0x14002fccc], r13d
mov rbx, rcx
je 0x1400042c7
lea rdx, [0x14001d4e0]
mov rcx, r15
call sub.MFC42u.dll_COleControlSite::CreateControl
mov r14d, 0x93
lea edx, [r13 + 0xe]
mov ecx, r14d
call sub.MFC42u.dll_Ordinal_1441
mov rcx, rax
mov edx, r14d
call qword [sym.imp.USER32.dll_LoadIconW]
mov rcx, qword [rbx + 0xf88]
xor r9d, r9d
mov r8, rax
mov edx, CGopherConnection::CGopherConnection
call qword [sym.imp.USER32.dll_SendMessageW]
lea rcx, [rbx + 0xe48]
lea rdx, [0x14001d4e0]
call sub.MFC42u.dll_COleControlSite::CreateControl
mov rcx, rbx
call fcn.140004c04
jmp 0x140004876
mov rsi, qword [rcx + 0x80]
call sub.MFC42u.dll_CWnd::BindProperty
mov rcx, qword [rsi + 0xa0]
lea rdx, str.Application_IDs
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x14000435d
lea rcx, [rbx + 0xe48]
lea rdx, str.Application_IDs
call sub.MFC42u.dll_COleControlSite::CreateControl
lea rdx, str.All_HKEY_CLASSES_ROOTAPPID_Entries
mov rcx, r15
call sub.MFC42u.dll_COleControlSite::CreateControl
mov r14d, 0x94
mov edx, 0xe
mov ecx, r14d
call sub.MFC42u.dll_Ordinal_1441
mov rcx, rax
mov edx, r14d
call qword [sym.imp.USER32.dll_LoadIconW]
mov rcx, qword [rbx + 0xf88]
xor r9d, r9d
mov r8, rax
mov edx, CGopherConnection::CGopherConnection
call qword [sym.imp.USER32.dll_SendMessageW]
lea rcx, [rbx + 0xc80]
call fcn.140012c9c
mov rcx, rbx
call fcn.140004c84
jmp 0x14000486e
lea rdi, [rsi + 0xa8]
mov rax, qword [rdi]
cmp rax, qword [0x140028240]
jne 0x140004569
mov rax, qword [rdi + 8]
cmp rax, qword [0x140028248]
jne 0x140004569
cmp dword [rsi + 0xc0], 2
mov r14d, 0x93
mov rcx, r15
jne 0x1400043b7
lea rdx, str.No_CLSID_available.
call sub.MFC42u.dll_COleControlSite::CreateControl
mov edi, 0xe
mov edx, edi
lea ecx, [rdi + 0x6f]
call sub.MFC42u.dll_Ordinal_1441
lea edx, [rdi + 0x6f]
jmp 0x1400043d5
lea rdx, [0x14001d4e0]
call sub.MFC42u.dll_COleControlSite::CreateControl
mov edi, 0xe
mov rcx, r14
mov edx, edi
call sub.MFC42u.dll_Ordinal_1441
mov rdx, r14
mov rcx, rax
call qword [sym.imp.USER32.dll_LoadIconW]
mov rcx, qword [rbx + 0xf88]
xor r9d, r9d
mov r8, rax
mov edx, CGopherConnection::CGopherConnection
call qword [sym.imp.USER32.dll_SendMessageW]
mov rdx, qword [rsi + 0xa0]
lea rcx, [rbx + 0xe48]
call sub.MFC42u.dll_COleControlSite::CreateControl
mov eax, dword [rsi + 0xc0]
cmp eax, 6
jne 0x1400044a2
lea rax, [rsp + 0x30]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.Component_Categories
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000448c
lea rdx, str.All_HKEY_CLASSES_ROOTComponent_Categories_Entries
mov rcx, r15
call sub.MFC42u.dll_COleControlSite::CreateControl
mov rdx, rdi
mov rcx, r14
call sub.MFC42u.dll_Ordinal_1441
mov rcx, rax
mov rdx, r14
call qword [sym.imp.USER32.dll_LoadIconW]
mov rcx, qword [rbx + 0xf88]
xor r9d, r9d
mov r8, rax
mov edx, CGopherConnection::CGopherConnection
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rbx + 0xc80]
call fcn.140012c9c
mov rcx, rbx
call fcn.140004c84
jmp 0x1400044fa
cmp eax, 8
jne 0x1400044f2
lea rcx, [rbx + 0xc80]
call fcn.140012c9c
mov rcx, rbx
call fcn.140004c84
mov r14d, 0x94
mov rdx, rdi
mov ecx, r14d
call sub.MFC42u.dll_Ordinal_1441
mov rcx, rax
mov edx, r14d
call qword [sym.imp.USER32.dll_LoadIconW]
mov rcx, qword [rbx + 0xf88]
xor r9d, r9d
mov r8, rax
mov edx, CGopherConnection::CGopherConnection
call qword [sym.imp.USER32.dll_SendMessageW]
jmp 0x1400044fa
mov rcx, rbx
call fcn.140004c04
mov rcx, qword [rsi + 0xa0]
lea rdx, str.Type_Libraries
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x140004545
lea r14d, [rax + 0x70]
mov rdx, rdi
mov ecx, r14d
call sub.MFC42u.dll_Ordinal_1441
mov rcx, rax
mov edx, r14d
call qword [sym.imp.USER32.dll_LoadIconW]
mov rcx, qword [rbx + 0xf88]
xor r9d, r9d
mov r8, rax
mov edx, CGopherConnection::CGopherConnection
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [rsi + 0xa0]
lea rdx, [0x14001eaf8]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x14000486e
mov rdx, rdi
jmp 0x14000483d
mov r8d, 0x40
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.ole32.dll_StringFromGUID2]
lea rdx, [rsp + 0x50]
mov rcx, r15
call sub.MFC42u.dll_COleControlSite::CreateControl
mov rdx, qword [rsi + 0xa0]
lea rcx, [rbx + 0xe48]
call sub.MFC42u.dll_COleControlSite::CreateControl
mov eax, dword [rsi + 0xc0]
lea rcx, [rbx + 0xc80]
cmp eax, 7
jne 0x1400045d7
call fcn.140012c9c
mov rcx, rbx
call fcn.140004c84
mov r14d, 0x93
mov edx, 0xe
mov rcx, r14
call sub.MFC42u.dll_Ordinal_1441
mov rdx, r14
jmp 0x14000484d
cmp eax, 3
jne 0x1400045f1
call fcn.140012c9c
mov rcx, rbx
call fcn.140004c84
mov r14d, 0x70
jmp 0x1400045c2
cmp eax, 8
jne 0x14000460b
call fcn.140012c9c
mov rcx, rbx
call fcn.140004c84
mov r14d, 0x94
jmp 0x1400045c2
add eax, 0xfffffffc
cmp eax, 1
jbe 0x14000482b
call fcn.140012c9c
movups xmm0, xmmword [rdi]
lea rcx, [rbx + 0xd8]
lea rdx, [rsp + 0x40]
movdqu xmmword [rsp + 0x40], xmm0
call fcn.1400028c0
movups xmm0, xmmword [rdi]
lea rcx, [rbx + 0x3b8]
lea rdx, [rsp + 0x40]
movdqu xmmword [rsp + 0x40], xmm0
call fcn.140007d10
movups xmm0, xmmword [rdi]
lea rcx, [rbx + 0x710]
lea rdx, [rsp + 0x40]
movdqu xmmword [rsp + 0x40], xmm0
call fcn.140006370
movups xmm0, xmmword [rdi]
lea rcx, [rbx + 0xa90]
lea rdx, [rsp + 0x40]
movdqu xmmword [rsp + 0x40], xmm0
call fcn.140002df0
mov rcx, rbx
call fcn.1400048ec
lea r8, [rsp + 0x50]
lea rdx, str.CLSID_s
lea rcx, [rbp + 0x1e0]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rax, [rsp + 0x30]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rbp + 0x1e0]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000486e
mov rcx, qword [rsp + 0x30]
lea r9, [rsp + 0x38]
lea r8, [rbp - 0x30]
mov dword [rsp + 0x38], 0x208
lea rdx, str.DefaultIcon
call qword [sym.imp.ADVAPI32.dll_RegQueryValueW]
test eax, eax
jne 0x140004775
lea edx, [rax + 2]
mov edi, r13d
lea r8d, [rax + 0x2c]
lea rcx, [rbp - 0x30]
call fcn.1400174dc
test rax, rax
je 0x140004724
cmp word [rax], r13w
je 0x140004724
movzx edi, word [rax]
sub edi, 0x30
mov word [rax - 2], r13w
mov esi, 0x22
cmp word [rbp - 0x30], si
jne 0x140004752
lea rdx, [rbp - 0x2e]
lea rcx, [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edx, esi
lea rcx, [rbp - 0x30]
call qword [sym.imp.msvcrt.dll_wcsrchr]
test rax, rax
je 0x140004752
mov word [rax], r13w
call sub.MFC42u.dll_Ordinal_1463
mov r8d, edi
lea rdx, [rbp - 0x30]
mov rcx, qword [rax + 0x10]
call qword [sym.imp.SHELL32.dll_ExtractIconW]
mov rdi, rax
cmp rax, 1
jg 0x14000480b
mov rcx, qword [rsp + 0x30]
lea rdx, str.LocalServer32
call fcn.140003f00
mov rdi, rax
cmp rax, 1
jg 0x14000480b
mov rcx, qword [rsp + 0x30]
lea rdx, str.LocalServer
call fcn.140003f00
mov rdi, rax
cmp rax, 1
jg 0x14000480b
mov rcx, qword [rsp + 0x30]
lea rdx, str.InprocServer32
call fcn.140003f00
mov rdi, rax
cmp rax, 1
jg 0x14000480b
mov rcx, qword [rsp + 0x30]
lea rdx, str.InprocServer
call fcn.140003f00
mov rdi, rax
cmp rax, 1
jg 0x14000480b
mov rcx, qword [rsp + 0x30]
lea rdx, str.InprocHandler32
call fcn.140003f00
mov rdi, rax
cmp rax, 1
jg 0x14000480b
mov rcx, qword [rsp + 0x30]
lea rdx, str.InprocHandler
call fcn.140003f00
mov rdi, rax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp rdi, 1
jle 0x140004821
mov r8, rdi
jmp 0x140004859
mov edx, 0xe
lea edi, [rdx + 0x61]
jmp 0x140004842
call fcn.140012c9c
mov rcx, rbx
call fcn.140004c84
mov edx, 0xe
mov edi, 0x72
mov rcx, rdi
call sub.MFC42u.dll_Ordinal_1441
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.USER32.dll_LoadIconW]
mov r8, rax
mov rcx, qword [rbx + 0xf88]
xor r9d, r9d
mov edx, CGopherConnection::CGopherConnection
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, rbx
call sub.MFC42u.dll_CDC::Escape
mov rcx, qword [rbp + 0x3f0]
xor rcx, rsp
call fcn.140019330
lea r11, [rsp + 0x500]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret