Function at 0x405a10
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2258
call fcn.0040afa0
mov eax, dword [0x422040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
mov dword [ebp - 0x2220], 0
mov ecx, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x2214], ecx
mov ecx, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x2258], ecx
mov ecx, eax
push edi
mov dword [ebp - 0x2210], eax
mov dword [ebp - 0x221c], 0
mov dword [ebp - 0x2218], 0
call fcn.00405020
mov esi, eax
test esi, esi
js 0x4060f6
cmp word [edi], 0x7d
push ebx
je 0x4060e2
jmp 0x405a90
push str.Delete
push edi
mov dword [ebp - 0x2230], 1
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
push str.ForceRemove
sbb ebx, ebx
push edi
inc ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x405ac3
test ebx, ebx
je 0x405bdf
mov ecx, dword [ebp - 0x2210]
push edi
call fcn.00405020
mov esi, eax
test esi, esi
js 0x4060e2
cmp dword [ebp + 0x10], 0
je 0x405bdf
movzx eax, word [edi]
mov ecx, edi
mov dword [ebp - 0x222c], 0
mov dword [ebp - 0x2228], 0
mov dword [ebp - 0x2224], 0
test ax, ax
je 0x405b31
jmp 0x405b10
cmp ax, 0x5c
je 0x405b29
push ecx
call dword [sym.imp.USER32.dll_CharNextW]
mov ecx, eax
movzx eax, word [ecx]
test ax, ax
jne 0x405b10
jmp 0x405b31
test ecx, ecx
jne 0x40607b
mov esi, 0x4199b4
push dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x405b98
add esi, 4
cmp esi, 0x4199e4
jl 0x405b36
mov eax, dword [ebp - 0x2214]
lea ecx, [ebp - 0x222c]
push edi
mov dword [ebp - 0x222c], eax
mov dword [ebp - 0x2228], 0
mov dword [ebp - 0x2224], 0
call fcn.00405600
mov dword [ebp - 0x222c], 0
mov dword [ebp - 0x2228], 0
mov dword [ebp - 0x2224], 0
test ebx, ebx
je 0x405bd5
mov ebx, dword [ebp - 0x2210]
mov ecx, ebx
push edi
call fcn.00405020
mov esi, eax
test esi, esi
js 0x40608d
push edi
mov ecx, ebx
call fcn.00406430
mov esi, eax
test esi, esi
js 0x40608d
mov dword [ebp - 0x2228], 0
jmp 0x405e32
mov dword [ebp - 0x2228], 0
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov ebx, dword [ebp - 0x2210]
test eax, eax
jne 0x405c0d
push edi
mov ecx, ebx
mov dword [ebp - 0x2230], eax
call fcn.00405020
mov esi, eax
test esi, esi
js 0x4060e2
push 0x419ae0
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x405d70
lea eax, [ebp - 0x220c]
mov ecx, ebx
push eax
call fcn.00405020
mov esi, eax
test esi, esi
js 0x4060e2
push edi
mov ecx, ebx
call fcn.00405020
mov esi, eax
test esi, esi
js 0x4060e2
cmp word [edi], 0x3d
jne 0x406086
cmp dword [ebp + 0x10], 0
je 0x405cc8
mov eax, dword [ebp - 0x2214]
mov ecx, ebx
mov dword [ebp - 0x2254], eax
lea eax, [ebp - 0x220c]
push edi
push eax
lea eax, [ebp - 0x2254]
mov dword [ebp - 0x2250], 0
push eax
mov dword [ebp - 0x224c], 0
call fcn.00404260
mov esi, eax
mov dword [ebp - 0x2254], 0
mov dword [ebp - 0x2250], 0
mov dword [ebp - 0x224c], 0
test esi, esi
js 0x40609a
mov dword [ebp - 0x2250], 0
jmp 0x405e32
cmp dword [ebp + 0x14], 0
jne 0x405d59
cmp dword [ebp - 0x2230], 0
je 0x405d59
push 0x20006
push 0
push dword [ebp - 0x2214]
lea ecx, [ebp - 0x2248]
mov dword [ebp - 0x2248], 0
mov dword [ebp - 0x2244], 0
mov dword [ebp - 0x2240], 0
call fcn.00405200
test eax, eax
jne 0x4060a7
mov esi, dword [ebp - 0x2248]
lea eax, [ebp - 0x220c]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x405d3a
cmp eax, 2
jne 0x4060a7
test esi, esi
je 0x405d4f
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2248], 0
mov dword [ebp - 0x2244], 0
push edi
mov ecx, ebx
call fcn.00406430
mov esi, eax
test esi, esi
js 0x4060e2
jmp 0x40606f
movzx eax, word [edi]
mov ecx, edi
test ax, ax
je 0x405da1
lea ebx, [ebx]
cmp ax, 0x5c
je 0x405d99
push ecx
call dword [sym.imp.USER32.dll_CharNextW]
mov ecx, eax
movzx eax, word [ecx]
test ax, ax
jne 0x405d80
jmp 0x405da1
test ecx, ecx
jne 0x406086
cmp dword [ebp + 0x10], 0
je 0x405e8d
mov esi, dword [ebp - 0x2214]
lea ecx, [ebp - 0x2220]
push 0x2001f
push edi
push esi
call fcn.00405200
test eax, eax
je 0x405dff
push 0x20019
push edi
push esi
lea ecx, [ebp - 0x2220]
call fcn.00405200
test eax, eax
je 0x405dff
push 0
push 0
push 0x2001f
push 0
push 0
push edi
push esi
lea ecx, [ebp - 0x2220]
call fcn.00404bb0
test eax, eax
jne 0x4060d7
push edi
mov ecx, ebx
call fcn.00405020
mov esi, eax
test esi, esi
js 0x4060e2
cmp word [edi], 0x3d
jne 0x405e32
push edi
push 0
lea eax, [ebp - 0x2220]
mov ecx, ebx
push eax
call fcn.00404260
mov esi, eax
test esi, esi
js 0x4060e2
cmp word [edi], 0x7b
jne 0x40606f
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405e41
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x40606f
push 0
push dword [ebp + 0x10]
mov ecx, ebx
push dword [ebp - 0x2220]
push edi
call fcn.00405a10
mov esi, eax
test esi, esi
js 0x4060e2
push edi
mov ecx, ebx
call fcn.00405020
mov esi, eax
test esi, esi
js 0x4060e2
jmp 0x40606f
cmp dword [ebp + 0x14], 0
jne 0x405eb2
push 0x20019
push edi
push dword [ebp - 0x2214]
lea ecx, [ebp - 0x2220]
call fcn.00405200
mov ebx, eax
test ebx, ebx
jne 0x405eb7
jmp 0x405ebe
mov ebx, 2
mov dword [ebp + 0x14], 1
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0040aed3
push eax
call fcn.00401690
mov ecx, dword [ebp - 0x2210]
add esp, 0x14
push edi
call fcn.00405020
mov esi, eax
test esi, esi
js 0x4060e2
mov ecx, dword [ebp - 0x2210]
push edi
call fcn.00406430
mov esi, eax
test esi, esi
js 0x4060e2
cmp word [edi], 0x7b
jne 0x405f63
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405f12
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x405f63
push dword [ebp + 0x14]
mov ecx, dword [ebp - 0x2210]
push 0
push dword [ebp - 0x2220]
push edi
call fcn.00405a10
mov esi, eax
test esi, esi
jns 0x405f4d
cmp dword [ebp + 0x14], 0
je 0x4060e2
mov ecx, dword [ebp - 0x2210]
push edi
call fcn.00405020
mov esi, eax
test esi, esi
js 0x4060e2
mov eax, dword [ebp - 0x2258]
mov dword [ebp + 0x14], eax
cmp ebx, 2
je 0x40606f
test ebx, ebx
je 0x405f87
test eax, eax
jne 0x40606f
push ebx
jmp 0x4060d8
mov ebx, dword [ebp - 0x2210]
test eax, eax
je 0x405fdc
push dword [ebp - 0x2220]
mov ecx, ebx
call fcn.00404e30
test eax, eax
je 0x405fdc
lea eax, [ebp - 0x20c]
mov ecx, ebx
push eax
call fcn.00404960
test eax, eax
je 0x40606f
cmp dword [ebp - 0x2230], 0
je 0x40606f
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x2220]
call fcn.00405600
jmp 0x40606f
push dword [ebp - 0x2220]
mov ecx, ebx
call fcn.00404e30
mov ecx, dword [ebp - 0x2220]
mov ebx, eax
xor eax, eax
test ecx, ecx
je 0x406006
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov dword [ebp - 0x2220], ecx
mov dword [ebp - 0x221c], 0
test eax, eax
jne 0x4060d7
cmp dword [ebp - 0x2230], eax
je 0x40606f
test ebx, ebx
jne 0x40606f
mov eax, dword [ebp - 0x2214]
lea ecx, [ebp - 0x223c]
mov dword [ebp - 0x223c], eax
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0x2238], ebx
mov dword [ebp - 0x2234], ebx
call fcn.00404c90
mov dword [ebp - 0x223c], ebx
mov dword [ebp - 0x2238], ebx
mov dword [ebp - 0x2234], ebx
test eax, eax
jne 0x4060bf
lea ecx, [ebp - 0x223c]
call fcn.00403ec0
cmp word [edi], 0x7d
jne 0x405a90
jmp 0x4060e2
lea ecx, [ebp - 0x222c]
call fcn.00403ec0
mov esi, 0x80020009
jmp 0x4060e2
lea ecx, [ebp - 0x222c]
call fcn.00403ec0
jmp 0x4060e2
lea ecx, [ebp - 0x2254]
call fcn.00403ec0
jmp 0x4060e2
push eax
call fcn.00404810
add esp, 4
lea ecx, [ebp - 0x2248]
mov esi, eax
call fcn.00403ec0
jmp 0x4060e2
push eax
call fcn.00404810
add esp, 4
lea ecx, [ebp - 0x223c]
mov esi, eax
call fcn.00403ec0
jmp 0x4060e2
push eax
call fcn.00404810
add esp, 4
mov esi, eax
mov eax, dword [ebp - 0x2220]
pop ebx
test eax, eax
je 0x4060f4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040a5e0
mov esp, ebp
pop ebp
ret 0x10