Function at 0x5226b5
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x225c
call fcn.0053a250
mov eax, dword [0x5b46a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov dword [ebp - 0x2210], eax
mov ebx, ecx
xor eax, eax
push esi
mov dword [ebp - 0x2234], eax
mov dword [ebp - 0x2230], eax
mov dword [ebp - 0x222c], eax
mov dword [ebp - 0x2228], eax
mov eax, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x225c], eax
push edi
call fcn.00521e5e
mov esi, eax
test esi, esi
js 0x522c5b
push 0x7d
pop eax
cmp word [edi], ax
je 0x522c5b
xor eax, eax
push str.Delete
inc eax
push edi
mov dword [ebp - 0x2218], eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
push 0x563938
sbb esi, esi
inc esi
push edi
mov dword [ebp - 0x2214], esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x522754
test esi, esi
je 0x522820
push edi
mov ecx, ebx
call fcn.00521e5e
mov esi, eax
test esi, esi
js 0x522c5b
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x522822
push 0x5c
push edi
mov dword [ebp - 0x2224], esi
mov dword [ebp - 0x2220], esi
mov dword [ebp - 0x221c], esi
call fcn.00522e56
pop ecx
pop ecx
test eax, eax
jne 0x522c4b
push edi
mov ecx, ebx
call fcn.00521972
test eax, eax
je 0x5227d7
mov eax, dword [ebp - 0x2210]
lea ecx, [ebp - 0x2224]
push edi
mov dword [ebp - 0x2224], eax
mov dword [ebp - 0x2220], esi
mov dword [ebp - 0x221c], esi
call fcn.00522272
mov dword [ebp - 0x2224], esi
mov dword [ebp - 0x2220], esi
mov dword [ebp - 0x221c], esi
cmp dword [ebp - 0x2214], esi
je 0x522813
push edi
mov ecx, ebx
call fcn.00521e5e
mov esi, eax
test esi, esi
js 0x522c43
push edi
mov ecx, ebx
call fcn.00522dcd
mov esi, eax
lea ecx, [ebp - 0x2224]
call fcn.00521a3f
test esi, esi
js 0x522c5b
jmp 0x522be9
lea ecx, [ebp - 0x2224]
call fcn.00521a3f
jmp 0x522822
xor esi, esi
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x52284a
push edi
mov ecx, ebx
mov dword [ebp - 0x2218], esi
call fcn.00521e5e
mov esi, eax
test esi, esi
js 0x522c5b
push 0x563930
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x522965
lea eax, [ebp - 0x220c]
mov ecx, ebx
push eax
call fcn.00521e5e
mov esi, eax
test esi, esi
js 0x522c5b
push edi
mov ecx, ebx
call fcn.00521e5e
mov esi, eax
test esi, esi
js 0x522c5b
push 0x3d
pop eax
cmp word [edi], ax
jne 0x522c56
cmp dword [ebp + 0x10], 0
je 0x5228eb
mov eax, dword [ebp - 0x2210]
mov ecx, ebx
mov dword [ebp - 0x2240], eax
xor eax, eax
mov dword [ebp - 0x223c], eax
mov dword [ebp - 0x2238], eax
lea eax, [ebp - 0x220c]
push edi
push eax
lea eax, [ebp - 0x2240]
push eax
call fcn.00521330
mov esi, eax
lea ecx, [ebp - 0x2240]
xor eax, eax
mov dword [ebp - 0x2240], eax
mov dword [ebp - 0x223c], eax
mov dword [ebp - 0x2238], eax
jmp 0x522801
cmp dword [ebp + 0x14], 0
jne 0x522958
cmp dword [ebp - 0x2218], 0
je 0x522958
xor eax, eax
lea ecx, [ebp - 0x2258]
push 0x20006
push eax
push dword [ebp - 0x2210]
mov dword [ebp - 0x2258], eax
mov dword [ebp - 0x2254], eax
mov dword [ebp - 0x2250], eax
call fcn.00521f9d
test eax, eax
jne 0x522c7b
lea eax, [ebp - 0x220c]
push eax
push dword [ebp - 0x2258]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x52294d
cmp eax, 2
jne 0x522c7b
lea ecx, [ebp - 0x2258]
call fcn.00521a3f
push edi
mov ecx, ebx
call fcn.00522dcd
jmp 0x522706
push 0x5c
push edi
call fcn.00522e56
pop ecx
pop ecx
test eax, eax
jne 0x522c56
cmp dword [ebp + 0x10], eax
je 0x522a09
mov esi, dword [ebp - 0x2210]
lea ecx, [ebp - 0x2230]
push 0x2001f
push edi
push esi
call fcn.00521f9d
test eax, eax
je 0x5229d2
push 0x20019
push edi
push esi
lea ecx, [ebp - 0x2230]
call fcn.00521f9d
test eax, eax
je 0x5229d2
xor eax, eax
lea ecx, [ebp - 0x2230]
push eax
push eax
push 0x2001f
push eax
push eax
push edi
push esi
call fcn.00521a59
test eax, eax
jne 0x522aff
push edi
mov ecx, ebx
call fcn.00521e5e
mov esi, eax
test esi, esi
js 0x522c5b
push 0x3d
pop eax
cmp word [edi], ax
jne 0x522be9
push edi
xor eax, eax
mov ecx, ebx
push eax
lea eax, [ebp - 0x2230]
push eax
call fcn.00521330
mov esi, eax
jmp 0x522806
mov esi, dword [ebp + 0x14]
test esi, esi
jne 0x522a29
push 0x20019
push edi
push dword [ebp - 0x2210]
lea ecx, [ebp - 0x2230]
call fcn.00521f9d
jmp 0x522a2c
push 2
pop eax
push 1
test eax, eax
mov dword [ebp - 0x2214], eax
pop eax
push 0xffffffffffffffff
cmovne esi, eax
lea eax, [ebp - 0x20c]
push edi
push 0x104
push eax
mov dword [ebp + 0x14], esi
call fcn.0053fe42
push eax
call fcn.00521845
add esp, 0x14
mov ecx, ebx
push edi
call fcn.00521e5e
mov esi, eax
test esi, esi
js 0x522c5b
push edi
mov ecx, ebx
call fcn.00522dcd
mov esi, eax
test esi, esi
js 0x522c5b
push 0x7b
pop eax
cmp word [edi], ax
jne 0x522adb
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x2234]
jne 0x522a8b
sub ecx, edx
xor eax, eax
sar ecx, 1
inc eax
cmp ecx, eax
jne 0x522adb
push dword [ebp + 0x14]
xor eax, eax
mov ecx, ebx
push eax
push dword [ebp - 0x2230]
push edi
call fcn.005226b5
mov esi, eax
test esi, esi
jns 0x522ac9
cmp dword [ebp + 0x14], 0
je 0x522c5b
push edi
mov ecx, ebx
call fcn.00521e5e
mov esi, eax
test esi, esi
js 0x522c5b
mov eax, dword [ebp - 0x2214]
mov ecx, dword [ebp - 0x225c]
mov dword [ebp + 0x14], ecx
cmp eax, 2
je 0x522710
test eax, eax
je 0x522b0d
test ecx, ecx
jne 0x522710
push eax
call fcn.005218b5
pop ecx
mov esi, eax
jmp 0x522c5b
test ecx, ecx
je 0x522b5c
push dword [ebp - 0x2230]
mov ecx, ebx
call fcn.00521cc5
test eax, eax
je 0x522b5c
lea eax, [ebp - 0x20c]
mov ecx, ebx
push eax
call fcn.00521972
test eax, eax
je 0x522710
cmp dword [ebp - 0x2218], 0
je 0x522710
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x2230]
call fcn.00522272
jmp 0x522710
push dword [ebp - 0x2230]
mov ecx, ebx
call fcn.00521cc5
lea ecx, [ebp - 0x2230]
mov dword [ebp - 0x2214], eax
call fcn.00521a3f
test eax, eax
jne 0x522aff
cmp dword [ebp - 0x2218], eax
je 0x522710
cmp dword [ebp - 0x2214], eax
jne 0x522710
mov eax, dword [ebp - 0x2210]
lea ecx, [ebp - 0x224c]
mov dword [ebp - 0x224c], eax
xor eax, eax
mov dword [ebp - 0x2248], eax
mov dword [ebp - 0x2244], eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00521aca
xor ecx, ecx
mov dword [ebp - 0x224c], ecx
mov dword [ebp - 0x2248], ecx
mov dword [ebp - 0x2244], ecx
test eax, eax
jne 0x522c91
lea ecx, [ebp - 0x224c]
call fcn.00521a3f
cmp dword [ebp + 0x10], 0
je 0x522710
push 0x7b
pop eax
cmp word [edi], ax
jne 0x522710
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x2234]
jne 0x522c04
sub ecx, edx
xor eax, eax
sar ecx, 1
inc eax
cmp ecx, eax
jne 0x522710
xor eax, eax
mov ecx, ebx
push eax
push dword [ebp + 0x10]
push dword [ebp - 0x2230]
push edi
call fcn.005226b5
mov esi, eax
test esi, esi
js 0x522c5b
mov ecx, ebx
jmp 0x522700
lea ecx, [ebp - 0x2224]
jmp 0x522c8a
lea ecx, [ebp - 0x2224]
call fcn.00521a3f
mov esi, 0x80020009
lea ecx, [ebp - 0x2230]
call fcn.00521a3f
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0053a230
mov esp, ebp
pop ebp
ret 0x10
push eax
call fcn.005218b5
pop ecx
lea ecx, [ebp - 0x2258]
mov esi, eax
call fcn.00521a3f
jmp 0x522c5b
push eax
call fcn.005218b5
pop ecx
lea ecx, [ebp - 0x224c]
jmp 0x522c88