Function at 0x40cb20
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4ad0a6
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x225c
call fcn.004861a0
mov eax, dword [0x4e96d0]
xor eax, esp
mov dword [esp + 0x2258], eax
push ebx
push esi
push edi
mov eax, dword [0x4e96d0]
xor eax, esp
push eax
lea eax, [esp + 0x2270]
mov dword fs:[0], eax
mov eax, ecx
mov dword [esp + 0x10], eax
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x58], ecx
mov ecx, eax
push edi
mov dword [esp + 0x227c], 0
call fcn.0040c090
mov esi, eax
test esi, esi
js 0x40d183
cmp word [edi], 0x7d
je 0x40d172
jmp 0x40cbc0
push str.Delete
push edi
mov dword [esp + 0x38], 1
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
push 0x4ce79c
sbb ebx, ebx
push edi
inc ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40cbf1
test ebx, ebx
je 0x40ccea
mov ecx, dword [esp + 0x10]
push edi
call fcn.0040c090
mov esi, eax
test esi, esi
js 0x40d172
cmp dword [ebp + 0x10], 0
je 0x40ccea
movzx eax, word [edi]
mov ecx, edi
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
test ax, ax
je 0x40cc52
cmp ax, 0x5c
je 0x40cc4a
push ecx
call dword [sym.imp.USER32.dll_CharNextW]
mov ecx, eax
movzx eax, word [ecx]
test ax, ax
jne 0x40cc31
jmp 0x40cc52
test ecx, ecx
jne 0x40d11b
mov esi, 0x4d0b80
push dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40cca9
add esi, 4
cmp esi, 0x4d0bb0
jl 0x40cc57
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x24]
push edi
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
call fcn.0040b5b0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
test ebx, ebx
je 0x40cce2
mov ebx, dword [esp + 0x10]
mov ecx, ebx
push edi
call fcn.0040c090
mov esi, eax
test esi, esi
js 0x40d12b
push edi
mov ecx, ebx
call fcn.0040c680
mov esi, eax
test esi, esi
js 0x40d12b
mov dword [esp + 0x28], 0
jmp 0x40cf16
mov dword [esp + 0x28], 0
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov ebx, dword [esp + 0x10]
test eax, eax
jne 0x40cd14
push edi
mov ecx, ebx
mov dword [esp + 0x34], eax
call fcn.0040c090
mov esi, eax
test esi, esi
js 0x40d172
push 0x4ce794
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40ce62
lea eax, [esp + 0x264]
mov ecx, ebx
push eax
call fcn.0040c090
mov esi, eax
test esi, esi
js 0x40d172
push edi
mov ecx, ebx
call fcn.0040c090
mov esi, eax
test esi, esi
js 0x40d172
cmp word [edi], 0x3d
jne 0x40d124
cmp dword [ebp + 0x10], 0
je 0x40cdcf
mov eax, dword [esp + 0x14]
mov ecx, ebx
mov byte [esp + 0x2278], 1
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x264]
push edi
push eax
lea eax, [esp + 0x54]
mov dword [esp + 0x58], 0
push eax
mov dword [esp + 0x60], 0
call fcn.0040c220
mov esi, eax
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
test esi, esi
js 0x40d136
mov byte [esp + 0x2278], 0
mov dword [esp + 0x50], 0
jmp 0x40cf16
cmp dword [ebp + 0x14], 0
jne 0x40ce4b
cmp dword [esp + 0x30], 0
je 0x40ce4b
push 0x20006
push 0
push dword [esp + 0x1c]
lea ecx, [esp + 0x40]
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
call fcn.0040b490
test eax, eax
jne 0x40d141
mov esi, dword [esp + 0x34]
lea eax, [esp + 0x264]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x40ce30
cmp eax, 2
jne 0x40d141
test esi, esi
je 0x40ce43
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
push edi
mov ecx, ebx
call fcn.0040c680
mov esi, eax
test esi, esi
js 0x40d172
jmp 0x40d10f
movzx eax, word [edi]
mov ecx, edi
test ax, ax
je 0x40ce91
lea esp, [esp]
cmp ax, 0x5c
je 0x40ce89
push ecx
call dword [sym.imp.USER32.dll_CharNextW]
mov ecx, eax
movzx eax, word [ecx]
test ax, ax
jne 0x40ce70
jmp 0x40ce91
test ecx, ecx
jne 0x40d124
cmp dword [ebp + 0x10], 0
je 0x40cf6f
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push 0x2001f
push edi
push esi
call fcn.0040b490
test eax, eax
je 0x40cee5
push 0x20019
push edi
push esi
lea ecx, [esp + 0x24]
call fcn.0040b490
test eax, eax
je 0x40cee5
push 0
push ecx
push 0x2001f
sub esp, 8
lea ecx, [esp + 0x2c]
push edi
push esi
call fcn.0040b400
test eax, eax
jne 0x40d169
push edi
mov ecx, ebx
call fcn.0040c090
mov esi, eax
test esi, esi
js 0x40d172
cmp word [edi], 0x3d
jne 0x40cf16
push edi
push 0
lea eax, [esp + 0x20]
mov ecx, ebx
push eax
call fcn.0040c220
mov esi, eax
test esi, esi
js 0x40d172
cmp word [edi], 0x7b
jne 0x40d10f
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40cf25
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x40d10f
push 0
push dword [ebp + 0x10]
mov ecx, ebx
push dword [esp + 0x20]
push edi
call fcn.0040cb20
mov esi, eax
test esi, esi
js 0x40d172
push edi
mov ecx, ebx
call fcn.0040c090
mov esi, eax
test esi, esi
js 0x40d172
jmp 0x40d10f
cmp dword [ebp + 0x14], 0
jne 0x40cf90
push 0x20019
push edi
push dword [esp + 0x1c]
lea ecx, [esp + 0x24]
call fcn.0040b490
mov ebx, eax
test ebx, ebx
jne 0x40cf95
jmp 0x40cf9c
mov ebx, 2
mov dword [ebp + 0x14], 1
push 0xffffffffffffffff
push edi
lea eax, [esp + 0x64]
push 0x104
push eax
call fcn.00471551
push eax
call fcn.0040ac20
mov ecx, dword [esp + 0x24]
add esp, 0x14
push edi
call fcn.0040c090
mov esi, eax
test esi, esi
js 0x40d172
mov ecx, dword [esp + 0x10]
push edi
call fcn.0040c680
mov esi, eax
test esi, esi
js 0x40d172
cmp word [edi], 0x7b
jne 0x40d03b
mov ecx, edi
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40cff0
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x40d03b
push dword [ebp + 0x14]
mov ecx, dword [esp + 0x14]
push 0
push dword [esp + 0x20]
push edi
call fcn.0040cb20
mov esi, eax
test esi, esi
jns 0x40d027
cmp dword [ebp + 0x14], 0
je 0x40d172
mov ecx, dword [esp + 0x10]
push edi
call fcn.0040c090
mov esi, eax
test esi, esi
js 0x40d172
mov eax, dword [esp + 0x58]
mov dword [ebp + 0x14], eax
cmp ebx, 2
je 0x40d10f
test ebx, ebx
je 0x40d05e
test eax, eax
jne 0x40d10f
mov ecx, ebx
jmp 0x40d16b
test eax, eax
je 0x40d09c
push dword [esp + 0x18]
call fcn.0040c630
test eax, eax
je 0x40d09c
lea eax, [esp + 0x5c]
push eax
call fcn.0040c5f0
test eax, eax
je 0x40d10f
cmp dword [esp + 0x30], 0
je 0x40d10f
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x1c]
call fcn.0040b5b0
jmp 0x40d10f
push dword [esp + 0x18]
call fcn.0040c630
mov ecx, dword [esp + 0x18]
mov ebx, eax
xor eax, eax
test ecx, ecx
je 0x40d0be
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], 0
test eax, eax
jne 0x40d169
cmp dword [esp + 0x30], eax
je 0x40d10f
test ebx, ebx
jne 0x40d10f
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x40]
mov dword [esp + 0x40], eax
lea eax, [esp + 0x5c]
push eax
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
call fcn.0040b370
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
test eax, eax
jne 0x40d155
lea ecx, [esp + 0x40]
call fcn.0040b350
cmp word [edi], 0x7d
jne 0x40cbc0
jmp 0x40d172
lea ecx, [esp + 0x24]
call fcn.0040b350
mov esi, 0x80020009
jmp 0x40d172
lea ecx, [esp + 0x24]
call fcn.0040b350
jmp 0x40d172
lea ecx, [esp + 0x4c]
call fcn.0040b350
jmp 0x40d172
mov ecx, eax
call fcn.0040adf0
lea ecx, [esp + 0x34]
mov esi, eax
call fcn.0040b350
jmp 0x40d172
mov ecx, eax
call fcn.0040adf0
lea ecx, [esp + 0x40]
mov esi, eax
call fcn.0040b350
jmp 0x40d172
mov ecx, eax
call fcn.0040adf0
mov esi, eax
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40d181
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x2270]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2258]
xor ecx, esp
call fcn.004712e4
mov esp, ebp
pop ebp
ret 0x10