Function at 0x10087bc
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x1016c61
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x368
push ebx
push esi
push edi
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString_1
xor ebx, ebx
push 4
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], ebx
call sub.MFC42.DLL_CString::LoadStringA
lea eax, [ebp - 0x78]
push 0x40
push eax
push 0x1003070
mov dword [ebp - 0x24], 0x80
call dword [sym.imp.ole32.dll_StringFromGUID2]
lea eax, [ebp - 0x78]
test eax, eax
je 0x100882c
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
mov eax, esi
add eax, 3
and al, 0xfc
call fcn.01016a50
mov eax, esp
lea ecx, [ebp - 0x78]
push esi
push ecx
push eax
call sub.MFC42.DLL_AfxW2AHelper
push eax
lea eax, [ebp - 0xf8]
push 0x1001b18
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x374]
push eax
lea eax, [ebp - 0xf8]
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
jne 0x1008877
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString
push 1
pop eax
jmp 0x1008a49
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString_1
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString_1
push 0x1001b0c
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.01016118
push dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov byte [ebp - 4], 3
mov dword [ebp - 0x20], ebx
call esi
mov edi, eax
cmp edi, 0x20
ja 0x1008989
push 0x17
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::LoadStringA
push 0x18
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::LoadStringA
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x10]
push eax
call sub.MFC42.DLL_CString::operator
push 0x1a
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::LoadStringA
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x10]
push eax
call sub.MFC42.DLL_CString::operator
push ebx
push 4
push dword [ebp - 0x10]
call sub.MFC42.DLL_AfxMessageBox
cmp eax, 6
jne 0x10089fd
push dword [ebp + 8]
lea ecx, [ebp - 0x2f4]
push str.DLL_Files__.dll_.dllAllFiles_._.
push 0x1804
push ebx
push 0x1001b00
push 1
call sub.MFC42.DLL_CFileDialog::CFileDialog
lea ecx, [ebp - 0x2f4]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CFileDialog::DoModal
cmp eax, 1
jne 0x10089df
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x2f4]
push eax
call sub.MFC42.DLL_CFileDialog::GetPathName
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x244]
mov byte [ebp - 4], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x2f4]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CDialog::CDialog
push dword [ebp - 0x18]
jmp 0x10088ac
push 0x1001aac
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x10089ac
call eax
cmp eax, ebx
jge 0x10089a3
push 0x16
jmp 0x10089ae
mov dword [ebp - 0x20], 1
jmp 0x10089d6
push 0x19
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::LoadStringA
push 0x18
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::LoadStringA
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x10]
push eax
call sub.MFC42.DLL_CString::operator
push ebx
push ebx
push dword [ebp - 0x10]
call sub.MFC42.DLL_AfxMessageBox
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x10089fd
lea ecx, [ebp - 0x244]
mov byte [ebp - 4], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x2f4]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CDialog::CDialog
cmp dword [ebp - 0x20], 1
jne 0x1008a17
push 0x36
push 0x1001ae0
push dword [ebp - 0x1c]
mov ecx, 0x101b710
call sub.MFC42.DLL_CWinApp::WriteProfileInt
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x380]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 4