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

Disassembly:
mov eax, 0x40b058
call fcn.00404448
sub esp, 0x220
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ebx
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0x14]
push edi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x20], eax
call fcn.00402222
mov esi, eax
cmp esi, ebx
jl 0x4029f5
cmp word [edi], 0x7d
je 0x4029c7
push dword [0x40c248]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push edi
call esi
push dword [0x40c240]
mov ebx, eax
neg ebx
sbb ebx, ebx
push edi
inc ebx
call esi
test eax, eax
je 0x40256b
test ebx, ebx
je 0x40263d
mov ecx, dword [ebp - 0x14]
push edi
call fcn.00402222
mov esi, eax
test esi, esi
jl 0x4029c7
cmp dword [ebp + 0x10], 0
je 0x40263d
and dword [ebp + 8], 0
mov cx, word [edi]
mov byte [ebp - 4], 1
mov eax, edi
test cx, cx
je 0x4025b4
cmp cx, 0x5c
je 0x4025ac
push eax
call dword [sym.imp.USER32.dll_CharNextW]
mov cx, word [eax]
jmp 0x402595
test eax, eax
jne 0x4029a1
mov esi, 0x40e088
push dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4025e4
add esi, 4
cmp esi, 0x40e090
jl 0x4025b9
mov eax, dword [ebp + 0xc]
push edi
lea ecx, [ebp + 8]
mov dword [ebp + 8], eax
call fcn.00402a0f
and dword [ebp + 8], 0
test ebx, ebx
je 0x40262a
mov ecx, dword [ebp - 0x14]
push edi
call fcn.00402222
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jl 0x4029b9
mov ecx, dword [ebp - 0x14]
push edi
call fcn.00402dfd
mov esi, eax
cmp esi, ebx
jl 0x4029b9
and byte [ebp - 4], bl
cmp dword [ebp + 8], ebx
je 0x402952
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x402952
and byte [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x40263d
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [0x40c244]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x402664
mov ecx, dword [ebp - 0x14]
and dword [ebp - 0x1c], eax
push edi
call fcn.00402222
mov esi, eax
test esi, esi
jl 0x4029c7
push dword [0x40c23c]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x402710
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x22c]
push eax
call fcn.00402222
mov esi, eax
test esi, esi
jl 0x4029c7
mov ecx, dword [ebp - 0x14]
push edi
call fcn.00402222
mov esi, eax
test esi, esi
jl 0x4029c7
cmp word [edi], 0x3d
jne 0x4029ef
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
je 0x4026e9
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x14]
mov dword [ebp + 8], eax
lea eax, [ebp - 0x22c]
push edi
push eax
lea eax, [ebp + 8]
mov byte [ebp - 4], 2
push eax
call fcn.00402b07
mov esi, eax
mov dword [ebp + 8], ebx
cmp esi, ebx
jl 0x4029f5
and byte [ebp - 4], bl
jmp 0x402952
cmp dword [ebp + 0x14], ebx
jne 0x4026fe
lea eax, [ebp - 0x22c]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ecx, dword [ebp - 0x14]
push edi
call fcn.00402dfd
mov esi, eax
cmp esi, ebx
jmp 0x40299a
mov cx, word [edi]
mov eax, edi
xor ebx, ebx
cmp cx, bx
je 0x402736
cmp cx, 0x5c
je 0x40272e
push eax
call dword [sym.imp.USER32.dll_CharNextW]
mov cx, word [eax]
jmp 0x402717
cmp eax, ebx
jne 0x4029fa
cmp dword [ebp + 0x10], ebx
je 0x4027db
mov esi, 0xf003f
lea ecx, [ebp - 0x10]
push esi
push edi
push dword [ebp + 0xc]
call fcn.00401ca8
test eax, eax
je 0x4027aa
push 0x20019
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
call fcn.00401ca8
test eax, eax
je 0x4027aa
lea eax, [ebp - 0x24]
mov dword [ebp + 8], ebx
push eax
lea eax, [ebp + 8]
push eax
push ebx
push esi
push ebx
push ebx
push ebx
push edi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
jne 0x4029fa
xor eax, eax
cmp dword [ebp - 0x10], ebx
je 0x40279c
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 8]
cmp eax, ebx
mov dword [ebp - 0x10], ecx
jne 0x4029fa
mov ecx, dword [ebp - 0x14]
push edi
call fcn.00402222
mov esi, eax
test esi, esi
jl 0x4029c7
cmp word [edi], 0x3d
jne 0x402952
mov ecx, dword [ebp - 0x14]
push edi
lea eax, [ebp - 0x10]
push 0
push eax
call fcn.00402b07
jmp 0x40294c
cmp dword [ebp + 0x14], ebx
jne 0x4027fc
push 0x20019
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
call fcn.00401ca8
test eax, eax
je 0x4027fc
mov dword [ebp + 0x14], 1
cmp dword [ebp - 0x18], ebx
jne 0x40280e
mov eax, 0x208
call fcn.004048b0
mov dword [ebp - 0x18], esp
push 0x104
push edi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
cmp dword [ebp + 0x14], ebx
jne 0x402844
push dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
call fcn.00402d50
test eax, eax
jne 0x402844
push dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
call fcn.00402d85
test eax, eax
je 0x402904
mov ecx, dword [ebp - 0x14]
push edi
call fcn.00402222
mov esi, eax
test esi, esi
jl 0x4029c7
mov ecx, dword [ebp - 0x14]
push edi
call fcn.00402dfd
mov esi, eax
test esi, esi
jl 0x4029c7
cmp word [edi], 0x7b
jne 0x4028b8
push dword [ebp + 0x14]
mov ecx, dword [ebp - 0x14]
push 0
push dword [ebp - 0x10]
push edi
call fcn.004024f5
mov esi, eax
test esi, esi
jl 0x4029c7
cmp dword [ebp + 0x14], 0
je 0x4028c2
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x14]
push edi
mov dword [ebp + 0x14], eax
call fcn.00402222
mov esi, eax
test esi, esi
jl 0x4029c7
mov ecx, dword [ebp - 0x14]
push edi
call fcn.00402dfd
jmp 0x402996
cmp dword [ebp + 0x14], 0
jne 0x402536
push dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
call fcn.00402d50
test eax, eax
je 0x402904
mov esi, 0x40e088
push dword [esi]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40298d
add esi, 4
cmp esi, 0x40e090
jl 0x4028d6
push dword [ebp - 0x18]
lea ecx, [ebp - 0x10]
call fcn.00402a0f
jmp 0x40298d
xor esi, esi
cmp dword [ebp - 0x10], esi
je 0x40291f
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, esi
mov dword [ebp - 0x10], esi
jne 0x402a08
cmp dword [ebp - 0x1c], esi
je 0x402930
push dword [ebp - 0x18]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ecx, dword [ebp - 0x14]
push edi
call fcn.00402222
mov esi, eax
test esi, esi
jl 0x4029c7
mov ecx, dword [ebp - 0x14]
push edi
call fcn.00402dfd
mov esi, eax
test esi, esi
jl 0x4029c7
cmp dword [ebp + 0x10], 0
je 0x402536
cmp word [edi], 0x7b
jne 0x402536
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x402536
push 0
mov ecx, dword [ebp - 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x10]
push edi
call fcn.004024f5
mov esi, eax
test esi, esi
jl 0x4029c7
mov ecx, dword [ebp - 0x14]
push edi
call fcn.00402222
mov esi, eax
test esi, esi
jl 0x4029c7
jmp 0x402536
xor esi, esi
cmp dword [ebp + 8], esi
je 0x4029b4
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp + 8], esi
cmp dword [ebp - 0x10], esi
jmp 0x4029fd
cmp dword [ebp + 8], ebx
je 0x4029c7
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x10], 0
je 0x4029d6
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x238]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 0x10
cmp dword [ebp - 0x10], 0
jmp 0x4029fd
cmp dword [ebp - 0x10], ebx
jmp 0x4029cb
cmp dword [ebp - 0x10], ebx
je 0x402a08
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x4029d8