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

Disassembly:
mov eax, 0x411588
call fcn.00408d00
sub esp, 0x21c
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 0x14]
mov edi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x20], eax
call fcn.0040ce77
jmp 0x40e0ae
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push 0x401324
push edi
call esi
mov ebx, eax
neg ebx
push 0x401348
sbb ebx, ebx
push edi
inc ebx
call esi
test eax, eax
je 0x40df1b
test ebx, ebx
je 0x40dfa1
mov ecx, dword [ebp - 0x10]
push edi
call fcn.0040ce77
mov esi, eax
test esi, esi
jl 0x40e318
cmp dword [ebp + 0x10], 0
je 0x40dfa1
and dword [ebp + 8], 0
mov byte [ebp - 4], 1
push 0x5c
push edi
call fcn.0040c6ae
test eax, eax
jne 0x40e307
mov ecx, dword [ebp - 0x10]
push edi
call fcn.0040c71c
test eax, eax
je 0x40df6c
mov eax, dword [ebp + 0xc]
push edi
lea ecx, [ebp + 8]
mov dword [ebp + 8], eax
call fcn.0040d375
and dword [ebp + 8], 0
test ebx, ebx
je 0x40df95
mov ecx, dword [ebp - 0x10]
push edi
call fcn.0040ce77
mov esi, eax
test esi, esi
jl 0x40e34d
mov ecx, dword [ebp - 0x10]
push edi
call fcn.0040d0df
mov esi, eax
test esi, esi
jmp 0x40e040
and byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.004082c9
push 0x401334
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40dfc7
mov ecx, dword [ebp - 0x10]
and dword [ebp - 0x1c], eax
push edi
call fcn.0040ce77
mov esi, eax
test esi, esi
jl 0x40e318
push 0x401360
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40e0b7
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x228]
push eax
call fcn.0040ce77
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jl 0x40e318
mov ecx, dword [ebp - 0x10]
push edi
call fcn.0040ce77
mov esi, eax
cmp esi, ebx
jl 0x40e318
cmp word [edi], 0x3d
jne 0x40e313
cmp dword [ebp + 0x10], ebx
je 0x40e057
mov dword [ebp + 8], ebx
mov byte [ebp - 4], 2
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x10]
mov dword [ebp + 8], eax
push edi
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp + 8]
push eax
call fcn.0040cf69
mov esi, eax
mov dword [ebp + 8], ebx
cmp esi, ebx
jl 0x40e34d
and byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.004082c9
jmp 0x40e2bd
cmp dword [ebp + 0x14], ebx
jne 0x40e0a5
mov dword [ebp + 8], ebx
mov byte [ebp - 4], 3
push 0x20006
push ebx
push dword [ebp + 0xc]
lea ecx, [ebp + 8]
call fcn.004082e0
cmp eax, ebx
jne 0x40e33f
lea eax, [ebp - 0x228]
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, ebx
je 0x40e099
cmp eax, 2
jne 0x40e33d
and byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.004082c9
mov ecx, dword [ebp - 0x10]
push edi
call fcn.0040d0df
mov esi, eax
cmp esi, ebx
jmp 0x40e2f9
push 0x5c
push edi
call fcn.0040c6ae
test eax, eax
jne 0x40e313
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x40e145
mov esi, 0xf003f
push esi
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
call fcn.004082e0
xor ebx, ebx
cmp eax, ebx
je 0x40e114
push 0x20019
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
call fcn.004082e0
cmp eax, ebx
je 0x40e114
push ebx
push ebx
push esi
push ebx
push ebx
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
call fcn.0040c98d
cmp eax, ebx
jne 0x40e313
mov ecx, dword [ebp - 0x10]
push edi
call fcn.0040ce77
mov esi, eax
test esi, esi
jl 0x40e318
cmp word [edi], 0x3d
jne 0x40e2bd
mov ecx, dword [ebp - 0x10]
push edi
push 0
lea eax, [ebp - 0x14]
push eax
call fcn.0040cf69
jmp 0x40e2b7
cmp dword [ebp + 0x14], esi
jne 0x40e166
push 0x20019
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
call fcn.004082e0
test eax, eax
je 0x40e166
mov dword [ebp + 0x14], 1
cmp dword [ebp - 0x18], esi
jne 0x40e178
mov eax, 0x208
call fcn.00408e30
mov dword [ebp - 0x18], esp
push 0x104
push edi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
cmp dword [ebp + 0x14], esi
jne 0x40e1ae
push dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
call fcn.0040c748
test eax, eax
jne 0x40e1ae
push dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
call fcn.0040c77d
test eax, eax
je 0x40e266
mov ecx, dword [ebp - 0x10]
push edi
call fcn.0040ce77
mov esi, eax
test esi, esi
jl 0x40e318
mov ebx, dword [ebp - 0x10]
push edi
mov ecx, ebx
call fcn.0040d0df
mov esi, eax
test esi, esi
jl 0x40e318
cmp word [edi], 0x7b
jne 0x40e221
push dword [ebp + 0x14]
mov ecx, ebx
push 0
push dword [ebp - 0x14]
push edi
call fcn.0040deb6
mov esi, eax
test esi, esi
jl 0x40e318
cmp dword [ebp + 0x14], 0
je 0x40e22e
mov eax, dword [ebp - 0x20]
push edi
mov ecx, ebx
mov dword [ebp + 0x14], eax
call fcn.0040ce77
mov esi, eax
test esi, esi
jl 0x40e318
push edi
mov ecx, ebx
call fcn.0040d0df
jmp 0x40e2f5
cmp dword [ebp + 0x14], 0
jne 0x40e2fb
mov ebx, dword [ebp - 0x10]
push dword [ebp - 0x14]
mov ecx, ebx
call fcn.0040c748
test eax, eax
je 0x40e25c
push dword [ebp - 0x18]
mov ecx, ebx
call fcn.0040c71c
test eax, eax
je 0x40e255
push dword [ebp - 0x18]
lea ecx, [ebp - 0x14]
call fcn.0040d375
mov ecx, ebx
jmp 0x40e2ef
cmp dword [ebp + 0x14], 0
jne 0x40e2fb
lea ecx, [ebp - 0x14]
call fcn.004082c9
test eax, eax
jne 0x40e313
xor esi, esi
cmp dword [ebp - 0x1c], esi
je 0x40e29f
mov dword [ebp + 8], esi
mov byte [ebp - 4], 4
push dword [ebp - 0x18]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov dword [ebp + 8], esi
and byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.004082c9
mov ecx, dword [ebp - 0x10]
push edi
call fcn.0040ce77
mov esi, eax
test esi, esi
jl 0x40e318
mov ecx, dword [ebp - 0x10]
push edi
call fcn.0040d0df
mov esi, eax
test esi, esi
jl 0x40e318
cmp dword [ebp + 0x10], 0
je 0x40e2fb
cmp word [edi], 0x7b
jne 0x40e2fb
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x40e2fb
mov ecx, dword [ebp - 0x10]
push 0
push dword [ebp + 0x10]
push dword [ebp - 0x14]
push edi
call fcn.0040deb6
mov esi, eax
test esi, esi
jl 0x40e318
mov ecx, dword [ebp - 0x10]
push edi
call fcn.0040ce77
mov esi, eax
test esi, esi
jl 0x40e318
cmp word [edi], 0x7d
jne 0x40def2
jmp 0x40e318
and byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.004082c9
mov esi, 0x80020009
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004082c9
mov eax, esi
lea esp, [ebp - 0x234]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 0x10
cmp eax, ebx
jle 0x40e34b
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
and byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.004082c9
jmp 0x40e318