Function at 0x4a8047
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x2264
call fcn.00405ecb
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x2260], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x14]
push esi
push edi
xor edi, edi
mov dword [esp + 0x38], eax
mov eax, ebx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
call fcn.004a76ef
mov esi, eax
cmp esi, edi
jl 0x4a8457
cmp word [ebx], 0x7d
je 0x4a8455
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push str.Delete
push ebx
mov dword [esp + 0x30], 1
call esi
neg eax
push 0x6248a8
sbb edi, edi
push ebx
inc edi
call esi
test eax, eax
je 0x4a80d5
test edi, edi
je 0x4a8181
mov ecx, dword [esp + 0x10]
mov eax, ebx
call fcn.004a76ef
mov esi, eax
test esi, esi
js 0x4a8444
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x4a8183
push 0x5c
mov eax, ebx
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], esi
call fcn.004a76a0
pop ecx
test eax, eax
jne 0x4a8584
push ebx
call fcn.004a7ba6
test eax, eax
je 0x4a8143
mov eax, dword [esp + 0x20]
push ebx
lea ecx, [esp + 0x40]
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], esi
call fcn.004a7056
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
cmp edi, esi
je 0x4a817b
mov ecx, dword [esp + 0x10]
mov eax, ebx
call fcn.004a76ef
mov esi, eax
test esi, esi
js 0x4a8444
mov ecx, dword [esp + 0x10]
mov edi, ebx
call fcn.004a7c0a
mov esi, eax
test esi, esi
js 0x4a8444
and dword [esp + 0x40], 0
jmp 0x4a852b
mov dword [esp + 0x40], esi
jmp 0x4a8183
xor esi, esi
push str.NoRemove
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4a81ae
and dword [esp + 0x28], eax
mov ecx, dword [esp + 0x10]
mov eax, ebx
call fcn.004a76ef
mov esi, eax
test esi, esi
js 0x4a8444
xor esi, esi
push 0x6248a0
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4a82c1
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x268]
call fcn.004a76ef
mov esi, eax
xor edi, edi
cmp esi, edi
jl 0x4a8444
mov ecx, dword [esp + 0x10]
mov eax, ebx
call fcn.004a76ef
mov esi, eax
cmp esi, edi
jl 0x4a8444
cmp word [ebx], 0x3d
jne 0x4a859e
cmp dword [ebp + 0x10], edi
je 0x4a8247
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x48], eax
push ebx
lea eax, [esp + 0x26c]
push eax
lea edx, [esp + 0x50]
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
call fcn.004a7815
mov esi, eax
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], edi
cmp esi, edi
jl 0x4a85e9
mov dword [esp + 0x4c], edi
jmp 0x4a852b
cmp dword [ebp + 0x14], edi
jne 0x4a82b1
cmp dword [esp + 0x28], edi
je 0x4a82b1
push edi
push dword [esp + 0x24]
lea eax, [esp + 0x34]
push eax
mov eax, 0x20006
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
call fcn.004a3de6
cmp eax, edi
jne 0x4a85a4
lea eax, [esp + 0x268]
push eax
push dword [esp + 0x30]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, edi
je 0x4a8299
cmp eax, 2
jne 0x4a85a4
cmp dword [esp + 0x2c], edi
je 0x4a82ad
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
mov ecx, dword [esp + 0x10]
mov edi, ebx
call fcn.004a7c0a
jmp 0x4a856b
push 0x5c
mov eax, ebx
call fcn.004a76a0
pop ecx
test eax, eax
jne 0x4a8584
cmp dword [ebp + 0x10], esi
je 0x4a8360
push ebx
push dword [esp + 0x24]
lea eax, [esp + 0x1c]
push eax
mov eax, 0x2001f
call fcn.004a3de6
test eax, eax
je 0x4a8322
push ebx
push dword [esp + 0x24]
lea eax, [esp + 0x1c]
push eax
mov eax, 0x20019
call fcn.004a3de6
test eax, eax
je 0x4a8322
push ebx
push dword [esp + 0x24]
lea eax, [esp + 0x1c]
call fcn.004a6fff
cmp eax, esi
jne 0x4a85c4
mov ecx, dword [esp + 0x10]
mov eax, ebx
call fcn.004a76ef
mov esi, eax
test esi, esi
js 0x4a8444
cmp word [ebx], 0x3d
jne 0x4a852b
mov ecx, dword [esp + 0x10]
push ebx
push 0
lea edx, [esp + 0x1c]
call fcn.004a7815
mov esi, eax
test esi, esi
js 0x4a8444
jmp 0x4a852b
cmp dword [ebp + 0x14], esi
jne 0x4a837f
push ebx
push dword [esp + 0x24]
lea eax, [esp + 0x1c]
push eax
mov eax, 0x20019
call fcn.004a3de6
mov dword [esp + 0x24], eax
jmp 0x4a8387
mov dword [esp + 0x24], 2
cmp dword [esp + 0x24], esi
je 0x4a8394
mov dword [ebp + 0x14], 1
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x68]
push 0x104
push eax
call fcn.00419d2b
push eax
call fcn.004a3d19
mov ecx, dword [esp + 0x24]
add esp, 0x14
mov eax, ebx
call fcn.004a76ef
mov esi, eax
test esi, esi
js 0x4a8444
mov ecx, dword [esp + 0x10]
mov edi, ebx
call fcn.004a7c0a
mov esi, eax
test esi, esi
js 0x4a8444
cmp word [ebx], 0x7b
jne 0x4a8417
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x4a8417
push dword [ebp + 0x14]
mov ecx, dword [esp + 0x14]
push 0
push dword [esp + 0x1c]
push ebx
call fcn.004a8047
mov esi, eax
test esi, esi
jns 0x4a8406
cmp dword [ebp + 0x14], 0
je 0x4a8444
mov ecx, dword [esp + 0x10]
mov eax, ebx
call fcn.004a76ef
mov esi, eax
test esi, esi
js 0x4a8444
cmp dword [esp + 0x24], 2
mov eax, dword [esp + 0x38]
mov dword [ebp + 0x14], eax
je 0x4a8575
mov eax, dword [esp + 0x24]
xor edi, edi
cmp eax, edi
je 0x4a846e
cmp dword [esp + 0x38], edi
jne 0x4a8575
call fcn.004a698c
mov esi, eax
cmp dword [esp + 0x14], 0
je 0x4a8455
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x226c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00403fc1
mov esp, ebp
pop ebp
ret 0x10
cmp dword [esp + 0x38], edi
je 0x4a84b0
push dword [esp + 0x14]
call fcn.004a7bd5
test eax, eax
je 0x4a84b0
lea eax, [esp + 0x60]
push eax
call fcn.004a7ba6
test eax, eax
je 0x4a8575
cmp dword [esp + 0x28], edi
je 0x4a8575
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x18]
call fcn.004a7056
jmp 0x4a8575
push dword [esp + 0x14]
call fcn.004a7bd5
mov dword [esp + 0x24], eax
xor eax, eax
cmp dword [esp + 0x14], edi
je 0x4a84d3
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
cmp eax, edi
jne 0x4a85e2
cmp dword [esp + 0x28], edi
je 0x4a8575
cmp dword [esp + 0x24], edi
jne 0x4a8575
mov eax, dword [esp + 0x20]
and dword [esp + 0x58], edi
and dword [esp + 0x5c], edi
mov dword [esp + 0x54], eax
lea eax, [esp + 0x60]
push eax
lea edi, [esp + 0x58]
call fcn.004a6f91
xor ecx, ecx
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], ecx
cmp eax, ecx
jne 0x4a843d
and dword [esp + 0x58], ecx
cmp dword [ebp + 0x10], 0
je 0x4a8575
cmp word [ebx], 0x7b
jne 0x4a8575
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x4a8575
mov ecx, dword [esp + 0x10]
push 0
push dword [ebp + 0x10]
push dword [esp + 0x1c]
push ebx
call fcn.004a8047
mov esi, eax
test esi, esi
js 0x4a8444
mov ecx, dword [esp + 0x10]
mov eax, ebx
call fcn.004a76ef
mov esi, eax
test esi, esi
js 0x4a8444
cmp word [ebx], 0x7d
jne 0x4a80a6
jmp 0x4a8444
cmp dword [esp + 0x14], esi
je 0x4a8594
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x4a8457
cmp dword [esp + 0x14], edi
jmp 0x4a8588
call fcn.004a698c
mov esi, eax
cmp dword [esp + 0x2c], edi
je 0x4a8444
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4a8444
call fcn.004a698c
mov edi, eax
cmp dword [esp + 0x14], esi
je 0x4a85db
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x4a8457
call fcn.004a698c
mov esi, eax
cmp dword [esp + 0x14], edi
jmp 0x4a8449