Function at 0x420500
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x43d956
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x94
push ebx
push esi
mov esi, ecx
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x18]
xor ebx, ebx
push eax
push 0x20019
push ebx
push 0x449598
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0xb8], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
je 0x42057b
lea ecx, [esp + 8]
mov dword [esp + 0xa4], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop esi
pop ebx
mov ecx, dword [esp + 0x94]
mov dword fs:[0], ecx
add esp, 0xa0
ret
push ebp
push edi
mov dword [esp + 0x14], ebx
mov edi, 0x44faa0
push 0x44a754
mov ecx, edi
call fcn.0043ac24
add edi, 4
cmp edi, 0x44fc30
jl 0x420586
push 0x3fe
mov ecx, esi
mov dword [esp + 0x1c], ebx
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, dword [eax + 0x20]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push ebx
push ebx
push 0x14b
push ecx
call ebp
push 0x402
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
mov edx, dword [eax + 0x20]
push ebx
push ebx
push 0x14b
push edx
call ebp
push 0x3fc
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
mov eax, dword [eax + 0x20]
push ebx
push ebx
push 0x14b
push eax
call ebp
push 0x400
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, dword [eax + 0x20]
push ebx
push ebx
push 0x14b
push ecx
call ebp
push 0x3fa
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
mov edx, dword [eax + 0x20]
push ebx
push ebx
push 0x14b
push edx
call ebp
push 0x462
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
mov eax, dword [eax + 0x20]
push ebx
push ebx
push 0x14b
push eax
call ebp
push 0x3f8
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, dword [eax + 0x20]
push ebx
push ebx
push 0x14b
push ecx
call ebp
push 0x463
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
mov edx, dword [eax + 0x20]
push ebx
push ebx
push 0x14b
push edx
call ebp
push 0x3fe
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
mov eax, dword [eax + 0x20]
push 0x44a754
push ebx
push 0x143
push eax
call ebp
push 0x402
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, dword [eax + 0x20]
push 0x44a754
push ebx
push 0x143
push ecx
call ebp
push 0x3fc
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
mov edx, dword [eax + 0x20]
push 0x44a754
push ebx
push 0x143
push edx
call ebp
push 0x400
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
mov eax, dword [eax + 0x20]
push 0x44a754
push ebx
push 0x143
push eax
call ebp
push 0x3fa
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, dword [eax + 0x20]
push 0x44a754
push ebx
push 0x143
push ecx
call ebp
push 0x462
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
mov edx, dword [eax + 0x20]
push 0x44a754
push ebx
push 0x143
push edx
call ebp
push 0x3f8
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
mov eax, dword [eax + 0x20]
push 0x44a754
push ebx
push 0x143
push eax
call ebp
push 0x463
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, dword [eax + 0x20]
push 0x44a754
push ebx
push 0x143
push ecx
call ebp
mov ebx, 0x44faa0
mov ecx, 0x19
xor eax, eax
lea edi, [esp + 0x40]
xor edx, edx
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x24], edx
mov eax, ecx
inc ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x30]
mov word [esp + 0x2c], dx
push ecx
lea edx, [esp + 0x28]
lea ecx, [esp + 0x40]
push edx
push ecx
lea edx, [esp + 0x40]
push 0
lea ecx, [esp + 0x50]
push edx
mov edx, dword [esp + 0x34]
push ecx
push eax
push edx
mov dword [esp + 0x54], 0x64
mov dword [esp + 0x50], 0xa
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov edi, eax
test edi, edi
mov dword [esp + 0x38], edi
je 0x4207d0
cmp edi, 0xea
jne 0x420928
call sub.MFC42.DLL_AfxGetEmptyString
mov eax, dword [eax]
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], eax
call fcn.0043ac24
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x10]
push edx
mov byte [esp + 0xb0], 1
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x1c]
mov byte [esp + 0xac], 0
call sub.MFC42.DLL_CString::CString
mov al, byte [esp + 0x24]
test al, al
je 0x420928
mov edi, dword [esp + 0x10]
push 0x3fe
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
mov eax, dword [eax + 0x20]
push edi
push 0
push 0x143
push eax
call ebp
mov edi, dword [esp + 0x10]
push 0x402
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, dword [eax + 0x20]
push edi
push 0
push 0x143
push ecx
call ebp
mov edi, dword [esp + 0x10]
push 0x3fc
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
mov edx, dword [eax + 0x20]
push edi
push 0
push 0x143
push edx
call ebp
mov edi, dword [esp + 0x10]
push 0x400
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
mov eax, dword [eax + 0x20]
push edi
push 0
push 0x143
push eax
call ebp
mov edi, dword [esp + 0x10]
push 0x3fa
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, dword [eax + 0x20]
push edi
push 0
push 0x143
push ecx
call ebp
mov edi, dword [esp + 0x10]
push 0x462
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
mov edx, dword [eax + 0x20]
push edi
push 0
push 0x143
push edx
call ebp
mov edi, dword [esp + 0x10]
push 0x3f8
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
mov eax, dword [eax + 0x20]
push edi
push 0
push 0x143
push eax
call ebp
mov edi, dword [esp + 0x10]
push 0x463
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, dword [eax + 0x20]
push edi
push 0
push 0x143
push ecx
call ebp
lea edx, [esp + 0x10]
push edx
mov ecx, ebx
call sub.MFC42.DLL_CString::operator_2
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x38]
inc ecx
add ebx, 4
mov dword [esp + 0x18], ecx
test edi, edi
je 0x42075c
cmp edi, 0xea
je 0x42075c
xor eax, eax
mov dword [esp + 0x14], eax
mov eax, dword [esi + eax*4 + 0x3fdc]
push 0x44a754
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
je 0x420a64
mov eax, dword [esp + 0x18]
xor edi, edi
test eax, eax
jle 0x420a64
mov ebx, 0x44faa0
mov eax, dword [esp + 0x14]
mov ecx, dword [ebx]
mov eax, dword [esi + eax*4 + 0x3fdc]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne case.default.0x420998
mov eax, dword [esp + 0x14]
cmp eax, 7
ja case.default.0x420998
jmp dword [eax*4 + 0x420ab0]
mov eax, dword [esp + 0x18]
inc edi
add ebx, 4
cmp edi, eax
jge 0x420a64
jmp 0x420973
push 0x3fe
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, dword [eax + 0x20]
inc edi
push 0
push edi
push 0x14e
push ecx
jmp 0x420a62
push 0x402
jmp 0x420a4e
push 0x3fc
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
mov eax, dword [eax + 0x20]
inc edi
push 0
push edi
push 0x14e
push eax
jmp 0x420a62
push 0x400
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, dword [eax + 0x20]
inc edi
push 0
push edi
push 0x14e
push ecx
jmp 0x420a62
push 0x3fa
jmp 0x420a4e
push 0x462
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
mov eax, dword [eax + 0x20]
inc edi
push 0
push edi
push 0x14e
push eax
jmp 0x420a62
push 0x3f8
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, dword [eax + 0x20]
inc edi
push 0
push edi
push 0x14e
push ecx
jmp 0x420a62
push 0x463
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
mov edx, dword [eax + 0x20]
inc edi
push 0
push edi
push 0x14e
push edx
call ebp
mov eax, dword [esp + 0x14]
inc eax
cmp eax, 8
mov dword [esp + 0x14], eax
jl 0x420942
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x10]
mov dword [esp + 0xac], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xa4]
pop edi
pop ebp
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0xa0
ret