Function at 0x40cb24
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41951d
mov eax, dword fs:[0]
push eax
mov eax, 0x2260
call fcn.00417a38
mov eax, dword [0x41aecc]
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 - 0x221c], eax
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x2220], ecx
xor ecx, ecx
mov ebx, ecx
mov dword [ebp - 0x2268], ecx
mov dword [ebp - 0x2230], ebx
mov dword [ebp - 0x222c], ecx
mov dword [ebp - 0x2228], ecx
mov dword [ebp - 4], ecx
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x226c], ecx
mov ecx, eax
push edi
call fcn.0040c0aa
mov esi, eax
test esi, esi
js 0x40d18d
push 0x7d
pop eax
cmp word [edi], ax
je 0x40d17c
xor eax, eax
inc eax
push str.Delete
push edi
mov dword [ebp - 0x2234], eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
push 0x41b09c
sbb esi, esi
inc esi
push edi
mov dword [ebp - 0x2224], esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40cbe8
test esi, esi
je 0x40ccb4
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.0040c0aa
mov esi, eax
test esi, esi
js 0x40d17c
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x40ccb6
push 0x5c
pop edx
mov ecx, edi
mov dword [ebp - 0x2240], esi
mov dword [ebp - 0x223c], esi
mov dword [ebp - 0x2238], esi
call fcn.0040c055
test eax, eax
jne 0x40d177
push edi
call fcn.0040c653
test eax, eax
je 0x40cc6d
mov eax, dword [ebp - 0x2220]
lea ecx, [ebp - 0x2240]
push edi
mov dword [ebp - 0x2240], eax
mov dword [ebp - 0x223c], esi
mov dword [ebp - 0x2238], esi
call fcn.0040ba1e
mov dword [ebp - 0x2240], esi
mov dword [ebp - 0x223c], esi
mov dword [ebp - 0x2238], esi
cmp dword [ebp - 0x2224], esi
je 0x40ccac
mov ebx, dword [ebp - 0x221c]
mov ecx, ebx
push edi
call fcn.0040c0aa
mov esi, eax
test esi, esi
js 0x40d17c
push edi
mov ecx, ebx
call fcn.0040c6b9
mov esi, eax
test esi, esi
js 0x40d17c
xor ebx, ebx
mov dword [ebp - 0x223c], ebx
jmp 0x40d0d6
mov dword [ebp - 0x223c], esi
jmp 0x40ccb6
xor esi, esi
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40cce2
mov ecx, dword [ebp - 0x221c]
push edi
mov dword [ebp - 0x2234], esi
call fcn.0040c0aa
mov esi, eax
test esi, esi
js 0x40d17c
push 0x41b094
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40ce39
mov ecx, dword [ebp - 0x221c]
lea eax, [ebp - 0x2218]
push eax
call fcn.0040c0aa
mov esi, eax
test esi, esi
js 0x40d17c
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.0040c0aa
mov esi, eax
test esi, esi
js 0x40d17c
push 0x3d
pop eax
cmp word [edi], ax
jne 0x40d177
cmp dword [ebp + 0x10], 0
je 0x40cd9e
mov ecx, dword [ebp - 0x221c]
xor eax, eax
inc eax
xor ebx, ebx
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x2220]
mov dword [ebp - 0x2258], eax
lea eax, [ebp - 0x2218]
push edi
push eax
lea eax, [ebp - 0x2258]
mov dword [ebp - 0x2254], ebx
push eax
mov dword [ebp - 0x2250], ebx
call fcn.0040c200
mov esi, eax
mov dword [ebp - 0x2258], ebx
mov dword [ebp - 0x2254], ebx
mov dword [ebp - 0x2250], ebx
test esi, esi
js 0x40d17c
mov byte [ebp - 4], bl
mov dword [ebp - 0x2254], ebx
jmp 0x40d0d6
cmp dword [ebp + 0x14], 0
jne 0x40ce1e
cmp dword [ebp - 0x2234], 0
je 0x40ce1e
xor esi, esi
lea ecx, [ebp - 0x224c]
push 0x20006
push esi
push dword [ebp - 0x2220]
mov dword [ebp - 0x224c], esi
mov dword [ebp - 0x2248], esi
mov dword [ebp - 0x2244], esi
call fcn.0040b962
test eax, eax
jne 0x40d157
mov ebx, dword [ebp - 0x224c]
lea eax, [ebp - 0x2218]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x40ce01
cmp eax, 2
jne 0x40d147
test ebx, ebx
je 0x40ce12
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x224c], esi
mov ebx, dword [ebp - 0x2230]
mov dword [ebp - 0x2248], esi
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.0040c6b9
mov esi, eax
test esi, esi
js 0x40d17c
jmp 0x40d02f
push 0x5c
pop edx
mov ecx, edi
call fcn.0040c055
test eax, eax
jne 0x40d177
cmp dword [ebp + 0x10], eax
je 0x40cee1
mov ebx, dword [ebp - 0x2220]
lea ecx, [ebp - 0x2230]
push 0x2001f
push edi
push ebx
call fcn.0040b962
test eax, eax
je 0x40ce9e
push 0x20019
push edi
push ebx
lea ecx, [ebp - 0x2230]
call fcn.0040b962
test eax, eax
je 0x40ce9e
sub esp, 0x14
lea ecx, [ebp - 0x2230]
push edi
push ebx
call fcn.0040b8ff
test eax, eax
jne 0x40cfe2
mov ebx, dword [ebp - 0x221c]
mov ecx, ebx
push edi
call fcn.0040c0aa
mov esi, eax
test esi, esi
js 0x40d17c
push 0x3d
pop eax
cmp word [edi], ax
jne 0x40ceda
push edi
xor eax, eax
mov ecx, ebx
push eax
lea eax, [ebp - 0x2230]
push eax
call fcn.0040c200
mov esi, eax
test esi, esi
js 0x40d17c
xor ebx, ebx
jmp 0x40d0d6
mov esi, dword [ebp + 0x14]
test esi, esi
jne 0x40cf07
push 0x20019
push edi
push dword [ebp - 0x2220]
lea ecx, [ebp - 0x2230]
call fcn.0040b962
mov ebx, dword [ebp - 0x2230]
jmp 0x40cf0a
push 2
pop eax
push 1
test eax, eax
mov dword [ebp - 0x2224], eax
pop eax
push 0xffffffffffffffff
cmovne esi, eax
lea eax, [ebp - 0x218]
push edi
push 0x104
push eax
mov dword [ebp + 0x14], esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
add esp, 0x10
mov ecx, eax
call fcn.004017d6
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.0040c0aa
mov esi, eax
test esi, esi
js 0x40d17c
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.0040c6b9
mov esi, eax
test esi, esi
js 0x40d17c
push 0x7b
pop eax
cmp word [edi], ax
jne 0x40cfc6
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x2268]
jne 0x40cf73
sub ecx, edx
xor eax, eax
sar ecx, 1
inc eax
cmp ecx, eax
jne 0x40cfc6
push dword [ebp + 0x14]
mov ecx, dword [ebp - 0x221c]
xor eax, eax
push eax
push ebx
push edi
call fcn.0040cb24
mov esi, eax
test esi, esi
jns 0x40cfb0
cmp dword [ebp + 0x14], 0
je 0x40d17c
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.0040c0aa
mov esi, eax
test esi, esi
js 0x40d17c
mov eax, dword [ebp - 0x2224]
mov ecx, dword [ebp - 0x226c]
mov dword [ebp + 0x14], ecx
cmp eax, 2
je 0x40d02f
test eax, eax
je 0x40cff0
test ecx, ecx
jne 0x40d02f
mov ecx, eax
call fcn.0040b736
mov esi, eax
jmp 0x40d17c
test ecx, ecx
je 0x40d043
push ebx
call fcn.0040c682
test eax, eax
je 0x40d043
lea eax, [ebp - 0x218]
push eax
call fcn.0040c653
test eax, eax
je 0x40d02f
cmp dword [ebp - 0x2234], 0
je 0x40d02f
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x2230]
call fcn.0040ba1e
mov ebx, dword [ebp - 0x2230]
xor eax, eax
inc eax
push 0x7d
pop ecx
cmp word [edi], cx
jne 0x40cbb3
jmp 0x40d17c
push ebx
call fcn.0040c682
mov ecx, eax
xor eax, eax
mov dword [ebp - 0x2224], ecx
test ebx, ebx
je 0x40d06e
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov ebx, ecx
mov ecx, dword [ebp - 0x2224]
mov dword [ebp - 0x2230], ebx
xor edx, edx
mov dword [ebp - 0x222c], edx
test eax, eax
jne 0x40cfe2
cmp dword [ebp - 0x2234], edx
je 0x40d02f
test ecx, ecx
jne 0x40d02f
mov eax, dword [ebp - 0x2220]
lea ecx, [ebp - 0x2264]
mov dword [ebp - 0x2264], eax
xor ebx, ebx
lea eax, [ebp - 0x218]
mov dword [ebp - 0x2260], ebx
push eax
mov dword [ebp - 0x225c], ebx
call fcn.0040b86c
mov dword [ebp - 0x2264], ebx
mov dword [ebp - 0x2260], ebx
mov dword [ebp - 0x225c], ebx
test eax, eax
jne 0x40cfe2
mov dword [ebp - 0x2260], ebx
cmp dword [ebp + 0x10], 0
je 0x40d029
push 0x7b
pop eax
cmp word [edi], ax
jne 0x40d029
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x40d0f1
sub ecx, edx
xor eax, eax
sar ecx, 1
inc eax
cmp ecx, eax
jne 0x40d13c
mov ecx, dword [ebp - 0x221c]
push ebx
push dword [ebp + 0x10]
mov ebx, dword [ebp - 0x2230]
push ebx
push edi
call fcn.0040cb24
mov esi, eax
test esi, esi
js 0x40d17c
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.0040c0aa
mov esi, eax
test esi, esi
jns 0x40d02f
jmp 0x40d17c
mov ebx, dword [ebp - 0x2230]
jmp 0x40d032
mov ecx, eax
call fcn.0040b736
mov esi, eax
test ebx, ebx
je 0x40d17c
push ebx
jmp 0x40d16f
mov ecx, eax
call fcn.0040b736
cmp dword [ebp - 0x224c], 0
mov esi, eax
je 0x40d17c
push dword [ebp - 0x224c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40d17c
mov esi, 0x80020009
mov ecx, dword [ebp - 0x2230]
test ecx, ecx
je 0x40d18d
push ecx
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.00416d17
mov esp, ebp
pop ebp
ret 0x10