Function at 0x10152cc
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x101fd40
call fcn.0101aec8
sub esp, 0x2f8
mov eax, dword [0x1025558]
push ebx
push esi
xor ebx, ebx
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
cmp edi, ebx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x100], 1
mov dword [esi + 0x110], ebx
mov dword [esi + 0x10c], ebx
mov dword [ebp - 0x21c], edi
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0x228], ebx
mov dword [0x1025f4c], ebx
je 0x101534e
push 0x208
call sub.MFC42u.dll_operatornew
cmp eax, ebx
pop ecx
mov dword [esi + 0x104], eax
je 0x1015710
push edi
push 0x104
push eax
call fcn.01008a34
mov eax, dword [ebp - 0x22c]
cmp eax, ebx
mov dword [ebp - 0x220], ebx
je 0x101535a
mov dword [eax], ebx
cmp dword [esi + 0x7c], ebx
je 0x1015544
lea edi, [esi + 0xfc]
mov dword [edi], 0xa
cmp dword [edi], 6
jne 0x1015389
push dword [ebp - 0x21c]
call fcn.01014790
test eax, eax
je 0x1015389
mov dword [edi], 8
push dword [ebp - 0x21c]
mov ecx, esi
call sub.MFC42u.dll_COleLinkingDoc::OnOpenDocument
test eax, eax
je 0x1015458
push esi
lea ecx, [ebp - 0x25c]
call sub.MFC42u.dll_COleUILinkInfo::COleUILinkInfo
push ebx
lea eax, [ebp - 0x25c]
push eax
mov dword [ebp - 0x24c], 1
call sub.MFC42u.dll_COleUILinkInfo::GetNextLink
test eax, eax
je 0x101541e
push 2
push ebx
push 0x10066a4
mov word [ebp - 0x218], bx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
cmp edi, ebx
je 0x10153ff
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0xbb8
push edi
call dword [sym.imp.USER32.dll_LoadStringW]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push ebx
push 4
lea eax, [ebp - 0x218]
push eax
call sub.MFC42u.dll_AfxMessageBox_1
sub eax, 6
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 0x228], eax
je 0x101544e
push ebx
push ebx
push 1
push esi
lea ecx, [ebp - 0x304]
call sub.MFC42u.dll_COleUpdateDialog::COleUpdateDialog
mov edx, dword [eax]
mov ecx, eax
mov dword [ebp - 4], 3
call dword [edx + 0xc0]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x304]
call fcn.0101aadc
mov dword [ebp - 0x228], 1
cmp dword [ebp - 0x228], ebx
mov dword [esi + 0x100], ebx
je 0x1015510
mov eax, dword [esi + 0x10c]
cmp eax, ebx
mov dword [esi + 0x108], eax
mov edi, 0x101480d
je 0x10154ba
push 2
push ebx
push 0x10066a4
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
cmp eax, ebx
mov dword [ebp - 0x21c], eax
je 0x10154ba
mov ecx, dword [0x1025890]
push esi
push edi
push dword [ecx + 0x20]
push 0x406
push eax
call dword [sym.imp.USER32.dll_DialogBoxParamW]
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [0x1025f4c], ebx
je 0x1015505
cmp dword [esi + 0x108], ebx
jne 0x1015505
push 2
push ebx
push 0x1006688
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
cmp eax, ebx
mov dword [ebp - 0x21c], eax
je 0x1015505
mov ecx, dword [0x1025890]
push esi
push edi
push dword [ecx + 0x20]
push 0x7530
push eax
call dword [sym.imp.USER32.dll_DialogBoxParamW]
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [0x1025f4c]
or dword [esi + 0x108], eax
add esi, 0x104
mov eax, dword [esi]
cmp eax, ebx
je 0x1015525
push eax
call sub.MFC42u.dll_operatordelete
pop ecx
mov dword [esi], ebx
mov eax, dword [ebp - 0x228]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.01018af7
leave
ret 0xc
cmp dword [0x1025958], ebx
je 0x101555d
lea edi, [esi + 0xfc]
mov dword [edi], 6
jmp 0x101560c
push ebx
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x244]
call fcn.01012cb8
push dword [ebp + 0xc]
lea eax, [ebp - 0x244]
push eax
push edi
mov dword [ebp - 4], ebx
call fcn.0100a78e
cmp eax, 0xffffffff
lea edi, [esi + 0xfc]
mov dword [edi], eax
jne 0x10155ba
cmp byte [ebp + 0xc], bl
je 0x10155ae
mov eax, dword [esi]
push 0xf101
push ebx
lea ecx, [ebp - 0x244]
push ecx
push dword [ebp - 0x21c]
mov ecx, esi
call dword [eax + 0x88]
mov dword [ebp - 0x220], 1
jmp 0x10155f1
cmp eax, 0xb
jne 0x10155de
push 0x40
push ebx
push 0xc6
call sub.MFC42u.dll_AfxMessageBox
mov eax, dword [ebp - 0x22c]
cmp eax, ebx
je 0x10155ae
mov dword [eax], 1
jmp 0x10155ae
cmp eax, 6
jne 0x10155f1
cmp dword [0x1025a04], ebx
je 0x10155f1
mov dword [edi], 7
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x244]
call fcn.01012d14
cmp dword [ebp - 0x220], ebx
jne 0x1015458
call fcn.0100a457
mov eax, dword [edi]
mov ecx, eax
imul ecx, ecx, 0x1c
cmp dword [ecx + 0x1024c08], ebx
je 0x1015722
push eax
call fcn.0100a26e
test eax, eax
jne 0x1015722
mov eax, dword [edi]
cmp eax, 1
je 0x1015642
cmp eax, 4
jne 0x101536f
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x230]
push eax
push ebx
push 0x10
push 0x100664c
push 0x1003628
push 0x80000001
mov dword [ebp - 0x220], 4
call dword [sym.imp.SHLWAPI.dll_SHRegGetValueW]
test eax, eax
je 0x10156aa
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x230]
push eax
push ebx
push 0x10
push 0x100664c
push 0x1003628
push 0x80000002
mov dword [ebp - 0x220], 4
call dword [sym.imp.SHLWAPI.dll_SHRegGetValueW]
test eax, eax
jne 0x10156be
xor eax, eax
cmp dword [ebp - 0x230], 1
sete al
cmp eax, ebx
jne 0x101536f
push ebx
push ebx
push 0x1006688
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push ebx
push 0x10148e5
mov dword [ebp - 0x224], eax
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
push 0x6d65
push dword [ebp - 0x224]
call dword [sym.imp.USER32.dll_DialogBoxParamW]
cmp eax, 1
push dword [ebp - 0x224]
je 0x1015717
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x22c]
cmp eax, ebx
je 0x1015710
mov dword [eax], 1
xor eax, eax
jmp 0x101552b
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x101536f
push edi
call fcn.0100a2f7
test eax, eax
jne 0x101536f
lea ecx, [ebp - 0x224]
call sub.MFC42u.dll_CString::CString_1
mov ecx, dword [edi]
imul ecx, ecx, 0x1c
push ebx
lea eax, [ebp - 0x21c]
push eax
add ecx, 0x1024c00
mov dword [ebp - 4], 1
call fcn.0100a324
push dword [ebp - 0x21c]
lea eax, [ebp - 0x224]
push 0xb3
push eax
mov byte [ebp - 4], 2
call sub.MFC42u.dll_AfxFormatString1
push ebx
push 0x40
push dword [ebp - 0x224]
call sub.MFC42u.dll_AfxMessageBox_1
mov eax, dword [ebp - 0x22c]
cmp eax, ebx
je 0x1015793
mov dword [eax], 1
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 1
call sub.MFC42u.dll_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x224]
call sub.MFC42u.dll_CString::CString
jmp 0x1015458