Function at 0x496e80
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x506c27
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x2264
call fcn.004e91d0
mov eax, dword [0x5522c0]
xor eax, esp
mov dword [esp + 0x2260], eax
push ebx
push esi
push edi
mov eax, dword [0x5522c0]
xor eax, esp
push eax
lea eax, [esp + 0x2278]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x34], esi
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x2280], ebx
mov edx, dword [ebp + 0x14]
mov eax, esi
mov dword [esp + 0x48], edx
call fcn.00496d10
mov edi, eax
cmp edi, ebx
jge 0x496f10
mov dword [esp + 0x2280], 0xffffffff
jmp 0x4975f2
cmp word [esi], 0x7d
je 0x4975d2
push str.Delete
push esi
mov dword [esp + 0x40], 1
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
sbb edi, edi
push str.ForceRemove
inc edi
push esi
mov dword [esp + 0x18], edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x496f4f
cmp edi, ebx
je 0x49708f
mov ecx, dword [esp + 0x14]
mov eax, esi
call fcn.00496d10
mov edi, eax
cmp edi, ebx
jl 0x4975d2
cmp dword [ebp + 0x10], ebx
je 0x49708f
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov byte [esp + 0x2280], 1
movzx ecx, word [esi]
mov eax, esi
cmp cx, bx
je 0x496faf
jmp 0x496f90
cmp cx, 0x5c
je 0x496fa7
push eax
call dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [eax]
cmp cx, bx
jne 0x496f90
jmp 0x496faf
cmp eax, ebx
jne 0x497597
mov edi, 0x527f5c
mov eax, dword [edi]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x496ff3
add edi, 4
cmp edi, 0x527f8c
jl 0x496fb4
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x28], ecx
push esi
lea ecx, [esp + 0x2c]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call fcn.004969d0
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
cmp dword [esp + 0x10], ebx
je 0x497084
mov ecx, dword [esp + 0x14]
mov eax, esi
call fcn.00496d10
mov edi, eax
cmp edi, ebx
jl 0x4975c2
mov ecx, dword [esp + 0x14]
mov edi, esi
call fcn.00496930
mov edi, eax
cmp edi, ebx
jl 0x4975c2
mov byte [esp + 0x2280], bl
mov dword [esp + 0x2c], ebx
cmp word [esi], 0x7b
jne 0x4974ec
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x4974ec
mov edx, dword [ebp + 0x10]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push ebx
push edx
push eax
push esi
call fcn.00496e80
mov edi, eax
cmp edi, ebx
jl 0x4975d2
mov ecx, dword [esp + 0x14]
mov eax, esi
call fcn.00496d10
mov edi, eax
cmp edi, ebx
jl 0x4975d2
jmp 0x4974ec
mov byte [esp + 0x2280], bl
mov dword [esp + 0x2c], ebx
push str.NoRemove
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4970b8
mov ecx, dword [esp + 0x14]
mov eax, esi
mov dword [esp + 0x38], ebx
call fcn.00496d10
mov edi, eax
cmp edi, ebx
jl 0x4975d2
push 0x527f38
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4971fc
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x26c]
call fcn.00496d10
mov edi, eax
cmp edi, ebx
jl 0x4975d2
mov ecx, dword [esp + 0x14]
mov eax, esi
call fcn.00496d10
mov edi, eax
cmp edi, ebx
jl 0x4975d2
cmp word [esi], 0x3d
jne 0x4975a7
cmp dword [ebp + 0x10], ebx
je 0x49716c
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov byte [esp + 0x2280], 2
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x26c]
push eax
lea ecx, [esp + 0x40]
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x18]
push ecx
mov ecx, esi
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
call fcn.004963c0
mov edi, eax
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
cmp edi, ebx
jl 0x49761c
mov byte [esp + 0x2280], bl
mov dword [esp + 0x40], ebx
jmp 0x497032
cmp dword [ebp + 0x14], ebx
jne 0x4971e2
cmp dword [esp + 0x38], ebx
je 0x4971e2
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov byte [esp + 0x2280], 3
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x58]
push edx
mov edx, 0x20006
xor eax, eax
call fcn.0048db90
cmp eax, ebx
jne 0x497644
mov edi, dword [esp + 0x58]
lea eax, [esp + 0x26c]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, ebx
je 0x4971c8
cmp eax, 2
jne 0x497644
mov byte [esp + 0x2280], bl
cmp edi, ebx
je 0x4971de
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov ecx, dword [esp + 0x14]
mov edi, esi
call fcn.00496930
mov edi, eax
cmp edi, ebx
jl 0x4975d2
jmp 0x4974ec
movzx ecx, word [esi]
mov eax, esi
cmp cx, bx
je 0x497225
cmp cx, 0x5c
je 0x49721d
push eax
call dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [eax]
cmp cx, bx
jne 0x497206
jmp 0x497225
cmp eax, ebx
jne 0x4975a7
cmp dword [ebp + 0x10], ebx
je 0x497365
mov dword [esp + 0x10], ebx
cmp dword [esp + 0x20], ebx
je 0x497258
mov ecx, dword [esp + 0x24]
push esi
mov esi, dword [esp + 0x24]
push ecx
lea edi, [esp + 0x18]
mov ebx, 0x2001f
call fcn.0048db20
mov esi, dword [esp + 0x34]
xor ebx, ebx
jmp 0x49726f
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x10]
push edx
push 0x2001f
push ebx
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x4972a0
mov ecx, dword [esp + 0x18]
xor eax, eax
cmp ecx, ebx
je 0x497288
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x18], ebx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ebx
cmp eax, ebx
je 0x497326
mov dword [esp + 0x10], ebx
cmp dword [esp + 0x20], ebx
je 0x4972ca
mov edx, dword [esp + 0x24]
push esi
mov esi, dword [esp + 0x24]
push edx
lea edi, [esp + 0x18]
mov ebx, 0x20019
call fcn.0048db20
mov esi, dword [esp + 0x34]
xor ebx, ebx
jmp 0x4972e1
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x10]
push eax
push 0x20019
push ebx
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x49730e
mov ecx, dword [esp + 0x18]
xor eax, eax
cmp ecx, ebx
je 0x4972fa
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x18], ebx
mov edx, dword [esp + 0x10]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ebx
cmp eax, ebx
je 0x497326
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x18]
push eax
mov eax, esi
call fcn.004961e0
cmp eax, ebx
jne 0x49765b
mov ecx, dword [esp + 0x14]
mov eax, esi
call fcn.00496d10
mov edi, eax
cmp edi, ebx
jl 0x4975d2
cmp word [esi], 0x3d
jne 0x497032
mov edx, dword [esp + 0x14]
push ebx
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
call fcn.004963c0
mov edi, eax
cmp edi, ebx
jl 0x4975d2
jmp 0x497032
cmp dword [ebp + 0x14], ebx
jne 0x497413
mov dword [esp + 0x10], ebx
cmp dword [esp + 0x20], ebx
je 0x497398
mov edx, dword [esp + 0x24]
push esi
mov esi, dword [esp + 0x24]
push edx
lea edi, [esp + 0x18]
mov ebx, 0x20019
call fcn.0048db20
mov esi, dword [esp + 0x34]
xor ebx, ebx
jmp 0x4973af
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x10]
push eax
push 0x20019
push ebx
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x4973d8
mov ecx, dword [esp + 0x18]
xor eax, eax
cmp ecx, ebx
je 0x4973c8
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x18], ebx
mov edx, dword [esp + 0x10]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], eax
cmp eax, ebx
je 0x4973e7
mov dword [ebp + 0x14], 1
push 0xffffffffffffffff
push esi
lea eax, [esp + 0x6c]
push 0x104
push eax
call fcn.004e8b70
add esp, 0x10
cmp eax, 0x50
ja case.0x49740c.107
movzx ecx, byte [eax + 0x4976b0]
jmp dword [ecx*4 + 0x4976a0]
mov dword [esp + 0x10], 2
jmp 0x4973e0
mov ecx, dword [esp + 0x14]
mov eax, esi
call fcn.00496d10
mov edi, eax
cmp edi, ebx
jl 0x4975d2
mov ecx, dword [esp + 0x14]
mov edi, esi
call fcn.00496930
mov edi, eax
cmp edi, ebx
jl 0x4975d2
cmp word [esi], 0x7b
jne 0x497491
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x497491
mov edx, dword [ebp + 0x14]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push edx
push ebx
push eax
push esi
call fcn.00496e80
mov edi, eax
cmp edi, ebx
jge 0x49747c
cmp dword [ebp + 0x14], ebx
je 0x4975d2
mov ecx, dword [esp + 0x14]
mov eax, esi
call fcn.00496d10
mov edi, eax
cmp edi, ebx
jl 0x4975d2
cmp dword [esp + 0x10], 2
mov ecx, dword [esp + 0x48]
mov dword [ebp + 0x14], ecx
je 0x4974ec
cmp dword [esp + 0x10], ebx
je 0x4974b9
cmp ecx, ebx
jne 0x4974ec
mov eax, dword [esp + 0x10]
call fcn.00496cd0
mov edi, eax
jmp 0x4975d2
cmp ecx, ebx
je 0x4974fb
mov ecx, dword [esp + 0x18]
call fcn.00496bd0
test eax, eax
je 0x4974fb
lea ebx, [esp + 0x64]
call fcn.00496990
test eax, eax
je 0x4974ea
cmp dword [esp + 0x38], 0
je 0x4974ea
mov edx, ebx
push edx
lea ecx, [esp + 0x1c]
call fcn.004969d0
xor ebx, ebx
cmp word [esi], 0x7d
jne 0x496f1a
jmp 0x4975d2
mov ecx, dword [esp + 0x18]
call fcn.00496bd0
mov dword [esp + 0x10], eax
xor eax, eax
cmp dword [esp + 0x18], ebx
je 0x49751f
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
cmp eax, ebx
jne 0x49765b
cmp dword [esp + 0x38], ebx
je 0x4974ec
cmp dword [esp + 0x10], ebx
jne 0x4974ec
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov byte [esp + 0x2280], 4
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
lea ebx, [esp + 0x64]
lea eax, [esp + 0x4c]
mov dword [esp + 0x4c], ecx
call fcn.00496c20
xor ebx, ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
cmp eax, ebx
jne 0x497678
mov byte [esp + 0x2280], bl
lea esi, [esp + 0x4c]
call fcn.0048dc00
mov esi, dword [esp + 0x34]
jmp 0x4974ea
mov byte [esp + 0x2280], bl
lea esi, [esp + 0x28]
call fcn.0048dc00
mov dword [esp + 0x2280], 0xffffffff
lea esi, [esp + 0x18]
call fcn.0048dc00
mov eax, 0x80020009
jmp 0x4975f6
mov byte [esp + 0x2280], bl
lea esi, [esp + 0x28]
call fcn.0048dc00
mov dword [esp + 0x2280], 0xffffffff
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x4975f0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x18], ebx
mov eax, edi
mov dword [esp + 0x1c], ebx
mov ecx, dword [esp + 0x2278]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2260]
xor ecx, esp
call fcn.004e4900
mov esp, ebp
pop ebp
ret 0x10
mov byte [esp + 0x2280], bl
lea esi, [esp + 0x3c]
call fcn.0048dc00
mov dword [esp + 0x2280], 0xffffffff
lea esi, [esp + 0x18]
call fcn.0048dc00
mov eax, edi
jmp 0x4975f6
call fcn.00496cd0
mov edi, eax
mov byte [esp + 0x2280], bl
lea esi, [esp + 0x58]
jmp 0x4975cd
call fcn.00496cd0
mov edi, eax
jmp 0x49762c
push 0x8007000e
call fcn.0045a490
push 0x80070057
call fcn.0045a490
call fcn.00496cd0
mov edi, eax
mov byte [esp + 0x2280], bl
lea esi, [esp + 0x4c]
call fcn.0048dc00
xor ebx, ebx
jmp 0x4975d2
push 0x80004005
call fcn.0045a490
sbb eax, 0x64004974
jbe 4814576
add byte [esi + 0x76], ch
dec ecx
add byte [esi + 0x4976], dl
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ecx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [edx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [edx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [eax]
int3
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add ah, cl
int3