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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c7c98
mov eax, dword fs:[0]
push eax
mov eax, 0x102c
call fcn.004b81c0
mov eax, dword [0x4ff94c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov esi, ecx
lea ecx, [ebp - 0x1014]
mov dword [ebp - 0x101c], esi
mov dword [ebp - 0x1024], eax
call dword [0x4cb4cc]
xor ebx, ebx
push 0x20019
push ebx
mov ecx, esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x102c], ebx
mov dword [0x50bdd4], esi
call fcn.0044ccf0
mov edi, eax
mov dword [ebp - 0x1020], edi
test edi, edi
je 0x44da6d
xor ecx, ecx
mov dword [ebp - 0x1028], 0x800
mov word [ebp - 0x1010], cx
cmp dword [ebp - 0x1024], ecx
je 0x44d944
lea edx, [ebp - 0x1028]
push edx
lea eax, [ebp - 0x1010]
push eax
push ecx
push ecx
push str.InitialView
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x1028], 0x400
mov dword [ebp - 0x1018], 0x50bdf0
lea ecx, [ebp - 0x1038]
push ecx
push 0
push 0
push 0
lea edx, [ebp - 0x1028]
push edx
lea eax, [ebp - 0x810]
push eax
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x44da66
xor ecx, ecx
mov word [ebp - 0x12], cx
mov ecx, str.FieldDefaults
lea eax, [ebp - 0x810]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x44d9ba
test dx, dx
je 0x44d9b6
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x44d9ba
add eax, 4
add ecx, 4
test dx, dx
jne 0x44d994
xor eax, eax
jmp 0x44d9bf
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x44da5d
lea edx, [ebp - 0x810]
push edx
lea ecx, [ebp - 0x1014]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_2]
xor esi, esi
test ebx, ebx
jle 0x44da2b
mov eax, dword [esi*4 + 0x50bdf0]
push eax
lea ecx, [ebp - 0x1014]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Compare]
test eax, eax
js 0x44d9ff
inc esi
cmp esi, ebx
jl 0x44d9e0
jmp 0x44da2b
cmp ebx, esi
jle 0x44da2b
mov ecx, dword [ebp - 0x1018]
sub ebx, esi
jmp 0x44da10
lea edi, [ecx - 4]
push edi
call dword [0x4ca7ec]
dec ebx
mov ecx, edi
jne 0x44da10
mov edi, dword [ebp - 0x1020]
mov ebx, dword [ebp - 0x102c]
lea eax, [ebp - 0x810]
push eax
lea ecx, [esi*4 + 0x50bdf0]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_2]
mov esi, dword [ebp - 0x101c]
inc ebx
add dword [ebp - 0x1018], 4
mov dword [ebp - 0x102c], ebx
mov dword [ebp - 0x1028], 0x400
cmp ebx, 0x14
jb 0x44d958
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp + 8], 0
je 0x44da8f
mov eax, dword [esi + 0x78]
test eax, eax
je 0x44da8f
mov ecx, dword [eax + 0x120]
test ecx, ecx
je 0x44da8f
push ebx
push 0x50bdf0
call fcn.00491f90
cmp dword [ebp - 0x1024], 0
je 0x44dbdd
lea ecx, [ebp - 0x1010]
push ecx
lea ecx, [ebp - 0x1014]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_2]
test ebx, ebx
jle 0x44dbdd
add esi, 0x7c
mov dword [ebp - 0x1030], esi
mov dword [ebp - 0x1018], 0x806c
mov edi, 0x50bdf0
mov dword [ebp - 0x1020], ebx
mov eax, dword [edi]
mov ecx, dword [ebp - 0x1030]
push eax
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Compare]
neg eax
sbb esi, esi
and esi, 0xfffffffd
lea ecx, [ebp - 0x1014]
add esi, 3
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::GetManager]
push eax
push 0x4cbbf0
lea ecx, [ebp - 0x101c]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov edx, dword [ebp - 0x101c]
push edx
lea ecx, [ebp - 0x1014]
mov byte [ebp - 4], 1
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Compare]
test eax, eax
lea ecx, [ebp - 0x101c]
setne bl
mov byte [ebp - 4], 0
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
test bl, bl
je 0x44db9a
mov eax, dword [edi]
push eax
lea ecx, [ebp - 0x1014]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Compare]
test eax, eax
jne 0x44db9a
push str.__Default_
lea ecx, [ebp - 0x1014]
call dword [0x4cb13c]
push 0
lea ecx, [ebp - 0x1014]
call dword [sym.imp.mfc100u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer]
mov ecx, dword [ebp - 0x1024]
mov edx, dword [ecx + 4]
push eax
mov eax, dword [ebp - 0x1018]
push eax
push esi
push edx
call dword [sym.imp.USER32.dll_AppendMenuW]
push 0x4cbbf0
lea ecx, [ebp - 0x1014]
call dword [0x4ca7f8]
jmp 0x44dbbd
push 0
mov ecx, edi
call dword [sym.imp.mfc100u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer]
mov ecx, dword [ebp - 0x1024]
mov edx, dword [ecx + 4]
push eax
mov eax, dword [ebp - 0x1018]
push eax
push esi
push edx
call dword [sym.imp.USER32.dll_AppendMenuW]
mov eax, 1
add dword [ebp - 0x1018], eax
add edi, 4
sub dword [ebp - 0x1020], eax
jne 0x44dad5
mov ebx, dword [ebp - 0x102c]
lea ecx, [ebp - 0x1014]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
lea eax, [ebx + 1]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b7f56
mov esp, ebp
pop ebp
ret 8