Function at 0x4096d3
Capabilities:
Delete registry value

Disassembly:
mov eax, 0x425bb8
call fcn.00421088
mov eax, 0x2248
call fcn.00416990
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x48], eax
mov eax, esi
call fcn.00408db6
mov edi, eax
cmp edi, ebx
jge 0x409bb3
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
mov dword [ebp - 0x14], ebx
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x10
push str.Delete
push esi
mov dword [ebp - 0x2c], 1
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov edi, eax
neg edi
sbb edi, edi
push str.ForceRemove
inc edi
push esi
mov dword [ebp - 0x20], edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40975f
cmp edi, ebx
je 0x4097f4
mov ecx, dword [ebp - 0x1c]
mov eax, esi
call fcn.00408db6
mov edi, eax
cmp edi, ebx
jl 0x409bf2
cmp dword [ebp + 0x10], ebx
je 0x4097f4
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov byte [ebp - 4], 1
push 0x5c
mov eax, esi
call fcn.00408d67
pop ecx
test eax, eax
jne 0x409bbf
push esi
call fcn.00409272
test eax, eax
je 0x4097b6
mov eax, dword [ebp + 0xc]
push esi
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], ebx
call fcn.00408546
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
cmp dword [ebp - 0x20], ebx
je 0x4097ee
mov ecx, dword [ebp - 0x1c]
mov eax, esi
call fcn.00408db6
mov edi, eax
cmp edi, ebx
jl 0x409be4
mov ecx, dword [ebp - 0x1c]
mov edi, esi
call fcn.004092d6
mov edi, eax
cmp edi, ebx
jl 0x409be4
mov byte [ebp - 4], bl
mov dword [ebp - 0x30], ebx
jmp 0x409b76
mov byte [ebp - 4], bl
mov dword [ebp - 0x30], ebx
push str.NoRemove
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40981b
mov ecx, dword [ebp - 0x1c]
mov eax, esi
mov dword [ebp - 0x2c], ebx
call fcn.00408db6
mov edi, eax
cmp edi, ebx
jl 0x409bf2
push 0x428230
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40991c
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x2254]
call fcn.00408db6
mov edi, eax
cmp edi, ebx
jl 0x409bf2
mov ecx, dword [ebp - 0x1c]
mov eax, esi
call fcn.00408db6
mov edi, eax
cmp edi, ebx
jl 0x409bf2
cmp word [esi], 0x3d
jne 0x409bc5
cmp dword [ebp + 0x10], ebx
je 0x4098ac
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov byte [ebp - 4], 2
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x3c], eax
push esi
lea eax, [ebp - 0x2254]
push eax
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x1c]
mov dword [ebp - 0x38], ebx
call fcn.00408ecc
mov edi, eax
cmp edi, ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
jl 0x409bec
mov byte [ebp - 4], bl
mov dword [ebp - 0x38], ebx
jmp 0x409b76
cmp dword [ebp + 0x14], ebx
jne 0x40990d
cmp dword [ebp - 0x2c], ebx
je 0x40990d
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov byte [ebp - 4], 3
push ebx
push dword [ebp + 0xc]
mov eax, 0x20006
lea ecx, [ebp - 0x28]
call fcn.004084c3
cmp eax, ebx
jne 0x409c0e
lea eax, [ebp - 0x2254]
push eax
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, ebx
je 0x4098f6
cmp eax, 2
jne 0x409c0e
mov byte [ebp - 4], bl
cmp dword [ebp - 0x28], ebx
je 0x40990a
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov ecx, dword [ebp - 0x1c]
mov edi, esi
call fcn.004092d6
jmp 0x409bad
push 0x5c
mov eax, esi
call fcn.00408d67
pop ecx
test eax, eax
jne 0x409bc5
cmp dword [ebp + 0x10], ebx
je 0x4099e5
push esi
push dword [ebp + 0xc]
mov edi, 0x2001f
mov eax, edi
lea ecx, [ebp - 0x18]
call fcn.004084c3
cmp eax, ebx
je 0x4099aa
push esi
push dword [ebp + 0xc]
lea eax, [edi - 6]
lea ecx, [ebp - 0x18]
call fcn.004084c3
cmp eax, ebx
je 0x4099aa
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x2c]
push eax
push ebx
push edi
push ebx
push ebx
push ebx
push esi
push dword [ebp + 0xc]
mov dword [ebp - 0x2c], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
jne 0x409c2e
xor eax, eax
cmp dword [ebp - 0x18], ebx
je 0x409996
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x18], ebx
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ebx
cmp eax, ebx
jne 0x409c2e
mov ecx, dword [ebp - 0x1c]
mov eax, esi
call fcn.00408db6
mov edi, eax
cmp edi, ebx
jl 0x409bf2
cmp word [esi], 0x3d
jne 0x409b76
push esi
push ebx
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x1c]
call fcn.00408ecc
mov edi, eax
cmp edi, ebx
jl 0x409bf2
jmp 0x409b76
cmp dword [ebp + 0x14], ebx
jne 0x409a00
push esi
push dword [ebp + 0xc]
mov eax, 0x20019
lea ecx, [ebp - 0x18]
call fcn.004084c3
mov dword [ebp - 0x20], eax
jmp 0x409a07
mov dword [ebp - 0x20], 2
cmp dword [ebp - 0x20], ebx
je 0x409a13
mov dword [ebp + 0x14], 1
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x254]
push 0x104
push eax
call fcn.0040ee99
push eax
call fcn.004010ed
mov ecx, dword [ebp - 0x1c]
add esp, 0x14
mov eax, esi
call fcn.00408db6
mov edi, eax
cmp edi, ebx
jl 0x409bf2
mov ecx, dword [ebp - 0x1c]
mov edi, esi
call fcn.004092d6
mov edi, eax
cmp edi, ebx
jl 0x409bf2
cmp word [esi], 0x7b
jne 0x409a9d
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x409a9d
push dword [ebp + 0x14]
mov ecx, dword [ebp - 0x1c]
push ebx
push dword [ebp - 0x18]
push esi
call fcn.004096d3
mov edi, eax
cmp edi, ebx
jge 0x409a89
cmp dword [ebp + 0x14], ebx
je 0x409bf2
mov ecx, dword [ebp - 0x1c]
mov eax, esi
call fcn.00408db6
mov edi, eax
cmp edi, ebx
jl 0x409bf2
cmp dword [ebp - 0x20], 2
mov eax, dword [ebp - 0x48]
mov dword [ebp + 0x14], eax
je 0x409bb3
cmp dword [ebp - 0x20], ebx
je 0x409ac9
cmp eax, ebx
jne 0x409bb3
mov eax, dword [ebp - 0x20]
call fcn.0040828e
mov edi, eax
jmp 0x409bf2
cmp eax, ebx
je 0x409b0a
push dword [ebp - 0x18]
call fcn.004092a1
test eax, eax
je 0x409b0a
lea eax, [ebp - 0x254]
push eax
call fcn.00409272
test eax, eax
je 0x409bb3
cmp dword [ebp - 0x2c], ebx
je 0x409bb3
lea eax, [ebp - 0x254]
push eax
lea ecx, [ebp - 0x18]
call fcn.00408546
jmp 0x409bb3
push dword [ebp - 0x18]
call fcn.004092a1
mov dword [ebp - 0x20], eax
xor eax, eax
cmp dword [ebp - 0x18], ebx
je 0x409b28
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
cmp eax, ebx
jne 0x409c2e
cmp dword [ebp - 0x2c], ebx
je 0x409bb3
cmp dword [ebp - 0x20], ebx
jne 0x409bb3
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
mov byte [ebp - 4], 4
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x254]
push eax
lea esi, [ebp - 0x44]
mov dword [ebp - 0x40], ebx
call fcn.00408453
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
cmp eax, ebx
jne 0x409c51
mov byte [ebp - 4], bl
mov esi, dword [ebp + 8]
mov dword [ebp - 0x40], ebx
cmp dword [ebp + 0x10], ebx
je 0x409bb3
cmp word [esi], 0x7b
jne 0x409bb3
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x409bb3
mov ecx, dword [ebp - 0x1c]
push ebx
push dword [ebp + 0x10]
push dword [ebp - 0x18]
push esi
call fcn.004096d3
mov edi, eax
cmp edi, ebx
jl 0x409bf2
mov ecx, dword [ebp - 0x1c]
mov eax, esi
call fcn.00408db6
mov edi, eax
cmp edi, ebx
jl 0x409bf2
cmp word [esi], 0x7d
jne 0x40972a
jmp 0x409bf2
mov byte [ebp - 4], bl
mov dword [ebp - 0x30], ebx
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], ebx
je 0x409bda
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x18], ebx
mov eax, 0x80020009
jmp 0x409716
mov byte [ebp - 4], bl
mov dword [ebp - 0x30], ebx
jmp 0x409bf2
mov byte [ebp - 4], bl
mov dword [ebp - 0x38], ebx
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], ebx
je 0x409c07
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x18], ebx
mov eax, edi
jmp 0x409716
call fcn.0040828e
mov edi, eax
mov byte [ebp - 4], bl
cmp dword [ebp - 0x28], ebx
je 0x409c29
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
jmp 0x409bf2
call fcn.0040828e
mov esi, eax
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], ebx
je 0x409c4a
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x18], ebx
mov eax, esi
jmp 0x409716
call fcn.0040828e
mov edi, eax
mov byte [ebp - 4], bl
mov dword [ebp - 0x40], ebx
jmp 0x409bf2