Function at 0x40c819
Capabilities:
Delete registry value

Disassembly:
push ebp
lea ebp, [esp - 0x220c]
mov eax, 0x220c
call fcn.00435870
push 0xffffffffffffffff
push 0x4ab2da
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x4e8008]
xor eax, ebp
mov dword [ebp + 0x2208], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 0x2218]
mov edi, dword [ebp + 0x2214]
mov dword [ebp - 0x14], ecx
xor ecx, ecx
mov ebx, ecx
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], ecx
mov ecx, eax
push edi
call fcn.0040c6be
mov esi, eax
test esi, esi
js 0x40cd97
push 0x7d
pop eax
cmp word [edi], ax
je 0x40cd97
xor eax, eax
inc eax
push str.Delete
push edi
mov dword [ebp - 0x28], eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
push str.ForceRemove
sbb esi, esi
inc esi
push edi
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40c8cd
test esi, esi
je 0x40c97e
mov ecx, dword [ebp - 0x10]
push edi
call fcn.0040c6be
mov esi, eax
test esi, esi
js 0x40cd97
cmp dword [ebp + 0x221c], 0
je 0x40c97e
xor eax, eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 1
mov ecx, edi
push 0x5c
pop edx
call fcn.0040bd40
test eax, eax
jne 0x40cd8a
push edi
call fcn.0040c446
test eax, eax
je 0x40c93c
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x34], eax
xor eax, eax
push edi
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
call fcn.0040c472
xor eax, eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
jmp 0x40c93e
xor eax, eax
cmp dword [ebp - 0x18], 0
je 0x40c978
mov ebx, dword [ebp - 0x10]
mov ecx, ebx
push edi
call fcn.0040c6be
mov esi, eax
test esi, esi
js 0x40cd80
push edi
mov ecx, ebx
call fcn.0040c3e1
mov esi, eax
test esi, esi
js 0x40cd80
xor ebx, ebx
mov byte [ebp - 4], bl
mov dword [ebp - 0x30], ebx
jmp 0x40cd15
mov byte [ebp - 4], al
mov dword [ebp - 0x30], eax
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40c9a4
mov ecx, dword [ebp - 0x10]
push edi
mov dword [ebp - 0x28], eax
call fcn.0040c6be
mov esi, eax
test esi, esi
js 0x40cd97
push 0x4b999c
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40cac5
mov ecx, dword [ebp - 0x10]
lea eax, [ebp]
push eax
call fcn.0040c6be
mov esi, eax
test esi, esi
js 0x40cd97
mov ecx, dword [ebp - 0x10]
push edi
call fcn.0040c6be
mov esi, eax
test esi, esi
js 0x40cd97
push 0x3d
pop eax
cmp word [edi], ax
jne 0x40cd92
cmp dword [ebp + 0x221c], 0
je 0x40ca40
xor ebx, ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x4c], eax
lea eax, [ebp]
push edi
push eax
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x48], ebx
push eax
mov dword [ebp - 0x44], ebx
call fcn.0040bfba
mov esi, eax
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
test esi, esi
js 0x40cdb0
mov byte [ebp - 4], bl
mov dword [ebp - 0x48], ebx
jmp 0x40cd15
cmp dword [ebp + 0x2220], 0
jne 0x40caad
cmp dword [ebp - 0x28], 0
je 0x40caad
xor ebx, ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x40]
push 0x20006
push ebx
push dword [ebp - 0x14]
call fcn.0040287d
test eax, eax
jne 0x40cdd9
mov ebx, dword [ebp - 0x40]
lea eax, [ebp]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x40ca92
cmp eax, 2
jne 0x40cdb8
xor eax, eax
mov byte [ebp - 4], al
test ebx, ebx
je 0x40caa7
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov dword [ebp - 0x40], eax
mov ebx, dword [ebp - 0x24]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x10]
push edi
call fcn.0040c3e1
mov esi, eax
test esi, esi
js 0x40cd97
jmp 0x40cc88
push 0x5c
pop edx
mov ecx, edi
call fcn.0040bd40
test eax, eax
jne 0x40cd92
cmp dword [ebp + 0x221c], eax
je 0x40cb5a
mov ebx, dword [ebp - 0x14]
lea ecx, [ebp - 0x24]
push 0x2001f
push edi
push ebx
call fcn.0040287d
test eax, eax
je 0x40cb1d
push 0x20019
push edi
push ebx
lea ecx, [ebp - 0x24]
call fcn.0040287d
test eax, eax
je 0x40cb1d
sub esp, 0x14
lea ecx, [ebp - 0x24]
push edi
push ebx
call fcn.0040bdf9
test eax, eax
jne 0x40cc3f
mov ebx, dword [ebp - 0x10]
mov ecx, ebx
push edi
call fcn.0040c6be
mov esi, eax
test esi, esi
js 0x40cd97
push 0x3d
pop eax
cmp word [edi], ax
jne 0x40cb53
push edi
xor eax, eax
mov ecx, ebx
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.0040bfba
mov esi, eax
test esi, esi
js 0x40cd97
xor ebx, ebx
jmp 0x40cd15
cmp dword [ebp + 0x2220], 0
jne 0x40cb79
push 0x20019
push edi
push dword [ebp - 0x14]
lea ecx, [ebp - 0x24]
call fcn.0040287d
mov ebx, dword [ebp - 0x24]
jmp 0x40cb7c
push 2
pop eax
mov ecx, dword [ebp + 0x2220]
test eax, eax
push 1
mov dword [ebp - 0x18], eax
pop eax
push 0xffffffffffffffff
cmovne ecx, eax
lea eax, [ebp + 0x2000]
push edi
push 0x104
push eax
mov dword [ebp - 0x5c], ecx
call fcn.0041ceef
push eax
call fcn.0040193c
mov ecx, dword [ebp - 0x10]
add esp, 0x14
push edi
call fcn.0040c6be
mov esi, eax
test esi, esi
js 0x40cd97
mov ecx, dword [ebp - 0x10]
push edi
call fcn.0040c3e1
mov esi, eax
test esi, esi
js 0x40cd97
push 0x7b
pop eax
cmp word [edi], ax
jne 0x40cc2a
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x60]
jne 0x40cbe0
sub ecx, edx
xor eax, eax
sar ecx, 1
inc eax
cmp ecx, eax
jne 0x40cc2a
push dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x10]
xor eax, eax
push eax
push ebx
push edi
call fcn.0040c819
mov esi, eax
test esi, esi
jns 0x40cc17
cmp dword [ebp - 0x5c], 0
je 0x40cd97
mov ecx, dword [ebp - 0x10]
push edi
call fcn.0040c6be
mov esi, eax
test esi, esi
js 0x40cd97
mov eax, dword [ebp - 0x18]
cmp eax, 2
je 0x40cc88
test eax, eax
je 0x40cc4d
cmp dword [ebp + 0x2220], 0
jne 0x40cc88
mov ecx, eax
call fcn.0040c6b0
mov esi, eax
jmp 0x40cd97
cmp dword [ebp + 0x2220], 0
je 0x40cc9c
push ebx
call fcn.0040c56d
test eax, eax
je 0x40cc9c
lea eax, [ebp + 0x2000]
push eax
call fcn.0040c446
test eax, eax
je 0x40cc88
cmp dword [ebp - 0x28], 0
je 0x40cc88
lea eax, [ebp + 0x2000]
push eax
lea ecx, [ebp - 0x24]
call fcn.0040c472
mov ebx, dword [ebp - 0x24]
xor eax, eax
inc eax
push 0x7d
pop ecx
cmp word [edi], cx
jne 0x40c89e
jmp 0x40cd97
push ebx
call fcn.0040c56d
mov ecx, eax
xor eax, eax
mov dword [ebp - 0x18], ecx
test ebx, ebx
je 0x40ccbe
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov ebx, ecx
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x24], ebx
xor edx, edx
mov dword [ebp - 0x20], edx
test eax, eax
jne 0x40cc3f
cmp dword [ebp - 0x28], edx
je 0x40cc88
test ecx, ecx
jne 0x40cc88
xor ebx, ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x58]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x58], eax
lea eax, [ebp + 0x2000]
push eax
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
call fcn.0040c5fe
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
test eax, eax
jne 0x40cdfc
mov byte [ebp - 4], bl
mov dword [ebp - 0x54], ebx
cmp dword [ebp + 0x221c], 0
je 0x40cc85
push 0x7b
pop eax
cmp word [edi], ax
jne 0x40cc85
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x40cd33
sub ecx, edx
xor eax, eax
sar ecx, 1
inc eax
cmp ecx, eax
jne 0x40cd78
mov ecx, dword [ebp - 0x10]
push ebx
push dword [ebp + 0x221c]
mov ebx, dword [ebp - 0x24]
push ebx
push edi
call fcn.0040c819
mov esi, eax
test esi, esi
js 0x40cd97
mov ecx, dword [ebp - 0x10]
push edi
call fcn.0040c6be
mov esi, eax
test esi, esi
jns 0x40cc88
jmp 0x40cd97
mov ebx, dword [ebp - 0x24]
jmp 0x40cc8b
xor eax, eax
mov byte [ebp - 4], al
mov dword [ebp - 0x30], eax
jmp 0x40cd97
xor eax, eax
mov byte [ebp - 4], al
mov dword [ebp - 0x30], eax
mov esi, 0x80020009
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x40ce0d
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov dword [ebp - 0x24], eax
jmp 0x40ce0f
mov byte [ebp - 4], bl
mov dword [ebp - 0x48], ebx
jmp 0x40cd97
mov ecx, eax
call fcn.0040c6b0
mov esi, eax
xor eax, eax
mov byte [ebp - 4], al
test ebx, ebx
je 0x40cdd5
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
jmp 0x40cdf4
xor ebx, ebx
jmp 0x40cdf7
mov ecx, eax
call fcn.0040c6b0
mov esi, eax
mov byte [ebp - 4], bl
cmp dword [ebp - 0x40], 0
je 0x40cdf7
push dword [ebp - 0x40]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
jmp 0x40cd97
mov ecx, eax
call fcn.0040c6b0
mov esi, eax
mov byte [ebp - 4], bl
mov dword [ebp - 0x54], ebx
jmp 0x40cd97
xor eax, eax
mov dword [ebp - 0x20], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x2208]
xor ecx, ebp
call fcn.00413912
add ebp, 0x220c
leave
ret 0x10