Function at 0x55089d
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2238
call fcn.0056d570
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
and dword [ebp - 0xc], ebx
mov eax, ecx
and dword [ebp - 8], ebx
push edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], ebx
call fcn.005501d9
mov esi, eax
test esi, esi
js 0x550d51
jmp 0x550d14
push 0x605f50
push edi
mov dword [ebp + 8], 1
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
neg eax
push 0x605f24
sbb ebx, ebx
push edi
inc ebx
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
je 0x550905
test ebx, ebx
je 0x550994
mov ecx, dword [ebp - 4]
push edi
call fcn.005501d9
mov esi, eax
test esi, esi
js 0x550d43
cmp dword [ebp + 0x10], 0
je 0x550994
and dword [ebp - 0x20], 0
and dword [ebp - 0x18], 0
push 0x5c
push edi
call fcn.00551129
pop ecx
pop ecx
test eax, eax
jne 0x550d3e
mov ecx, dword [ebp - 4]
push edi
call fcn.0054fdf5
test eax, eax
je 0x55095c
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x20]
and dword [ebp - 0x1c], 0
push edi
mov dword [ebp - 0x20], eax
call fcn.005505e3
and dword [ebp - 0x20], 0
test ebx, ebx
je 0x550990
mov ebx, dword [ebp - 4]
mov ecx, ebx
push edi
call fcn.005501d9
mov esi, eax
test esi, esi
js 0x550d43
push edi
mov ecx, ebx
call fcn.005510b6
mov esi, eax
test esi, esi
js 0x550d43
and dword [ebp - 0x1c], 0
jmp 0x550b70
and dword [ebp - 0x1c], 0
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
mov ebx, dword [ebp - 4]
test eax, eax
jne 0x5509bc
and dword [ebp + 8], eax
mov ecx, ebx
push edi
call fcn.005501d9
mov esi, eax
test esi, esi
js 0x550d43
push 0x605f1c
push edi
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
jne 0x550aa6
lea eax, [ebp - 0x2238]
mov ecx, ebx
push eax
call fcn.005501d9
mov esi, eax
test esi, esi
js 0x550d43
push edi
mov ecx, ebx
call fcn.005501d9
mov esi, eax
test esi, esi
js 0x550d43
push 0x3d
pop eax
cmp word [edi], ax
jne 0x550d3e
cmp dword [ebp + 0x10], 0
je 0x550a36
mov eax, dword [ebp + 0xc]
mov ecx, ebx
and dword [ebp - 0x2c], 0
and dword [ebp - 0x28], 0
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x2238]
push edi
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.0054f91f
and dword [ebp - 0x30], 0
jmp 0x550b66
cmp dword [ebp + 0x14], 0
jne 0x550a8f
cmp dword [ebp + 8], 0
je 0x550a8f
lea eax, [ebp + 8]
xor ecx, ecx
push eax
push 0x20006
push ecx
push ecx
push dword [ebp + 0xc]
mov dword [ebp + 8], ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x550d38
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x2238]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x550a81
cmp eax, 2
jne 0x550d22
test ebx, ebx
je 0x550a8c
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [ebp - 4]
push edi
mov ecx, ebx
call fcn.005510b6
mov esi, eax
test esi, esi
js 0x550d43
jmp 0x550d14
push 0x5c
push edi
call fcn.00551129
pop ecx
pop ecx
test eax, eax
jne 0x550d3e
cmp dword [ebp + 0x10], eax
je 0x550bb3
mov esi, dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
push 0x2001f
push edi
push esi
call fcn.0045a08f
test eax, eax
je 0x550b3e
push 0x20019
push edi
push esi
lea ecx, [ebp - 0x10]
call fcn.0045a08f
test eax, eax
je 0x550b3e
mov ecx, dword [ebp - 8]
lea eax, [ebp - 0x24]
push eax
xor edx, edx
lea eax, [ebp + 8]
mov dword [ebp + 8], edx
push eax
push edx
push 0x2001f
push edx
push edx
push edx
push edi
push esi
test ecx, ecx
je 0x550b10
call fcn.004b907d
jmp 0x550b16
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x550d38
cmp dword [ebp - 0x10], eax
je 0x550b2c
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 0xc], 0
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x10], ecx
test eax, eax
jne 0x550d38
push edi
mov ecx, ebx
call fcn.005501d9
mov esi, eax
test esi, esi
js 0x550d43
push 0x3d
pop eax
cmp word [edi], ax
jne 0x550b70
push edi
push 0
lea eax, [ebp - 0x10]
mov ecx, ebx
push eax
call fcn.0054f91f
mov esi, eax
test esi, esi
js 0x550d43
push 0x7b
pop eax
cmp word [edi], ax
jne 0x550d14
push edi
call fcn.0057bbea
pop ecx
cmp eax, 1
jne 0x550d14
push 0
push dword [ebp + 0x10]
mov ecx, ebx
push dword [ebp - 0x10]
push edi
call fcn.0055089d
mov esi, eax
test esi, esi
js 0x550d43
push edi
mov ecx, ebx
call fcn.005501d9
jmp 0x550a97
cmp dword [ebp + 0x14], 0
jne 0x550bce
push 0x20019
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
call fcn.0045a08f
mov ebx, eax
jmp 0x550bd1
push 2
pop ebx
xor eax, eax
inc eax
test ebx, ebx
push 0xffffffffffffffff
cmove eax, dword [ebp + 0x14]
push edi
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x238]
push 0x104
push eax
call fcn.005a1f8e
push eax
call fcn.0041cacd
mov ecx, dword [ebp - 4]
add esp, 0x14
push edi
call fcn.005501d9
mov esi, eax
test esi, esi
js 0x550d43
mov ecx, dword [ebp - 4]
push edi
call fcn.005510b6
mov esi, eax
test esi, esi
js 0x550d43
push 0x7b
pop eax
cmp word [edi], ax
jne 0x550c68
push edi
call fcn.0057bbea
pop ecx
cmp eax, 1
jne 0x550c68
push dword [ebp - 0x14]
mov ecx, dword [ebp - 4]
push 0
push dword [ebp - 0x10]
push edi
call fcn.0055089d
mov esi, eax
test esi, esi
jns 0x550c55
cmp dword [ebp - 0x14], 0
je 0x550d43
mov ecx, dword [ebp - 4]
push edi
call fcn.005501d9
mov esi, eax
test esi, esi
js 0x550d43
cmp ebx, 2
je 0x550d14
test ebx, ebx
je 0x550c8d
cmp dword [ebp + 0x14], 0
jne 0x550d14
push ebx
call fcn.0054fdc2
pop ecx
mov esi, eax
jmp 0x550d43
cmp dword [ebp + 0x14], 0
mov ebx, dword [ebp - 0x10]
je 0x550ccd
mov ecx, dword [ebp - 4]
push ebx
call fcn.0055004e
test eax, eax
je 0x550ccd
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x238]
push eax
call fcn.0054fdf5
test eax, eax
je 0x550d14
cmp dword [ebp + 8], 0
je 0x550d14
lea eax, [ebp - 0x238]
push eax
lea ecx, [ebp - 0x10]
call fcn.005505e3
jmp 0x550d14
mov ecx, dword [ebp - 4]
push ebx
call fcn.0055004e
mov ecx, eax
xor eax, eax
mov dword [ebp - 0x14], ecx
test ebx, ebx
je 0x550cef
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 0x10], 0
mov ecx, dword [ebp - 0x14]
and dword [ebp - 0xc], 0
test eax, eax
jne 0x550d38
cmp dword [ebp + 8], eax
je 0x550d14
test ecx, ecx
jne 0x550d14
lea eax, [ebp - 0x238]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x550d38
push 0x7d
pop eax
cmp word [edi], ax
jne 0x5508d5
jmp 0x550d43
push eax
call fcn.0054fdc2
mov esi, eax
pop ecx
test ebx, ebx
je 0x550d43
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x550d43
push eax
jmp 0x550c80
mov esi, 0x80020009
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x550d51
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x10