Function at 0x4fbcbc
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, 0x58d59e
call fcn.005589d4
sub esp, 0x80
mov eax, dword [0x5f3edc]
push ebx
push esi
xor ebx, ebx
push ebx
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x4c]
push eax
push ebx
push 3
push ebx
push ebx
push ebx
push dword [ebp + 8]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4fbe67
push dword [ebp + 0xc]
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__]
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], ebx
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 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 [0x5f2f3c]
mov byte [ebp - 4], 1
push dword [ebp - 0x4c]
call esi
test eax, eax
jne 0x4fbd98
cmp dword [ebp - 0x50], 1
jne 0x4fbd98
mov eax, dword [ebp - 0x54]
inc eax
push edi
push eax
call sub.MFC71.DLL_operator_new
pop ecx
mov edi, eax
lea eax, [ebp - 0x54]
push eax
push edi
lea eax, [ebp - 0x50]
push eax
push ebx
push dword [0x5f2f3c]
push dword [ebp - 0x4c]
call esi
push edi
lea ecx, [ebp - 0x2c]
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_char_const__]
push edi
call sub.MFC71.DLL_operator_delete
pop ecx
pop edi
push ebx
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP71.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int_const]
mov ecx, dword [sym.imp.MSVCP71.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov ecx, dword [ecx]
cmp eax, ecx
je 0x4fbdd2
cmp eax, ebx
jne 0x4fbdc2
mov eax, dword [ebp - 0x34]
cmp dword [ebp - 0x18], eax
jne 0x4fbdbd
push ecx
jmp 0x4fbdbf
cmp byte [ebp + 0x10], bl
jne 0x4fbd6f
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], bl
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
or dword [ebp - 4], 0xffffffff
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__::destructor_void_]
mov al, 1
jmp 0x4fbe69
inc eax
push eax
push ebx
jmp 0x4fbdc9
mov ecx, dword [ebp - 0x34]
inc ecx
push ecx
dec eax
push eax
lea ecx, [ebp - 0x2c]
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__::erase_unsigned_int__unsigned_int_]
cmp dword [ebp - 0x18], ebx
lea eax, [ebp - 0x48]
jne 0x4fbde6
push eax
lea ecx, [ebp - 0x2c]
call dword [0x594de8]
jmp 0x4fbe35
push 0x2c
push eax
lea eax, [ebp - 0x8c]
push eax
call fcn.004e1200
lea ecx, [ebp - 0x2c]
push ecx
push eax
lea eax, [ebp - 0x70]
push eax
mov byte [ebp - 4], 2
call fcn.004e1000
add esp, 0x18
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call dword [0x594de8]
lea ecx, [ebp - 0x70]
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 ecx, [ebp - 0x8c]
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_]
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x4fbe41
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x18]
inc ecx
push ecx
push eax
push 1
push ebx
push dword [0x5f2f3c]
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4fbd9d
xor al, al
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.00558076
leave
ret