Function at 0x450183
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e9f48
mov eax, dword fs:[0]
push eax
mov eax, 0x224c
call fcn.004da840
mov eax, dword [0x541770]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x2224], ecx
mov dword [ebp - 0x2228], eax
mov dword [ebp - 0x2220], ebx
mov dword [ebp - 0x221c], ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x2258], eax
mov eax, edi
call fcn.0045006d
mov esi, eax
cmp esi, ebx
jge 0x450786
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x221c], ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c625d
leave
ret 0x10
push str.Delete
push edi
mov dword [ebp - 0x2244], 1
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov esi, eax
neg esi
sbb esi, esi
push str.ForceRemove
inc esi
push edi
mov dword [ebp - 0x2238], esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x450253
cmp esi, ebx
je 0x450314
mov ecx, dword [ebp - 0x2224]
mov eax, edi
call fcn.0045006d
mov esi, eax
cmp esi, ebx
jl 0x4507d7
cmp dword [ebp + 0x10], ebx
je 0x450314
mov dword [ebp - 0x2240], ebx
mov dword [ebp - 0x223c], ebx
mov byte [ebp - 4], 1
push 0x5c
mov eax, edi
call fcn.0044f8a7
pop ecx
test eax, eax
jne 0x450792
push edi
call fcn.0044fe41
test eax, eax
je 0x4502c9
mov eax, dword [ebp - 0x2228]
push edi
lea ecx, [ebp - 0x2240]
mov dword [ebp - 0x2240], eax
mov dword [ebp - 0x223c], ebx
call fcn.0044fe6d
mov dword [ebp - 0x2240], ebx
mov dword [ebp - 0x223c], ebx
cmp dword [ebp - 0x2238], ebx
je 0x45030b
mov ecx, dword [ebp - 0x2224]
mov eax, edi
call fcn.0045006d
mov esi, eax
cmp esi, ebx
jl 0x4507c3
mov ecx, dword [ebp - 0x2224]
call fcn.0044fddc
mov esi, eax
cmp esi, ebx
jl 0x4507c3
mov byte [ebp - 4], bl
mov dword [ebp - 0x223c], ebx
jmp 0x450740
mov byte [ebp - 4], bl
mov dword [ebp - 0x223c], ebx
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x450341
mov ecx, dword [ebp - 0x2224]
mov eax, edi
mov dword [ebp - 0x2244], ebx
call fcn.0045006d
mov esi, eax
cmp esi, ebx
jl 0x4507d7
push 0x507110
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x450484
mov ecx, dword [ebp - 0x2224]
lea eax, [ebp - 0x2218]
call fcn.0045006d
mov esi, eax
cmp esi, ebx
jl 0x4507d7
mov ecx, dword [ebp - 0x2224]
mov eax, edi
call fcn.0045006d
mov esi, eax
cmp esi, ebx
jl 0x4507d7
cmp word [edi], 0x3d
jne 0x45079b
cmp dword [ebp + 0x10], ebx
je 0x4503f5
mov dword [ebp - 0x224c], ebx
mov dword [ebp - 0x2248], ebx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x2228]
mov ecx, dword [ebp - 0x2224]
mov dword [ebp - 0x224c], eax
push edi
lea eax, [ebp - 0x2218]
push eax
lea edx, [ebp - 0x224c]
mov dword [ebp - 0x2248], ebx
call fcn.0044fa6f
mov esi, eax
cmp esi, ebx
mov dword [ebp - 0x224c], ebx
mov dword [ebp - 0x2248], ebx
jl 0x4507ce
mov byte [ebp - 4], bl
mov dword [ebp - 0x2248], ebx
jmp 0x450740
cmp dword [ebp + 0x14], ebx
jne 0x450474
cmp dword [ebp - 0x2244], ebx
je 0x450474
mov dword [ebp - 0x2230], ebx
mov dword [ebp - 0x222c], ebx
mov byte [ebp - 4], 3
push ebx
push dword [ebp - 0x2228]
mov eax, 0x20006
lea ecx, [ebp - 0x2230]
call fcn.00431a57
cmp eax, ebx
jne 0x4507fc
lea eax, [ebp - 0x2218]
push eax
push dword [ebp - 0x2230]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, ebx
je 0x450451
cmp eax, 2
jne 0x4507fc
mov byte [ebp - 4], bl
cmp dword [ebp - 0x2230], ebx
je 0x45046e
push dword [ebp - 0x2230]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2230], ebx
mov dword [ebp - 0x222c], ebx
mov ecx, dword [ebp - 0x2224]
call fcn.0044fddc
jmp 0x450780
push 0x5c
mov eax, edi
call fcn.0044f8a7
pop ecx
test eax, eax
jne 0x45079b
cmp dword [ebp + 0x10], ebx
je 0x450534
push edi
push dword [ebp - 0x2228]
mov esi, 0x2001f
mov eax, esi
lea ecx, [ebp - 0x2220]
call fcn.00431a57
cmp eax, ebx
je 0x4504f1
push edi
push dword [ebp - 0x2228]
lea eax, [esi - 6]
lea ecx, [ebp - 0x2220]
call fcn.00431a57
cmp eax, ebx
je 0x4504f1
push edi
push dword [ebp - 0x2228]
mov eax, esi
lea ecx, [ebp - 0x2220]
call fcn.0044f8ce
cmp eax, ebx
jne 0x450640
mov ecx, dword [ebp - 0x2224]
mov eax, edi
call fcn.0045006d
mov esi, eax
cmp esi, ebx
jl 0x4507d7
cmp word [edi], 0x3d
jne 0x450740
mov ecx, dword [ebp - 0x2224]
push edi
push ebx
lea edx, [ebp - 0x2220]
call fcn.0044fa6f
mov esi, eax
cmp esi, ebx
jl 0x4507d7
jmp 0x450740
cmp dword [ebp + 0x14], ebx
jne 0x450558
push edi
push dword [ebp - 0x2228]
mov eax, 0x20019
lea ecx, [ebp - 0x2220]
call fcn.00431a57
mov dword [ebp - 0x2234], eax
jmp 0x450562
mov dword [ebp - 0x2234], 2
cmp dword [ebp - 0x2234], ebx
je 0x450571
mov dword [ebp + 0x14], 1
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.004c8e52
push eax
call fcn.00405b76
mov ecx, dword [ebp - 0x2224]
add esp, 0x14
mov eax, edi
call fcn.0045006d
mov esi, eax
cmp esi, ebx
jl 0x4507d7
mov ecx, dword [ebp - 0x2224]
call fcn.0044fddc
mov esi, eax
cmp esi, ebx
mov dword [ebp - 0x2238], esi
jl 0x4507d7
cmp word [edi], 0x7b
jne 0x450614
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x450614
push dword [ebp + 0x14]
mov ecx, dword [ebp - 0x2224]
push ebx
push dword [ebp - 0x2220]
push edi
call fcn.00450183
mov esi, eax
cmp esi, ebx
jge 0x4505f7
cmp dword [ebp + 0x14], ebx
je 0x4507d7
mov ecx, dword [ebp - 0x2224]
mov eax, edi
call fcn.0045006d
mov esi, eax
cmp esi, ebx
mov dword [ebp - 0x2238], eax
jl 0x4507d7
cmp dword [ebp - 0x2234], 2
mov eax, dword [ebp - 0x2258]
mov dword [ebp + 0x14], eax
je 0x450786
cmp dword [ebp - 0x2234], ebx
je 0x45064c
cmp eax, ebx
jne 0x450786
mov eax, dword [ebp - 0x2234]
call fcn.0045003e
mov esi, eax
jmp 0x4507d7
cmp eax, ebx
je 0x450696
push dword [ebp - 0x2220]
call fcn.0044ffb1
test eax, eax
je 0x450696
lea eax, [ebp - 0x218]
push eax
call fcn.0044fe41
test eax, eax
je 0x450786
cmp dword [ebp - 0x2244], ebx
je 0x450786
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x2220]
call fcn.0044fe6d
jmp 0x450786
push dword [ebp - 0x2220]
call fcn.0044ffb1
mov dword [ebp - 0x2234], eax
xor eax, eax
cmp dword [ebp - 0x2220], ebx
je 0x4506c3
push dword [ebp - 0x2220]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2220], ebx
mov dword [ebp - 0x221c], ebx
cmp eax, ebx
jne 0x450640
cmp dword [ebp - 0x2244], ebx
je 0x450786
cmp dword [ebp - 0x2234], ebx
jne 0x450786
mov dword [ebp - 0x2254], ebx
mov dword [ebp - 0x2250], ebx
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x2228]
mov dword [ebp - 0x2254], eax
lea eax, [ebp - 0x218]
push eax
lea esi, [ebp - 0x2254]
mov dword [ebp - 0x2250], ebx
call fcn.0044ffe7
mov dword [ebp - 0x2254], ebx
mov dword [ebp - 0x2250], ebx
cmp eax, ebx
jne 0x450828
mov byte [ebp - 4], bl
mov esi, dword [ebp - 0x2238]
mov dword [ebp - 0x2250], ebx
cmp dword [ebp + 0x10], ebx
je 0x450786
cmp word [edi], 0x7b
jne 0x450786
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x450786
mov ecx, dword [ebp - 0x2224]
push ebx
push dword [ebp + 0x10]
push dword [ebp - 0x2220]
push edi
call fcn.00450183
mov esi, eax
cmp esi, ebx
jl 0x4507d7
mov ecx, dword [ebp - 0x2224]
mov eax, edi
call fcn.0045006d
mov esi, eax
cmp esi, ebx
jl 0x4507d7
cmp word [edi], 0x7d
jne 0x450218
jmp 0x4507d7
mov byte [ebp - 4], bl
mov dword [ebp - 0x223c], ebx
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x2220], ebx
je 0x4507b9
push dword [ebp - 0x2220]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2220], ebx
mov eax, 0x80020009
jmp 0x4501f6
mov byte [ebp - 4], bl
mov dword [ebp - 0x223c], ebx
jmp 0x4507d7
mov byte [ebp - 4], bl
mov dword [ebp - 0x2248], ebx
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x2220], ebx
je 0x4507f5
push dword [ebp - 0x2220]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2220], ebx
mov eax, esi
jmp 0x4501f6
call fcn.0045003e
mov esi, eax
mov byte [ebp - 4], bl
cmp dword [ebp - 0x2230], ebx
je 0x450820
push dword [ebp - 0x2230]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2230], ebx
mov dword [ebp - 0x222c], ebx
jmp 0x4507d7
call fcn.0045003e
mov dword [ebp - 0x2238], eax
mov byte [ebp - 4], bl
mov dword [ebp - 0x2250], ebx
mov esi, eax
jmp 0x4507d7