Function at 0x40ed50
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2258
call fcn.00414dd0
mov eax, dword [section..data]
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.0040dcd0
mov esi, eax
test esi, esi
js 0x40f436
cmp word [edi], 0x7d
push ebx
je 0x40f422
jmp 0x40edd0
push str.Delete
push edi
mov dword [ebp - 0x2230], 1
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
push 0x42bbf0
sbb ebx, ebx
push edi
inc ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40ee03
test ebx, ebx
je 0x40ef1f
mov ecx, dword [ebp - 0x2210]
push edi
call fcn.0040dcd0
mov esi, eax
test esi, esi
js 0x40f422
cmp dword [ebp + 0x10], 0
je 0x40ef1f
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 0x40ee71
jmp 0x40ee50
cmp ax, 0x5c
je 0x40ee69
push ecx
call dword [sym.imp.USER32.dll_CharNextW]
mov ecx, eax
movzx eax, word [ecx]
test ax, ax
jne 0x40ee50
jmp 0x40ee71
test ecx, ecx
jne 0x40f3bb
mov esi, 0x42be04
push dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40eed8
add esi, 4
cmp esi, str.generic
jl 0x40ee76
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.0040e940
mov dword [ebp - 0x222c], 0
mov dword [ebp - 0x2228], 0
mov dword [ebp - 0x2224], 0
test ebx, ebx
je 0x40ef15
mov ebx, dword [ebp - 0x2210]
mov ecx, ebx
push edi
call fcn.0040dcd0
mov esi, eax
test esi, esi
js 0x40f3cd
push edi
mov ecx, ebx
call fcn.0040f570
mov esi, eax
test esi, esi
js 0x40f3cd
mov dword [ebp - 0x2228], 0
jmp 0x40f172
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 0x40ef4d
push edi
mov ecx, ebx
mov dword [ebp - 0x2230], eax
call fcn.0040dcd0
mov esi, eax
test esi, esi
js 0x40f422
push 0x42bbe8
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40f0b0
lea eax, [ebp - 0x220c]
mov ecx, ebx
push eax
call fcn.0040dcd0
mov esi, eax
test esi, esi
js 0x40f422
push edi
mov ecx, ebx
call fcn.0040dcd0
mov esi, eax
test esi, esi
js 0x40f422
cmp word [edi], 0x3d
jne 0x40f3c6
cmp dword [ebp + 0x10], 0
je 0x40f008
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.0040d0b0
mov esi, eax
mov dword [ebp - 0x2254], 0
mov dword [ebp - 0x2250], 0
mov dword [ebp - 0x224c], 0
test esi, esi
js 0x40f3da
mov dword [ebp - 0x2250], 0
jmp 0x40f172
cmp dword [ebp + 0x14], 0
jne 0x40f099
cmp dword [ebp - 0x2230], 0
je 0x40f099
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.00407ca0
test eax, eax
jne 0x40f3e7
mov esi, dword [ebp - 0x2248]
lea eax, [ebp - 0x220c]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x40f07a
cmp eax, 2
jne 0x40f3e7
test esi, esi
je 0x40f08f
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.0040f570
mov esi, eax
test esi, esi
js 0x40f422
jmp 0x40f3af
movzx eax, word [edi]
mov ecx, edi
test ax, ax
je 0x40f0e1
lea ebx, [ebx]
cmp ax, 0x5c
je 0x40f0d9
push ecx
call dword [sym.imp.USER32.dll_CharNextW]
mov ecx, eax
movzx eax, word [ecx]
test ax, ax
jne 0x40f0c0
jmp 0x40f0e1
test ecx, ecx
jne 0x40f3c6
cmp dword [ebp + 0x10], 0
je 0x40f1cd
mov esi, dword [ebp - 0x2214]
lea ecx, [ebp - 0x2220]
push 0x2001f
push edi
push esi
call fcn.00407ca0
test eax, eax
je 0x40f13f
push 0x20019
push edi
push esi
lea ecx, [ebp - 0x2220]
call fcn.00407ca0
test eax, eax
je 0x40f13f
push 0
push 0
push 0x2001f
push 0
push 0
push edi
push esi
lea ecx, [ebp - 0x2220]
call fcn.00407b90
test eax, eax
jne 0x40f417
push edi
mov ecx, ebx
call fcn.0040dcd0
mov esi, eax
test esi, esi
js 0x40f422
cmp word [edi], 0x3d
jne 0x40f172
push edi
push 0
lea eax, [ebp - 0x2220]
mov ecx, ebx
push eax
call fcn.0040d0b0
mov esi, eax
test esi, esi
js 0x40f422
cmp word [edi], 0x7b
jne 0x40f3af
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40f181
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x40f3af
push 0
push dword [ebp + 0x10]
mov ecx, ebx
push dword [ebp - 0x2220]
push edi
call fcn.0040ed50
mov esi, eax
test esi, esi
js 0x40f422
push edi
mov ecx, ebx
call fcn.0040dcd0
mov esi, eax
test esi, esi
js 0x40f422
jmp 0x40f3af
cmp dword [ebp + 0x14], 0
jne 0x40f1f2
push 0x20019
push edi
push dword [ebp - 0x2214]
lea ecx, [ebp - 0x2220]
call fcn.00407ca0
mov ebx, eax
test ebx, ebx
jne 0x40f1f7
jmp 0x40f1fe
mov ebx, 2
mov dword [ebp + 0x14], 1
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00414a7e
push eax
call fcn.0040d640
mov ecx, dword [ebp - 0x2210]
add esp, 0x14
push edi
call fcn.0040dcd0
mov esi, eax
test esi, esi
js 0x40f422
mov ecx, dword [ebp - 0x2210]
push edi
call fcn.0040f570
mov esi, eax
test esi, esi
js 0x40f422
cmp word [edi], 0x7b
jne 0x40f2a3
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40f252
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x40f2a3
push dword [ebp + 0x14]
mov ecx, dword [ebp - 0x2210]
push 0
push dword [ebp - 0x2220]
push edi
call fcn.0040ed50
mov esi, eax
test esi, esi
jns 0x40f28d
cmp dword [ebp + 0x14], 0
je 0x40f422
mov ecx, dword [ebp - 0x2210]
push edi
call fcn.0040dcd0
mov esi, eax
test esi, esi
js 0x40f422
mov eax, dword [ebp - 0x2258]
mov dword [ebp + 0x14], eax
cmp ebx, 2
je 0x40f3af
test ebx, ebx
je 0x40f2c7
test eax, eax
jne 0x40f3af
push ebx
jmp 0x40f418
mov ebx, dword [ebp - 0x2210]
test eax, eax
je 0x40f31c
push dword [ebp - 0x2220]
mov ecx, ebx
call fcn.0040db80
test eax, eax
je 0x40f31c
lea eax, [ebp - 0x20c]
mov ecx, ebx
push eax
call fcn.0040d720
test eax, eax
je 0x40f3af
cmp dword [ebp - 0x2230], 0
je 0x40f3af
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x2220]
call fcn.0040e940
jmp 0x40f3af
push dword [ebp - 0x2220]
mov ecx, ebx
call fcn.0040db80
mov ecx, dword [ebp - 0x2220]
mov ebx, eax
xor eax, eax
test ecx, ecx
je 0x40f346
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 0x40f417
cmp dword [ebp - 0x2230], eax
je 0x40f3af
test ebx, ebx
jne 0x40f3af
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.0040d8a0
mov dword [ebp - 0x223c], ebx
mov dword [ebp - 0x2238], ebx
mov dword [ebp - 0x2234], ebx
test eax, eax
jne 0x40f3ff
lea ecx, [ebp - 0x223c]
call fcn.00407b40
cmp word [edi], 0x7d
jne 0x40edd0
jmp 0x40f422
lea ecx, [ebp - 0x222c]
call fcn.00407b40
mov esi, 0x80020009
jmp 0x40f422
lea ecx, [ebp - 0x222c]
call fcn.00407b40
jmp 0x40f422
lea ecx, [ebp - 0x2254]
call fcn.00407b40
jmp 0x40f422
push eax
call fcn.0040d700
add esp, 4
lea ecx, [ebp - 0x2248]
mov esi, eax
call fcn.00407b40
jmp 0x40f422
push eax
call fcn.0040d700
add esp, 4
lea ecx, [ebp - 0x223c]
mov esi, eax
call fcn.00407b40
jmp 0x40f422
push eax
call fcn.0040d700
add esp, 4
mov esi, eax
mov eax, dword [ebp - 0x2220]
pop ebx
test eax, eax
je 0x40f434
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.00413a55
mov esp, ebp
pop ebp
ret 0x10