Function at 0x42224b
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x429218
call fcn.00425efc
sub esp, 0x84
mov eax, dword [0x43bba8]
mov dword [ebp - 0x10], eax
push ebx
mov eax, dword [ebp + 0x10]
xor ebx, ebx
cmp dword [ebp + 0x24], 0x10
mov dword [ebp - 4], ebx
jae 0x422275
lea eax, [ebp + 0x10]
lea ecx, [ebp - 0x4c]
push ecx
push 0x20019
push ebx
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4223dc
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x54]
push eax
push ebx
lea eax, [ebp - 0x50]
push eax
push ebx
push dword [0x43bb5c]
push dword [ebp - 0x4c]
call esi
test eax, eax
jne 0x4223d2
cmp dword [ebp - 0x50], 1
jne 0x4223d2
mov eax, dword [ebp - 0x54]
inc eax
push edi
push eax
call sub.MFC71.DLL_operator_new_1
pop ecx
mov edi, eax
lea eax, [ebp - 0x54]
push eax
push edi
lea eax, [ebp - 0x50]
push eax
push ebx
push dword [0x43bb5c]
push dword [ebp - 0x4c]
call esi
push edi
lea ecx, [ebp - 0x48]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
push edi
mov byte [ebp - 4], 1
call sub.MFC71.DLL_operator_delete
pop ecx
push ebx
push 0x4322d4
lea ecx, [ebp - 0x48]
call dword [sym.imp.MSVCP71.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_char_const___unsigned_int_const]
lea ecx, [ebp - 0x2c]
mov esi, eax
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
mov eax, dword [sym.imp.MSVCP71.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
cmp esi, dword [eax]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x48]
jne 0x42234d
push dword [eax]
lea eax, [ebp - 0x74]
push ebx
push eax
call dword [sym.imp.MSVCP71.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__::substr_unsigned_int__unsigned_int_]
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call dword [sym.imp.MSVCP71.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__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 2
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
jmp 0x422381
mov eax, esi
sub eax, ebx
push eax
push ebx
lea eax, [ebp - 0x90]
push eax
call dword [sym.imp.MSVCP71.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__::substr_unsigned_int__unsigned_int_]
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
call dword [sym.imp.MSVCP71.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__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 2
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ebx, [esi + 1]
cmp dword [ebp - 0x18], 0
je 0x4223aa
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x422393
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.004215f4
push dword [eax]
mov edi, dword [ebp + 8]
call fcn.004221b7
add esp, 0xc
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, dword [sym.imp.MSVCP71.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
cmp esi, dword [eax]
jne 0x4222f9
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
pop edi
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.00425abd
leave
ret