Function at 0x405289
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push 0x40
mov eax, 0x44300e
call fcn.0043d0b2
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
push 0x2001f
xor edi, edi
push edi
push dword [ebp + 0xc]
mov dword [ebp - 0x1c], edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4054d7
lea ecx, [ebp - 0x4c]
call sub.mfc90u.dll_CStringArray::CStringArray
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 4], edi
call fcn.0040405b
lea ecx, [ebp - 0x20]
call dword [0x474bb4]
lea ecx, [ebp - 0x14]
call dword [0x474bb4]
lea eax, [ebp - 0x4c]
push eax
mov byte [ebp - 4], 3
push dword [ebp - 0x1c]
call fcn.004051b9
cmp dword [ebp - 0x44], edi
mov dword [ebp - 0x18], edi
jle 0x4054a7
mov esi, 0x104
jmp 0x405305
mov edi, dword [ebp - 0x18]
test edi, edi
jl 0x4054ea
cmp edi, dword [ebp - 0x44]
jge 0x4054ea
mov eax, dword [ebp - 0x48]
lea eax, [eax + edi*4]
push eax
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_2]
lea ecx, [ebp - 0x10]
call dword [0x474bb4]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::Empty]
and dword [ebp - 0x2c], 0
cmp edi, dword [ebp - 0x44]
mov dword [ebp - 0x28], esi
jge 0x4054ea
mov eax, dword [ebp - 0x48]
lea eax, [eax + edi*4]
mov edi, dword [eax]
lea eax, [ebp - 0x28]
push eax
push esi
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer_1]
push eax
lea eax, [ebp - 0x2c]
push eax
push 0
push edi
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::ReleaseBuffer]
push dword [ebp - 0x10]
lea eax, [ebp - 0x20]
push dword [ebp - 0x14]
push dword [ebp + 0xc]
push dword [ebp - 0x24]
push str._s_s_s:_s
push eax
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Format]
add esp, 0x18
push str.MRUList
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CompareNoCase]
test eax, eax
jne 0x4053b8
cmp byte [ebp + 0x10], 9
je 0x40548b
mov al, byte [ebx + 0x26e]
cmp al, 1
je 0x4054df
mov al, byte [ebx + 0x26d]
cmp al, 1
jne 0x40541e
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x44]
jge 0x4054ea
mov ecx, dword [ebp - 0x48]
lea eax, [ecx + eax*4]
push dword [eax]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push ecx
lea eax, [ebp - 0x14]
mov ecx, esp
mov dword [ebp - 0x30], esp
push eax
call dword [0x474b9c]
push ecx
mov byte [ebp - 4], 5
mov ecx, esp
mov dword [ebp - 0x34], esp
push dword [ebp + 0xc]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
mov edx, dword [ebp + 8]
mov ecx, ebx
mov byte [ebp - 4], 4
call fcn.004056d7
fldz
sub esp, 0xc
lea eax, [ebp - 0x10]
fstp qword [esp + 4]
mov ecx, esp
mov dword [ebp - 0x34], esp
push eax
call dword [0x474b9c]
push 0
push dword [ebp + 8]
mov byte [ebp - 4], 6
push ecx
lea eax, [ebp - 0x14]
mov ecx, esp
mov dword [ebp - 0x30], esp
push eax
call dword [0x474b9c]
push dword [ebp + 0x10]
mov byte [ebp - 4], 7
push 1
push ecx
mov ecx, esp
mov dword [ebp - 0x38], esp
push dword [ebp + 0xc]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
push ebx
mov byte [ebp - 4], 4
call fcn.0040491f
and dword [0x4a3f08], 0
push 1
push dword [ebp - 0x20]
call dword [ebx + 0x2e8]
pop ecx
pop ecx
call dword [ebx + 0x2ec]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
inc dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x44]
jl 0x405302
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [ebp - 0x20]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [ebp - 0x24]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.0043bab2
call fcn.0043d18a
ret 0xc
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
jmp 0x4054a7
call sub.mfc90u.dll_AfxThrowInvalidArgException
int3