Function at 0x4cbfb0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x14
push ebx
push ebp
mov ebp, ecx
xor ebx, ebx
push esi
push edi
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x20], ebx
cmp eax, ebx
jne 0x4cbfcb
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
lea edi, [ebp + 4]
push edi
push 0x20019
push ebx
push eax
mov eax, dword [ebp]
mov dword [esp + 0x30], edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4cc115
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x10], ebx
cmp eax, ebx
jne 0x4cbffc
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
push ebx
push edx
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
mov eax, dword [edi]
push eax
call ebx
mov ecx, dword [esp + 0x10]
push ecx
call sub.MFC42.DLL_operatornew
mov esi, eax
mov eax, dword [ebp + 0xc]
add esp, 4
mov dword [esp + 0x1c], esi
test eax, eax
jne 0x4cc033
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
lea edx, [esp + 0x10]
lea ecx, [esp + 0x14]
push edx
mov edx, dword [edi]
push esi
push ecx
push 0
push eax
push edx
call ebx
test eax, eax
jne 0x4cc0e0
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea ebx, [ebp + 0x28]
mov edi, ecx
push 1
push edi
mov ecx, ebx
mov dword [esp + 0x20], edi
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x4cc091
mov ecx, edi
mov edi, dword [ebx + 4]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 4]
mov esi, dword [esp + 0x1c]
mov dword [ebx + 8], eax
mov byte [ecx + eax], 0
push esi
call sub.MFC42.DLL_operatordelete
mov edx, dword [esp + 0x24]
add esp, 4
mov dword [ebp + 0x48], 1
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x28]
mov cl, byte [ebx]
xor eax, eax
mov byte [esi], cl
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov edx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov ecx, dword [edx]
push ecx
push eax
push ebx
mov ecx, esi
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
push esi
call sub.MFC42.DLL_operatordelete
mov edx, dword [edi]
add esp, 4
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x28]
mov al, byte [ebp + 0x38]
add ebp, 0x38
mov byte [esi], al
xor eax, eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov edx, dword [ecx]
push edx
push eax
jmp 0x4cc134
mov esi, dword [esp + 0x28]
mov al, byte [ebp + 0x38]
add ebp, 0x38
mov byte [esi], al
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov edx, dword [ecx]
push edx
push ebx
push ebp
mov ecx, esi
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4