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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x41982c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x240
mov eax, dword [0x429130]
push ebx
mov dword [esp + 0x23c], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
push esi
push edi
mov dword [esp + 0x2c], ecx
je 0x41668e
cmp dword [ebp + 0xc], ebx
je 0x41668e
mov dword [esp + 0x1c], ebx
push 0x20019
push eax
push 0x80000001
lea ecx, [esp + 0x28]
mov dword [esp + 0x260], ebx
call fcn.00415d40
test eax, eax
je 0x416495
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x41668e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x41668e
xor esi, esi
jmp 0x4164a0
xor eax, eax
mov word [esp + 0x40], bx
mov ecx, 0x7f
lea edi, [esp + 0x42]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, dword [esp + 0x1c]
lea eax, [esp + 0x38]
push eax
push ebx
push ebx
push ebx
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x54]
push edx
push esi
push edi
mov dword [esp + 0x48], 0xff
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, ebx
jne 0x41665b
lea eax, [esp + 0x40]
inc esi
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x34], esi
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_2]
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_4]
mov ecx, dword [esp + 0x14]
mov edx, dword [ebp + 8]
push ecx
push edx
lea eax, [esp + 0x18]
push 0x41c88c
push eax
mov byte [esp + 0x264], 2
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::Format]
add esp, 0x10
lea ecx, [esp + 0x10]
mov byte [esp + 0x254], 3
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
lea ecx, [esp + 0x18]
push ecx
push 0x20019
push ebx
push eax
push 0x80000001
mov dword [esp + 0x2c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x4165c1
mov esi, dword [esp + 0x18]
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x3c]
push ecx
push ebx
push 0x41fc48
mov edi, esi
push esi
mov dword [esp + 0x30], edi
mov dword [esp + 0x3c], 1
mov dword [esp + 0x38], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp esi, ebx
je 0x41659c
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
mov dword [esp + 0x18], edi
push 0x18
call sub.MFC71U.DLL_CWordArray::CWordArray
add esp, 4
mov dword [esp + 0x20], eax
cmp eax, ebx
mov byte [esp + 0x254], 4
je 0x4165e1
mov ecx, eax
call fcn.004162f0
mov esi, eax
jmp 0x4165e3
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea ecx, [esp + 0x14]
mov byte [esp + 0x254], bl
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
jmp 0x4164a0
xor esi, esi
cmp esi, ebx
mov byte [esp + 0x254], 3
mov dword [esp + 0x20], esi
je 0x416668
lea edx, [esp + 0x14]
push edx
mov ecx, esi
call dword [0x41a768]
mov al, byte [esp + 0x24]
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [ebp + 0xc]
add ecx, 8
mov byte [esi + 4], al
call fcn.00416330
push esi
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
mov ecx, dword [esp + 0x30]
push eax
call fcn.00416410
cmp edi, ebx
je 0x416637
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea ecx, [esp + 0x14]
mov byte [esp + 0x254], bl
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
mov esi, dword [esp + 0x30]
jmp 0x4164a0
cmp edi, ebx
je 0x41668e
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x41668e
lea ecx, [esp + 0x18]
call fcn.00415e10
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea ecx, [esp + 0x1c]
call fcn.00415e10
mov ecx, dword [esp + 0x24c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x244]
call fcn.00417721
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8