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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x405dc1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x80
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
lea ecx, [ebp - 0x38]
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 dword [ebp - 4], 0
lea ecx, [ebp - 0x54]
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
push str.CREATE_ONLY
mov edi, dword [ebp + 0x10]
push edi
mov esi, 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__]
call esi
test al, al
sete byte [ebp - 0x1c]
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
lea ecx, [ebp - 0x18]
mov edx, dword [ebp + 0xc]
call fcn.00401550
add esp, 0x14
mov eax, dword [ebp + 8]
test dword [ebp + 0x18], eax
je 0x404301
mov ebx, dword [ebp - 0x18]
cmp ebx, 0x80000001
jne 0x404169
cmp byte [ebp + 0x20], 0
jne 0x404169
mov dword [ebp - 0x18], 0x80000002
mov ebx, dword [ebp - 0x18]
cmp byte [ebp + 0x1c], 0
je 0x404348
cmp dword [ebp - 0x20], 0x10
mov eax, dword [ebp - 0x34]
jae 0x40417f
lea eax, [ebp - 0x34]
push 0
lea ecx, [ebp + 8]
push ecx
push 0
push 2
push 0
push 0
push 0
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, eax
push str.RegCreateKeyEx
lea ecx, [ebp - 0x70]
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
sub esp, 0x1c
mov ecx, esp
mov dword [ebp + 0x18], esp
push edi
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov byte [ebp - 4], 3
lea edx, [ebp - 0x54]
push edx
lea eax, [ebp - 0x38]
push eax
push ebx
push esi
mov byte [ebp - 4], 2
mov ecx, dword [ebp + 0x14]
lea esi, [ebp - 0x70]
call fcn.00404a50
add esp, 0x2c
mov byte [ebp - 4], 1
mov ecx, esi
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], 1
mov byte [ebp - 4], 4
cmp byte [ebp - 0x1c], 0
je 0x40425d
mov ecx, dword [ebp + 8]
push ecx
lea eax, [ebp - 0x54]
call fcn.004018c0
add esp, 4
mov esi, eax
push str.RegSetValueEx
lea ecx, [ebp - 0x70]
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
sub esp, 0x1c
mov ecx, esp
mov dword [ebp + 0x18], esp
push edi
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov byte [ebp - 4], 6
lea edx, [ebp - 0x54]
push edx
lea eax, [ebp - 0x38]
push eax
push ebx
push esi
mov byte [ebp - 4], 5
mov ecx, dword [ebp + 0x14]
lea esi, [ebp - 0x70]
call fcn.00404a50
add esp, 0x2c
mov byte [ebp - 4], 4
mov ecx, esi
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:
mov ecx, dword [ebp + 0x14]
push ecx
jmp 0x404266
push str.CREATED:
mov edx, dword [ebp + 0x14]
push edx
call fcn.00403f10
add esp, 8
sub esp, 0x1c
mov ecx, esp
mov dword [ebp + 0x18], esp
push edi
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov byte [ebp - 4], 7
lea eax, [ebp - 0x38]
push eax
push ebx
mov byte [ebp - 4], 4
lea ebx, [ebp - 0x54]
mov edi, dword [ebp + 0x14]
call fcn.00404ba0
add esp, 0x24
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
mov byte [ebp - 0x11], 0
push 0x422590
lea ecx, [ebp - 0x70]
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 bl, 8
mov byte [ebp - 4], bl
sub esp, 0x1c
mov ecx, esp
mov dword [ebp + 0x18], esp
mov edx, dword [ebp + 0x10]
push edx
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov byte [ebp - 4], 9
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x18]
push edx
push esi
mov byte [ebp - 4], bl
mov ecx, edi
lea esi, [ebp - 0x70]
call fcn.00404a50
add esp, 0x2c
mov byte [ebp - 4], 4
mov ecx, esi
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 - 0x54]
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 - 0x38]
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
cmp byte [ebp - 0x1c], 0
je 0x40443f
cmp dword [ebp - 0x20], 0x10
mov eax, dword [ebp - 0x34]
jae 0x40435e
lea eax, [ebp - 0x34]
lea ecx, [ebp + 0x18]
push ecx
push 2
push 0
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404301
push str._Default_
lea edx, [ebp - 0x54]
push edx
call esi
add esp, 8
test al, al
je 0x40438b
mov eax, 0x4222ea
jmp 0x404397
cmp dword [ebp - 0x3c], 0x10
mov eax, dword [ebp - 0x50]
jae 0x404397
lea eax, [ebp - 0x50]
push eax
mov eax, dword [ebp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov esi, dword [ebp + 0x14]
test eax, eax
jne 0x4043e3
push str.DELETED:
push esi
call fcn.00403f10
sub esp, 0x14
mov ecx, esp
mov dword [ebp + 8], esp
push edi
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x38]
push ecx
push ebx
mov byte [ebp - 4], 1
lea ebx, [ebp - 0x54]
mov edi, esi
call fcn.00404ba0
add esp, 0x24
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp - 0x18]
mov edx, dword [ebp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp + 8], eax
push 0x422590
lea ecx, [ebp - 0x70]
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], 0xc
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x1c], esp
push edi
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov byte [ebp - 4], 0xd
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x38]
push ecx
push ebx
mov edx, dword [ebp + 8]
push edx
mov byte [ebp - 4], 0xc
mov ecx, esi
lea esi, [ebp - 0x70]
call fcn.00404a50
add esp, 0x2c
mov byte [ebp - 4], 1
mov ecx, esi
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 edi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
cmp dword [ebp - 0x20], 0x10
mov eax, dword [ebp - 0x34]
jae 0x404451
lea eax, [ebp - 0x34]
push eax
push ebx
call edi
test eax, eax
jne 0x404301
push str.DELETED:
mov esi, dword [ebp + 0x14]
push esi
call fcn.00403f10
add esp, 8
push 0x4222ea
lea ecx, [ebp - 0x70]
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], 0xe
lea eax, [ebp - 0x38]
push eax
lea ebx, [ebp - 0x70]
mov eax, dword [ebp - 0x18]
call fcn.00404c70
add esp, 4
mov ebx, 1
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x70]
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 + 8], 0x5c
push ebx
push eax
lea edx, [ebp + 8]
push edx
lea ecx, [ebp - 0x38]
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 0x404301
push eax
push 0
lea edx, [ebp - 0x8c]
push edx
lea ecx, [ebp - 0x38]
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], 0xf
push eax
lea ecx, [ebp - 0x38]
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 - 0x8c]
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 ebx, dword [ebp - 0x18]
jmp 0x404445