Function at 0x516c4a
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6edc99
mov eax, dword fs:[0]
push eax
mov eax, 0x2258
call fcn.006839e0
mov eax, dword [0x7b088c]
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 ebx, ecx
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x221c], eax
xor eax, eax
mov dword [ebp - 0x223c], eax
mov dword [ebp - 0x2238], eax
mov dword [ebp - 0x2234], eax
mov dword [ebp - 4], eax
push edi
mov ecx, ebx
call fcn.00516483
mov esi, eax
test esi, esi
js 0x5171ee
push 0x7d
pop eax
cmp word [edi], ax
je 0x5171ee
xor eax, eax
push str.Delete
inc eax
push edi
mov dword [ebp - 0x2224], eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
push 0x76bb20
sbb esi, esi
inc esi
push edi
mov dword [ebp - 0x2220], esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x516cf7
test esi, esi
je 0x516dc3
push edi
mov ecx, ebx
call fcn.00516483
mov esi, eax
test esi, esi
js 0x5171ee
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x516dc5
push 0x5c
push edi
mov dword [ebp - 0x2230], esi
mov dword [ebp - 0x222c], esi
mov dword [ebp - 0x2228], esi
call fcn.005177a4
pop ecx
pop ecx
test eax, eax
jne 0x5171de
push edi
mov ecx, ebx
call fcn.00515f79
test eax, eax
je 0x516d7a
mov eax, dword [ebp - 0x221c]
lea ecx, [ebp - 0x2230]
push edi
mov dword [ebp - 0x2230], eax
mov dword [ebp - 0x222c], esi
mov dword [ebp - 0x2228], esi
call fcn.00516882
mov dword [ebp - 0x2230], esi
mov dword [ebp - 0x222c], esi
mov dword [ebp - 0x2228], esi
cmp dword [ebp - 0x2220], esi
je 0x516db6
push edi
mov ecx, ebx
call fcn.00516483
mov esi, eax
test esi, esi
js 0x5171d6
push edi
mov ecx, ebx
call fcn.0051771b
lea ecx, [ebp - 0x2230]
mov esi, eax
call fcn.004d2ccd
test esi, esi
js 0x5171ee
jmp 0x517192
lea ecx, [ebp - 0x2230]
call fcn.004d2ccd
jmp 0x516dc5
xor esi, esi
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x516ded
push edi
mov ecx, ebx
mov dword [ebp - 0x2224], esi
call fcn.00516483
mov esi, eax
test esi, esi
js 0x5171ee
push 0x76bb18
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x516f19
lea eax, [ebp - 0x2218]
mov ecx, ebx
push eax
call fcn.00516483
mov esi, eax
test esi, esi
js 0x5171ee
push edi
mov ecx, ebx
call fcn.00516483
mov esi, eax
test esi, esi
js 0x5171ee
push 0x3d
pop eax
cmp word [edi], ax
jne 0x5171e9
cmp dword [ebp + 0x10], 0
je 0x516e9f
and dword [ebp - 0x2248], 0
xor eax, eax
and dword [ebp - 0x2244], 0
inc eax
mov byte [ebp - 4], al
mov ecx, ebx
mov eax, dword [ebp - 0x221c]
mov dword [ebp - 0x224c], eax
lea eax, [ebp - 0x2218]
push edi
push eax
lea eax, [ebp - 0x224c]
push eax
call fcn.00515756
mov esi, eax
lea ecx, [ebp - 0x224c]
xor eax, eax
mov dword [ebp - 0x224c], eax
mov dword [ebp - 0x2248], eax
mov dword [ebp - 0x2244], eax
test esi, esi
js 0x517228
mov byte [ebp - 4], al
jmp 0x51718d
cmp dword [ebp + 0x14], 0
jne 0x516f0c
cmp dword [ebp - 0x2224], 0
je 0x516f0c
xor eax, eax
lea ecx, [ebp - 0x2264]
push 0x20006
push eax
push dword [ebp - 0x221c]
mov dword [ebp - 0x2264], eax
mov dword [ebp - 0x2260], eax
mov dword [ebp - 0x225c], eax
call fcn.004d3268
test eax, eax
jne 0x517219
lea eax, [ebp - 0x2218]
push eax
push dword [ebp - 0x2264]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x516f01
cmp eax, 2
jne 0x517219
lea ecx, [ebp - 0x2264]
call fcn.004d2ccd
push edi
mov ecx, ebx
call fcn.0051771b
jmp 0x516ca9
push 0x5c
push edi
call fcn.005177a4
pop ecx
pop ecx
test eax, eax
jne 0x5171e9
cmp dword [ebp + 0x10], eax
je 0x516fbc
mov esi, dword [ebp - 0x221c]
lea ecx, [ebp - 0x223c]
push 0x2001f
push edi
push esi
call fcn.004d3268
test eax, eax
je 0x516f86
push 0x20019
push edi
push esi
lea ecx, [ebp - 0x223c]
call fcn.004d3268
test eax, eax
je 0x516f86
xor eax, eax
lea ecx, [ebp - 0x223c]
push eax
push eax
push 0x2001f
push eax
push eax
push edi
push esi
call fcn.004e5f03
test eax, eax
jne 0x5170a2
push edi
mov ecx, ebx
call fcn.00516483
mov esi, eax
test esi, esi
js 0x5171ee
push 0x3d
pop eax
cmp word [edi], ax
jne 0x517192
push edi
push 0
lea eax, [ebp - 0x223c]
mov ecx, ebx
push eax
call fcn.00515756
mov esi, eax
jmp 0x516da9
cmp dword [ebp + 0x14], 0
jne 0x516fdb
push 0x20019
push edi
push dword [ebp - 0x221c]
lea ecx, [ebp - 0x223c]
call fcn.004d3268
jmp 0x516fde
push 2
pop eax
mov ecx, dword [ebp + 0x14]
test eax, eax
push 1
mov dword [ebp - 0x2220], eax
pop eax
push 0xffffffffffffffff
cmovne ecx, eax
lea eax, [ebp - 0x218]
push edi
push 0x104
push eax
mov dword [ebp - 0x2240], ecx
call fcn.006af420
push eax
call fcn.00474fc6
add esp, 0x14
mov ecx, ebx
push edi
call fcn.00516483
mov esi, eax
test esi, esi
js 0x5171ee
push edi
mov ecx, ebx
call fcn.0051771b
mov esi, eax
test esi, esi
js 0x5171ee
push 0x7b
pop eax
cmp word [edi], ax
jne 0x517085
push edi
call fcn.006a37ec
pop ecx
cmp eax, 1
jne 0x517085
push dword [ebp - 0x2240]
mov ecx, ebx
push 0
push dword [ebp - 0x223c]
push edi
call fcn.00516c4a
mov esi, eax
test esi, esi
jns 0x517073
cmp dword [ebp - 0x2240], 0
je 0x5171ee
push edi
mov ecx, ebx
call fcn.00516483
mov esi, eax
test esi, esi
js 0x5171ee
mov eax, dword [ebp - 0x2220]
cmp eax, 2
je 0x516cb3
test eax, eax
je 0x5170b0
cmp dword [ebp + 0x14], 0
jne 0x516cb3
push eax
call fcn.00515f44
pop ecx
mov esi, eax
jmp 0x5171ee
cmp dword [ebp + 0x14], 0
je 0x517101
push dword [ebp - 0x223c]
mov ecx, ebx
call fcn.00516243
test eax, eax
je 0x517101
lea eax, [ebp - 0x218]
mov ecx, ebx
push eax
call fcn.00515f79
test eax, eax
je 0x516cb3
cmp dword [ebp - 0x2224], 0
je 0x516cb3
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x223c]
call fcn.00516882
jmp 0x516cb3
push dword [ebp - 0x223c]
mov ecx, ebx
call fcn.00516243
lea ecx, [ebp - 0x223c]
mov dword [ebp - 0x2220], eax
call fcn.004d2ccd
test eax, eax
jne 0x5170a2
cmp dword [ebp - 0x2224], eax
je 0x516cb3
cmp dword [ebp - 0x2220], eax
jne 0x516cb3
mov eax, dword [ebp - 0x221c]
lea ecx, [ebp - 0x2258]
and dword [ebp - 0x2254], 0
and dword [ebp - 0x2250], 0
mov dword [ebp - 0x2258], eax
lea eax, [ebp - 0x218]
push eax
call fcn.0051601b
xor ecx, ecx
mov dword [ebp - 0x2258], ecx
mov dword [ebp - 0x2254], ecx
mov dword [ebp - 0x2250], ecx
test eax, eax
jne 0x51722f
lea ecx, [ebp - 0x2258]
call fcn.004d2ccd
cmp dword [ebp + 0x10], 0
je 0x516cb3
push 0x7b
pop eax
cmp word [edi], ax
jne 0x516cb3
push edi
call fcn.006a37ec
pop ecx
cmp eax, 1
jne 0x516cb3
push 0
push dword [ebp + 0x10]
mov ecx, ebx
push dword [ebp - 0x223c]
push edi
call fcn.00516c4a
mov esi, eax
test esi, esi
js 0x5171ee
jmp 0x516ca1
lea ecx, [ebp - 0x2230]
jmp 0x517228
lea ecx, [ebp - 0x2230]
call fcn.004d2ccd
mov esi, 0x80020009
lea ecx, [ebp - 0x223c]
call fcn.004d2ccd
mov eax, esi
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.00682c16
mov esp, ebp
pop ebp
ret 0x10
push eax
call fcn.00515f44
pop ecx
lea ecx, [ebp - 0x2264]
mov esi, eax
call fcn.004d2ccd
jmp 0x5171ee
push eax
call fcn.00515f44
pop ecx
lea ecx, [ebp - 0x2258]
jmp 0x517226