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

Disassembly:
push 0x20
mov eax, 0x442fac
call fcn.0043d0b2
mov dword [ebp - 4], 1
mov al, byte [edi + 0x26d]
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov esi, SysReAllocString
cmp al, 1
jne 0x405548
push ecx
lea eax, [ebp + 0xc]
mov ecx, esp
mov dword [ebp - 0x28], esp
push eax
call dword [0x474b9c]
push ecx
mov byte [ebp - 4], 2
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x2c], esp
push eax
call dword [0x474b9c]
mov edx, esi
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.004056d7
lea eax, [ebp - 0x14]
push eax
push 0x2001f
push ebx
push dword [ebp + 8]
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4056bd
push ebx
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4056b4
mov al, byte [edi + 0x26e]
cmp al, 1
je 0x4056bd
mov al, byte [edi + 0x26d]
cmp al, 1
jne 0x4055a0
push dword [ebp + 0xc]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
lea eax, [ebp - 0x1c]
push eax
call fcn.0040405b
lea ecx, [ebp - 0x18]
call dword [0x474bb4]
lea ecx, [ebp - 0x10]
call dword [0x474bb4]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 5
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::Empty]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x28], ecx
lea ecx, [ebp - 0x20]
mov eax, 0x104
push ecx
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], ebx
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer_1]
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
push dword [ebp - 0x28]
push dword [ebp - 0x14]
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 + 0xc]
lea eax, [ebp - 0x18]
push dword [ebp + 8]
push dword [ebp - 0x1c]
push 0x47903c
push eax
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Format]
fldz
pop ecx
pop ecx
lea eax, [ebp - 0x10]
fstp qword [esp + 4]
mov ecx, esp
mov dword [ebp - 0x2c], esp
push eax
call dword [0x474b9c]
push ebx
push esi
push ecx
mov byte [ebp - 4], 6
lea eax, [ebp + 0xc]
mov ecx, esp
mov dword [ebp - 0x28], esp
push eax
call dword [0x474b9c]
push dword [ebp + 0x10]
lea eax, [ebp + 8]
push 1
push ecx
mov ecx, esp
mov dword [ebp + 0x10], esp
push eax
mov byte [ebp - 4], 7
call dword [0x474b9c]
push edi
mov byte [ebp - 4], 5
call fcn.0040491f
mov eax, dword [ebp + 0xc]
cmp dword [eax - 0xc], ebx
jle 0x405687
push 1
push dword [ebp - 0x18]
mov dword [0x4a3f08], ebx
call dword [edi + 0x2e8]
pop ecx
pop ecx
call dword [edi + 0x2ec]
lea eax, [edi + 0x280]
add dword [eax], 1
lea ecx, [ebp - 0x10]
adc dword [eax + 4], ebx
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 - 0x18]
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 - 0x1c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp + 8]
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 + 0xc]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
call fcn.0043d18a
ret 0xc