Function at 0x537c2d
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6cb27d
mov eax, dword fs:[0]
push eax
mov eax, 0x225c
call fcn.00648c70
mov eax, dword [0x81c5a8]
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 eax, ecx
mov dword [ebp - 0x221c], eax
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x2220], ecx
xor ecx, ecx
mov dword [ebp - 0x2244], ecx
mov dword [ebp - 0x223c], ecx
mov dword [ebp - 0x2238], ecx
mov dword [ebp - 0x2234], ecx
mov dword [ebp - 4], ecx
mov ecx, eax
push edi
call fcn.00537ad7
mov esi, eax
test esi, esi
js 0x538215
push 0x7d
pop eax
cmp word [edi], ax
je 0x538215
xor eax, eax
inc eax
push str.Delete
push edi
mov dword [ebp - 0x2224], eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
push str.ForceRemove
sbb ebx, ebx
push edi
inc ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x537ce0
test ebx, ebx
je 0x537db0
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.00537ad7
mov esi, eax
test esi, esi
js 0x538215
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x537db2
push 0x5c
pop edx
mov ecx, edi
mov dword [ebp - 0x2230], esi
mov dword [ebp - 0x222c], esi
mov dword [ebp - 0x2228], esi
call fcn.0053730c
test eax, eax
jne 0x538205
push edi
call fcn.005378ef
test eax, eax
je 0x537d65
mov eax, dword [ebp - 0x2220]
lea ecx, [ebp - 0x2230]
push edi
mov dword [ebp - 0x2230], eax
mov dword [ebp - 0x222c], esi
mov dword [ebp - 0x2228], esi
call fcn.0053791e
mov dword [ebp - 0x2230], esi
mov dword [ebp - 0x222c], esi
mov dword [ebp - 0x2228], esi
test ebx, ebx
je 0x537da3
mov ebx, dword [ebp - 0x221c]
mov ecx, ebx
push edi
call fcn.00537ad7
mov esi, eax
test esi, esi
js 0x5381fd
push edi
mov ecx, ebx
call fcn.00537888
lea ecx, [ebp - 0x2230]
mov esi, eax
call fcn.0051e50a
test esi, esi
js 0x538215
jmp 0x538197
lea ecx, [ebp - 0x2230]
call fcn.0051e50a
jmp 0x537db2
xor esi, esi
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov ebx, dword [ebp - 0x221c]
test eax, eax
jne 0x537de0
push edi
mov ecx, ebx
mov dword [ebp - 0x2224], esi
call fcn.00537ad7
mov esi, eax
test esi, esi
js 0x538215
push 0x74dafc
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x537f11
lea eax, [ebp - 0x2218]
mov ecx, ebx
push eax
call fcn.00537ad7
mov esi, eax
test esi, esi
js 0x538215
push edi
mov ecx, ebx
call fcn.00537ad7
mov esi, eax
test esi, esi
js 0x538215
push 0x3d
pop eax
cmp word [edi], ax
jne 0x538210
cmp dword [ebp + 0x10], 0
je 0x537e97
mov eax, dword [ebp - 0x2220]
xor ecx, ecx
inc ecx
mov byte [ebp - 4], cl
mov ecx, ebx
mov dword [ebp - 0x2250], eax
xor eax, eax
mov dword [ebp - 0x224c], eax
mov dword [ebp - 0x2248], eax
lea eax, [ebp - 0x2218]
push edi
push eax
lea eax, [ebp - 0x2250]
push eax
call fcn.00537451
mov esi, eax
lea ecx, [ebp - 0x2250]
xor eax, eax
mov dword [ebp - 0x2250], eax
mov dword [ebp - 0x224c], eax
mov dword [ebp - 0x2248], eax
test esi, esi
js 0x53824f
mov byte [ebp - 4], al
call fcn.0051e50a
jmp 0x538197
cmp dword [ebp + 0x14], 0
jne 0x537f04
cmp dword [ebp - 0x2224], 0
je 0x537f04
xor eax, eax
lea ecx, [ebp - 0x2268]
push 0x20006
push eax
push dword [ebp - 0x2220]
mov dword [ebp - 0x2268], eax
mov dword [ebp - 0x2264], eax
mov dword [ebp - 0x2260], eax
call fcn.0051e4ac
test eax, eax
jne 0x538240
lea eax, [ebp - 0x2218]
push eax
push dword [ebp - 0x2268]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x537ef9
cmp eax, 2
jne 0x538240
lea ecx, [ebp - 0x2268]
call fcn.0051e50a
push edi
mov ecx, ebx
call fcn.00537888
jmp 0x5381e6
push 0x5c
pop edx
mov ecx, edi
call fcn.0053730c
test eax, eax
jne 0x538210
cmp dword [ebp + 0x10], eax
je 0x537fb3
mov esi, dword [ebp - 0x2220]
lea ecx, [ebp - 0x223c]
push 0x2001f
push edi
push esi
call fcn.0051e4ac
test eax, eax
je 0x537f7c
push 0x20019
push edi
push esi
lea ecx, [ebp - 0x223c]
call fcn.0051e4ac
test eax, eax
je 0x537f7c
push ecx
push ecx
push 0x2001f
push ecx
push ecx
push edi
push esi
lea ecx, [ebp - 0x223c]
call fcn.00534d73
test eax, eax
jne 0x538265
push edi
mov ecx, ebx
call fcn.00537ad7
mov esi, eax
test esi, esi
js 0x538215
push 0x3d
pop eax
cmp word [edi], ax
jne 0x538197
push edi
xor eax, eax
mov ecx, ebx
push eax
lea eax, [ebp - 0x223c]
push eax
call fcn.00537451
mov esi, eax
jmp 0x537d96
cmp dword [ebp + 0x14], 0
jne 0x537fd4
push 0x20019
push edi
push dword [ebp - 0x2220]
lea ecx, [ebp - 0x223c]
call fcn.0051e4ac
mov ebx, eax
jmp 0x537fd7
push 2
pop ebx
mov eax, dword [ebp + 0x14]
test ebx, ebx
push 1
pop ecx
push 0xffffffffffffffff
cmovne eax, ecx
push edi
mov dword [ebp - 0x2240], eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0067cdbf
push eax
call fcn.00515611
mov ecx, dword [ebp - 0x221c]
add esp, 0x14
push edi
call fcn.00537ad7
mov esi, eax
test esi, esi
js 0x538215
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.00537888
mov esi, eax
test esi, esi
js 0x538215
push 0x7b
pop eax
cmp word [edi], ax
jne 0x53809c
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x2244]
jne 0x53803e
sub ecx, edx
xor eax, eax
sar ecx, 1
inc eax
cmp ecx, eax
jne 0x53809c
push dword [ebp - 0x2240]
mov ecx, dword [ebp - 0x221c]
xor eax, eax
push eax
push dword [ebp - 0x223c]
push edi
call fcn.00537c2d
mov esi, eax
test esi, esi
jns 0x538086
cmp dword [ebp - 0x2240], 0
je 0x538215
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.00537ad7
mov esi, eax
test esi, esi
js 0x538215
cmp ebx, 2
je 0x5381ec
test ebx, ebx
je 0x5380c1
cmp dword [ebp + 0x14], 0
jne 0x5381ec
mov ecx, ebx
call fcn.00534cf6
mov esi, eax
jmp 0x538215
cmp dword [ebp + 0x14], 0
je 0x53810e
push dword [ebp - 0x223c]
call fcn.005379d5
test eax, eax
je 0x53810e
lea eax, [ebp - 0x218]
push eax
call fcn.005378ef
test eax, eax
je 0x5381ec
cmp dword [ebp - 0x2224], 0
je 0x5381ec
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x223c]
call fcn.0053791e
jmp 0x5381ec
push dword [ebp - 0x223c]
call fcn.005379d5
lea ecx, [ebp - 0x223c]
mov ebx, eax
call fcn.0051e50a
test eax, eax
jne 0x538265
cmp dword [ebp - 0x2224], eax
je 0x5381ec
test ebx, ebx
jne 0x5381ec
mov eax, dword [ebp - 0x2220]
lea ecx, [ebp - 0x225c]
mov dword [ebp - 0x225c], eax
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 0x2258], ebx
mov dword [ebp - 0x2254], ebx
call fcn.00537a5e
mov dword [ebp - 0x225c], ebx
mov dword [ebp - 0x2258], ebx
mov dword [ebp - 0x2254], ebx
test eax, eax
jne 0x538256
lea ecx, [ebp - 0x225c]
call fcn.0051e50a
mov ebx, dword [ebp - 0x221c]
cmp dword [ebp + 0x10], 0
je 0x5381ec
push 0x7b
pop eax
cmp word [edi], ax
jne 0x5381ec
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x2244]
jne 0x5381aa
sub ecx, edx
xor eax, eax
sar ecx, 1
inc eax
cmp ecx, eax
jne 0x5381ef
xor eax, eax
mov ecx, ebx
push eax
push dword [ebp + 0x10]
push dword [ebp - 0x223c]
push edi
call fcn.00537c2d
mov esi, eax
test esi, esi
js 0x538215
push edi
mov ecx, ebx
call fcn.00537ad7
mov esi, eax
test esi, esi
js 0x538215
xor eax, eax
inc eax
push 0x7d
pop ecx
cmp word [edi], cx
jne 0x537cb1
jmp 0x538215
lea ecx, [ebp - 0x2230]
jmp 0x53824f
lea ecx, [ebp - 0x2230]
call fcn.0051e50a
mov esi, 0x80020009
lea ecx, [ebp - 0x223c]
call fcn.0051e50a
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.00647fba
mov esp, ebp
pop ebp
ret 0x10
mov ecx, eax
call fcn.00534cf6
lea ecx, [ebp - 0x2268]
mov esi, eax
call fcn.0051e50a
jmp 0x538215
mov ecx, eax
call fcn.00534cf6
lea ecx, [ebp - 0x225c]
jmp 0x53824d
mov ecx, eax
jmp 0x5380b5