Function at 0x405edf
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4637f3
mov eax, dword fs:[0]
push eax
mov eax, 0x224c
call fcn.0045a150
mov eax, dword [0x47f070]
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 ebx, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x221c], ecx
mov dword [ebp - 0x2228], eax
mov dword [ebp - 0x2224], esi
mov dword [ebp - 0x2220], esi
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x2244], eax
mov eax, ebx
mov dword [ebp - 4], esi
call fcn.00405dc9
mov edi, eax
cmp edi, esi
jl 0x4063ba
cmp word [ebx], 0x7d
je 0x4063b8
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push str.Delete
push ebx
mov dword [ebp - 0x2230], 1
call edi
mov esi, eax
neg esi
push str.ForceRemove
sbb esi, esi
push ebx
inc esi
call edi
test eax, eax
je 0x405f8b
test esi, esi
je 0x406045
mov ecx, dword [ebp - 0x221c]
mov eax, ebx
call fcn.00405dc9
mov edi, eax
test edi, edi
jl 0x4063a3
xor edi, edi
cmp dword [ebp + 0x10], edi
je 0x406047
push 0x5c
mov eax, ebx
mov dword [ebp - 0x2240], edi
mov dword [ebp - 0x223c], edi
call fcn.00405655
pop ecx
test eax, eax
jne 0x406515
push ebx
call fcn.00405b5d
test eax, eax
je 0x405fff
mov eax, dword [ebp - 0x2228]
push ebx
lea ecx, [ebp - 0x2240]
mov dword [ebp - 0x2240], eax
mov dword [ebp - 0x223c], edi
call fcn.00405bc7
mov dword [ebp - 0x2240], edi
mov dword [ebp - 0x223c], edi
cmp esi, edi
je 0x40603d
mov ecx, dword [ebp - 0x221c]
mov eax, ebx
call fcn.00405dc9
mov edi, eax
test edi, edi
jl 0x4063a3
mov ecx, dword [ebp - 0x221c]
mov edi, ebx
call fcn.00405af8
mov edi, eax
test edi, edi
jl 0x4063a3
and dword [ebp - 0x223c], 0
jmp 0x4064b6
mov dword [ebp - 0x223c], edi
jmp 0x406047
xor edi, edi
push str.NoRemove
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x406076
and dword [ebp - 0x2230], eax
mov ecx, dword [ebp - 0x221c]
mov eax, ebx
call fcn.00405dc9
mov edi, eax
test edi, edi
jl 0x4063a3
xor edi, edi
push 0x46b13c
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4061af
mov ecx, dword [ebp - 0x221c]
lea eax, [ebp - 0x2218]
call fcn.00405dc9
mov edi, eax
test edi, edi
jl 0x4063a3
mov ecx, dword [ebp - 0x221c]
mov eax, ebx
call fcn.00405dc9
mov edi, eax
test edi, edi
jl 0x4063a3
cmp word [ebx], 0x3d
jne 0x406533
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x406121
mov eax, dword [ebp - 0x2228]
mov ecx, dword [ebp - 0x221c]
mov byte [ebp - 4], 1
mov dword [ebp - 0x2254], eax
push ebx
lea eax, [ebp - 0x2218]
push eax
lea edx, [ebp - 0x2254]
mov dword [ebp - 0x2250], esi
call fcn.004057b0
mov edi, eax
cmp edi, esi
mov dword [ebp - 0x2254], esi
mov dword [ebp - 0x2250], esi
jl 0x406589
mov byte [ebp - 4], 0
mov dword [ebp - 0x2250], esi
jmp 0x4064b6
cmp dword [ebp + 0x14], esi
jne 0x406199
cmp dword [ebp - 0x2230], esi
je 0x406199
push esi
push dword [ebp - 0x2228]
mov eax, 0x20006
lea ecx, [ebp - 0x2238]
mov dword [ebp - 0x2238], esi
mov dword [ebp - 0x2234], esi
call fcn.00405b89
cmp eax, esi
jne 0x40653c
lea eax, [ebp - 0x2218]
push eax
push dword [ebp - 0x2238]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, esi
je 0x406179
cmp eax, 2
jne 0x40653c
cmp dword [ebp - 0x2238], esi
je 0x406193
push dword [ebp - 0x2238]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2238], esi
mov dword [ebp - 0x2234], esi
mov ecx, dword [ebp - 0x221c]
mov edi, ebx
call fcn.00405af8
mov edi, eax
cmp edi, esi
jmp 0x406500
push 0x5c
mov eax, ebx
call fcn.00405655
pop ecx
test eax, eax
jne 0x406515
cmp dword [ebp + 0x10], edi
je 0x4062a2
push ebx
push dword [ebp - 0x2228]
mov esi, 0x2001f
mov eax, esi
lea ecx, [ebp - 0x2224]
call fcn.00405b89
test eax, eax
je 0x40625e
push ebx
push dword [ebp - 0x2228]
lea eax, [esi - 6]
lea ecx, [ebp - 0x2224]
call fcn.00405b89
test eax, eax
je 0x40625e
lea eax, [ebp - 0x2258]
push eax
lea eax, [ebp - 0x2230]
push eax
push edi
push esi
push edi
push edi
push edi
push ebx
push dword [ebp - 0x2228]
mov dword [ebp - 0x2230], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, edi
jne 0x406560
xor eax, eax
cmp dword [ebp - 0x2224], edi
je 0x406244
push dword [ebp - 0x2224]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x2230]
mov dword [ebp - 0x2224], ecx
mov dword [ebp - 0x2220], edi
cmp eax, edi
jne 0x406560
mov ecx, dword [ebp - 0x221c]
mov eax, ebx
call fcn.00405dc9
mov edi, eax
test edi, edi
jl 0x4063a3
cmp word [ebx], 0x3d
jne 0x4064b6
mov ecx, dword [ebp - 0x221c]
push ebx
push 0
lea edx, [ebp - 0x2224]
call fcn.004057b0
mov edi, eax
test edi, edi
jl 0x4063a3
jmp 0x4064b6
cmp dword [ebp + 0x14], edi
jne 0x4062c6
push ebx
push dword [ebp - 0x2228]
mov eax, 0x20019
lea ecx, [ebp - 0x2224]
call fcn.00405b89
mov dword [ebp - 0x222c], eax
jmp 0x4062d0
mov dword [ebp - 0x222c], 2
cmp dword [ebp - 0x222c], edi
je 0x4062df
mov dword [ebp + 0x14], 1
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00445919
push eax
call fcn.0040476d
mov ecx, dword [ebp - 0x221c]
add esp, 0x14
mov eax, ebx
call fcn.00405dc9
mov edi, eax
test edi, edi
jl 0x4063a3
mov ecx, dword [ebp - 0x221c]
mov edi, ebx
call fcn.00405af8
mov edi, eax
test edi, edi
jl 0x4063a3
cmp word [ebx], 0x7b
jne 0x40636e
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x40636e
push dword [ebp + 0x14]
mov ecx, dword [ebp - 0x221c]
push 0
push dword [ebp - 0x2224]
push ebx
call fcn.00405edf
mov edi, eax
test edi, edi
jge 0x40635b
cmp dword [ebp + 0x14], 0
je 0x4063a3
mov ecx, dword [ebp - 0x221c]
mov eax, ebx
call fcn.00405dc9
mov edi, eax
test edi, edi
jl 0x4063a3
cmp dword [ebp - 0x222c], 2
mov eax, dword [ebp - 0x2244]
mov dword [ebp + 0x14], eax
je 0x406506
xor esi, esi
cmp dword [ebp - 0x222c], esi
je 0x4063d6
cmp eax, esi
jne 0x406506
mov eax, dword [ebp - 0x222c]
call fcn.00405d9a
mov edi, eax
cmp dword [ebp - 0x2224], 0
je 0x4063b8
push dword [ebp - 0x2224]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
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.00444072
leave
ret 0x10
cmp eax, esi
je 0x406421
push dword [ebp - 0x2224]
call fcn.00405cf2
test eax, eax
je 0x406421
lea eax, [ebp - 0x218]
push eax
call fcn.00405b5d
test eax, eax
je 0x406506
cmp dword [ebp - 0x2230], 0
je 0x406506
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x2224]
call fcn.00405bc7
jmp 0x406506
push dword [ebp - 0x2224]
call fcn.00405cf2
mov dword [ebp - 0x222c], eax
xor eax, eax
cmp dword [ebp - 0x2224], esi
je 0x40644e
push dword [ebp - 0x2224]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2224], esi
mov dword [ebp - 0x2220], esi
cmp eax, esi
jne 0x406582
cmp dword [ebp - 0x2230], esi
je 0x406506
cmp dword [ebp - 0x222c], 0
jne 0x406506
mov eax, dword [ebp - 0x2228]
and dword [ebp - 0x2248], 0
mov dword [ebp - 0x224c], eax
lea eax, [ebp - 0x218]
push eax
lea esi, [ebp - 0x224c]
call fcn.00405d43
and dword [ebp - 0x224c], 0
and dword [ebp - 0x2248], 0
test eax, eax
jne 0x40639c
and dword [ebp - 0x2248], eax
cmp dword [ebp + 0x10], 0
je 0x406506
cmp word [ebx], 0x7b
jne 0x406506
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x406506
mov ecx, dword [ebp - 0x221c]
push 0
push dword [ebp + 0x10]
push dword [ebp - 0x2224]
push ebx
call fcn.00405edf
mov edi, eax
test edi, edi
jl 0x4063a3
mov ecx, dword [ebp - 0x221c]
mov eax, ebx
call fcn.00405dc9
mov edi, eax
test edi, edi
jl 0x4063a3
cmp word [ebx], 0x7d
jne 0x405f58
jmp 0x4063a3
cmp dword [ebp - 0x2224], edi
je 0x406529
push dword [ebp - 0x2224]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x4063ba
cmp dword [ebp - 0x2224], 0
jmp 0x40651b
call fcn.00405d9a
mov edi, eax
cmp dword [ebp - 0x2238], esi
je 0x4063a3
push dword [ebp - 0x2238]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4063a3
call fcn.00405d9a
mov esi, eax
cmp dword [ebp - 0x2224], edi
je 0x40657b
push dword [ebp - 0x2224]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x4063ba
call fcn.00405d9a
mov edi, eax
cmp dword [ebp - 0x2224], esi
jmp 0x4063aa