Function at 0x408e60
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49b3d7
mov eax, dword fs:[0]
push eax
mov eax, 0x2258
call fcn.004747d0
mov eax, dword [0x636b1c]
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]
xorps xmm0, xmm0
mov edi, dword [ebp + 8]
movq qword [ebp - 0x2228], xmm0
mov dword [ebp - 0x2228], 0
mov dword [ebp - 0x2220], 0
mov dword [ebp - 0x222c], ecx
mov dword [ebp - 0x2224], 0
mov dword [ebp - 0x2220], 0
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x2264], ecx
mov ecx, eax
push edi
call fcn.004081f0
mov esi, eax
test esi, esi
js 0x409624
cmp word [edi], 0x7d
je 0x409624
jmp 0x408f10
push str.Delete
push edi
mov dword [ebp - 0x223c], 1
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
push 0x4b4ca4
sbb ebx, ebx
push edi
inc ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x408f43
test ebx, ebx
je 0x409081
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.004081f0
mov esi, eax
test esi, esi
js 0x409624
cmp dword [ebp + 0x10], 0
je 0x409081
xorps xmm0, xmm0
mov dword [ebp - 0x2230], 0
movq qword [ebp - 0x2238], xmm0
mov dword [ebp - 0x2238], 0
mov dword [ebp - 0x2234], 0
mov dword [ebp - 0x2230], 0
mov byte [ebp - 4], 1
mov ecx, edi
movzx eax, word [edi]
test ax, ax
je 0x408fc5
cmp ax, 0x5c
je 0x408fbd
push ecx
call dword [sym.imp.USER32.dll_CharNextW]
mov ecx, eax
movzx eax, word [ecx]
test ax, ax
jne 0x408fa4
jmp 0x408fc5
test ecx, ecx
jne 0x4095a9
mov esi, 0x4b4ce0
lea ebx, [ebx]
push dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x409032
add esi, 4
cmp esi, 0x4b4d10
jl 0x408fd0
mov eax, dword [ebp - 0x222c]
lea ecx, [ebp - 0x2238]
push edi
mov dword [ebp - 0x2238], eax
mov dword [ebp - 0x2234], 0
mov dword [ebp - 0x2230], 0
call fcn.00408810
mov dword [ebp - 0x2238], 0
mov dword [ebp - 0x2234], 0
mov dword [ebp - 0x2230], 0
test ebx, ebx
je 0x409073
mov ebx, dword [ebp - 0x221c]
mov ecx, ebx
push edi
call fcn.004081f0
mov esi, eax
test esi, esi
js 0x4095bf
push edi
mov ecx, ebx
call fcn.00409b90
mov esi, eax
test esi, esi
js 0x4095bf
mov byte [ebp - 4], 0
mov dword [ebp - 0x2234], 0
jmp 0x409332
mov byte [ebp - 4], 0
mov dword [ebp - 0x2234], 0
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov ebx, dword [ebp - 0x221c]
test eax, eax
jne 0x4090af
push edi
mov ecx, ebx
mov dword [ebp - 0x223c], eax
call fcn.004081f0
mov esi, eax
test esi, esi
js 0x409624
push 0x4b4c9c
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x409272
lea eax, [ebp - 0x2218]
mov ecx, ebx
push eax
call fcn.004081f0
mov esi, eax
test esi, esi
js 0x409624
push edi
mov ecx, ebx
call fcn.004081f0
mov esi, eax
test esi, esi
js 0x409624
cmp word [edi], 0x3d
jne 0x4095b8
cmp dword [ebp + 0x10], 0
je 0x4091a9
xorps xmm0, xmm0
mov dword [ebp - 0x224c], 0
movq qword [ebp - 0x2254], xmm0
mov dword [ebp - 0x2254], 0
mov dword [ebp - 0x2250], 0
mov dword [ebp - 0x224c], 0
mov byte [ebp - 4], 2
mov ecx, ebx
mov eax, dword [ebp - 0x222c]
mov dword [ebp - 0x2254], eax
lea eax, [ebp - 0x2218]
push edi
push eax
lea eax, [ebp - 0x2254]
mov dword [ebp - 0x2250], 0
push eax
mov dword [ebp - 0x224c], 0
call fcn.00406860
mov esi, eax
mov dword [ebp - 0x2254], 0
mov dword [ebp - 0x2250], 0
mov dword [ebp - 0x224c], 0
test esi, esi
js 0x4095d0
mov byte [ebp - 4], 0
mov dword [ebp - 0x2250], 0
jmp 0x409332
cmp dword [ebp + 0x14], 0
jne 0x40925b
cmp dword [ebp - 0x223c], 0
je 0x40925b
xorps xmm0, xmm0
mov dword [ebp - 0x2258], 0
movq qword [ebp - 0x2260], xmm0
mov dword [ebp - 0x2260], 0
mov dword [ebp - 0x225c], 0
mov dword [ebp - 0x2258], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2260]
push 0x20006
push 0
push dword [ebp - 0x222c]
call fcn.00408380
test eax, eax
jne 0x4095e1
mov esi, dword [ebp - 0x2260]
lea eax, [ebp - 0x2218]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x409238
cmp eax, 2
jne 0x4095e1
mov byte [ebp - 4], 0
test esi, esi
je 0x409251
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2260], 0
mov dword [ebp - 0x225c], 0
push edi
mov ecx, ebx
call fcn.00409b90
mov esi, eax
test esi, esi
js 0x409624
jmp 0x40959a
movzx eax, word [edi]
mov ecx, edi
test ax, ax
je 0x4092a1
lea esp, [esp]
cmp ax, 0x5c
je 0x409299
push ecx
call dword [sym.imp.USER32.dll_CharNextW]
mov ecx, eax
movzx eax, word [ecx]
test ax, ax
jne 0x409280
jmp 0x4092a1
test ecx, ecx
jne 0x4095b8
cmp dword [ebp + 0x10], 0
je 0x40938d
mov esi, dword [ebp - 0x222c]
lea ecx, [ebp - 0x2228]
push 0x2001f
push edi
push esi
call fcn.00408380
test eax, eax
je 0x4092ff
push 0x20019
push edi
push esi
lea ecx, [ebp - 0x2228]
call fcn.00408380
test eax, eax
je 0x4092ff
push 0
push 0
push 0x2001f
push 0
push 0
push edi
push esi
lea ecx, [ebp - 0x2228]
call fcn.004074b0
test eax, eax
jne 0x409619
push edi
mov ecx, ebx
call fcn.004081f0
mov esi, eax
test esi, esi
js 0x409624
cmp word [edi], 0x3d
jne 0x409332
push edi
push 0
lea eax, [ebp - 0x2228]
mov ecx, ebx
push eax
call fcn.00406860
mov esi, eax
test esi, esi
js 0x409624
cmp word [edi], 0x7b
jne 0x40959a
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409341
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x40959a
push 0
push dword [ebp + 0x10]
mov ecx, ebx
push dword [ebp - 0x2228]
push edi
call fcn.00408e60
mov esi, eax
test esi, esi
js 0x409624
push edi
mov ecx, ebx
call fcn.004081f0
mov esi, eax
test esi, esi
js 0x409624
jmp 0x40959a
cmp dword [ebp + 0x14], 0
jne 0x4093b2
push 0x20019
push edi
push dword [ebp - 0x222c]
lea ecx, [ebp - 0x2228]
call fcn.00408380
mov ebx, eax
test ebx, ebx
jne 0x4093b7
jmp 0x4093be
mov ebx, 2
mov dword [ebp + 0x14], 1
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.MSVCR120.dll_wcsncpy_s]
push eax
call fcn.00406cb0
mov ecx, dword [ebp - 0x221c]
add esp, 0x14
push edi
call fcn.004081f0
mov esi, eax
test esi, esi
js 0x409624
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.00409b90
mov esi, eax
test esi, esi
js 0x409624
cmp word [edi], 0x7b
jne 0x409464
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409413
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x409464
push dword [ebp + 0x14]
mov ecx, dword [ebp - 0x221c]
push 0
push dword [ebp - 0x2228]
push edi
call fcn.00408e60
mov esi, eax
test esi, esi
jns 0x40944e
cmp dword [ebp + 0x14], 0
je 0x409624
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.004081f0
mov esi, eax
test esi, esi
js 0x409624
mov eax, dword [ebp - 0x2264]
mov dword [ebp + 0x14], eax
cmp ebx, 2
je 0x40959a
test ebx, ebx
je 0x409488
test eax, eax
jne 0x40959a
push ebx
jmp 0x40961a
mov ebx, dword [ebp - 0x221c]
test eax, eax
je 0x4094dd
push dword [ebp - 0x2228]
mov ecx, ebx
call fcn.00407d60
test eax, eax
je 0x4094dd
lea eax, [ebp - 0x218]
mov ecx, ebx
push eax
call fcn.004071a0
test eax, eax
je 0x40959a
cmp dword [ebp - 0x223c], 0
je 0x40959a
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x2228]
call fcn.00408810
jmp 0x40959a
push dword [ebp - 0x2228]
mov ecx, ebx
call fcn.00407d60
mov ecx, dword [ebp - 0x2228]
mov ebx, eax
xor eax, eax
test ecx, ecx
je 0x409507
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov dword [ebp - 0x2228], ecx
mov dword [ebp - 0x2224], 0
test eax, eax
jne 0x409619
cmp dword [ebp - 0x223c], eax
je 0x40959a
test ebx, ebx
jne 0x40959a
xorps xmm0, xmm0
mov dword [ebp - 0x2240], ebx
movq qword [ebp - 0x2248], xmm0
mov dword [ebp - 0x2248], ebx
mov dword [ebp - 0x2244], ebx
mov dword [ebp - 0x2240], ebx
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2248]
mov eax, dword [ebp - 0x222c]
mov dword [ebp - 0x2248], eax
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 0x2244], ebx
mov dword [ebp - 0x2240], ebx
call fcn.004078d0
mov dword [ebp - 0x2248], ebx
mov dword [ebp - 0x2244], ebx
mov dword [ebp - 0x2240], ebx
test eax, eax
jne 0x4095fd
mov byte [ebp - 4], al
lea ecx, [ebp - 0x2248]
call fcn.00406020
cmp word [edi], 0x7d
jne 0x408f10
jmp 0x409624
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2238]
call fcn.00406020
mov esi, 0x80020009
jmp 0x409624
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2238]
call fcn.00406020
jmp 0x409624
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2254]
call fcn.00406020
jmp 0x409624
push eax
call fcn.00407060
add esp, 4
mov esi, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2260]
call fcn.00406020
jmp 0x409624
push eax
call fcn.00407060
add esp, 4
mov esi, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2248]
call fcn.00406020
jmp 0x409624
push eax
call fcn.00407060
add esp, 4
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2228]
test eax, eax
je 0x409646
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2228], 0
mov eax, esi
mov dword [ebp - 0x2224], 0
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.004743e6
mov esp, ebp
pop ebp
ret 0x10