Function at 0x40c820
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b135b
mov eax, dword fs:[0]
push eax
mov eax, 0x225c
call fcn.00487750
mov eax, dword [0x4e2018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x2264], eax
mov ecx, dword [ebp + 0xc]
xorps xmm0, xmm0
mov ebx, dword [ebp + 8]
movq qword [ebp - 0x2260], xmm0
mov dword [ebp - 0x2258], 0
mov dword [ebp - 0x2268], ecx
mov dword [ebp - 0x2260], 0
mov dword [ebp - 0x225c], 0
mov dword [ebp - 0x2258], 0
push ebx
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.0040c660
mov esi, eax
test esi, esi
js 0x40d03e
cmp word [ebx], 0x7d
je 0x40d02b
nop dword [eax]
push str.Delete
push ebx
mov dword [ebp - 0x2254], 1
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
push 0x4c6e48
sbb edi, edi
push ebx
inc edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40c8f3
test edi, edi
je 0x40c9f5
mov ecx, dword [ebp - 0x2264]
push ebx
call fcn.0040c660
mov esi, eax
test esi, esi
js 0x40d02b
cmp dword [ebp + 0x10], 0
je 0x40c9f5
movzx ecx, word [ebx]
mov eax, ebx
mov dword [ebp - 0x2238], 0
mov dword [ebp - 0x2230], 0
test cx, cx
je 0x40c954
mov edx, ecx
cmp dx, 0x5c
je 0x40c94c
push eax
call dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [eax]
mov edx, ecx
test cx, cx
jne 0x40c933
jmp 0x40c954
test eax, eax
jne 0x40d016
mov esi, 0x4c7b8c
nop dword [eax]
push dword [esi]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40c9ae
add esi, 4
cmp esi, str.RegOpenKeyTransactedW
jl 0x40c960
mov eax, dword [ebp - 0x2268]
lea ecx, [ebp - 0x2238]
push ebx
mov dword [ebp - 0x2238], eax
mov dword [ebp - 0x2234], 0
call fcn.0040c430
mov dword [ebp - 0x2238], 0
mov dword [ebp - 0x2230], 0
test edi, edi
je 0x40c9eb
mov edi, dword [ebp - 0x2264]
mov ecx, edi
push ebx
call fcn.0040c660
mov esi, eax
test esi, esi
js 0x40d02b
push ebx
mov ecx, edi
call fcn.0040c2e0
mov esi, eax
test esi, esi
js 0x40d02b
mov dword [ebp - 0x2234], 0
jmp 0x40cd30
mov dword [ebp - 0x2234], 0
push str.NoRemove
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov edi, dword [ebp - 0x2264]
test eax, eax
jne 0x40ca23
push ebx
mov ecx, edi
mov dword [ebp - 0x2254], eax
call fcn.0040c660
mov esi, eax
test esi, esi
js 0x40d02b
push 0x4c6e40
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40cbb1
lea eax, [ebp - 0x2218]
mov ecx, edi
push eax
call fcn.0040c660
mov esi, eax
test esi, esi
js 0x40d02b
push ebx
mov ecx, edi
call fcn.0040c660
mov esi, eax
test esi, esi
js 0x40d02b
cmp word [ebx], 0x3d
jne 0x40d016
cmp dword [ebp + 0x10], 0
je 0x40caff
xorps xmm0, xmm0
mov dword [ebp - 0x2220], 0
movq qword [ebp - 0x2228], xmm0
mov eax, dword [ebp - 0x2268]
mov ecx, edi
mov byte [ebp - 4], 1
mov dword [ebp - 0x2228], eax
lea eax, [ebp - 0x2218]
push ebx
push eax
lea eax, [ebp - 0x2228]
mov dword [ebp - 0x2224], 0
push eax
mov dword [ebp - 0x2220], 0
call fcn.0040bdb0
mov esi, eax
mov dword [ebp - 0x2228], 0
mov dword [ebp - 0x2224], 0
mov dword [ebp - 0x2220], 0
test esi, esi
js 0x40d02b
mov byte [ebp - 4], 0
mov dword [ebp - 0x2224], 0
jmp 0x40cd30
cmp dword [ebp + 0x14], 0
jne 0x40cb9a
cmp dword [ebp - 0x2254], 0
je 0x40cb9a
push 0x20006
push 0
push dword [ebp - 0x2268]
lea ecx, [ebp - 0x2244]
mov dword [ebp - 0x2244], 0
mov dword [ebp - 0x2240], 0
mov dword [ebp - 0x223c], 0
call fcn.0040c350
test eax, eax
jne 0x40cffa
mov edi, dword [ebp - 0x2244]
lea eax, [ebp - 0x2218]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x40cb75
cmp eax, 2
jne 0x40cfe4
test edi, edi
je 0x40cb8a
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2244], 0
mov edi, dword [ebp - 0x2264]
mov dword [ebp - 0x2240], 0
push ebx
mov ecx, edi
call fcn.0040c2e0
mov esi, eax
test esi, esi
js 0x40d02b
jmp 0x40cfd8
movzx ecx, word [ebx]
mov eax, ebx
test cx, cx
je 0x40cbe1
mov edx, ecx
nop dword [eax]
cmp dx, 0x5c
je 0x40cbd9
push eax
call dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [eax]
mov edx, ecx
test cx, cx
jne 0x40cbc0
jmp 0x40cbe1
test eax, eax
jne 0x40d016
cmp dword [ebp + 0x10], 0
je 0x40cd8c
mov esi, dword [ebp - 0x2268]
lea ecx, [ebp - 0x2260]
push 0x2001f
push ebx
push esi
call fcn.0040c350
test eax, eax
je 0x40ccfd
push 0x20019
push ebx
push esi
lea ecx, [ebp - 0x2260]
call fcn.0040c350
test eax, eax
je 0x40ccfd
mov esi, dword [ebp - 0x2258]
mov dword [ebp - 0x2254], 0
test esi, esi
je 0x40cc98
cmp dword [esi], 0
je 0x40cc8b
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40d01d
push str.RegCreateKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40cc91
push 0
push dword [esi]
lea ecx, [ebp - 0x222c]
push ecx
lea ecx, [ebp - 0x2254]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
push ebx
push dword [ebp - 0x2268]
call eax
jmp 0x40ccc0
cmp dword [esi + 4], 0
jne 0x40cc98
mov eax, 1
jmp 0x40ccc0
lea eax, [ebp - 0x222c]
push eax
lea eax, [ebp - 0x2254]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push ebx
push dword [ebp - 0x2268]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40d022
mov ecx, dword [ebp - 0x2260]
test ecx, ecx
je 0x40ccd9
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x2254]
mov dword [ebp - 0x2260], edi
mov dword [ebp - 0x225c], 0
test eax, eax
jne 0x40d022
mov edi, dword [ebp - 0x2264]
push ebx
mov ecx, edi
call fcn.0040c660
mov esi, eax
test esi, esi
js 0x40d02b
cmp word [ebx], 0x3d
jne 0x40cd30
push ebx
push 0
lea eax, [ebp - 0x2260]
mov ecx, edi
push eax
call fcn.0040bdb0
mov esi, eax
test esi, esi
js 0x40d02b
cmp word [ebx], 0x7b
jne 0x40cfd8
mov ecx, ebx
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40cd40
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x40cfd8
push 0
push dword [ebp + 0x10]
mov ecx, edi
push dword [ebp - 0x2260]
push ebx
call fcn.0040c820
mov esi, eax
test esi, esi
js 0x40d02b
push ebx
mov ecx, edi
call fcn.0040c660
mov esi, eax
test esi, esi
js 0x40d02b
jmp 0x40cfd8
mov esi, dword [ebp + 0x14]
test esi, esi
jne 0x40cdae
push 0x20019
push ebx
push dword [ebp - 0x2268]
lea ecx, [ebp - 0x2260]
call fcn.0040c350
mov edi, eax
jmp 0x40cdb3
mov edi, 2
test edi, edi
mov eax, 1
push 0xffffffffffffffff
cmove eax, esi
push ebx
mov dword [ebp - 0x221c], eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0048ecd4
push eax
call fcn.00404150
mov ecx, dword [ebp - 0x2264]
add esp, 0x14
push ebx
call fcn.0040c660
mov esi, eax
test esi, esi
js 0x40d02b
mov ecx, dword [ebp - 0x2264]
push ebx
call fcn.0040c2e0
mov esi, eax
test esi, esi
js 0x40d02b
cmp word [ebx], 0x7b
jne 0x40ce6e
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40ce17
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x40ce6e
push dword [ebp - 0x221c]
mov ecx, dword [ebp - 0x2264]
push 0
push dword [ebp - 0x2260]
push ebx
call fcn.0040c820
mov esi, eax
test esi, esi
jns 0x40ce58
cmp dword [ebp - 0x221c], 0
je 0x40d02b
mov ecx, dword [ebp - 0x2264]
push ebx
call fcn.0040c660
mov esi, eax
test esi, esi
js 0x40d02b
cmp edi, 2
je 0x40cfd8
test edi, edi
je 0x40ce8c
cmp dword [ebp + 0x14], 0
jne 0x40cfd8
mov ecx, edi
jmp 0x40d024
cmp dword [ebp + 0x14], 0
je 0x40cf26
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x221c]
mov dword [ebp - 0x221c], 0
push eax
push 0
push 0
push 0
push dword [ebp - 0x2260]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x40cf26
cmp dword [ebp - 0x221c], eax
jbe 0x40cf26
mov edi, 0x4c7b8c
nop dword [eax + eax]
push dword [edi]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40cfd8
add edi, 4
cmp edi, str.RegOpenKeyTransactedW
jl 0x40cee0
cmp dword [ebp - 0x2254], 0
je 0x40cfd8
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x2260]
call fcn.0040c430
jmp 0x40cfd8
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x221c]
mov dword [ebp - 0x221c], 0
push eax
push 0
push 0
push 0
push dword [ebp - 0x2260]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x40cf5f
xor edi, edi
jmp 0x40cf6b
xor eax, eax
cmp eax, dword [ebp - 0x221c]
sbb edi, edi
neg edi
mov ecx, dword [ebp - 0x2260]
xor eax, eax
test ecx, ecx
je 0x40cf86
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov dword [ebp - 0x2260], ecx
mov dword [ebp - 0x225c], 0
test eax, eax
jne 0x40d022
cmp dword [ebp - 0x2254], eax
je 0x40cfd8
test edi, edi
jne 0x40cfd8
mov eax, dword [ebp - 0x2268]
lea ecx, [ebp - 0x2250]
mov dword [ebp - 0x2250], eax
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 0x224c], edi
mov dword [ebp - 0x2248], edi
call fcn.0040c570
mov dword [ebp - 0x2250], edi
test eax, eax
jne 0x40d022
cmp word [ebx], 0x7d
jne 0x40c8c0
jmp 0x40d02b
mov ecx, eax
call fcn.0040c650
mov esi, eax
test edi, edi
je 0x40d02b
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40d02b
mov ecx, eax
call fcn.0040c650
mov esi, eax
mov eax, dword [ebp - 0x2244]
test eax, eax
je 0x40d02b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40d02b
mov esi, 0x80020009
jmp 0x40d02b
mov eax, 1
mov ecx, eax
call fcn.0040c650
mov esi, eax
mov eax, dword [ebp - 0x2260]
test eax, eax
je 0x40d03c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
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 - 0x10]
xor ecx, ebp
call fcn.00486589
mov esp, ebp
pop ebp
ret 0x10