Function at 0x413beb
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
sub esp, 0x258
lea ebp, [esp - 4]
mov eax, dword [0x4a3028]
xor eax, ebp
mov dword [ebp + 0x258], eax
push 0x34
mov eax, 0x43db06
call fcn.0043d0b2
lea eax, [ebp - 0x14]
xor edi, edi
mov esi, SysReAllocString
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x14], esi
call dword [sym.imp.K9PCUhelper.dll_public:_void___thiscall_CRegistry::constructor_struct_HKEY____const_const__]
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], edi
call dword [0x474bb4]
mov byte [ebp - 4], 1
call dword [sym.imp.K9PCUhelper.dll_unsigned_long_int___cdecl__winmajor_void_]
lea ecx, [ebp - 0x10]
cmp eax, 6
jb 0x413d27
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerBitBucketVolume
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_1]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x18], edi
call dword [0x474bb4]
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 2
push dword [ebp - 0x10]
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
cmp eax, edi
jne 0x413d13
mov ebx, 0x12b
push ebx
lea eax, [ebp]
push eax
push edi
push dword [ebp - 0x18]
mov dword [ebp - 0x14], edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
call edi
test eax, eax
jne 0x413d0a
mov esi, str.NukeOnDelete
lea eax, [ebp]
push eax
push dword [ebp - 0x10]
lea eax, [ebp - 0x1c]
push 0x478b24
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, 0x10
push 0
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x40]
push SysReAllocString
call dword [sym.imp.K9PCUhelper.dll_public:_int___thiscall_CRegistry::Open_struct_HKEY_____wchar_t_const___bool_]
test eax, eax
je 0x413cf1
push esi
lea ecx, [ebp - 0x40]
call dword [sym.imp.K9PCUhelper.dll_public:_int___thiscall_CRegistry::VerifyValue_wchar_t_const__]
test eax, eax
je 0x413cf1
lea eax, [ebp - 0x20]
push eax
push esi
lea ecx, [ebp - 0x40]
call dword [sym.imp.K9PCUhelper.dll_public:_int___thiscall_CRegistry::ReadDWORD_wchar_t_const___unsigned_long_int__]
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x413d07
inc dword [ebp - 0x14]
push ebx
lea eax, [ebp]
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call edi
test eax, eax
je 0x413c9e
jmp 0x413d0a
mov dword [ebp - 0x24], eax
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x40]
call dword [sym.imp.K9PCUhelper.dll_public:_void___thiscall_CRegistry::Close_void_]
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]
jmp 0x413d7c
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerBitBucket
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_1]
push edi
push dword [ebp - 0x10]
lea ecx, [ebp - 0x40]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.K9PCUhelper.dll_public:_int___thiscall_CRegistry::Open_struct_HKEY_____wchar_t_const___bool_]
test eax, eax
je 0x413d73
mov esi, str.NukeOnDelete
push esi
lea ecx, [ebp - 0x40]
call dword [sym.imp.K9PCUhelper.dll_public:_int___thiscall_CRegistry::VerifyValue_wchar_t_const__]
test eax, eax
je 0x413d73
lea eax, [ebp - 0x20]
push eax
push esi
lea ecx, [ebp - 0x40]
call dword [sym.imp.K9PCUhelper.dll_public:_int___thiscall_CRegistry::ReadDWORD_wchar_t_const___unsigned_long_int__]
mov eax, dword [ebp - 0x20]
cmp eax, edi
je 0x413d73
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x40]
call dword [sym.imp.K9PCUhelper.dll_public:_void___thiscall_CRegistry::Close_void_]
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]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call dword [sym.imp.K9PCUhelper.dll_public_virtual:_void___thiscall_CRegistry::destructor_void_]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x258]
xor ecx, ebp
call fcn.0043c4b0
add ebp, 0x25c
leave
ret