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

Disassembly:
mov eax, 0x4147e2
call fcn.004144a0
sub esp, 0x228
mov eax, dword [0x418894]
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x10], eax
push edi
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x230], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x220], ebx
mov eax, dword [ebp + 0x14]
mov edi, dword [ebp + 8]
push edi
mov byte [ebp - 4], 1
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x22c], 1
mov dword [ebp - 0x234], eax
call fcn.0040c61b
jmp 0x40df0d
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push 0x4014b4
push edi
call esi
mov ebx, eax
neg ebx
push 0x4014d8
sbb ebx, ebx
push edi
inc ebx
call esi
test eax, eax
je 0x40dd5d
test ebx, ebx
je 0x40de04
mov ecx, dword [ebp - 0x21c]
push edi
call fcn.0040c61b
mov esi, eax
test esi, esi
jl 0x40e21e
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x40de04
mov dword [ebp + 8], esi
push 0x5c
push edi
mov byte [ebp - 4], 2
call fcn.0040c513
test eax, eax
jne 0x40e211
mov ecx, dword [ebp - 0x21c]
push edi
call fcn.0040c721
test eax, eax
je 0x40ddb7
mov eax, dword [ebp + 0xc]
push edi
lea ecx, [ebp + 8]
mov dword [ebp + 8], eax
call fcn.0040cdaa
mov dword [ebp + 8], esi
cmp ebx, esi
je 0x40ddf8
mov ecx, dword [ebp - 0x21c]
push edi
call fcn.0040c61b
mov esi, eax
test esi, esi
jl 0x40e265
mov ecx, dword [ebp - 0x21c]
push edi
call fcn.0040c819
mov esi, eax
test esi, esi
lea ecx, [ebp + 8]
jl 0x40e268
mov byte [ebp - 4], 1
call fcn.0040c13b
jmp 0x40e1be
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.0040c13b
push 0x4014c4
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40de30
mov ecx, dword [ebp - 0x21c]
and dword [ebp - 0x22c], eax
push edi
call fcn.0040c61b
mov esi, eax
test esi, esi
jl 0x40e21e
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push 0x4014f0
push edi
xor ebx, ebx
call esi
test eax, eax
jne 0x40df16
mov ecx, dword [ebp - 0x21c]
lea eax, [ebp - 0x218]
push eax
call fcn.0040c61b
mov esi, eax
cmp esi, ebx
jl 0x40e21e
mov ecx, dword [ebp - 0x21c]
push edi
call fcn.0040c61b
mov esi, eax
cmp esi, ebx
jl 0x40e21e
cmp word [edi], 0x3d
jne 0x40e219
cmp dword [ebp + 0x10], ebx
je 0x40debb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x21c]
push ebx
mov dword [ebp + 8], eax
push edi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp + 8]
push eax
call fcn.0040d9fa
lea ecx, [ebp + 8]
mov esi, eax
mov dword [ebp + 8], ebx
call fcn.0040c13b
cmp esi, ebx
jmp 0x40e1bc
cmp dword [ebp + 0x14], ebx
jne 0x40df01
push 0x20006
push ebx
push dword [ebp + 0xc]
lea ecx, [ebp + 8]
mov dword [ebp + 8], ebx
call fcn.0040c1a0
cmp eax, ebx
jne 0x40e257
lea eax, [ebp - 0x218]
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, ebx
je 0x40def9
cmp eax, 2
jne 0x40e255
lea ecx, [ebp + 8]
call fcn.0040c13b
mov ecx, dword [ebp - 0x21c]
push edi
call fcn.0040c819
mov esi, eax
cmp esi, ebx
jmp 0x40e203
push 0x5c
push edi
call fcn.0040c513
test eax, eax
jne 0x40e219
cmp dword [ebp + 0x10], ebx
je 0x40dfe8
push 0xf003f
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x220]
call fcn.0040c1a0
test eax, eax
je 0x40df7f
push 0x20019
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x220]
call fcn.0040c1a0
test eax, eax
je 0x40df7f
push ebx
push ebx
push 0x2001f
push ebx
push ebx
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x220]
call fcn.0040c152
test eax, eax
jne 0x40e219
mov ax, word [edi]
cmp ax, 0x4c
mov byte [ebp - 0x228], 0
je 0x40df95
cmp ax, 0x6c
jne 0x40dfa8
push 0x402068
push edi
call esi
test eax, eax
jne 0x40dfa8
mov byte [ebp - 0x228], 1
mov ecx, dword [ebp - 0x21c]
push edi
call fcn.0040c61b
mov esi, eax
test esi, esi
jl 0x40e21e
cmp word [edi], 0x3d
jne 0x40e1be
push dword [ebp - 0x228]
mov ecx, dword [ebp - 0x21c]
push edi
push 0
lea eax, [ebp - 0x220]
push eax
call fcn.0040d9fa
jmp 0x40e1b8
cmp dword [ebp + 0x14], ebx
jne 0x40e00c
push 0x20019
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x220]
call fcn.0040c1a0
test eax, eax
je 0x40e00c
mov dword [ebp + 0x14], 1
cmp dword [ebp - 0x224], ebx
jne 0x40e050
mov esi, 0x208
push esi
call fcn.0040c042
test al, al
je 0x40e032
mov eax, esi
call fcn.00414530
mov dword [ebp - 0x224], esp
jmp 0x40e044
push esi
lea ecx, [ebp - 0x230]
call fcn.0040d941
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], ebx
je 0x40e26f
push 0x104
push edi
push dword [ebp - 0x224]
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
cmp dword [ebp + 0x14], ebx
jne 0x40e095
push dword [ebp - 0x220]
mov ecx, dword [ebp - 0x21c]
call fcn.0040c74d
test eax, eax
jne 0x40e095
push dword [ebp - 0x220]
mov ecx, dword [ebp - 0x21c]
call fcn.0040c782
test eax, eax
je 0x40e164
mov ebx, dword [ebp - 0x21c]
push edi
mov ecx, ebx
call fcn.0040c61b
mov esi, eax
test esi, esi
jl 0x40e21e
push edi
mov ecx, ebx
call fcn.0040c819
mov esi, eax
test esi, esi
jl 0x40e21e
cmp word [edi], 0x7b
jne 0x40e110
push dword [ebp + 0x14]
mov ecx, ebx
push 0
push dword [ebp - 0x220]
push edi
call fcn.0040dcd7
mov esi, eax
test esi, esi
jl 0x40e21e
cmp dword [ebp + 0x14], 0
je 0x40e120
mov eax, dword [ebp - 0x234]
push edi
mov ecx, ebx
mov dword [ebp + 0x14], eax
call fcn.0040c61b
mov esi, eax
test esi, esi
jl 0x40e21e
push edi
mov ecx, ebx
call fcn.0040c819
jmp 0x40e1ff
cmp dword [ebp + 0x14], 0
jne 0x40e205
mov ebx, dword [ebp - 0x21c]
push dword [ebp - 0x220]
mov ecx, ebx
call fcn.0040c74d
test eax, eax
je 0x40e15a
push dword [ebp - 0x224]
mov ecx, ebx
call fcn.0040c721
test eax, eax
je 0x40e153
push dword [ebp - 0x224]
lea ecx, [ebp - 0x220]
call fcn.0040cdaa
mov ecx, ebx
jmp 0x40e1f9
cmp dword [ebp + 0x14], 0
jne 0x40e205
lea ecx, [ebp - 0x220]
call fcn.0040c13b
test eax, eax
jne 0x40e219
cmp dword [ebp - 0x22c], eax
je 0x40e19a
push dword [ebp - 0x224]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
and dword [ebp + 8], 0
lea ecx, [ebp + 8]
call fcn.0040c13b
mov ecx, dword [ebp - 0x21c]
push edi
call fcn.0040c61b
mov esi, eax
test esi, esi
jl 0x40e21e
mov ecx, dword [ebp - 0x21c]
push edi
call fcn.0040c819
mov esi, eax
test esi, esi
jl 0x40e21e
cmp dword [ebp + 0x10], 0
je 0x40e205
cmp word [edi], 0x7b
jne 0x40e205
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x40e205
mov ecx, dword [ebp - 0x21c]
push 0
push dword [ebp + 0x10]
push dword [ebp - 0x220]
push edi
call fcn.0040dcd7
mov esi, eax
test esi, esi
jl 0x40e21e
mov ecx, dword [ebp - 0x21c]
push edi
call fcn.0040c61b
mov esi, eax
test esi, esi
jl 0x40e21e
cmp word [edi], 0x7d
jne 0x40dd34
jmp 0x40e21e
lea ecx, [ebp + 8]
call fcn.0040c13b
mov esi, 0x80020009
lea ecx, [ebp - 0x220]
call fcn.0040c13b
lea ecx, [ebp - 0x230]
call fcn.0040cc0f
mov eax, esi
lea esp, [ebp - 0x240]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
call fcn.0041413d
pop edi
pop esi
pop ebx
leave
ret 0x10
cmp eax, ebx
jle 0x40e263
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
lea ecx, [ebp + 8]
call fcn.0040c13b
jmp 0x40e21e
mov esi, 0x8007000e
jmp 0x40e21e