Function at 0x49dc52
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52f497
mov eax, dword fs:[0]
push eax
mov eax, 0x225c
call fcn.004f5710
mov eax, dword [0x581d10]
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 - 0x2220], eax
xor eax, eax
mov dword [ebp - 0x224c], eax
mov dword [ebp - 0x223c], eax
mov dword [ebp - 0x2238], eax
mov dword [ebp - 0x2234], eax
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push edi
mov dword [ebp - 0x2268], eax
call fcn.0049d579
mov esi, eax
test esi, esi
js 0x49e230
push 0x7d
pop eax
cmp word [edi], ax
je 0x49e230
xor eax, eax
inc eax
push str.Delete
push edi
mov dword [ebp - 0x2230], eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
push str.ForceRemove
sbb esi, esi
inc esi
push edi
mov dword [ebp - 0x221c], esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x49dd0c
test esi, esi
je 0x49ddd8
push edi
mov ecx, ebx
call fcn.0049d579
mov esi, eax
test esi, esi
js 0x49e230
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x49ddda
push 0x5c
push edi
mov dword [ebp - 0x222c], esi
mov dword [ebp - 0x2228], esi
mov dword [ebp - 0x2224], esi
call fcn.0049e5d4
pop ecx
pop ecx
test eax, eax
jne 0x49e220
push edi
mov ecx, ebx
call fcn.0049d0e8
test eax, eax
je 0x49dd8f
mov eax, dword [ebp - 0x2220]
lea ecx, [ebp - 0x222c]
push edi
mov dword [ebp - 0x222c], eax
mov dword [ebp - 0x2228], esi
mov dword [ebp - 0x2224], esi
call fcn.00493f7b
mov dword [ebp - 0x222c], esi
mov dword [ebp - 0x2228], esi
mov dword [ebp - 0x2224], esi
cmp dword [ebp - 0x221c], esi
je 0x49ddcb
push edi
mov ecx, ebx
call fcn.0049d579
mov esi, eax
test esi, esi
js 0x49e218
push edi
mov ecx, ebx
call fcn.0049e470
lea ecx, [ebp - 0x222c]
mov esi, eax
call fcn.0043c6e0
test esi, esi
js 0x49e230
jmp 0x49e1b2
lea ecx, [ebp - 0x222c]
call fcn.0043c6e0
jmp 0x49ddda
xor esi, esi
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x49de02
push edi
mov ecx, ebx
mov dword [ebp - 0x2230], esi
call fcn.0049d579
mov esi, eax
test esi, esi
js 0x49e230
push 0x55a8c0
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x49df2e
lea eax, [ebp - 0x2218]
mov ecx, ebx
push eax
call fcn.0049d579
mov esi, eax
test esi, esi
js 0x49e230
push edi
mov ecx, ebx
call fcn.0049d579
mov esi, eax
test esi, esi
js 0x49e230
push 0x3d
pop eax
cmp word [edi], ax
jne 0x49e22b
cmp dword [ebp + 0x10], 0
je 0x49deb4
xor eax, eax
mov ecx, ebx
inc eax
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x2220]
mov dword [ebp - 0x2258], eax
xor eax, eax
mov dword [ebp - 0x2254], eax
mov dword [ebp - 0x2250], eax
lea eax, [ebp - 0x2218]
push edi
push eax
lea eax, [ebp - 0x2258]
push eax
call fcn.0049cae8
mov esi, eax
lea ecx, [ebp - 0x2258]
xor eax, eax
mov dword [ebp - 0x2258], eax
mov dword [ebp - 0x2254], eax
mov dword [ebp - 0x2250], eax
test esi, esi
js 0x49e26a
mov byte [ebp - 4], al
jmp 0x49e1ad
cmp dword [ebp + 0x14], 0
jne 0x49df21
cmp dword [ebp - 0x2230], 0
je 0x49df21
xor eax, eax
lea ecx, [ebp - 0x2264]
push 0x20006
push eax
push dword [ebp - 0x2220]
mov dword [ebp - 0x2264], eax
mov dword [ebp - 0x2260], eax
mov dword [ebp - 0x225c], eax
call fcn.0043c6fa
test eax, eax
jne 0x49e25b
lea eax, [ebp - 0x2218]
push eax
push dword [ebp - 0x2264]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x49df16
cmp eax, 2
jne 0x49e25b
lea ecx, [ebp - 0x2264]
call fcn.0043c6e0
push edi
mov ecx, ebx
call fcn.0049e470
jmp 0x49e201
push 0x5c
push edi
call fcn.0049e5d4
pop ecx
pop ecx
test eax, eax
jne 0x49e22b
cmp dword [ebp + 0x10], eax
je 0x49dfd2
mov esi, dword [ebp - 0x2220]
lea ecx, [ebp - 0x223c]
push 0x2001f
push edi
push esi
call fcn.0043c6fa
test eax, eax
je 0x49df9b
push 0x20019
push edi
push esi
lea ecx, [ebp - 0x223c]
call fcn.0043c6fa
test eax, eax
je 0x49df9b
xor eax, eax
lea ecx, [ebp - 0x223c]
push eax
push eax
push 0x2001f
push eax
push eax
push edi
push esi
call fcn.00491642
test eax, eax
jne 0x49e0c8
push edi
mov ecx, ebx
call fcn.0049d579
mov esi, eax
test esi, esi
js 0x49e230
push 0x3d
pop eax
cmp word [edi], ax
jne 0x49e1b2
push edi
xor eax, eax
mov ecx, ebx
push eax
lea eax, [ebp - 0x223c]
push eax
call fcn.0049cae8
mov esi, eax
jmp 0x49ddbe
mov esi, dword [ebp + 0x14]
test esi, esi
jne 0x49dff2
push 0x20019
push edi
push dword [ebp - 0x2220]
lea ecx, [ebp - 0x223c]
call fcn.0043c6fa
jmp 0x49dff5
push 2
pop eax
push 1
test eax, eax
mov dword [ebp - 0x221c], eax
pop eax
push 0xffffffffffffffff
cmovne esi, eax
lea eax, [ebp - 0x218]
push edi
push 0x104
push eax
mov dword [ebp + 0x14], esi
call fcn.004f614d
push eax
call fcn.00436abf
add esp, 0x14
mov ecx, ebx
push edi
call fcn.0049d579
mov esi, eax
test esi, esi
js 0x49e230
push edi
mov ecx, ebx
call fcn.0049e470
mov esi, eax
test esi, esi
js 0x49e230
push 0x7b
pop eax
cmp word [edi], ax
jne 0x49e0a4
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x224c]
jne 0x49e054
sub ecx, edx
xor eax, eax
sar ecx, 1
inc eax
cmp ecx, eax
jne 0x49e0a4
push dword [ebp + 0x14]
xor eax, eax
mov ecx, ebx
push eax
push dword [ebp - 0x223c]
push edi
call fcn.0049dc52
mov esi, eax
test esi, esi
jns 0x49e092
cmp dword [ebp + 0x14], 0
je 0x49e230
push edi
mov ecx, ebx
call fcn.0049d579
mov esi, eax
test esi, esi
js 0x49e230
mov eax, dword [ebp - 0x221c]
mov ecx, dword [ebp - 0x2268]
mov dword [ebp + 0x14], ecx
cmp eax, 2
je 0x49e207
test eax, eax
je 0x49e0d6
test ecx, ecx
jne 0x49e207
push eax
call fcn.0049d0b3
pop ecx
mov esi, eax
jmp 0x49e230
test ecx, ecx
je 0x49e125
push dword [ebp - 0x223c]
mov ecx, ebx
call fcn.0049d3bf
test eax, eax
je 0x49e125
lea eax, [ebp - 0x218]
mov ecx, ebx
push eax
call fcn.0049d0e8
test eax, eax
je 0x49e207
cmp dword [ebp - 0x2230], 0
je 0x49e207
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x223c]
call fcn.00493f7b
jmp 0x49e207
push dword [ebp - 0x223c]
mov ecx, ebx
call fcn.0049d3bf
lea ecx, [ebp - 0x223c]
mov dword [ebp - 0x221c], eax
call fcn.0043c6e0
test eax, eax
jne 0x49e0c8
cmp dword [ebp - 0x2230], eax
je 0x49e207
cmp dword [ebp - 0x221c], eax
jne 0x49e207
mov eax, dword [ebp - 0x2220]
lea ecx, [ebp - 0x2248]
mov dword [ebp - 0x2248], eax
xor eax, eax
mov dword [ebp - 0x2244], eax
mov dword [ebp - 0x2240], eax
lea eax, [ebp - 0x218]
push eax
call fcn.004917a3
xor ecx, ecx
mov dword [ebp - 0x2248], ecx
mov dword [ebp - 0x2244], ecx
mov dword [ebp - 0x2240], ecx
test eax, eax
jne 0x49e271
lea ecx, [ebp - 0x2248]
call fcn.0043c6e0
cmp dword [ebp + 0x10], 0
je 0x49e207
push 0x7b
pop eax
cmp word [edi], ax
jne 0x49e207
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x224c]
jne 0x49e1c5
sub ecx, edx
xor eax, eax
sar ecx, 1
inc eax
cmp ecx, eax
jne 0x49e20a
xor eax, eax
mov ecx, ebx
push eax
push dword [ebp + 0x10]
push dword [ebp - 0x223c]
push edi
call fcn.0049dc52
mov esi, eax
test esi, esi
js 0x49e230
push edi
mov ecx, ebx
call fcn.0049d579
mov esi, eax
test esi, esi
js 0x49e230
xor eax, eax
inc eax
push 0x7d
pop ecx
cmp word [edi], cx
jne 0x49dcd7
jmp 0x49e230
lea ecx, [ebp - 0x222c]
jmp 0x49e26a
lea ecx, [ebp - 0x222c]
call fcn.0043c6e0
mov esi, 0x80020009
lea ecx, [ebp - 0x223c]
call fcn.0043c6e0
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.004f1cdb
mov esp, ebp
pop ebp
ret 0x10
push eax
call fcn.0049d0b3
pop ecx
lea ecx, [ebp - 0x2264]
mov esi, eax
call fcn.0043c6e0
jmp 0x49e230
push eax
call fcn.0049d0b3
pop ecx
lea ecx, [ebp - 0x2248]
jmp 0x49e268