Function at 0x4f2220
Capabilities:
Delete registry value

Disassembly:
push ebp
lea ebp, [esp - 0x220c]
mov eax, 0x220c
call fcn.00502bc0
push 0xffffffffffffffff
push 0x543c48
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x585184]
xor eax, ebp
mov dword [ebp + 0x2208], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 0x2218]
mov edi, dword [ebp + 0x2214]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
mov ecx, eax
push edi
call fcn.004f11d0
mov esi, eax
test esi, esi
js 0x4f2888
cmp word [edi], 0x7d
je 0x4f2888
nop dword [eax]
push str.Delete
push edi
mov dword [ebp - 0x24], 1
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
push 0x55b548
sbb ebx, ebx
push edi
inc ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4f22e0
test ebx, ebx
je 0x4f23e0
mov ecx, dword [ebp - 0x10]
push edi
call fcn.004f11d0
mov esi, eax
test esi, esi
js 0x4f2888
cmp dword [ebp + 0x221c], 0
je 0x4f23e0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov byte [ebp - 4], 1
mov ecx, edi
movzx eax, word [edi]
test ax, ax
je 0x4f2348
mov edx, eax
cmp dx, 0x5c
je 0x4f2340
push ecx
call dword [sym.imp.USER32.dll_CharNextW]
mov ecx, eax
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x4f2325
jmp 0x4f2348
test ecx, ecx
jne 0x4f281c
mov esi, 0x5485c0
nop dword [eax]
push dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4f239a
add esi, 4
cmp esi, 0x5485f0
jl 0x4f2350
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x30]
push edi
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
call fcn.004f1d70
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
test ebx, ebx
je 0x4f23d5
mov ebx, dword [ebp - 0x10]
mov ecx, ebx
push edi
call fcn.004f11d0
mov esi, eax
test esi, esi
js 0x4f282f
push edi
mov ecx, ebx
call fcn.004f37f0
mov esi, eax
test esi, esi
js 0x4f282f
mov byte [ebp - 4], 0
mov dword [ebp - 0x2c], 0
jmp 0x4f2608
mov byte [ebp - 4], 0
mov dword [ebp - 0x2c], 0
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov ebx, dword [ebp - 0x10]
test eax, eax
jne 0x4f2408
push edi
mov ecx, ebx
mov dword [ebp - 0x24], eax
call fcn.004f11d0
mov esi, eax
test esi, esi
js 0x4f2888
push 0x55b540
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4f2553
lea eax, [ebp]
mov ecx, ebx
push eax
call fcn.004f11d0
mov esi, eax
test esi, esi
js 0x4f2888
push edi
mov ecx, ebx
call fcn.004f11d0
mov esi, eax
test esi, esi
js 0x4f2888
cmp word [edi], 0x3d
jne 0x4f2828
cmp dword [ebp + 0x221c], 0
je 0x4f24c2
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov byte [ebp - 4], 2
mov ecx, ebx
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x3c], eax
lea eax, [ebp]
push edi
push eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x38], 0
push eax
mov dword [ebp - 0x34], 0
call fcn.004ee640
mov esi, eax
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
test esi, esi
js 0x4f283d
mov byte [ebp - 4], 0
mov dword [ebp - 0x38], 0
jmp 0x4f2608
cmp dword [ebp + 0x2220], 0
jne 0x4f253c
cmp dword [ebp - 0x24], 0
je 0x4f253c
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x58]
push 0x20006
push 0
push dword [ebp - 0x14]
call fcn.004f13d0
test eax, eax
jne 0x4f284b
mov esi, dword [ebp - 0x58]
lea eax, [ebp]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x4f251f
cmp eax, 2
jne 0x4f284b
mov byte [ebp - 4], 0
test esi, esi
je 0x4f2535
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
push edi
mov ecx, ebx
call fcn.004f37f0
mov esi, eax
test esi, esi
js 0x4f2888
jmp 0x4f2810
movzx eax, word [edi]
mov ecx, edi
test ax, ax
je 0x4f2583
mov edx, eax
nop
cmp dx, 0x5c
je 0x4f257b
push ecx
call dword [sym.imp.USER32.dll_CharNextW]
mov ecx, eax
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x4f2560
jmp 0x4f2583
test ecx, ecx
jne 0x4f2828
cmp dword [ebp + 0x221c], 0
je 0x4f2663
mov esi, dword [ebp - 0x14]
lea ecx, [ebp - 0x20]
push 0x2001f
push edi
push esi
call fcn.004f13d0
test eax, eax
je 0x4f25d8
push 0x20019
push edi
push esi
lea ecx, [ebp - 0x20]
call fcn.004f13d0
test eax, eax
je 0x4f25d8
push 0
push 0
push 0x2001f
push 0
push 0
push edi
push esi
lea ecx, [ebp - 0x20]
call fcn.004ef2f0
test eax, eax
jne 0x4f287d
push edi
mov ecx, ebx
call fcn.004f11d0
mov esi, eax
test esi, esi
js 0x4f2888
cmp word [edi], 0x3d
jne 0x4f2608
push edi
push 0
lea eax, [ebp - 0x20]
mov ecx, ebx
push eax
call fcn.004ee640
mov esi, eax
test esi, esi
js 0x4f2888
cmp word [edi], 0x7b
jne 0x4f2810
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4f2617
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x4f2810
push 0
push dword [ebp + 0x221c]
mov ecx, ebx
push dword [ebp - 0x20]
push edi
call fcn.004f2220
mov esi, eax
test esi, esi
js 0x4f2888
push edi
mov ecx, ebx
call fcn.004f11d0
mov esi, eax
test esi, esi
js 0x4f2888
jmp 0x4f2810
mov esi, dword [ebp + 0x2220]
test esi, esi
jne 0x4f2682
push 0x20019
push edi
push dword [ebp - 0x14]
lea ecx, [ebp - 0x20]
call fcn.004f13d0
mov ebx, eax
jmp 0x4f2687
mov ebx, 2
test ebx, ebx
mov ecx, 1
push 0xffffffffffffffff
mov eax, esi
cmovne eax, ecx
push edi
mov dword [ebp - 0x4c], eax
lea eax, [ebp + 0x2000]
push 0x104
push eax
call fcn.00509105
push eax
call fcn.004eec90
mov ecx, dword [ebp - 0x10]
add esp, 0x14
push edi
call fcn.004f11d0
mov esi, eax
test esi, esi
js 0x4f2888
mov ecx, dword [ebp - 0x10]
push edi
call fcn.004f37f0
mov esi, eax
test esi, esi
js 0x4f2888
cmp word [edi], 0x7b
jne 0x4f272c
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4f26e4
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x4f272c
push dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x10]
push 0
push dword [ebp - 0x20]
push edi
call fcn.004f2220
mov esi, eax
test esi, esi
jns 0x4f2719
cmp dword [ebp - 0x4c], 0
je 0x4f2888
mov ecx, dword [ebp - 0x10]
push edi
call fcn.004f11d0
mov esi, eax
test esi, esi
js 0x4f2888
cmp ebx, 2
je 0x4f2810
test ebx, ebx
je 0x4f274c
cmp dword [ebp + 0x2220], 0
jne 0x4f2810
push ebx
jmp 0x4f287e
cmp dword [ebp + 0x2220], 0
mov ebx, dword [ebp - 0x10]
je 0x4f2797
push dword [ebp - 0x20]
mov ecx, ebx
call fcn.004f0980
test eax, eax
je 0x4f2797
lea eax, [ebp + 0x2000]
mov ecx, ebx
push eax
call fcn.004eed90
test eax, eax
je 0x4f2810
cmp dword [ebp - 0x24], 0
je 0x4f2810
lea eax, [ebp + 0x2000]
push eax
lea ecx, [ebp - 0x20]
call fcn.004f1d70
jmp 0x4f2810
push dword [ebp - 0x20]
mov ecx, ebx
call fcn.004f0980
mov ecx, dword [ebp - 0x20]
mov ebx, eax
xor eax, eax
test ecx, ecx
je 0x4f27b8
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], 0
test eax, eax
jne 0x4f287d
cmp dword [ebp - 0x24], eax
je 0x4f2810
test ebx, ebx
jne 0x4f2810
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x48]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x48], eax
lea eax, [ebp + 0x2000]
push eax
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
call fcn.004ef3d0
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
test eax, eax
jne 0x4f2864
mov byte [ebp - 4], al
lea ecx, [ebp - 0x48]
call fcn.004edb10
cmp word [edi], 0x7d
jne 0x4f22b0
jmp 0x4f2888
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.004edb10
mov esi, 0x80020009
jmp 0x4f2888
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.004edb10
jmp 0x4f2888
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.004edb10
jmp 0x4f2888
push eax
call fcn.004eed50
add esp, 4
mov esi, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x58]
call fcn.004edb10
jmp 0x4f2888
push eax
call fcn.004eed50
add esp, 4
mov esi, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.004edb10
jmp 0x4f2888
push eax
call fcn.004eed50
add esp, 4
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x4f28a4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x20], 0
mov eax, esi
mov dword [ebp - 0x1c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x2208]
xor ecx, ebp
call fcn.00502346
lea esp, [ebp + 0x220c]
pop ebp
ret 0x10