Function at 0x445580
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x445588
push ecx
push ebx
push esi
push edi
mov dword [ebp - 0x14], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4458b7
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
push ebp
push 0x445838
push dword fs:[ecx]
mov dword fs:[ecx], esp
xor ecx, ecx
mov edx, 0x4458d4
mov eax, dword [ebp - 0x14]
call fcn.004411ec
mov esi, eax
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [sym.imp.rtl160.bpl__System_Sysutils_EmptyStr]
mov ecx, dword [ecx]
mov edx, 0x4458f0
mov eax, dword [ebp - 0x14]
call fcn.00441260
xor ecx, ecx
mov edx, 0x445904
mov eax, dword [ebp - 0x14]
call fcn.004411ec
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 4]
mov edx, dword [ebp - 0x10]
mov eax, ebx
call fcn.00445a54
mov edi, eax
cmp esi, 5
ja case.0x445608.0
jmp dword [esi*4 + 0x44560f]
push 0
mov eax, dword [ebp - 4]
call sub.rtl160.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
mov edx, eax
lea eax, [ebp - 0x24]
call sub.rtl160.bpl__System__UStrFromPWChar_qqrr20System_UnicodeStringpb
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
mov eax, edi
call sub.AxComponentsRTL.bpl__Auslogics_Winapi_Advapi32_AdvApi32_RegDeleteKeyEx_qqrp6HKEY__x20System_UnicodeStringuiui
test eax, eax
je case.0x445608.0
cmp eax, 2
je case.0x445608.0
mov edx, dword [sym.imp.rtl160.bpl__System_Sysutils_EmptyStr]
mov edx, dword [edx]
mov ecx, dword [sym.imp.rtl160.bpl__System_Sysutils_EmptyStr]
mov ecx, dword [ecx]
push ecx
mov ecx, dword [sym.imp.rtl160.bpl__System_Sysutils_EmptyStr]
mov ecx, dword [ecx]
push ecx
push eax
xor ecx, ecx
mov eax, dword [ebp - 0x10]
call fcn.00445344
jmp case.0x445608.0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0
mov eax, dword [ebp - 0x20]
or eax, 0xf003f
push eax
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call sub.rtl160.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
push edi
call sub.advapi32.dll_RegCreateKeyExW
test eax, eax
jne 0x4456bd
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey
jmp case.0x445608.0
mov edx, dword [sym.imp.rtl160.bpl__System_Sysutils_EmptyStr]
mov edx, dword [edx]
mov ecx, dword [sym.imp.rtl160.bpl__System_Sysutils_EmptyStr]
mov ecx, dword [ecx]
push ecx
mov ecx, dword [sym.imp.rtl160.bpl__System_Sysutils_EmptyStr]
mov ecx, dword [ecx]
push ecx
push eax
xor ecx, ecx
mov eax, dword [ebp - 0x10]
call fcn.00445344
jmp case.0x445608.0
lea eax, [ebp - 8]
push eax
mov ecx, dword [sym.imp.rtl160.bpl__System_Sysutils_EmptyStr]
mov ecx, dword [ecx]
mov edx, 0x445920
mov eax, dword [ebp - 0x14]
call fcn.00441260
mov eax, dword [ebp - 8]
mov edx, dword [sym.imp.rtl160.bpl__System_Sysutils_EmptyStr]
mov edx, dword [edx]
call sub.rtl160.bpl__System__UStrEqual_qqrv
je case.0x445608.0
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x20]
or eax, 0xf003f
push eax
push 0
mov eax, dword [ebp - 4]
call sub.rtl160.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
push edi
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x44579f
xor edx, edx
push ebp
push 0x445798
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 8]
call sub.rtl160.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegDeleteValueW
test eax, eax
je 0x445781
cmp eax, 2
je 0x445781
mov edx, dword [sym.imp.rtl160.bpl__System_Sysutils_EmptyStr]
mov edx, dword [edx]
push edx
mov edx, dword [sym.imp.rtl160.bpl__System_Sysutils_EmptyStr]
mov edx, dword [edx]
push edx
push eax
xor ecx, ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
call fcn.00445344
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push case.0x445608.0
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov edx, dword [sym.imp.rtl160.bpl__System_Sysutils_EmptyStr]
mov edx, dword [edx]
mov ecx, dword [sym.imp.rtl160.bpl__System_Sysutils_EmptyStr]
mov ecx, dword [ecx]
push ecx
mov ecx, dword [sym.imp.rtl160.bpl__System_Sysutils_EmptyStr]
mov ecx, dword [ecx]
push ecx
push eax
xor ecx, ecx
mov eax, dword [ebp - 0x10]
call fcn.00445344
jmp case.0x445608.0
lea eax, [ebp - 8]
push eax
mov ecx, dword [sym.imp.rtl160.bpl__System_Sysutils_EmptyStr]
mov ecx, dword [ecx]
mov edx, 0x445920
mov eax, dword [ebp - 0x14]
call fcn.00441260
xor ecx, ecx
mov edx, 0x445938
mov eax, dword [ebp - 0x14]
call fcn.004411ec
mov esi, eax
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [sym.imp.rtl160.bpl__System_Sysutils_EmptyStr]
mov ecx, dword [ecx]
mov edx, 0x445958
mov eax, dword [ebp - 0x14]
call fcn.00441260
mov eax, dword [ebp - 8]
call sub.rtl160.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
push esi
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call sub.rtl160.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
mov ecx, eax
mov edx, edi
mov eax, ebx
call fcn.004477e4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x445894
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4458be
lea eax, [ebp - 0x24]
call sub.rtl160.bpl__System__UStrClr_qqrpv
lea eax, [ebp - 0x10]
mov edx, 4
call sub.rtl160.bpl__System__UStrArrayClr_qqrpvi
ret