Function at 0x4022a0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4032d9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x248
push ebx
push ebp
push esi
mov esi, ecx
xor ebp, ebp
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x4c], esi
mov dword [esp + 0x28], ebp
mov dword [esi + 0x54], ebp
call sub.MFC42.DLL_CString::CString
push 0xb
lea ecx, [esp + 0x18]
mov dword [esp + 0x264], ebp
call sub.MFC42.DLL_CString::LoadStringA
test eax, eax
je 0x402609
mov eax, dword [esi + 0x48]
mov ecx, dword [esi + 0x4c]
push eax
push ecx
lea edx, [esp + 0x1c]
push 0xb
push edx
call sub.MFC42.DLL_CString::Format
mov ebx, 0xff
add esp, 0x10
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 4
mov dword [esp + 0x20], ebx
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x260], 1
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 0x24]
mov byte [esp + 0x260], 2
push eax
push 0x20019
push ebp
push ecx
push SysStringLen
mov dword [esp + 0x58], 1
call edi
test eax, eax
jne 0x4025dc
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x58]
push ebx
push edx
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
push eax
call ebp
cmp eax, 0x103
je 0x4025dc
lea ecx, [esp + 0x58]
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator
lea edx, [esp + 0x10]
lea ecx, [esp + 0x30]
push edx
call sub.MFC42.DLL_CString::CString_3
mov esi, eax
push 0x406080
lea ecx, [esp + 0x58]
mov byte [esp + 0x264], 3
call sub.MFC42.DLL_CString::CString_2
push eax
lea eax, [esp + 0x18]
lea ecx, [esp + 0x38]
push eax
push ecx
mov byte [esp + 0x26c], 4
call sub.MFC42.DLL_operator_1
push esi
lea edx, [esp + 0x44]
push eax
push edx
mov byte [esp + 0x26c], 5
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x264], 6
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x40]
mov byte [esp + 0x260], 5
call fcn.00402da2
lea ecx, [esp + 0x34]
mov byte [esp + 0x260], 4
call fcn.00402da2
lea ecx, [esp + 0x54]
mov byte [esp + 0x260], 3
call fcn.00402da2
lea ecx, [esp + 0x30]
mov byte [esp + 0x260], 2
call fcn.00402da2
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
push 0x20019
push 0
push ecx
push SysStringLen
call edi
test eax, eax
jne 0x4025bf
lea edx, [esp + 0x158]
push ebx
push edx
push eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x2c], ebx
push eax
call ebp
lea ecx, [esp + 0x158]
push ecx
lea ecx, [esp + 0x40]
call sub.MFC42.DLL_CString::CString_2
mov esi, eax
push 0x406080
lea ecx, [esp + 0x3c]
mov byte [esp + 0x264], 7
call sub.MFC42.DLL_CString::CString_2
push eax
lea edx, [esp + 0x14]
lea eax, [esp + 0x4c]
push edx
push eax
mov byte [esp + 0x26c], 8
call sub.MFC42.DLL_operator_1
push esi
lea ecx, [esp + 0x54]
push eax
push ecx
mov byte [esp + 0x26c], 9
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x264], 0xa
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x50]
mov byte [esp + 0x260], 9
call fcn.00402da2
lea ecx, [esp + 0x48]
mov byte [esp + 0x260], 8
call fcn.00402da2
lea ecx, [esp + 0x38]
mov byte [esp + 0x260], 7
call fcn.00402da2
lea ecx, [esp + 0x3c]
mov byte [esp + 0x260], 2
call fcn.00402da2
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
push 0x20019
push 0
push ecx
push SysStringLen
call edi
test eax, eax
jne 0x4025bb
xor esi, esi
lea edx, [esp + 0x20]
lea eax, [esp + 0x158]
push edx
lea ecx, [esp + 0x48]
push eax
push ecx
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x38]
push 0
lea eax, [esp + 0x68]
push edx
push eax
push esi
push ecx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x4c], ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x4025aa
lea edx, [esp + 0x58]
lea ecx, [esp + 0x1c]
push edx
call sub.MFC42.DLL_CString::operator
mov eax, dword [esp + 0x1c]
push str.Beta
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
neg eax
sbb eax, eax
inc eax
test al, al
jne 0x402636
inc esi
cmp esi, 3
jl 0x402546
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [esp + 0x28]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x58]
push ebx
push edx
push eax
push ecx
call ebp
cmp eax, 0x103
jne 0x402387
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x260], 1
call fcn.00402da2
lea ecx, [esp + 0x10]
mov byte [esp + 0x260], 0
call fcn.00402da2
lea ecx, [esp + 0x14]
mov dword [esp + 0x260], 0xffffffff
call fcn.00402da2
mov ecx, dword [esp + 0x258]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x254
ret
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push str.Beta_Add_On
call sub.MFC42.DLL_CString::CString_2
mov esi, dword [esp + 0x50]
mov ecx, esi
call fcn.00402170
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esi + 0x54], 1
jmp 0x4025e7