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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51f4ce
mov eax, dword fs:[0]
push eax
mov eax, 0x2244
call fcn.0050ead0
mov eax, dword [0x585698]
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 - 0x221c], ecx
mov dword [ebp - 0x2228], eax
mov dword [ebp - 0x2224], ebx
mov dword [ebp - 0x2220], ebx
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x2244], eax
mov eax, edi
mov dword [ebp - 4], ebx
call fcn.004b426a
mov esi, eax
cmp esi, ebx
jl 0x4b485d
cmp word [edi], 0x7d
je 0x4b485b
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push str.Delete
push edi
mov dword [ebp - 0x2238], 1
call esi
mov ebx, eax
neg ebx
push str.ForceRemove
sbb ebx, ebx
push edi
inc ebx
call esi
test eax, eax
je 0x4b442c
test ebx, ebx
je 0x4b453c
mov ecx, dword [ebp - 0x221c]
mov eax, edi
call fcn.004b426a
mov esi, eax
test esi, esi
jl 0x4b4846
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x4b453e
push 0x5c
mov eax, edi
mov dword [ebp - 0x2240], esi
mov dword [ebp - 0x223c], esi
call fcn.004b3bad
pop ecx
test eax, eax
jne 0x4b4938
push edi
call fcn.004b40a7
test eax, eax
je 0x4b44a0
mov eax, dword [ebp - 0x2228]
push edi
lea ecx, [ebp - 0x2240]
mov dword [ebp - 0x2240], eax
mov dword [ebp - 0x223c], esi
call fcn.004b40d6
mov dword [ebp - 0x2240], esi
mov dword [ebp - 0x223c], esi
cmp ebx, esi
je 0x4b4534
mov ecx, dword [ebp - 0x221c]
mov eax, edi
call fcn.004b426a
mov esi, eax
test esi, esi
jl 0x4b4846
mov ecx, dword [ebp - 0x221c]
call fcn.004b404a
mov esi, eax
test esi, esi
jl 0x4b4846
and dword [ebp - 0x223c], 0
cmp word [edi], 0x7b
jne 0x4b4525
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x4b4525
mov ecx, dword [ebp - 0x221c]
push 0
push dword [ebp + 0x10]
push dword [ebp - 0x2224]
push edi
call fcn.004b4380
mov esi, eax
test esi, esi
jl 0x4b4846
mov ecx, dword [ebp - 0x221c]
mov eax, edi
call fcn.004b426a
mov esi, eax
test esi, esi
jl 0x4b4846
cmp word [edi], 0x7d
jne 0x4b43f9
jmp 0x4b4846
mov dword [ebp - 0x223c], esi
jmp 0x4b453e
xor esi, esi
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4b456d
and dword [ebp - 0x2238], eax
mov ecx, dword [ebp - 0x221c]
mov eax, edi
call fcn.004b426a
mov esi, eax
test esi, esi
jl 0x4b4846
xor esi, esi
push 0x550b24
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4b469c
mov ecx, dword [ebp - 0x221c]
lea eax, [ebp - 0x2218]
call fcn.004b426a
mov esi, eax
test esi, esi
jl 0x4b4846
mov ecx, dword [ebp - 0x221c]
mov eax, edi
call fcn.004b426a
mov esi, eax
test esi, esi
jl 0x4b4846
cmp word [edi], 0x3d
jne 0x4b4956
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
je 0x4b4610
mov eax, dword [ebp - 0x2228]
mov ecx, dword [ebp - 0x221c]
mov dword [ebp - 0x224c], eax
push edi
lea eax, [ebp - 0x2218]
push eax
lea edx, [ebp - 0x224c]
mov dword [ebp - 0x2248], ebx
call fcn.004b3ce5
mov esi, eax
cmp esi, ebx
mov dword [ebp - 0x224c], ebx
mov dword [ebp - 0x2248], ebx
jl 0x4b49ac
mov dword [ebp - 0x2248], ebx
jmp 0x4b44db
cmp dword [ebp + 0x14], ebx
jne 0x4b4688
cmp dword [ebp - 0x2238], ebx
je 0x4b4688
push 0x20006
push ebx
push dword [ebp - 0x2228]
lea eax, [ebp - 0x2234]
mov dword [ebp - 0x2234], ebx
mov dword [ebp - 0x2230], ebx
call fcn.0042a368
cmp eax, ebx
jne 0x4b495f
lea eax, [ebp - 0x2218]
push eax
push dword [ebp - 0x2234]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, ebx
je 0x4b4668
cmp eax, 2
jne 0x4b495f
cmp dword [ebp - 0x2234], ebx
je 0x4b4682
push dword [ebp - 0x2234]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2234], ebx
mov dword [ebp - 0x2230], ebx
mov ecx, dword [ebp - 0x221c]
call fcn.004b404a
mov esi, eax
cmp esi, ebx
jmp 0x4b451f
push 0x5c
mov eax, edi
call fcn.004b3bad
pop ecx
test eax, eax
jne 0x4b4938
cmp dword [ebp + 0x10], esi
je 0x4b474d
mov ebx, 0x2001f
push ebx
push edi
push dword [ebp - 0x2228]
lea eax, [ebp - 0x2224]
call fcn.0042a368
test eax, eax
je 0x4b4709
push 0x20019
push edi
push dword [ebp - 0x2228]
lea eax, [ebp - 0x2224]
call fcn.0042a368
test eax, eax
je 0x4b4709
push ebx
push edi
push dword [ebp - 0x2228]
lea eax, [ebp - 0x2224]
call fcn.0042726d
cmp eax, esi
jne 0x4b4983
mov ecx, dword [ebp - 0x221c]
mov eax, edi
call fcn.004b426a
mov esi, eax
test esi, esi
jl 0x4b4846
cmp word [edi], 0x3d
jne 0x4b44db
mov ecx, dword [ebp - 0x221c]
push edi
push 0
lea edx, [ebp - 0x2224]
call fcn.004b3ce5
mov esi, eax
test esi, esi
jl 0x4b4846
jmp 0x4b44db
cmp dword [ebp + 0x14], esi
jne 0x4b4771
push 0x20019
push edi
push dword [ebp - 0x2228]
lea eax, [ebp - 0x2224]
call fcn.0042a368
mov dword [ebp - 0x222c], eax
jmp 0x4b477b
mov dword [ebp - 0x222c], 2
cmp dword [ebp - 0x222c], esi
je 0x4b478a
mov dword [ebp + 0x14], 1
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.004f74db
mov ecx, dword [ebp - 0x221c]
add esp, 0x10
mov eax, edi
call fcn.004b426a
mov esi, eax
test esi, esi
jl 0x4b4846
mov ecx, dword [ebp - 0x221c]
call fcn.004b404a
mov esi, eax
test esi, esi
jl 0x4b4846
cmp word [edi], 0x7b
jne 0x4b4811
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x4b4811
push dword [ebp + 0x14]
mov ecx, dword [ebp - 0x221c]
push 0
push dword [ebp - 0x2224]
push edi
call fcn.004b4380
mov esi, eax
test esi, esi
jge 0x4b47fe
cmp dword [ebp + 0x14], 0
je 0x4b4846
mov ecx, dword [ebp - 0x221c]
mov eax, edi
call fcn.004b426a
mov esi, eax
test esi, esi
jl 0x4b4846
cmp dword [ebp - 0x222c], 2
mov eax, dword [ebp - 0x2244]
mov dword [ebp + 0x14], eax
je 0x4b4525
xor ebx, ebx
cmp dword [ebp - 0x222c], ebx
je 0x4b4879
cmp eax, ebx
jne 0x4b4525
mov eax, dword [ebp - 0x222c]
call fcn.004b423b
mov esi, eax
cmp dword [ebp - 0x2224], 0
je 0x4b485b
push dword [ebp - 0x2224]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
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.004f189b
leave
ret 0x10
cmp eax, ebx
je 0x4b48c4
push dword [ebp - 0x2224]
call fcn.004b4206
test eax, eax
je 0x4b48c4
lea eax, [ebp - 0x218]
push eax
call fcn.004b40a7
test eax, eax
je 0x4b4525
cmp dword [ebp - 0x2238], 0
je 0x4b4525
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x2224]
call fcn.004b40d6
jmp 0x4b4525
push dword [ebp - 0x2224]
call fcn.004b4206
mov dword [ebp - 0x222c], eax
xor eax, eax
cmp dword [ebp - 0x2224], ebx
je 0x4b48f1
push dword [ebp - 0x2224]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2224], ebx
mov dword [ebp - 0x2220], ebx
cmp eax, ebx
jne 0x4b49a5
cmp dword [ebp - 0x2238], ebx
je 0x4b4525
cmp dword [ebp - 0x222c], 0
jne 0x4b4525
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x2228]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x4b483f
jmp 0x4b4525
cmp dword [ebp - 0x2224], esi
je 0x4b494c
push dword [ebp - 0x2224]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x4b485d
cmp dword [ebp - 0x2224], 0
jmp 0x4b493e
call fcn.004b423b
mov esi, eax
cmp dword [ebp - 0x2234], ebx
je 0x4b4846
push dword [ebp - 0x2234]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4b4846
call fcn.004b423b
mov edi, eax
cmp dword [ebp - 0x2224], esi
je 0x4b499e
push dword [ebp - 0x2224]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x4b485d
call fcn.004b423b
mov esi, eax
cmp dword [ebp - 0x2224], ebx
jmp 0x4b484d