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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [ebp + 0x14]
and dword [ebp - 8], 0
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], ecx
mov dword [ebp - 0x10], eax
jmp 0x403fbb
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push str.Delete
push edi
mov dword [ebp - 0xc], 1
call esi
mov ebx, eax
neg ebx
push str.ForceRemove
sbb ebx, ebx
push edi
inc ebx
call esi
test eax, eax
je 0x403c27
test ebx, ebx
je 0x403cad
mov ecx, dword [ebp - 4]
push edi
call fcn.00402095
mov esi, eax
test esi, esi
jl 0x40400e
cmp dword [ebp + 0x10], 0
je 0x403cad
and dword [ebp + 8], 0
push 0x5c
push edi
call fcn.0040202d
test eax, eax
pop ecx
pop ecx
jne 0x403fd2
mov ecx, dword [ebp - 4]
push edi
call fcn.0040217e
test eax, eax
je 0x403c76
mov eax, dword [ebp + 0xc]
push edi
lea ecx, [ebp + 8]
mov dword [ebp + 8], eax
call fcn.004027ad
and dword [ebp + 8], 0
test ebx, ebx
je 0x403ca5
mov ecx, dword [ebp - 4]
push edi
call fcn.00402095
mov esi, eax
test esi, esi
jl 0x404006
mov ecx, dword [ebp - 4]
push edi
call fcn.004021df
lea ecx, [ebp + 8]
mov esi, eax
call fcn.00401d59
jmp 0x403e3e
lea ecx, [ebp + 8]
call fcn.00401d59
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x403cd3
mov ecx, dword [ebp - 4]
and dword [ebp - 0xc], eax
push edi
call fcn.00402095
mov esi, eax
test esi, esi
jl 0x40400e
push 0x40c328
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x403dae
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x218]
push eax
call fcn.00402095
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jl 0x40400e
mov ecx, dword [ebp - 4]
push edi
call fcn.00402095
mov esi, eax
cmp esi, ebx
jl 0x40400e
cmp byte [edi], 0x3d
jne 0x403fda
cmp dword [ebp + 0x10], ebx
je 0x403d51
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
mov dword [ebp + 8], eax
push edi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp + 8]
push eax
call fcn.004038d5
lea ecx, [ebp + 8]
mov esi, eax
mov dword [ebp + 8], ebx
call fcn.00401d59
cmp esi, ebx
jmp 0x403e40
cmp dword [ebp + 0x14], ebx
jne 0x403d9c
cmp dword [ebp - 0xc], ebx
je 0x403d9c
push 0x20006
push ebx
push dword [ebp + 0xc]
lea ecx, [ebp + 8]
mov dword [ebp + 8], ebx
call fcn.00401dbe
cmp eax, ebx
jne 0x403ffd
lea eax, [ebp - 0x218]
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
cmp eax, ebx
je 0x403d94
cmp eax, 2
jne 0x403ffd
lea ecx, [ebp + 8]
call fcn.00401d59
mov ecx, dword [ebp - 4]
push edi
call fcn.004021df
mov esi, eax
cmp esi, ebx
jmp 0x403fc5
push 0x5c
push edi
call fcn.0040202d
test eax, eax
pop ecx
pop ecx
jne 0x403fda
cmp dword [ebp + 0x10], eax
je 0x403e4b
mov esi, 0x2001f
push esi
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 8]
call fcn.00401dbe
test eax, eax
je 0x403e11
push 0x20019
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 8]
call fcn.00401dbe
test eax, eax
je 0x403e11
xor ebx, ebx
push ebx
push ebx
push esi
push ebx
push ebx
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 8]
call fcn.00401d70
mov esi, eax
cmp esi, ebx
jne 0x403fe1
mov ecx, dword [ebp - 4]
push edi
call fcn.00402095
mov esi, eax
test esi, esi
jl 0x40400e
cmp byte [edi], 0x3d
jne 0x403f8a
mov ecx, dword [ebp - 4]
push edi
push 0
lea eax, [ebp - 8]
push eax
call fcn.004038d5
mov esi, eax
test esi, esi
jl 0x40400e
jmp 0x403f8a
cmp dword [ebp + 0x14], 0
jne 0x403e66
push 0x20019
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 8]
call fcn.00401dbe
mov ebx, eax
jmp 0x403e69
push 2
pop ebx
test ebx, ebx
je 0x403e74
mov dword [ebp + 0x14], 1
push 0x104
push edi
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov ecx, dword [ebp - 4]
push edi
call fcn.00402095
mov esi, eax
test esi, esi
jl 0x40400e
mov ecx, dword [ebp - 4]
push edi
call fcn.004021df
mov esi, eax
test esi, esi
jl 0x40400e
cmp byte [edi], 0x7b
jne 0x403ee6
push dword [ebp + 0x14]
mov ecx, dword [ebp - 4]
push 0
push dword [ebp - 8]
push edi
call fcn.00403bd6
mov esi, eax
test esi, esi
jge 0x403ed3
cmp dword [ebp + 0x14], 0
je 0x40400e
mov ecx, dword [ebp - 4]
push edi
call fcn.00402095
mov esi, eax
test esi, esi
jl 0x40400e
cmp ebx, 2
mov eax, dword [ebp - 0x10]
mov dword [ebp + 0x14], eax
je 0x403fc7
test ebx, ebx
je 0x403f0f
test eax, eax
jne 0x403fc7
push ebx
call fcn.00401ca7
pop ecx
mov esi, eax
jmp 0x40400e
test eax, eax
je 0x403f54
push dword [ebp - 8]
mov ecx, dword [ebp - 4]
call fcn.004021aa
test eax, eax
je 0x403f54
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x114]
push eax
call fcn.0040217e
test eax, eax
je 0x403fc7
cmp dword [ebp - 0xc], 0
je 0x403fc7
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 8]
call fcn.004027ad
jmp 0x403fc7
lea ecx, [ebp - 8]
call fcn.00401d59
mov ebx, eax
test ebx, ebx
jne 0x403fec
cmp dword [ebp - 0xc], eax
je 0x403fc7
lea eax, [ebp - 0x114]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
and dword [ebp + 8], ebx
test eax, eax
jne 0x403ffd
lea ecx, [ebp + 8]
call fcn.00401d59
cmp dword [ebp + 0x10], 0
je 0x403fc7
cmp byte [edi], 0x7b
jne 0x403fc7
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 1
jne 0x403fc7
mov ecx, dword [ebp - 4]
push 0
push dword [ebp + 0x10]
push dword [ebp - 8]
push edi
call fcn.00403bd6
mov esi, eax
test esi, esi
jl 0x40400e
mov ecx, dword [ebp - 4]
push edi
call fcn.00402095
mov esi, eax
test esi, esi
jl 0x40400e
cmp byte [edi], 0x7d
jne 0x403bf7
jmp 0x40400e
lea ecx, [ebp + 8]
call fcn.00401d59
mov esi, 0x80020009
jmp 0x40400e
lea ecx, [ebp - 8]
call fcn.00401d59
push esi
jmp 0x403ff5
lea ecx, [ebp - 8]
call fcn.00401d59
push ebx
call fcn.00401ca7
pop ecx
jmp 0x404018
push eax
call fcn.00401ca7
pop ecx
mov esi, eax
lea ecx, [ebp + 8]
call fcn.00401d59
lea ecx, [ebp - 8]
call fcn.00401d59
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x10