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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1002f2a3
mov eax, dword fs:[0]
push eax
sub esp, 0x438
mov eax, dword [0x10039030]
xor eax, esp
mov dword [esp + 0x430], eax
push ebx
push esi
push edi
mov eax, dword [0x10039030]
xor eax, esp
push eax
lea eax, [esp + 0x448]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
and dword [esp + 0x10], 0
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x14]
and dword [esp + 0x450], 0
mov dword [esp + 0x24], eax
mov eax, edi
call fcn.1001eec4
mov esi, eax
test esi, esi
jl 0x1002544f
cmp word [edi], 0x7d
je 0x1002544d
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push str.Delete
push edi
mov dword [esp + 0x28], 1
call esi
mov ebx, eax
neg ebx
push str.ForceRemove
sbb ebx, ebx
push edi
inc ebx
call esi
test eax, eax
je 0x10025038
test ebx, ebx
je 0x10025104
mov ecx, dword [esp + 0x18]
mov eax, edi
call fcn.1001eec4
mov esi, eax
test esi, esi
jl 0x1002543c
cmp dword [ebp + 0x10], 0
je 0x10025104
push 0x5c
mov eax, edi
call fcn.1002695c
test eax, eax
pop ecx
jne 0x10025512
push edi
call fcn.1001f2d7
test eax, eax
je 0x10025085
mov eax, dword [esp + 0x1c]
push edi
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], eax
call fcn.1000cfe0
test ebx, ebx
je 0x10025104
mov ecx, dword [esp + 0x18]
mov eax, edi
call fcn.1001eec4
mov esi, eax
test esi, esi
jl 0x1002543c
mov ecx, dword [esp + 0x18]
call fcn.10027904
mov esi, eax
test esi, esi
jl 0x1002543c
cmp word [edi], 0x7b
jne 0x100250f5
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x100250f5
mov ecx, dword [esp + 0x18]
push 0
push dword [ebp + 0x10]
push dword [esp + 0x18]
push edi
call fcn.10024f8a
mov esi, eax
test esi, esi
jl 0x1002543c
mov ecx, dword [esp + 0x18]
mov eax, edi
call fcn.1001eec4
mov esi, eax
test esi, esi
jl 0x1002543c
cmp word [edi], 0x7d
jne 0x10025007
jmp 0x1002543c
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1002512d
and dword [esp + 0x20], eax
mov ecx, dword [esp + 0x18]
mov eax, edi
call fcn.1001eec4
mov esi, eax
test esi, esi
jl 0x1002543c
push 0x10034c1c
push edi
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x10025229
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x234]
call fcn.1001eec4
mov esi, eax
test esi, esi
jl 0x1002543c
mov ecx, dword [esp + 0x18]
mov eax, edi
call fcn.1001eec4
mov esi, eax
test esi, esi
jl 0x1002543c
cmp word [edi], 0x3d
jne 0x10025512
cmp dword [ebp + 0x10], ebx
je 0x100251bd
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov byte [esp + 0x450], 1
mov dword [esp + 0x14], eax
push edi
lea eax, [esp + 0x238]
push eax
lea edx, [esp + 0x1c]
call fcn.10008bb2
mov esi, eax
cmp esi, ebx
jl 0x1002552d
mov byte [esp + 0x450], bl
jmp 0x100250b1
cmp dword [ebp + 0x14], ebx
jne 0x10025217
cmp dword [esp + 0x20], ebx
je 0x10025217
lea eax, [esp + 0x14]
push eax
push 0x20006
push ebx
push ebx
push dword [esp + 0x2c]
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x10025435
mov ebx, dword [esp + 0x14]
lea eax, [esp + 0x234]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x1002520a
cmp eax, 2
jne 0x10025536
test ebx, ebx
je 0x10025215
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
mov ecx, dword [esp + 0x18]
call fcn.10027904
mov esi, eax
cmp esi, ebx
jmp 0x100250ef
push 0x5c
mov eax, edi
call fcn.1002695c
test eax, eax
pop ecx
jne 0x10025551
cmp dword [ebp + 0x10], ebx
je 0x1002533c
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [esp + 0x14]
push eax
push 0x2001f
push ebx
push edi
push dword [esp + 0x2c]
mov dword [esp + 0x28], ebx
call esi
cmp eax, ebx
jne 0x10025288
xor eax, eax
cmp dword [esp + 0x10], ebx
je 0x10025276
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x10], ebx
je 0x10025308
jmp 0x1002528c
mov ebx, dword [esp + 0x10]
and dword [esp + 0x14], 0
lea eax, [esp + 0x14]
push eax
push 0x20019
push 0
push edi
push dword [esp + 0x2c]
call esi
xor esi, esi
test eax, eax
jne 0x100252c1
cmp ebx, esi
je 0x100252b5
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, esi
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x10], ebx
je 0x10025308
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x18]
push eax
push esi
push 0x2001f
push esi
push esi
push esi
push edi
push dword [esp + 0x3c]
mov dword [esp + 0x38], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, esi
jne 0x10025557
xor eax, eax
cmp ebx, esi
je 0x100252f8
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, esi
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x10], ebx
jne 0x10025557
mov ecx, dword [esp + 0x18]
mov eax, edi
call fcn.1001eec4
mov esi, eax
test esi, esi
jl 0x1002543c
cmp word [edi], 0x3d
jne 0x100250b1
mov ecx, dword [esp + 0x18]
push edi
push 0
lea edx, [esp + 0x18]
call fcn.10008bb2
jmp 0x100250a7
cmp dword [ebp + 0x14], ebx
jne 0x1002537f
lea eax, [esp + 0x14]
push eax
push 0x20019
push ebx
push edi
push dword [esp + 0x2c]
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x10025379
xor eax, eax
cmp dword [esp + 0x10], ebx
je 0x10025371
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
jmp 0x10025387
mov dword [esp + 0x14], 2
cmp dword [esp + 0x14], ebx
je 0x10025394
mov dword [ebp + 0x14], 1
push 0xffffffffffffffff
push edi
lea eax, [esp + 0x34]
push 0x104
push eax
call fcn.10021794
push eax
call fcn.1001111c
mov ecx, dword [esp + 0x2c]
add esp, 0x14
mov eax, edi
call fcn.1001eec4
mov esi, eax
test esi, esi
jl 0x1002543c
mov ecx, dword [esp + 0x18]
call fcn.10027904
mov esi, eax
test esi, esi
jl 0x1002543c
cmp word [edi], 0x7b
jne 0x10025411
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x10025411
push dword [ebp + 0x14]
mov ecx, dword [esp + 0x1c]
push 0
push dword [esp + 0x18]
push edi
call fcn.10024f8a
mov esi, eax
test esi, esi
jge 0x10025400
cmp dword [ebp + 0x14], 0
je 0x1002543c
mov ecx, dword [esp + 0x18]
mov eax, edi
call fcn.1001eec4
mov esi, eax
test esi, esi
jl 0x1002543c
mov eax, dword [esp + 0x24]
mov dword [ebp + 0x14], eax
mov eax, dword [esp + 0x14]
cmp eax, 2
je 0x100250f5
xor ebx, ebx
cmp eax, ebx
je 0x10025475
cmp dword [esp + 0x24], ebx
jne 0x100250f5
call fcn.100183e6
mov esi, eax
cmp dword [esp + 0x10], 0
je 0x1002544d
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x448]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x430]
xor ecx, esp
call fcn.10013013
mov esp, ebp
pop ebp
ret 0x10
cmp dword [esp + 0x24], ebx
je 0x100254b8
push dword [esp + 0x10]
call fcn.1001f418
test eax, eax
je 0x100254b8
lea eax, [esp + 0x2c]
push eax
call fcn.1001f2d7
test eax, eax
je 0x100250f5
cmp dword [esp + 0x20], 0
je 0x100250f5
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x14]
call fcn.1000cfe0
jmp 0x100250f5
push dword [esp + 0x10]
call fcn.1001f418
cmp dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
je 0x100254e1
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
mov dword [esp + 0x10], ebx
jne 0x10025570
cmp dword [esp + 0x20], ebx
je 0x100250f5
cmp dword [esp + 0x14], 0
jne 0x100250f5
lea eax, [esp + 0x2c]
push eax
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x10025435
jmp 0x100250f5
cmp dword [esp + 0x10], 0
je 0x10025523
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x1002544f
cmp dword [esp + 0x10], ebx
jmp 0x10025441
call fcn.100183e6
test ebx, ebx
mov esi, eax
je 0x1002543c
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1002543c
cmp dword [esp + 0x10], ebx
jmp 0x10025517
call fcn.100183e6
cmp ebx, esi
mov edi, eax
je 0x10025569
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x1002544f
call fcn.100183e6
jmp 0x1002544f