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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4198cc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x250
mov eax, dword [0x429130]
push ebx
push esi
push edi
mov dword [esp + 0x254], eax
mov dword [esp + 0x38], ecx
call fcn.00416780
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_4]
mov eax, dword [0x4291f8]
mov ecx, dword [0x4291fc]
push eax
push ecx
lea edx, [esp + 0x1c]
push str.HKEY_CURRENT_USERSoftware_s_s
xor ebx, ebx
push edx
mov dword [esp + 0x274], ebx
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::Format]
add esp, 0x10
push ebx
push 0x5c
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC71U.DLL_CWnd::FilterToolTipMessage]
cmp eax, 0xffffffff
je 0x4168a3
inc eax
push eax
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC71U.DLL_COleMessageFilter::XMessageFilter::MessagePending]
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x268], 1
call dword [0x41a768]
lea ecx, [esp + 0x2c]
mov byte [esp + 0x264], bl
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71U.DLL_CGopherFileFind::IsDots]
test al, al
jne 0x416b53
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_4]
mov ecx, dword [esp + 0x14]
push str.SettingsDecode_Tree_Item_State
push ecx
lea edx, [esp + 0x24]
push 0x41c88c
push edx
mov byte [esp + 0x274], 2
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::Format]
add esp, 0x10
lea ecx, [esp + 0x1c]
mov byte [esp + 0x264], 3
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
lea ecx, [esp + 0x28]
push ecx
push 0x20019
push ebx
push eax
push 0x80000001
mov dword [esp + 0x3c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x416b49
mov edx, dword [esp + 0x28]
mov dword [esp + 0x40], edx
xor esi, esi
xor eax, eax
mov word [esp + 0x50], bx
mov ecx, 0x7f
lea edi, [esp + 0x52]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x48]
push eax
mov eax, dword [esp + 0x2c]
push ebx
push ebx
push ebx
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x64]
push edx
push esi
push eax
mov dword [esp + 0x54], 0xff
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, ebx
jne 0x416b3a
lea ecx, [esp + 0x50]
push ecx
inc esi
lea ecx, [esp + 0x28]
mov dword [esp + 0x40], esi
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_2]
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_4]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
push edx
push eax
lea ecx, [esp + 0x20]
push 0x41c88c
push ecx
mov byte [esp + 0x274], 5
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::Format]
add esp, 0x10
lea ecx, [esp + 0x18]
mov byte [esp + 0x264], 6
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
lea edx, [esp + 0x20]
push edx
push 0x20019
push ebx
push eax
push 0x80000001
mov dword [esp + 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x416a3f
mov esi, dword [esp + 0x20]
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x4c]
push edx
push ebx
push 0x41fc48
push esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x44], 1
mov dword [esp + 0x48], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp esi, ebx
je 0x416a1c
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x20], ebx
push 0x18
call sub.MFC71U.DLL_CWordArray::CWordArray
add esp, 4
mov esi, eax
cmp esi, ebx
je 0x416a60
mov ecx, esi
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_4]
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
jmp 0x416a62
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea ecx, [esp + 0x24]
mov byte [esp + 0x264], 3
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
jmp 0x416923
xor esi, esi
cmp esi, ebx
mov byte [esp + 0x264], 6
mov dword [esp + 0x30], esi
je 0x416b17
lea eax, [esp + 0x24]
push eax
mov ecx, esi
call dword [0x41a768]
mov cl, byte [esp + 0x2c]
mov edi, dword [esp + 0x38]
mov byte [esi + 4], cl
mov edx, dword [edi + 4]
cmp edx, ebx
jne 0x416a99
xor ecx, ecx
jmp 0x416aa1
mov ecx, dword [edi + 8]
sub ecx, edx
sar ecx, 2
cmp edx, ebx
je 0x416abe
mov eax, dword [edi + 0xc]
sub eax, edx
sar eax, 2
cmp ecx, eax
jae 0x416abe
mov eax, dword [edi + 8]
mov dword [eax], esi
add eax, 4
mov dword [edi + 8], eax
jmp 0x416ad0
mov eax, dword [edi + 8]
lea edx, [esp + 0x30]
push edx
push 1
push eax
mov ecx, edi
call fcn.00415fe0
push esi
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
push eax
mov ecx, edi
call fcn.00416410
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x416af2
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea ecx, [esp + 0x24]
mov byte [esp + 0x264], 3
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
mov esi, dword [esp + 0x3c]
jmp 0x416923
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x416b26
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x416b49
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
mov ecx, dword [esp + 0x25c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x254]
call fcn.00417721
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret