Function at 0x10013db0
Capabilities:
Delete registry key

Disassembly:
mov eax, 0x1004888a
call fcn.100464e0
sub esp, 0x24
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
call fcn.10012d4c
test eax, eax
jne 0x10013dde
call fcn.10012db9
test eax, eax
je 0x10013f07
cmp byte [ebp + 0x10], bl
je 0x10013f07
mov al, byte [ebp + 0x13]
push ebx
lea ecx, [ebp - 0x20]
mov byte [ebp - 0x20], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 1
push eax
call fcn.10012e26
pop ecx
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::npos]
mov byte [ebp - 4], 2
push dword [ecx]
lea ecx, [ebp - 0x20]
push ebx
push eax
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::assign_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const___unsigned_int__unsigned_int_]
push 1
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
mov esi, dword [sym.imp.MSVCRT.dll_wcslen]
mov edi, 0x1005cd28
push edi
call esi
pop ecx
push eax
push edi
lea ecx, [ebp - 0x20]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::append_unsigned_short_int_const___unsigned_int_]
push dword [ebp + 8]
call esi
pop ecx
push eax
lea ecx, [ebp - 0x20]
push dword [ebp + 8]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::append_unsigned_short_int_const___unsigned_int_]
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
jne 0x10013e64
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
lea ecx, [ebp + 0x10]
mov dword [ebp + 0x10], ebx
push ecx
push 0xf003f
push ebx
push eax
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x10013eda
lea ecx, [ebp - 0x10]
call fcn.1001487f
mov ecx, dword [ebp + 0x10]
cmp eax, ebx
mov dword [ebp - 0x10], ecx
jne 0x10013eda
push dword [ebp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp dword [ebp - 0x10], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
je 0x10013eb2
push dword [ebp - 0x10]
call esi
mov dword [ebp - 0x10], ebx
xor eax, eax
cmp edi, ebx
sete al
push 1
lea ecx, [ebp - 0x20]
mov edi, eax
mov byte [ebp - 4], bl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
cmp dword [ebp - 0x10], ebx
je 0x10013ed3
push dword [ebp - 0x10]
call esi
mov eax, edi
jmp 0x10013f5f
cmp dword [ebp - 0x10], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x10013eed
push dword [ebp - 0x10]
call esi
mov dword [ebp - 0x10], ebx
push 1
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], bl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
cmp dword [ebp - 0x10], ebx
je 0x10013f5d
push dword [ebp - 0x10]
call esi
jmp 0x10013f5d
push 0xf003f
lea ecx, [ebp - 0x10]
push dword [ebp + 8]
push 0x80000001
call fcn.10014896
test eax, eax
jne 0x10013f4f
push dword [ebp + 0xc]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp dword [ebp - 0x10], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
je 0x10013f41
push dword [ebp - 0x10]
call esi
mov dword [ebp - 0x10], ebx
xor eax, eax
cmp edi, ebx
sete al
mov edi, eax
jmp 0x10013ec9
cmp dword [ebp - 0x10], ebx
je 0x10013f5d
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret