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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x44d721
push eax
mov eax, 0x4248
mov dword fs:[0], esp
call fcn.0044b050
push ebp
push esi
mov ebp, ecx
xor esi, esi
push edi
push esi
mov eax, dword [ebp + 0xa1d4]
push esi
push 0x184
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [esp + 0x1c]
push ecx
push 0x20019
push esi
push str.SoftwareMicrosoftWindowsCurrentVersion66656
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4163fb
mov dl, byte [0x4820b4]
mov ecx, 0x40
lea edi, [esp + 0x51]
mov byte [esp + 0x50], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x34]
push eax
lea edx, [esp + 0x3c]
push ecx
lea eax, [esp + 0x54]
push edx
lea ecx, [esp + 0x20]
push eax
lea edx, [esp + 0x54]
push ecx
lea eax, [esp + 0x5c]
push edx
lea ecx, [esp + 0x30]
push eax
push ecx
mov ecx, dword [esp + 0x3c]
lea edx, [esp + 0x4c]
push esi
lea eax, [esp + 0x74]
push edx
push eax
push ecx
mov dword [esp + 0x5c], 0x104
mov dword [esp + 0x48], esi
mov dword [esp + 0x50], 0x3fff
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov eax, dword [esp + 0x18]
cmp eax, esi
je 0x4162a8
jbe 0x4162a8
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
lea edx, [esp + 0x3c]
lea eax, [esp + 0x24]
push edx
mov edx, dword [esp + 0x20]
push 0
push 0
push 0
lea ecx, [esp + 0x164]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x44], 0xff
call edi
mov eax, dword [esp + 0x18]
inc esi
cmp esi, eax
jb 0x416277
mov eax, dword [esp + 0x14]
xor edi, edi
cmp eax, edi
je 0x4163fb
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0xc]
mov dword [esp + 0x425c], edi
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [esp + 0x14]
mov byte [esp + 0x425c], 1
cmp eax, edi
jbe 0x4163d6
mov esi, dword [sym.imp.MSVCRT.dll__mbscmp]
mov edx, dword [esp + 0x1c]
push 0
push 0
push 0
lea eax, [esp + 0x2c]
push 0
lea ecx, [esp + 0x264]
push eax
push ecx
push edi
push edx
mov dword [esp + 0x40], 0x3fff
mov byte [esp + 0x274], 0
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x4163c9
lea eax, [esp + 0x254]
lea ecx, [esp + 0x10]
push eax
push 0x464298
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 8
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x34], esp
push edx
call fcn.0044a6f6
mov ecx, dword [ebp + 0x64]
lea eax, [esp + 0x2c]
push str.SoftwareMicrosoftWindowsCurrentVersion66656_
push eax
call fcn.0040f390
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x4260], 2
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x28]
mov byte [esp + 0x425c], 1
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xc]
push str.Error
push ecx
call esi
add esp, 8
test eax, eax
je 0x4163c9
push ecx
lea edx, [esp + 0x10]
mov ecx, esp
mov dword [esp + 0x34], esp
push edx
call fcn.0044a6f6
mov ecx, ebp
call fcn.004164f0
test eax, eax
je 0x4163c9
mov eax, dword [esp + 0xc]
mov ecx, dword [ebp + 0xa1d4]
push eax
push 0
push 0x180
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esp + 0x14]
inc edi
cmp edi, eax
jb 0x4162e9
lea ecx, [esp + 0xc]
mov byte [esp + 0x425c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x425c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, ebp
call fcn.00416420
mov ecx, dword [esp + 0x4254]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebp
add esp, 0x4254
ret