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

Disassembly:
sub esp, 0x228
mov eax, dword [0x42a390]
mov edx, dword [esp + 0x238]
xor eax, esp
push ebx
push esi
push edi
mov edi, dword [esp + 0x238]
mov dword [esp + 0x230], eax
mov eax, dword [esp + 0x23c]
xor ebx, ebx
push edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x24], edx
call fcn.0040c8d0
mov esi, eax
cmp esi, ebx
jge 0x40ce9a
lea ecx, [esp + 0x10]
call fcn.0040d480
mov eax, esi
jmp 0x40d43e
cmp byte [edi], 0x7d
push ebp
je 0x40d432
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push str.Delete
push edi
mov dword [esp + 0x18], 1
call esi
mov ebp, eax
neg ebp
push str.ForceRemove
sbb ebp, ebp
push edi
inc ebp
call esi
test eax, eax
je 0x40ced5
cmp ebp, ebx
je 0x40cff5
mov ecx, dword [esp + 0x1c]
push edi
call fcn.0040c8d0
mov esi, eax
cmp esi, ebx
jl 0x40d432
cmp dword [esp + 0x244], ebx
je 0x40cff5
mov dword [esp + 0x18], ebx
mov cl, byte [edi]
cmp cl, bl
mov eax, edi
je 0x40cf20
mov esi, dword [sym.imp.USER32.dll_CharNextA]
cmp cl, 0x5c
je 0x40cf18
push eax
call esi
mov cl, byte [eax]
cmp cl, bl
jne 0x40cf08
jmp 0x40cf20
cmp eax, ebx
jne 0x40d3d0
mov esi, 0x42469c
mov eax, dword [esi]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x40cf58
add esi, 4
cmp esi, str.TypeLib
jl 0x40cf25
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x18], ecx
push edi
lea ecx, [esp + 0x1c]
call fcn.0040d590
xor eax, eax
mov dword [esp + 0x18], eax
jmp 0x40cf5c
mov eax, dword [esp + 0x18]
cmp ebp, ebx
je 0x40cfea
mov ebp, dword [esp + 0x1c]
push edi
mov ecx, ebp
call fcn.0040c8d0
mov esi, eax
cmp esi, ebx
jl 0x40d3e9
push edi
mov ecx, ebp
call fcn.0040d4f0
mov esi, eax
lea ecx, [esp + 0x18]
call fcn.0040d480
cmp esi, ebx
jl 0x40d432
cmp byte [edi], 0x7b
jne 0x40cfdc
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 1
jne 0x40cfdc
mov eax, dword [esp + 0x244]
mov ecx, dword [esp + 0x14]
mov ebp, dword [esp + 0x1c]
push ebx
push eax
push ecx
push edi
mov ecx, ebp
call fcn.0040ce40
mov esi, eax
cmp esi, ebx
jl 0x40d432
push edi
mov ecx, ebp
call fcn.0040c8d0
mov esi, eax
cmp esi, ebx
jl 0x40d432
cmp byte [edi], 0x7d
jne 0x40cea4
jmp 0x40d432
cmp eax, ebx
je 0x40cff5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40d01d
mov ecx, dword [esp + 0x1c]
push edi
mov dword [esp + 0x14], ebx
call fcn.0040c8d0
mov esi, eax
cmp esi, ebx
jl 0x40d432
push 0x42478c
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40d125
mov ebp, dword [esp + 0x1c]
lea edx, [esp + 0x130]
push edx
mov ecx, ebp
call fcn.0040c8d0
mov esi, eax
cmp esi, ebx
jl 0x40d432
push edi
mov ecx, ebp
call fcn.0040c8d0
mov esi, eax
cmp esi, ebx
jl 0x40d432
cmp byte [edi], 0x3d
jne 0x40d3ef
cmp dword [esp + 0x244], ebx
je 0x40d09e
mov eax, dword [esp + 0x20]
push edi
lea ecx, [esp + 0x134]
push ecx
lea edx, [esp + 0x18]
push edx
mov ecx, ebp
mov dword [esp + 0x1c], eax
call fcn.0040d6c0
mov esi, eax
mov dword [esp + 0x10], ebx
lea ecx, [esp + 0x10]
jmp 0x40cf88
cmp dword [esp + 0x248], ebx
jne 0x40d118
cmp dword [esp + 0x10], ebx
je 0x40d118
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x10]
push eax
push 0x20006
push ebx
push ebx
push ecx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x24], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x40d405
lea ecx, [esp + 0x18]
call fcn.0040d480
cmp eax, ebx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x18], ecx
jne 0x40d405
lea edx, [esp + 0x130]
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
cmp eax, ebx
je 0x40d109
cmp eax, 2
jne 0x40d405
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x40d118
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
mov ecx, ebp
call fcn.0040d4f0
jmp 0x40cfd2
mov cl, byte [edi]
cmp cl, bl
mov eax, edi
je 0x40d14b
mov esi, dword [sym.imp.USER32.dll_CharNextA]
cmp cl, 0x5c
je 0x40d143
push eax
call esi
mov cl, byte [eax]
cmp cl, bl
jne 0x40d133
jmp 0x40d14b
cmp eax, ebx
jne 0x40d3d9
cmp dword [esp + 0x244], ebx
je 0x40d22e
mov esi, dword [esp + 0x20]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 0x10]
push eax
push 0x2001f
push ebx
push edi
push esi
mov dword [esp + 0x24], ebx
call ebp
cmp eax, ebx
jne 0x40d18e
lea ecx, [esp + 0x14]
call fcn.0040d480
cmp eax, ebx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x14], ecx
je 0x40d1fa
lea edx, [esp + 0x10]
push edx
push 0x20019
push ebx
push edi
push esi
mov dword [esp + 0x24], ebx
call ebp
cmp eax, ebx
jne 0x40d1ba
lea ecx, [esp + 0x14]
call fcn.0040d480
cmp eax, ebx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x14], ecx
je 0x40d1fa
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x14]
push eax
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push edi
push esi
mov dword [esp + 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
jne 0x40d411
lea ecx, [esp + 0x14]
call fcn.0040d480
cmp eax, ebx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x14], ecx
jne 0x40d411
mov ecx, dword [esp + 0x1c]
push edi
call fcn.0040c8d0
mov esi, eax
cmp esi, ebx
jl 0x40d432
cmp byte [edi], 0x3d
jne 0x40cf95
mov ecx, dword [esp + 0x1c]
push edi
push ebx
lea edx, [esp + 0x1c]
push edx
call fcn.0040d6c0
mov esi, eax
jmp 0x40cf8d
cmp dword [esp + 0x248], ebx
jne 0x40d329
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x18]
push eax
push 0x20019
push ebx
push edi
push ecx
mov dword [esp + 0x2c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x40d26b
lea ecx, [esp + 0x14]
call fcn.0040d480
mov edx, dword [esp + 0x18]
mov dword [esp + 0x14], edx
cmp eax, ebx
mov ebp, eax
je 0x40d27c
mov dword [esp + 0x248], 1
push 0x104
push edi
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov ecx, dword [esp + 0x1c]
push edi
call fcn.0040c8d0
mov esi, eax
cmp esi, ebx
jl 0x40d432
mov ecx, dword [esp + 0x1c]
push edi
call fcn.0040d4f0
mov esi, eax
cmp esi, ebx
jl 0x40d432
cmp byte [edi], 0x7b
jne 0x40d2f9
mov ecx, dword [esp + 0x248]
mov edx, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x20]
push ebx
push edx
push edi
call fcn.0040ce40
mov esi, eax
cmp esi, ebx
jge 0x40d2e5
cmp dword [esp + 0x248], ebx
je 0x40d432
mov ecx, dword [esp + 0x1c]
push edi
call fcn.0040c8d0
mov esi, eax
cmp esi, ebx
jl 0x40d432
cmp ebp, 2
mov eax, dword [esp + 0x24]
mov dword [esp + 0x248], eax
je 0x40cfdc
cmp ebp, ebx
je 0x40d333
cmp eax, ebx
jne 0x40cfdc
push ebp
call fcn.0040d460
add esp, 4
mov esi, eax
jmp 0x40d432
mov ebp, 2
jmp 0x40d271
cmp eax, ebx
je 0x40d38f
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x20]
call fcn.0040d4a0
test eax, eax
je 0x40d38f
mov ebp, 0x42469c
mov edi, edi
mov edx, dword [ebp]
push edx
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x40cfdc
add ebp, 4
cmp ebp, str.TypeLib
jl 0x40d350
cmp dword [esp + 0x10], ebx
je 0x40cfdc
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x18]
call fcn.0040d590
jmp 0x40cfdc
lea ecx, [esp + 0x14]
call fcn.0040d480
cmp eax, ebx
jne 0x40d411
cmp dword [esp + 0x10], ebx
je 0x40cfdc
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x2c]
push edx
push eax
mov dword [esp + 0x18], eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
cmp eax, ebx
mov dword [esp + 0x10], ebx
jne 0x40d41e
lea ecx, [esp + 0x10]
call fcn.0040d480
jmp 0x40cfdc
lea ecx, [esp + 0x18]
call fcn.0040d480
lea ecx, [esp + 0x14]
call fcn.0040d480
mov eax, 0x80020009
jmp 0x40d43d
lea ecx, [esp + 0x18]
jmp 0x40d42d
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x40d3fe
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x40d43d
push eax
call fcn.0040d460
lea ecx, [esp + 0x1c]
jmp 0x40d428
push eax
call fcn.0040d460
add esp, 4
mov esi, eax
jmp 0x40d432
push eax
call fcn.0040d460
lea ecx, [esp + 0x14]
add esp, 4
mov esi, eax
call fcn.0040d480
lea ecx, [esp + 0x14]
call fcn.0040d480
mov eax, esi
pop ebp
mov ecx, dword [esp + 0x230]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041413a
add esp, 0x228
ret 0x10