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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1004b4c7
mov eax, dword fs:[0]
push eax
sub esp, 0x448
mov eax, dword [0x100661b0]
xor eax, esp
mov dword [esp + 0x440], eax
push ebx
push esi
push edi
mov eax, dword [0x100661b0]
xor eax, esp
push eax
lea eax, [esp + 0x458]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
xor esi, esi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], esi
mov dword [esp + 0x460], esi
mov edx, dword [ebp + 0x14]
mov eax, ebx
mov dword [esp + 0x38], edx
call fcn.10024680
mov edi, eax
cmp edi, esi
jge 0x10025053
mov dword [esp + 0x460], 0xffffffff
jmp 0x100256b1
cmp word [ebx], 0x7d
je 0x1002568a
lea ecx, [ecx]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push str.Delete
push ebx
mov dword [esp + 0x34], 1
call edi
mov esi, eax
neg esi
push str.ForceRemove
sbb esi, esi
push ebx
add esi, 1
call edi
test eax, eax
je 0x10025093
test esi, esi
je 0x100251bb
mov ecx, dword [esp + 0x18]
mov eax, ebx
call fcn.10024680
mov edi, eax
test edi, edi
jl 0x1002568a
cmp dword [ebp + 0x10], 0
je 0x100251bb
mov dword [esp + 0x20], 0
mov byte [esp + 0x460], 1
movzx ecx, word [ebx]
test cx, cx
mov eax, ebx
je 0x100250ee
movzx ecx, cx
cmp cx, 0x5c
je 0x100250e6
push eax
call dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [eax]
test cx, cx
jne 0x100250cf
jmp 0x100250ee
test eax, eax
jne 0x10025617
mov edi, 0x10058d18
mov eax, dword [edi]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x10025126
add edi, 4
cmp edi, 0x10058d48
jl 0x100250f3
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x20], ecx
push ebx
lea ecx, [esp + 0x24]
call fcn.100238a0
mov dword [esp + 0x20], 0
test esi, esi
je 0x100251b3
mov esi, dword [esp + 0x18]
mov eax, ebx
mov ecx, esi
call fcn.10024680
mov edi, eax
test edi, edi
jl 0x10025643
mov edi, ebx
mov ecx, esi
call fcn.10024c00
mov edi, eax
test edi, edi
jl 0x10025643
mov byte [esp + 0x460], 0
cmp word [ebx], 0x7b
jne 0x1002558f
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x1002558f
mov edx, dword [ebp + 0x10]
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x18]
push 0
push edx
push eax
push ebx
mov ecx, esi
call fcn.10024fd0
mov edi, eax
test edi, edi
jl 0x1002568a
mov eax, ebx
mov ecx, esi
call fcn.10024680
mov edi, eax
test edi, edi
jl 0x1002568a
jmp 0x1002558f
mov byte [esp + 0x460], 0
push str.NoRemove
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x100251e4
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x2c], eax
mov eax, ebx
call fcn.10024680
mov edi, eax
test edi, edi
jl 0x1002568a
push 0x10058ce8
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1002532b
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x244]
call fcn.10024680
mov edi, eax
test edi, edi
jl 0x1002568a
mov ecx, dword [esp + 0x18]
mov eax, ebx
call fcn.10024680
mov edi, eax
test edi, edi
jl 0x1002568a
cmp word [ebx], 0x3d
jne 0x10025628
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x1002529c
mov dword [esp + 0x30], esi
mov byte [esp + 0x460], 2
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x244]
push eax
lea ecx, [esp + 0x34]
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x1c]
push ecx
mov ecx, ebx
call fcn.100247d0
mov edi, eax
cmp edi, esi
mov dword [esp + 0x30], esi
jge 0x10025158
mov byte [esp + 0x460], 0
lea esi, [esp + 0x30]
call fcn.10004370
mov dword [esp + 0x460], 0xffffffff
lea esi, [esp + 0x10]
call fcn.10004370
jmp 0x100256af
cmp dword [ebp + 0x14], esi
jne 0x10025311
cmp dword [esp + 0x2c], esi
je 0x10025311
mov dword [esp + 0x24], esi
mov byte [esp + 0x460], 3
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x14]
push edx
push 0x20006
push esi
push esi
push eax
mov dword [esp + 0x28], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x10025651
mov edi, dword [esp + 0x14]
lea ecx, [esp + 0x244]
push ecx
push edi
mov dword [esp + 0x2c], edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, esi
je 0x100252fa
cmp eax, 2
jne 0x10025651
mov byte [esp + 0x460], 0
cmp edi, esi
je 0x10025311
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x24], esi
mov ecx, dword [esp + 0x18]
mov edi, ebx
call fcn.10024c00
mov edi, eax
cmp edi, esi
jl 0x1002568a
jmp 0x1002558f
movzx ecx, word [ebx]
xor edi, edi
cmp cx, di
mov eax, ebx
je 0x1002535f
movzx ecx, cx
lea ebx, [ebx]
cmp cx, 0x5c
je 0x10025357
push eax
call dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [eax]
cmp cx, di
jne 0x10025340
jmp 0x1002535f
cmp eax, edi
jne 0x10025628
cmp dword [ebp + 0x10], edi
je 0x10025444
mov eax, dword [esp + 0x1c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea edx, [esp + 0x14]
push edx
push 0x2001f
push edi
push ebx
push eax
mov dword [esp + 0x28], edi
call esi
cmp eax, edi
jne 0x100253ac
mov ecx, dword [esp + 0x10]
xor eax, eax
cmp ecx, edi
je 0x1002539e
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], edi
cmp eax, edi
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x10], ecx
je 0x10025404
xor edi, edi
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x14]
push edx
push 0x20019
push edi
push ebx
push eax
mov dword [esp + 0x28], edi
call esi
cmp eax, edi
jne 0x100253e8
mov ecx, dword [esp + 0x10]
xor eax, eax
cmp ecx, edi
je 0x100253dc
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], edi
cmp eax, edi
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x10], ecx
je 0x10025404
mov edx, dword [esp + 0x1c]
push ebx
push edx
mov edx, 0x2001f
lea esi, [esp + 0x18]
call fcn.100041e0
test eax, eax
jne 0x10025666
mov esi, dword [esp + 0x18]
mov eax, ebx
mov ecx, esi
call fcn.10024680
mov edi, eax
test edi, edi
jl 0x1002568a
cmp word [ebx], 0x3d
jne 0x10025160
push 0
lea eax, [esp + 0x14]
push eax
mov ecx, ebx
mov edx, esi
call fcn.100247d0
mov edi, eax
test edi, edi
jl 0x1002568a
jmp 0x10025160
cmp dword [ebp + 0x14], edi
jne 0x1002554b
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x14]
push ecx
push 0x20019
push edi
push ebx
push edx
mov dword [esp + 0x28], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x10025489
mov ecx, dword [esp + 0x10]
xor eax, eax
cmp ecx, edi
je 0x10025481
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], edi
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x10], ecx
cmp eax, edi
mov dword [esp + 0x14], eax
je 0x10025498
mov dword [ebp + 0x14], 1
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x44]
push 0x104
push edx
call fcn.100373f0
push eax
call fcn.10023300
mov esi, dword [esp + 0x2c]
add esp, 0x14
mov eax, ebx
mov ecx, esi
call fcn.10024680
mov edi, eax
test edi, edi
jl 0x1002568a
mov edi, ebx
mov ecx, esi
call fcn.10024c00
mov edi, eax
test edi, edi
jl 0x1002568a
cmp word [ebx], 0x7b
jne 0x10025525
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x10025525
mov eax, dword [ebp + 0x14]
mov ecx, dword [esp + 0x10]
push eax
push 0
push ecx
push ebx
mov ecx, esi
call fcn.10024fd0
mov edi, eax
test edi, edi
jge 0x10025512
cmp dword [ebp + 0x14], 0
je 0x1002568a
mov eax, ebx
mov ecx, esi
call fcn.10024680
mov edi, eax
test edi, edi
jl 0x1002568a
mov ecx, dword [esp + 0x14]
cmp ecx, 2
mov eax, dword [esp + 0x38]
mov dword [ebp + 0x14], eax
je 0x1002558f
test ecx, ecx
je 0x10025558
test eax, eax
jne 0x1002558f
mov eax, ecx
call fcn.100234a0
mov edi, eax
jmp 0x1002568a
mov dword [esp + 0x14], 2
jmp 0x10025491
test eax, eax
mov esi, dword [esp + 0x10]
je 0x1002559e
mov ecx, esi
call fcn.10024bc0
test eax, eax
je 0x1002559e
lea ebx, [esp + 0x3c]
call fcn.10024b80
test eax, eax
je 0x1002558b
cmp dword [esp + 0x2c], 0
je 0x1002558b
mov edx, ebx
push edx
lea ecx, [esp + 0x14]
call fcn.100238a0
mov ebx, dword [esp + 0x34]
cmp word [ebx], 0x7d
jne 0x10025060
jmp 0x1002568a
mov ecx, esi
call fcn.10024bc0
test esi, esi
mov dword [esp + 0x14], eax
je 0x100255c4
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
mov dword [esp + 0x10], 0
jne 0x10025666
cmp dword [esp + 0x2c], 0
je 0x1002558f
cmp dword [esp + 0x14], 0
jne 0x1002558f
mov dword [esp + 0x28], 0
mov byte [esp + 0x460], 4
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x3c]
push ecx
push eax
mov dword [esp + 0x30], eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
mov dword [esp + 0x28], 0
jne 0x10025672
mov byte [esp + 0x460], al
lea esi, [esp + 0x28]
call fcn.10004370
jmp 0x1002558f
mov byte [esp + 0x460], 0
lea esi, [esp + 0x20]
call fcn.10004370
mov dword [esp + 0x460], 0xffffffff
lea esi, [esp + 0x10]
call fcn.10004370
mov eax, 0x80020009
jmp 0x100256b1
mov byte [esp + 0x460], 0
lea esi, [esp + 0x20]
jmp 0x10025685
call fcn.100234a0
mov edi, eax
mov byte [esp + 0x460], 0
lea esi, [esp + 0x24]
jmp 0x10025685
call fcn.100234a0
mov edi, eax
jmp 0x10025283
call fcn.100234a0
mov edi, eax
mov byte [esp + 0x460], 0
lea esi, [esp + 0x28]
call fcn.10004370
mov dword [esp + 0x460], 0xffffffff
cmp dword [esp + 0x10], 0
je 0x100256af
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], 0
mov eax, edi
mov ecx, dword [esp + 0x458]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x440]
xor ecx, esp
call fcn.100346f8
mov esp, ebp
pop ebp
ret 0x10