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

Disassembly:
mov eax, 0x4212c8
call fcn.0041ee80
sub esp, 0x64
mov eax, dword [0x42fd70]
xor eax, ebp
push ebx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
push esi
xor ebx, ebx
cmp byte [ebp + 0x28], bl
mov dword [ebp - 4], ebx
mov dword [ebp - 0x30], ebx
lea ecx, [ebp - 0x30]
je 0x41adf9
push ebx
push ecx
push ebx
push 3
push ebx
push ebx
push ebx
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x41ae2a
lea ecx, [ebp - 0x2c]
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 - 0x38]
push eax
push ebx
lea eax, [ebp - 0x34]
push eax
push ebx
push dword [0x42fd14]
mov byte [ebp - 4], 1
push dword [ebp - 0x30]
call esi
test eax, eax
jne 0x41ae0e
cmp dword [ebp - 0x34], 1
jne 0x41ae0e
mov eax, dword [ebp - 0x38]
inc eax
push edi
push eax
call sub.MFC71.DLL_operator_new_1
pop ecx
mov edi, eax
lea eax, [ebp - 0x38]
push eax
push edi
lea eax, [ebp - 0x34]
push eax
push ebx
push dword [0x42fd14]
push dword [ebp - 0x30]
call esi
push edi
lea ecx, [ebp - 0x2c]
call dword [0x42271c]
push edi
call sub.MFC71.DLL_operator_delete
pop ecx
pop edi
push ebx
lea eax, [ebp + 0xc]
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 0x41ae53
cmp eax, ebx
jne 0x41ae43
mov eax, dword [ebp + 0x20]
cmp dword [ebp - 0x18], eax
jne 0x41ae3e
push ecx
jmp 0x41ae40
push ecx
push 3
push ebx
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
jmp 0x41ad61
cmp byte [ebp + 0x28], bl
jne 0x41add0
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
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_]
mov bl, 1
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 al, bl
jmp 0x41aef8
inc eax
push eax
push ebx
jmp 0x41ae4a
mov ecx, dword [ebp + 0x20]
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 + 0xc]
jne 0x41ae67
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__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
jmp 0x41aeb0
push 0x2c
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.004044f0
lea ecx, [ebp - 0x2c]
push ecx
push eax
lea eax, [ebp - 0x54]
push eax
mov byte [ebp - 4], 2
call fcn.004043f0
add esp, 0x18
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 - 0x54]
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 - 0x70]
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 0x41aebc
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x18]
inc ecx
push ecx
push eax
push 1
push ebx
push dword [0x42fd14]
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
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 + 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 al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
xor ecx, ebp
pop ebx
call fcn.0041ee69
leave
ret