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

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x44e0fc
push eax
mov eax, 0x424c
mov dword fs:[0], esp
call fcn.0044b050
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push ebp
push esi
mov ebp, ecx
xor esi, esi
push edi
push esi
mov eax, dword [ebp + 0x108]
push esi
push 0x184
push eax
call ebx
lea ecx, [esp + 0x1c]
push ecx
push 0x20019
push esi
push str.SoftwareMicrosoftWindowsCurrentVersion66656_Garage
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41aaa7
mov dl, byte [0x4820b4]
mov ecx, 0x40
lea edi, [esp + 0x59]
mov byte [esp + 0x58], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x44]
lea ecx, [esp + 0x4c]
push eax
lea edx, [esp + 0x44]
push ecx
lea eax, [esp + 0x5c]
push edx
lea ecx, [esp + 0x20]
push eax
lea edx, [esp + 0x48]
push ecx
lea eax, [esp + 0x64]
push edx
lea ecx, [esp + 0x3c]
push eax
push ecx
mov ecx, dword [esp + 0x3c]
lea edx, [esp + 0x54]
push esi
lea eax, [esp + 0x7c]
push edx
push eax
push ecx
mov dword [esp + 0x64], 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 0x41a974
test eax, eax
jbe 0x41a974
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov ebx, 0xff
lea edx, [esp + 0x44]
lea eax, [esp + 0x30]
push edx
mov edx, dword [esp + 0x20]
push 0
push 0
push 0
lea ecx, [esp + 0x16c]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x50], ebx
call edi
mov eax, dword [esp + 0x24]
inc esi
cmp esi, eax
jb 0x41a941
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esp + 0x14]
xor edi, edi
cmp eax, edi
je 0x41aaa7
lea ecx, [esp + 0x18]
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 + 0x14]
mov byte [esp + 0x4264], 1
cmp eax, edi
jbe 0x41aa82
mov esi, dword [sym.imp.MSVCRT.dll__mbscmp]
mov edx, dword [esp + 0x1c]
push 0
push 0
push 0
lea eax, [esp + 0x34]
push 0
lea ecx, [esp + 0x26c]
push eax
push ecx
push edi
push edx
mov dword [esp + 0x48], 0x3fff
mov byte [esp + 0x27c], 0
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x41aa75
lea eax, [esp + 0x25c]
lea ecx, [esp + 0x18]
push eax
push 0x464298
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 8
lea edx, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x40], esp
push edx
call fcn.0044a6f6
mov ecx, dword [ebp + 0x60]
lea eax, [esp + 0x30]
push str.SoftwareMicrosoftWindowsCurrentVersion66656_Garage_
push eax
call fcn.0040f390
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x4268], 2
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 0x41aa75
mov edx, dword [esp + 0x10]
mov eax, dword [ebp + 0x108]
push edx
push 0
push 0x180
push eax
call ebx
mov eax, dword [esp + 0x14]
inc edi
cmp edi, eax
jb 0x41a9b5
lea ecx, [esp + 0x10]
mov byte [esp + 0x4264], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov dword [esp + 0x4264], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp + 0x108]
push 0
push 0
push 0x18b
push ecx
call ebx
lea ecx, [esp + 0x20]
mov edi, eax
call sub.MFC42.DLL_CString::CString_3
test edi, edi
mov dword [esp + 0x4264], 3
jle 0x41ab34
mov edx, dword [ebp + 0x1c8]
push 0
push 0
push 0x14b
push edx
call ebx
xor esi, esi
test edi, edi
jle 0x41ab22
lea ebx, [ebp + 0xe8]
lea eax, [esp + 0x20]
mov ecx, ebx
push eax
push esi
call sub.MFC42.DLL_CListBox::GetText
mov ecx, dword [esp + 0x20]
mov edx, dword [ebp + 0x1c8]
push ecx
push 0
push 0x143
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
inc esi
cmp esi, edi
jl 0x41aaf1
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebp + 0x1c8]
push 0
push 0
push 0x14e
push eax
call ebx
lea ecx, [esp + 0x20]
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