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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x424
mov eax, dword [ebp + 0x14]
and dword [esp], 0
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0x1c], eax
mov eax, edi
mov dword [esp + 0x10], ecx
call fcn.00444f8a
mov esi, eax
test esi, esi
jl 0x445467
cmp word [edi], 0x7d
je 0x445465
mov esi, dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
push str.Delete
push edi
mov dword [esp + 0x1c], 1
call esi
mov ebx, eax
neg ebx
push str.ForceRemove
sbb ebx, ebx
push edi
inc ebx
call esi
test eax, eax
je 0x445108
test ebx, ebx
je 0x4451d3
mov ecx, dword [esp + 0x10]
mov eax, edi
call fcn.00444f8a
mov esi, eax
test esi, esi
jl 0x445454
cmp dword [ebp + 0x10], 0
je 0x4451d3
push 0x5c
mov eax, edi
call fcn.00444e63
test eax, eax
pop ecx
jne 0x445506
push edi
call fcn.004459af
test eax, eax
je 0x445154
mov eax, dword [ebp + 0xc]
push edi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], eax
call fcn.004393f8
test ebx, ebx
je 0x4451d3
mov ecx, dword [esp + 0x10]
mov eax, edi
call fcn.00444f8a
mov esi, eax
test esi, esi
jl 0x445454
mov ecx, dword [esp + 0x10]
call fcn.00445966
mov esi, eax
test esi, esi
jl 0x445454
cmp word [edi], 0x7b
jne 0x4451c4
push edi
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
cmp eax, 1
jne 0x4451c4
mov ecx, dword [esp + 0x10]
push 0
push dword [ebp + 0x10]
push dword [esp + 0x14]
push edi
call fcn.0044509b
mov esi, eax
test esi, esi
jl 0x445454
mov ecx, dword [esp + 0x10]
mov eax, edi
call fcn.00444f8a
mov esi, eax
test esi, esi
jl 0x445454
cmp word [edi], 0x7d
jne 0x4450d7
jmp 0x445454
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
jne 0x4451fc
and dword [esp + 0x14], eax
mov ecx, dword [esp + 0x10]
mov eax, edi
call fcn.00444f8a
mov esi, eax
test esi, esi
jl 0x445454
push 0x4fafc4
push edi
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
jne 0x4452e9
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x228]
call fcn.00444f8a
mov esi, eax
test esi, esi
jl 0x445454
mov ecx, dword [esp + 0x10]
mov eax, edi
call fcn.00444f8a
mov esi, eax
test esi, esi
jl 0x445454
cmp word [edi], 0x3d
jne 0x445506
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
je 0x445281
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x14], eax
push edi
lea eax, [esp + 0x22c]
push eax
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x1c]
call fcn.0044555d
mov esi, eax
cmp esi, ebx
jge 0x445180
cmp dword [esp + 0xc], ebx
jmp 0x445459
cmp dword [ebp + 0x14], ebx
jne 0x4452d7
cmp dword [esp + 0x14], ebx
je 0x4452d7
push 0x20006
push ebx
push dword [ebp + 0xc]
lea eax, [esp + 0x20]
mov dword [esp + 0x20], ebx
call fcn.00411832
cmp eax, ebx
jne 0x44553c
mov ebx, dword [esp + 0x14]
lea eax, [esp + 0x228]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x4452ca
cmp eax, 2
jne 0x445521
test ebx, ebx
je 0x4452d5
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
mov ecx, dword [esp + 0x10]
call fcn.00445966
mov esi, eax
cmp esi, ebx
jmp 0x4451be
push 0x5c
mov eax, edi
call fcn.00444e63
test eax, eax
pop ecx
jne 0x445506
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x445378
push 0x2001f
push edi
push dword [ebp + 0xc]
lea eax, [esp + 0x18]
call fcn.00411832
test eax, eax
je 0x445343
push 0x20019
push edi
push dword [ebp + 0xc]
lea eax, [esp + 0x18]
call fcn.00411832
test eax, eax
je 0x445343
push edi
push dword [ebp + 0xc]
lea eax, [esp + 0x14]
call fcn.00441ddf
cmp eax, esi
jne 0x44544d
mov ecx, dword [esp + 0x10]
mov eax, edi
call fcn.00444f8a
mov esi, eax
test esi, esi
jl 0x445454
cmp word [edi], 0x3d
jne 0x445180
push edi
push 0
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x1c]
call fcn.0044555d
jmp 0x445176
cmp dword [ebp + 0x14], esi
jne 0x445395
push 0x20019
push edi
push dword [ebp + 0xc]
lea eax, [esp + 0x18]
call fcn.00411832
mov dword [esp + 0x18], eax
jmp 0x44539d
mov dword [esp + 0x18], 2
cmp dword [esp + 0x18], esi
je 0x4453aa
mov dword [ebp + 0x14], 1
push 0xffffffffffffffff
push edi
lea eax, [esp + 0x28]
push 0x104
push eax
call fcn.00495af1
push eax
call fcn.00401804
mov ecx, dword [esp + 0x24]
add esp, 0x14
mov eax, edi
call fcn.00444f8a
mov esi, eax
test esi, esi
jl 0x445454
mov ecx, dword [esp + 0x10]
call fcn.00445966
mov esi, eax
test esi, esi
jl 0x445454
cmp word [edi], 0x7b
jne 0x445427
push edi
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
cmp eax, 1
jne 0x445427
push dword [ebp + 0x14]
mov ecx, dword [esp + 0x14]
push 0
push dword [esp + 0x14]
push edi
call fcn.0044509b
mov esi, eax
test esi, esi
jge 0x445416
cmp dword [ebp + 0x14], 0
je 0x445454
mov ecx, dword [esp + 0x10]
mov eax, edi
call fcn.00444f8a
mov esi, eax
test esi, esi
jl 0x445454
cmp dword [esp + 0x18], 2
mov eax, dword [esp + 0x1c]
mov dword [ebp + 0x14], eax
je 0x4451c4
xor ebx, ebx
cmp dword [esp + 0x18], ebx
je 0x445470
cmp eax, ebx
jne 0x4451c4
mov eax, dword [esp + 0x18]
call fcn.00445e98
mov esi, eax
cmp dword [esp + 0xc], 0
je 0x445465
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp eax, ebx
je 0x4454b1
push dword [esp + 0xc]
call fcn.004459db
test eax, eax
je 0x4454b1
lea eax, [esp + 0x20]
push eax
call fcn.004459af
test eax, eax
je 0x4451c4
cmp dword [esp + 0x14], 0
je 0x4451c4
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x10]
call fcn.004393f8
jmp 0x4451c4
push dword [esp + 0xc]
call fcn.004459db
cmp dword [esp + 0xc], ebx
mov dword [esp + 0x18], eax
je 0x4454d6
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
mov dword [esp + 0xc], ebx
jne 0x445553
cmp dword [esp + 0x14], ebx
je 0x4451c4
cmp dword [esp + 0x18], 0
jne 0x4451c4
lea eax, [esp + 0x20]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x44544d
jmp 0x4451c4
cmp dword [esp + 0xc], 0
je 0x445517
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x445467
call fcn.00445e98
test ebx, ebx
mov esi, eax
je 0x445454
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x445454
call fcn.00445e98
cmp dword [esp + 0x14], ebx
mov esi, eax
je 0x445454
push dword [esp + 0x14]
jmp 0x445531
call fcn.00445e98
jmp 0x445467