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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2238
call fcn.0056ca90
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.0054cc29
mov esi, eax
test esi, esi
js 0x54d7a1
jmp 0x54d764
push 0x60e230
push edi
mov dword [ebp + 8], 1
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
push 0x60e204
sbb ebx, ebx
push edi
inc ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x54d355
test ebx, ebx
je 0x54d3e4
mov ecx, dword [ebp - 4]
push edi
call fcn.0054cc29
mov esi, eax
test esi, esi
js 0x54d793
cmp dword [ebp + 0x10], 0
je 0x54d3e4
and dword [ebp - 0x20], 0
and dword [ebp - 0x18], 0
push 0x5c
push edi
call fcn.0054db81
pop ecx
pop ecx
test eax, eax
jne 0x54d78e
mov ecx, dword [ebp - 4]
push edi
call fcn.0054c845
test eax, eax
je 0x54d3ac
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x20]
and dword [ebp - 0x1c], 0
push edi
mov dword [ebp - 0x20], eax
call fcn.0054d033
and dword [ebp - 0x20], 0
test ebx, ebx
je 0x54d3e0
mov ebx, dword [ebp - 4]
mov ecx, ebx
push edi
call fcn.0054cc29
mov esi, eax
test esi, esi
js 0x54d793
push edi
mov ecx, ebx
call fcn.0054db0e
mov esi, eax
test esi, esi
js 0x54d793
and dword [ebp - 0x1c], 0
jmp 0x54d5c0
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 0x54d40c
and dword [ebp + 8], eax
mov ecx, ebx
push edi
call fcn.0054cc29
mov esi, eax
test esi, esi
js 0x54d793
push 0x60e1fc
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x54d4f6
lea eax, [ebp - 0x2238]
mov ecx, ebx
push eax
call fcn.0054cc29
mov esi, eax
test esi, esi
js 0x54d793
push edi
mov ecx, ebx
call fcn.0054cc29
mov esi, eax
test esi, esi
js 0x54d793
push 0x3d
pop eax
cmp word [edi], ax
jne 0x54d78e
cmp dword [ebp + 0x10], 0
je 0x54d486
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.0054c36f
and dword [ebp - 0x30], 0
jmp 0x54d5b6
cmp dword [ebp + 0x14], 0
jne 0x54d4df
cmp dword [ebp + 8], 0
je 0x54d4df
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 0x54d788
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x2238]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x54d4d1
cmp eax, 2
jne 0x54d772
test ebx, ebx
je 0x54d4dc
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [ebp - 4]
push edi
mov ecx, ebx
call fcn.0054db0e
mov esi, eax
test esi, esi
js 0x54d793
jmp 0x54d764
push 0x5c
push edi
call fcn.0054db81
pop ecx
pop ecx
test eax, eax
jne 0x54d78e
cmp dword [ebp + 0x10], eax
je 0x54d603
mov esi, dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
push 0x2001f
push edi
push esi
call fcn.00454db1
test eax, eax
je 0x54d58e
push 0x20019
push edi
push esi
lea ecx, [ebp - 0x10]
call fcn.00454db1
test eax, eax
je 0x54d58e
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 0x54d560
call fcn.004b5966
jmp 0x54d566
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x54d788
cmp dword [ebp - 0x10], eax
je 0x54d57c
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 0x54d788
push edi
mov ecx, ebx
call fcn.0054cc29
mov esi, eax
test esi, esi
js 0x54d793
push 0x3d
pop eax
cmp word [edi], ax
jne 0x54d5c0
push edi
push 0
lea eax, [ebp - 0x10]
mov ecx, ebx
push eax
call fcn.0054c36f
mov esi, eax
test esi, esi
js 0x54d793
push 0x7b
pop eax
cmp word [edi], ax
jne 0x54d764
push edi
call fcn.0057e469
pop ecx
cmp eax, 1
jne 0x54d764
push 0
push dword [ebp + 0x10]
mov ecx, ebx
push dword [ebp - 0x10]
push edi
call fcn.0054d2ed
mov esi, eax
test esi, esi
js 0x54d793
push edi
mov ecx, ebx
call fcn.0054cc29
jmp 0x54d4e7
cmp dword [ebp + 0x14], 0
jne 0x54d61e
push 0x20019
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
call fcn.00454db1
mov ebx, eax
jmp 0x54d621
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.00597e43
push eax
call fcn.00412921
mov ecx, dword [ebp - 4]
add esp, 0x14
push edi
call fcn.0054cc29
mov esi, eax
test esi, esi
js 0x54d793
mov ecx, dword [ebp - 4]
push edi
call fcn.0054db0e
mov esi, eax
test esi, esi
js 0x54d793
push 0x7b
pop eax
cmp word [edi], ax
jne 0x54d6b8
push edi
call fcn.0057e469
pop ecx
cmp eax, 1
jne 0x54d6b8
push dword [ebp - 0x14]
mov ecx, dword [ebp - 4]
push 0
push dword [ebp - 0x10]
push edi
call fcn.0054d2ed
mov esi, eax
test esi, esi
jns 0x54d6a5
cmp dword [ebp - 0x14], 0
je 0x54d793
mov ecx, dword [ebp - 4]
push edi
call fcn.0054cc29
mov esi, eax
test esi, esi
js 0x54d793
cmp ebx, 2
je 0x54d764
test ebx, ebx
je 0x54d6dd
cmp dword [ebp + 0x14], 0
jne 0x54d764
push ebx
call fcn.0054c812
pop ecx
mov esi, eax
jmp 0x54d793
cmp dword [ebp + 0x14], 0
mov ebx, dword [ebp - 0x10]
je 0x54d71d
mov ecx, dword [ebp - 4]
push ebx
call fcn.0054ca9e
test eax, eax
je 0x54d71d
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x238]
push eax
call fcn.0054c845
test eax, eax
je 0x54d764
cmp dword [ebp + 8], 0
je 0x54d764
lea eax, [ebp - 0x238]
push eax
lea ecx, [ebp - 0x10]
call fcn.0054d033
jmp 0x54d764
mov ecx, dword [ebp - 4]
push ebx
call fcn.0054ca9e
mov ecx, eax
xor eax, eax
mov dword [ebp - 0x14], ecx
test ebx, ebx
je 0x54d73f
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 0x54d788
cmp dword [ebp + 8], eax
je 0x54d764
test ecx, ecx
jne 0x54d764
lea eax, [ebp - 0x238]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x54d788
push 0x7d
pop eax
cmp word [edi], ax
jne 0x54d325
jmp 0x54d793
push eax
call fcn.0054c812
mov esi, eax
pop ecx
test ebx, ebx
je 0x54d793
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x54d793
push eax
jmp 0x54d6d0
mov esi, 0x80020009
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x54d7a1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x10