Function at 0x408870
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x487676
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x225c
call fcn.004864e0
mov eax, dword [0x4b5320]
xor eax, esp
mov dword [esp + 0x2258], eax
push ebx
push esi
push edi
mov eax, dword [0x4b5320]
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]
xorps xmm0, xmm0
mov edi, dword [ebp + 8]
movq qword [esp + 0x20], xmm0
mov dword [esp + 0x28], 0
mov dword [esp + 0x14], ecx
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x1c], ecx
mov ecx, eax
push edi
mov dword [esp + 0x227c], 0
call fcn.00407d40
mov esi, eax
test esi, esi
js 0x408f29
cmp word [edi], 0x7d
je 0x408f18
lea esp, [esp]
push str.Delete
push edi
mov dword [esp + 0x20], 1
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
push 0x497d2c
sbb ebx, ebx
push edi
inc ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x408951
test ebx, ebx
je 0x408a63
mov ecx, dword [esp + 0x10]
push edi
call fcn.00407d40
mov esi, eax
test esi, esi
js 0x408f18
cmp dword [ebp + 0x10], 0
je 0x408a63
movzx eax, word [edi]
xorps xmm0, xmm0
movq qword [esp + 0x2c], xmm0
mov ecx, edi
mov dword [esp + 0x34], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
test ax, ax
je 0x4089c3
cmp ax, 0x5c
je 0x4089bb
push ecx
call dword [sym.imp.USER32.dll_CharNextW]
mov ecx, eax
movzx eax, word [ecx]
test ax, ax
jne 0x4089a2
jmp 0x4089c3
test ecx, ecx
jne 0x408ec1
mov esi, 0x498090
jmp 0x4089d0
push dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x408a22
add esi, 4
cmp esi, 0x4980c0
jl 0x4089d0
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x2c]
push edi
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
call fcn.00407340
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
test ebx, ebx
je 0x408a5b
mov ebx, dword [esp + 0x10]
mov ecx, ebx
push edi
call fcn.00407d40
mov esi, eax
test esi, esi
js 0x408ed1
push edi
mov ecx, ebx
call fcn.00408380
mov esi, eax
test esi, esi
js 0x408ed1
mov dword [esp + 0x30], 0
jmp 0x408cae
mov dword [esp + 0x30], 0
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov ebx, dword [esp + 0x10]
test eax, eax
jne 0x408a8d
push edi
mov ecx, ebx
mov dword [esp + 0x1c], eax
call fcn.00407d40
mov esi, eax
test esi, esi
js 0x408f18
push 0x497d24
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x408c05
lea eax, [esp + 0x264]
mov ecx, ebx
push eax
call fcn.00407d40
mov esi, eax
test esi, esi
js 0x408f18
push edi
mov ecx, ebx
call fcn.00407d40
mov esi, eax
test esi, esi
js 0x408f18
cmp word [edi], 0x3d
jne 0x408eca
cmp dword [ebp + 0x10], 0
je 0x408b59
xorps xmm0, xmm0
mov dword [esp + 0x4c], 0
movq qword [esp + 0x44], xmm0
mov eax, dword [esp + 0x14]
mov ecx, ebx
mov byte [esp + 0x2278], 1
mov dword [esp + 0x44], eax
lea eax, [esp + 0x264]
push edi
push eax
lea eax, [esp + 0x4c]
mov dword [esp + 0x50], 0
push eax
mov dword [esp + 0x58], 0
call fcn.00407ed0
mov esi, eax
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
test esi, esi
js 0x408edc
mov byte [esp + 0x2278], 0
mov dword [esp + 0x48], 0
jmp 0x408cae
cmp dword [ebp + 0x14], 0
jne 0x408bee
cmp dword [esp + 0x18], 0
je 0x408bee
push 0x20006
push 0
push dword [esp + 0x1c]
xorps xmm0, xmm0
mov dword [esp + 0x64], 0
movq qword [esp + 0x5c], xmm0
lea ecx, [esp + 0x5c]
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
call fcn.004071c0
test eax, eax
jne 0x408ee7
mov esi, dword [esp + 0x50]
lea eax, [esp + 0x264]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x408bd3
cmp eax, 2
jne 0x408ee7
test esi, esi
je 0x408be6
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
push edi
mov ecx, ebx
call fcn.00408380
mov esi, eax
test esi, esi
js 0x408f18
jmp 0x408eb5
movzx eax, word [edi]
mov ecx, edi
test ax, ax
je 0x408c31
nop
cmp ax, 0x5c
je 0x408c29
push ecx
call dword [sym.imp.USER32.dll_CharNextW]
mov ecx, eax
movzx eax, word [ecx]
test ax, ax
jne 0x408c10
jmp 0x408c31
test ecx, ecx
jne 0x408eca
cmp dword [ebp + 0x10], 0
je 0x408d0a
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push 0x2001f
push edi
push esi
call fcn.004071c0
test eax, eax
je 0x408c7d
push 0x20019
push edi
push esi
lea ecx, [esp + 0x2c]
call fcn.004071c0
test eax, eax
je 0x408c7d
sub esp, 0x14
lea ecx, [esp + 0x34]
push edi
push esi
call fcn.00407120
test eax, eax
jne 0x408f0f
push edi
mov ecx, ebx
call fcn.00407d40
mov esi, eax
test esi, esi
js 0x408f18
cmp word [edi], 0x3d
jne 0x408cae
push edi
push 0
lea eax, [esp + 0x28]
mov ecx, ebx
push eax
call fcn.00407ed0
mov esi, eax
test esi, esi
js 0x408f18
cmp word [edi], 0x7b
jne 0x408eb5
mov ecx, edi
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408cc0
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x408eb5
push 0
push dword [ebp + 0x10]
mov ecx, ebx
push dword [esp + 0x28]
push edi
call fcn.00408870
mov esi, eax
test esi, esi
js 0x408f18
push edi
mov ecx, ebx
call fcn.00407d40
mov esi, eax
test esi, esi
js 0x408f18
jmp 0x408eb5
cmp dword [ebp + 0x14], 0
jne 0x408d2b
push 0x20019
push edi
push dword [esp + 0x1c]
lea ecx, [esp + 0x2c]
call fcn.004071c0
mov ebx, eax
test ebx, ebx
jne 0x408d30
jmp 0x408d37
mov ebx, 2
mov dword [ebp + 0x14], 1
push 0xffffffffffffffff
push edi
lea eax, [esp + 0x64]
push 0x104
push eax
call dword [sym.imp.MSVCR120.dll_wcsncpy_s]
push eax
call fcn.00406bf0
mov ecx, dword [esp + 0x24]
add esp, 0x14
push edi
call fcn.00407d40
mov esi, eax
test esi, esi
js 0x408f18
mov ecx, dword [esp + 0x10]
push edi
call fcn.00408380
mov esi, eax
test esi, esi
js 0x408f18
cmp word [edi], 0x7b
jne 0x408dd1
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408d86
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x408dd1
push dword [ebp + 0x14]
mov ecx, dword [esp + 0x14]
push 0
push dword [esp + 0x28]
push edi
call fcn.00408870
mov esi, eax
test esi, esi
jns 0x408dbd
cmp dword [ebp + 0x14], 0
je 0x408f18
mov ecx, dword [esp + 0x10]
push edi
call fcn.00407d40
mov esi, eax
test esi, esi
js 0x408f18
mov eax, dword [esp + 0x1c]
mov dword [ebp + 0x14], eax
cmp ebx, 2
je 0x408eb5
test ebx, ebx
je 0x408df4
test eax, eax
jne 0x408eb5
mov ecx, ebx
jmp 0x408f11
test eax, eax
je 0x408e35
push dword [esp + 0x20]
call fcn.00408310
test eax, eax
je 0x408e35
lea eax, [esp + 0x5c]
push eax
call fcn.004082d0
test eax, eax
je 0x408eb5
cmp dword [esp + 0x18], 0
je 0x408eb5
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x24]
call fcn.00407340
jmp 0x408eb5
push dword [esp + 0x20]
call fcn.00408310
mov ecx, dword [esp + 0x20]
mov ebx, eax
xor eax, eax
test ecx, ecx
je 0x408e57
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], 0
test eax, eax
jne 0x408f0f
cmp dword [esp + 0x18], eax
je 0x408eb5
test ebx, ebx
jne 0x408eb5
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x38]
xorps xmm0, xmm0
mov dword [esp + 0x40], ebx
movq qword [esp + 0x38], xmm0
mov dword [esp + 0x38], eax
lea eax, [esp + 0x5c]
push eax
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
call fcn.00407040
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
test eax, eax
jne 0x408efb
lea ecx, [esp + 0x38]
call fcn.00407020
cmp word [edi], 0x7d
jne 0x408920
jmp 0x408f18
lea ecx, [esp + 0x2c]
call fcn.00407020
mov esi, 0x80020009
jmp 0x408f18
lea ecx, [esp + 0x2c]
call fcn.00407020
jmp 0x408f18
lea ecx, [esp + 0x44]
call fcn.00407020
jmp 0x408f18
mov ecx, eax
call fcn.00406ce0
lea ecx, [esp + 0x50]
mov esi, eax
call fcn.00407020
jmp 0x408f18
mov ecx, eax
call fcn.00406ce0
lea ecx, [esp + 0x38]
mov esi, eax
call fcn.00407020
jmp 0x408f18
mov ecx, eax
call fcn.00406ce0
mov esi, eax
mov eax, dword [esp + 0x20]
test eax, eax
je 0x408f27
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.00485d3c
mov esp, ebp
pop ebp
ret 0x10