Function at 0x40b190
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4130cc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x474
push ebx
push ebp
push esi
push edi
mov edi, ecx
call sub.MFC42.DLL_CWnd::GetParentFrame
mov esi, dword [eax + 0x114]
lea eax, [esp + 0x20]
push eax
mov ecx, edi
call fcn.0040b420
xor ebp, ebp
lea ecx, [esp + 0x18]
mov dword [esp + 0x48c], ebp
call sub.MFC42.DLL_CString::CString
mov ecx, edi
mov byte [esp + 0x48c], 1
call fcn.0040b6f0
push 0x41b4cc
push 0x41b038
lea ecx, [esp + 0x20]
push 0x41b030
push ecx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x28]
add esp, 0x10
lea edx, [esp + 0x10]
mov dword [esp + 0x1c], 0x28
push edx
push 0x20019
push ebp
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40b3bd
lea ecx, [esp + 0x14]
lea edx, [esp + 0x84]
push ecx
push edx
mov edx, dword [esp + 0x18]
push ebp
lea eax, [esp + 0x28]
push ebp
lea ecx, [esp + 0x6c]
push eax
push ecx
push ebp
push edx
mov dword [esp + 0x34], 0x400
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, 0x103
je 0x40b3b2
push ecx
lea eax, [esp + 0x60]
mov ecx, esp
mov dword [esp + 0x40], esp
push eax
call sub.MFC42.DLL_CString::CString_2
push ecx
lea edx, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x40], esp
push edx
mov byte [esp + 0x498], 2
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x48]
mov byte [esp + 0x494], 1
call fcn.00401b50
lea eax, [esp + 0x24]
lea ecx, [esp + 0x40]
push eax
mov byte [esp + 0x490], 3
call fcn.00402190
mov eax, dword [eax]
lea ecx, [esp + 0x84]
push ecx
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
lea ecx, [esp + 0x24]
test eax, eax
sete bl
call fcn.00411236
test bl, bl
je 0x40b35e
lea edx, [esp + 0x28]
lea eax, [esp + 0x5c]
push edx
push eax
call dword [sym.imp.RPCRT4.dll_UuidFromStringA]
test eax, eax
jne 0x40b35e
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x28]
add eax, 0x110
push 1
mov dword [eax], ecx
mov edx, dword [esp + 0x30]
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x34]
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x38]
xor ecx, ecx
mov dword [eax + 0xc], edx
xor eax, eax
push ecx
push eax
push 0x416c20
push 1
push ecx
mov ecx, esi
call fcn.00408ba0
push 1
push 0
mov ecx, esi
call sub.MFC42.DLL_CSplitterWnd::GetPane
mov ecx, eax
mov dword [eax + 0x48], edi
call fcn.0040ed80
xor ecx, ecx
xor eax, eax
push 1
push ecx
push eax
push 0x414d10
push 1
push ecx
mov ecx, esi
call fcn.00408ba0
lea ecx, [esp + 0x40]
inc ebp
mov dword [esp + 0x1c], 0x28
mov dword [esp + 0x14], 0x400
mov byte [esp + 0x48c], 1
call fcn.00401de0
lea eax, [esp + 0x14]
lea ecx, [esp + 0x84]
push eax
push ecx
mov ecx, dword [esp + 0x18]
push 0
lea edx, [esp + 0x28]
push 0
lea eax, [esp + 0x6c]
push edx
push eax
push ebp
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, 0x103
jne 0x40b268
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, edi
call fcn.0040b660
xor ecx, ecx
xor eax, eax
push 1
push ecx
push eax
push 0x414d10
push 1
push ecx
mov ecx, esi
call fcn.00408ba0
lea ecx, [esp + 0x18]
mov byte [esp + 0x48c], 0
call fcn.00411236
lea ecx, [esp + 0x20]
mov dword [esp + 0x48c], 0xffffffff
call fcn.00411236
mov ecx, dword [esp + 0x484]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x480
ret