Function at 0x404510
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x405d2b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x7c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
lea ecx, [ebp - 0x34]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
xor ebx, ebx
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x50]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
mov byte [ebp - 4], 1
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x34]
push ecx
push 1
lea ecx, [ebp - 0x18]
mov edx, dword [ebp + 0xc]
call fcn.00401550
add esp, 0xc
mov edx, dword [ebp + 0x18]
test dword [ebp + 8], edx
jne 0x404574
mov byte [ebp - 4], bl
jmp 0x4046be
mov esi, dword [ebp - 0x18]
cmp esi, 0x80000001
jne 0x40458e
cmp byte [ebp + 0x20], bl
jne 0x40458e
mov dword [ebp - 0x18], 0x80000002
mov esi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x30]
cmp byte [ebp + 0x1c], bl
je 0x404701
cmp dword [ebp - 0x1c], 0x10
jae 0x4045a3
lea eax, [ebp - 0x30]
push ebx
lea ecx, [ebp + 0x18]
push ecx
push ebx
push 2
push ebx
push ebx
push ebx
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov edi, eax
push str.RegCreateKeyEx
lea ecx, [ebp - 0x6c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov byte [ebp - 4], 2
mov edx, dword [ebp + 0x10]
push edx
lea eax, [ebp - 0x34]
push eax
push esi
push edi
lea ebx, [ebp - 0x50]
mov ecx, dword [ebp + 0x14]
lea edi, [ebp - 0x6c]
call fcn.00404d10
add esp, 0x10
mov bl, 1
mov byte [ebp - 4], bl
mov ecx, edi
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov byte [ebp - 0x11], bl
mov byte [ebp - 4], 3
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0x18]
push edx
lea esi, [ebp - 0x50]
call fcn.00401920
add esp, 8
mov esi, eax
push str.RegSetValueEx
lea ecx, [ebp - 0x6c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov byte [ebp - 4], 4
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0x18]
push edx
push esi
lea ebx, [ebp - 0x50]
mov esi, dword [ebp + 0x14]
mov ecx, esi
lea edi, [ebp - 0x6c]
call fcn.00404d10
add esp, 0x10
mov byte [ebp - 4], 3
mov ecx, edi
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
push str.SET:
push esi
call fcn.00403f10
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x34]
push ecx
mov eax, dword [ebp - 0x18]
call fcn.00404e10
add esp, 0x10
mov edx, dword [ebp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
mov byte [ebp - 0x11], 0
push 0x422590
lea ecx, [ebp - 0x6c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov byte [ebp - 4], 5
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0x18]
push edx
push esi
mov ecx, dword [ebp + 0x14]
lea edi, [ebp - 0x6c]
call fcn.00404d10
add esp, 0x10
mov byte [ebp - 4], 3
mov ecx, edi
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov dword [ebp - 4], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call dword [sym.imp.MSVCP80.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
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, 0x10
cmp dword [ebp - 0x1c], edi
jae 0x40470e
lea eax, [ebp - 0x30]
lea ecx, [ebp + 8]
push ecx
push 2
push ebx
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x40456c
push str._Default_
lea edx, [ebp - 0x50]
push edx
call dword [sym.imp.MSVCP80.dll_bool___cdecl_std::operator_char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__]
add esp, 8
test al, al
je 0x404742
mov eax, 0x4222ea
jmp 0x40474d
cmp dword [ebp - 0x38], edi
mov eax, dword [ebp - 0x4c]
jae 0x40474d
lea eax, [ebp - 0x4c]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edi, dword [ebp + 0x14]
test eax, eax
jne 0x404784
push str.DELETED:
push edi
call fcn.00403f10
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0x34]
push edx
lea ebx, [ebp - 0x50]
mov eax, esi
mov esi, edi
call fcn.00404e10
add esp, 0x10
mov esi, dword [ebp - 0x18]
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, eax
push 0x422590
lea ecx, [ebp - 0x6c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov byte [ebp - 4], 7
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0x34]
push edx
push esi
push ebx
lea ebx, [ebp - 0x50]
mov ecx, edi
lea edi, [ebp - 0x6c]
call fcn.00404d10
add esp, 0x10
mov byte [ebp - 4], 1
mov ecx, edi
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
jmp 0x4047d0
cmp dword [ebp - 0x1c], 0x10
mov eax, dword [ebp - 0x30]
jae 0x4047dc
lea eax, [ebp - 0x30]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x4046ba
push str.DELETED:
mov edi, dword [ebp + 0x14]
push edi
call fcn.00403f10
add esp, 8
push 0x4222ea
lea ecx, [ebp - 0x6c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov byte [ebp - 4], 8
lea eax, [ebp - 0x34]
push eax
lea ebx, [ebp - 0x6c]
mov eax, esi
mov esi, edi
call fcn.00404c70
add esp, 4
mov ebx, 1
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x6c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [sym.imp.MSVCP80.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov eax, dword [ecx]
mov byte [ebp + 0x18], 0x5c
push ebx
push eax
lea edx, [ebp + 0x18]
push edx
lea ecx, [ebp - 0x34]
call dword [sym.imp.MSVCP80.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::rfind_char_const___unsigned_int__unsigned_int_const]
mov ecx, dword [sym.imp.MSVCP80.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
cmp eax, dword [ecx]
je 0x4046ba
push eax
push 0
lea edx, [ebp - 0x88]
push edx
lea ecx, [ebp - 0x34]
call dword [sym.imp.MSVCP80.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_]
mov byte [ebp - 4], 9
push eax
lea ecx, [ebp - 0x34]
call dword [sym.imp.MSVCP80.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__]
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x88]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov esi, dword [ebp - 0x18]
jmp 0x4047d0