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

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x44f8fc
push eax
mov eax, 0x424c
mov dword fs:[0], esp
call fcn.0044b050
push ebx
push ebp
push esi
lea eax, [esp + 0x14]
push edi
push eax
xor esi, esi
push 0x20019
push esi
push str.SoftwareMicrosoftWindowsCurrentVersion66656_EndCity
mov ebp, ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x422f3d
mov cl, byte [0x4820b4]
lea edi, [esp + 0x59]
mov byte [esp + 0x58], cl
mov ecx, 0x40
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea edx, [esp + 0x44]
lea eax, [esp + 0x4c]
push edx
lea ecx, [esp + 0x44]
push eax
lea edx, [esp + 0x5c]
push ecx
lea eax, [esp + 0x28]
push edx
lea ecx, [esp + 0x4c]
push eax
lea edx, [esp + 0x64]
push ecx
lea eax, [esp + 0x3c]
push edx
push eax
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x50]
push esi
lea edx, [esp + 0x7c]
push ecx
push edx
push eax
mov dword [esp + 0x60], 0x104
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], 0x3fff
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov eax, dword [esp + 0x24]
cmp eax, esi
je 0x422de6
jbe 0x422de6
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov ebx, 0xff
lea ecx, [esp + 0x44]
lea edx, [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x1c]
push 0
push 0
push 0
lea eax, [esp + 0x16c]
push edx
push eax
push esi
push ecx
mov dword [esp + 0x58], ebx
call edi
mov eax, dword [esp + 0x24]
inc esi
cmp esi, eax
jb 0x422db9
mov eax, dword [esp + 0x1c]
xor edi, edi
cmp eax, edi
je 0x422f3d
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x10]
mov dword [esp + 0x4264], edi
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x4264], 1
cmp eax, edi
jbe 0x422f18
mov esi, dword [sym.imp.MSVCRT.dll__mbscmp]
mov bl, 2
mov ecx, dword [esp + 0x18]
push 0
push 0
push 0
lea edx, [esp + 0x34]
push 0
lea eax, [esp + 0x26c]
push edx
push eax
push edi
push ecx
mov dword [esp + 0x48], 0x3fff
mov byte [esp + 0x27c], 0
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x422f0b
lea edx, [esp + 0x25c]
lea eax, [esp + 0x20]
push edx
push 0x464298
push eax
call sub.MFC42.DLL_CString::Format
add esp, 8
lea edx, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x38], esp
push edx
call fcn.0044a6f6
mov ecx, dword [ebp + 0xc4]
lea eax, [esp + 0x30]
push str.SoftwareMicrosoftWindowsCurrentVersion66656_EndCity_
push eax
call fcn.0040f390
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x4268], bl
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x2c]
mov byte [esp + 0x4264], 1
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
push str.Error
push ecx
call esi
add esp, 8
test eax, eax
je 0x422f0b
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x38], esp
push edx
call fcn.0044a6f6
mov ecx, ebp
call fcn.00422920
test eax, eax
je 0x422f0b
mov eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0xec]
push eax
push 0
push 0x180
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esp + 0x1c]
inc edi
cmp edi, eax
jb 0x422e29
lea ecx, [esp + 0x10]
mov byte [esp + 0x4264], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov dword [esp + 0x4264], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov edx, dword [ebp + 0xec]
push 0
push 0
push 0x18b
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [esp + 0x14]
mov esi, eax
call sub.MFC42.DLL_CString::CString_3
test esi, esi
mov dword [esp + 0x4264], 3
jle 0x422fa6
dec esi
test esi, esi
jl 0x422fa6
lea ebx, [ebp + 0xcc]
lea edi, [ebp + 0x760]
lea eax, [esp + 0x14]
mov ecx, ebx
push eax
push esi
call sub.MFC42.DLL_CListBox::GetText
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, edi
call fcn.004030e0
mov edx, dword [esp + 0x14]
mov ecx, edi
push edx
call fcn.00402200
dec esi
jns 0x422f7e
push 0x474c00
lea ecx, [ebp + 0x760]
call fcn.004030e0
lea ecx, [esp + 0x14]
mov dword [esp + 0x4264], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x425c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x4258
ret