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

Disassembly:
mov eax, 0x419e40
call fcn.0040bcb8
sub esp, 0x11c
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.00401efe
mov esi, eax
cmp esi, ebx
jl 0x402747
cmp byte [edi], 0x7d
je 0x402719
push dword [0x41b2e0]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push edi
call esi
push dword [0x41b2d8]
mov ebx, eax
neg ebx
sbb ebx, ebx
push edi
inc ebx
call esi
test eax, eax
je 0x4022c5
test ebx, ebx
je 0x402393
mov ecx, dword [ebp - 0x14]
push edi
call fcn.00401efe
mov esi, eax
test esi, esi
jl 0x402719
cmp dword [ebp + 0x10], 0
je 0x402393
and dword [ebp + 8], 0
mov cl, byte [edi]
mov byte [ebp - 4], 1
mov eax, edi
test cl, cl
je 0x40230a
cmp cl, 0x5c
je 0x402302
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov cl, byte [eax]
jmp 0x4022ee
test eax, eax
jne 0x4026f3
mov esi, 0x41e060
push dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x40233a
add esi, 4
cmp esi, str.TYPELIB
jl 0x40230f
mov eax, dword [ebp + 0xc]
push edi
lea ecx, [ebp + 8]
mov dword [ebp + 8], eax
call fcn.00402761
and dword [ebp + 8], 0
test ebx, ebx
je 0x402380
mov ecx, dword [ebp - 0x14]
push edi
call fcn.00401efe
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jl 0x40270b
mov ecx, dword [ebp - 0x14]
push edi
call fcn.00402b7c
mov esi, eax
cmp esi, ebx
jl 0x40270b
and byte [ebp - 4], bl
cmp dword [ebp + 8], ebx
je 0x4026a5
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4026a5
and byte [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x402393
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [0x41b2dc]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x4023ba
mov ecx, dword [ebp - 0x14]
and dword [ebp - 0x1c], eax
push edi
call fcn.00401efe
mov esi, eax
test esi, esi
jl 0x402719
push dword [0x41b2d4]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x402465
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x128]
push eax
call fcn.00401efe
mov esi, eax
test esi, esi
jl 0x402719
mov ecx, dword [ebp - 0x14]
push edi
call fcn.00401efe
mov esi, eax
test esi, esi
jl 0x402719
cmp byte [edi], 0x3d
jne 0x402741
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
je 0x40243e
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x14]
mov dword [ebp + 8], eax
lea eax, [ebp - 0x128]
push edi
push eax
lea eax, [ebp + 8]
mov byte [ebp - 4], 2
push eax
call fcn.00402859
mov esi, eax
mov dword [ebp + 8], ebx
cmp esi, ebx
jl 0x402747
and byte [ebp - 4], bl
jmp 0x4026a5
cmp dword [ebp + 0x14], ebx
jne 0x402453
lea eax, [ebp - 0x128]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov ecx, dword [ebp - 0x14]
push edi
call fcn.00402b7c
mov esi, eax
cmp esi, ebx
jmp 0x4026ec
mov cl, byte [edi]
mov eax, edi
test cl, cl
je 0x402489
cmp cl, 0x5c
je 0x40247d
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov cl, byte [eax]
jmp 0x402469
xor ebx, ebx
cmp eax, ebx
jne 0x40274c
jmp 0x40248b
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
je 0x40252f
mov esi, 0xf003f
lea ecx, [ebp - 0x10]
push esi
push edi
push dword [ebp + 0xc]
call fcn.00401873
test eax, eax
je 0x4024ff
push 0x20019
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
call fcn.00401873
test eax, eax
je 0x4024ff
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_RegCreateKeyExA]
cmp eax, ebx
jne 0x40274c
xor eax, eax
cmp dword [ebp - 0x10], ebx
je 0x4024f1
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 0x40274c
mov ecx, dword [ebp - 0x14]
push edi
call fcn.00401efe
mov esi, eax
test esi, esi
jl 0x402719
cmp byte [edi], 0x3d
jne 0x4026a5
mov ecx, dword [ebp - 0x14]
push edi
lea eax, [ebp - 0x10]
push 0
push eax
call fcn.00402859
jmp 0x40269f
cmp dword [ebp + 0x14], ebx
jne 0x402550
push 0x20019
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
call fcn.00401873
test eax, eax
je 0x402550
mov dword [ebp + 0x14], 1
cmp dword [ebp - 0x18], ebx
jne 0x402562
mov eax, 0x104
call fcn.0040c100
mov dword [ebp - 0x18], esp
push 0x104
push edi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
cmp dword [ebp + 0x14], ebx
jne 0x402598
push dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
call fcn.00402ad0
test eax, eax
jne 0x402598
push dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
call fcn.00402b05
test eax, eax
je 0x402657
mov ecx, dword [ebp - 0x14]
push edi
call fcn.00401efe
mov esi, eax
test esi, esi
jl 0x402719
mov ecx, dword [ebp - 0x14]
push edi
call fcn.00402b7c
mov esi, eax
test esi, esi
jl 0x402719
cmp byte [edi], 0x7b
jne 0x40260b
push dword [ebp + 0x14]
mov ecx, dword [ebp - 0x14]
push 0
push dword [ebp - 0x10]
push edi
call fcn.00402250
mov esi, eax
test esi, esi
jl 0x402719
cmp dword [ebp + 0x14], 0
je 0x402615
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x14]
push edi
mov dword [ebp + 0x14], eax
call fcn.00401efe
mov esi, eax
test esi, esi
jl 0x402719
mov ecx, dword [ebp - 0x14]
push edi
call fcn.00402b7c
jmp 0x4026e8
cmp dword [ebp + 0x14], 0
jne 0x402291
push dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
call fcn.00402ad0
test eax, eax
je 0x402657
mov esi, 0x41e060
push dword [esi]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x4026df
add esi, 4
cmp esi, str.TYPELIB
jl 0x402629
push dword [ebp - 0x18]
lea ecx, [ebp - 0x10]
call fcn.00402761
jmp 0x4026df
xor esi, esi
cmp dword [ebp - 0x10], esi
je 0x402672
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, esi
mov dword [ebp - 0x10], esi
jne 0x40275a
cmp dword [ebp - 0x1c], esi
je 0x402683
push dword [ebp - 0x18]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov ecx, dword [ebp - 0x14]
push edi
call fcn.00401efe
mov esi, eax
test esi, esi
jl 0x402719
mov ecx, dword [ebp - 0x14]
push edi
call fcn.00402b7c
mov esi, eax
test esi, esi
jl 0x402719
cmp dword [ebp + 0x10], 0
je 0x402291
cmp byte [edi], 0x7b
jne 0x402291
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 1
jne 0x402291
push 0
mov ecx, dword [ebp - 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x10]
push edi
call fcn.00402250
mov esi, eax
test esi, esi
jl 0x402719
mov ecx, dword [ebp - 0x14]
push edi
call fcn.00401efe
mov esi, eax
test esi, esi
jl 0x402719
jmp 0x402291
xor esi, esi
cmp dword [ebp + 8], esi
je 0x402706
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp + 8], esi
cmp dword [ebp - 0x10], esi
jmp 0x40274f
cmp dword [ebp + 8], ebx
je 0x402719
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x10], 0
je 0x402728
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x134]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 0x10
cmp dword [ebp - 0x10], 0
jmp 0x40274f
cmp dword [ebp - 0x10], ebx
jmp 0x40271d
cmp dword [ebp - 0x10], ebx
je 0x40275a
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x40272a