Function at 0x4038fc
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 0x403ce1
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 0x40394d
test ebx, ebx
je 0x4039d3
mov ecx, dword [ebp - 4]
push edi
call fcn.00401dda
mov esi, eax
test esi, esi
jl 0x403d34
cmp dword [ebp + 0x10], 0
je 0x4039d3
and dword [ebp + 8], 0
push 0x5c
push edi
call fcn.00401d72
test eax, eax
pop ecx
pop ecx
jne 0x403cf8
mov ecx, dword [ebp - 4]
push edi
call fcn.00401ec3
test eax, eax
je 0x40399c
mov eax, dword [ebp + 0xc]
push edi
lea ecx, [ebp + 8]
mov dword [ebp + 8], eax
call fcn.004024f0
and dword [ebp + 8], 0
test ebx, ebx
je 0x4039cb
mov ecx, dword [ebp - 4]
push edi
call fcn.00401dda
mov esi, eax
test esi, esi
jl 0x403d2c
mov ecx, dword [ebp - 4]
push edi
call fcn.00401f24
lea ecx, [ebp + 8]
mov esi, eax
call fcn.00401a9e
jmp 0x403b64
lea ecx, [ebp + 8]
call fcn.00401a9e
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x4039f9
mov ecx, dword [ebp - 4]
and dword [ebp - 0xc], eax
push edi
call fcn.00401dda
mov esi, eax
test esi, esi
jl 0x403d34
push 0x40b340
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x403ad4
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x218]
push eax
call fcn.00401dda
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jl 0x403d34
mov ecx, dword [ebp - 4]
push edi
call fcn.00401dda
mov esi, eax
cmp esi, ebx
jl 0x403d34
cmp byte [edi], 0x3d
jne 0x403d00
cmp dword [ebp + 0x10], ebx
je 0x403a77
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.004035f6
lea ecx, [ebp + 8]
mov esi, eax
mov dword [ebp + 8], ebx
call fcn.00401a9e
cmp esi, ebx
jmp 0x403b66
cmp dword [ebp + 0x14], ebx
jne 0x403ac2
cmp dword [ebp - 0xc], ebx
je 0x403ac2
push 0x20006
push ebx
push dword [ebp + 0xc]
lea ecx, [ebp + 8]
mov dword [ebp + 8], ebx
call fcn.00401b03
cmp eax, ebx
jne 0x403d23
lea eax, [ebp - 0x218]
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
cmp eax, ebx
je 0x403aba
cmp eax, 2
jne 0x403d23
lea ecx, [ebp + 8]
call fcn.00401a9e
mov ecx, dword [ebp - 4]
push edi
call fcn.00401f24
mov esi, eax
cmp esi, ebx
jmp 0x403ceb
push 0x5c
push edi
call fcn.00401d72
test eax, eax
pop ecx
pop ecx
jne 0x403d00
cmp dword [ebp + 0x10], eax
je 0x403b71
mov esi, 0x2001f
push esi
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 8]
call fcn.00401b03
test eax, eax
je 0x403b37
push 0x20019
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 8]
call fcn.00401b03
test eax, eax
je 0x403b37
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.00401ab5
mov esi, eax
cmp esi, ebx
jne 0x403d07
mov ecx, dword [ebp - 4]
push edi
call fcn.00401dda
mov esi, eax
test esi, esi
jl 0x403d34
cmp byte [edi], 0x3d
jne 0x403cb0
mov ecx, dword [ebp - 4]
push edi
push 0
lea eax, [ebp - 8]
push eax
call fcn.004035f6
mov esi, eax
test esi, esi
jl 0x403d34
jmp 0x403cb0
cmp dword [ebp + 0x14], 0
jne 0x403b8c
push 0x20019
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 8]
call fcn.00401b03
mov ebx, eax
jmp 0x403b8f
push 2
pop ebx
test ebx, ebx
je 0x403b9a
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.00401dda
mov esi, eax
test esi, esi
jl 0x403d34
mov ecx, dword [ebp - 4]
push edi
call fcn.00401f24
mov esi, eax
test esi, esi
jl 0x403d34
cmp byte [edi], 0x7b
jne 0x403c0c
push dword [ebp + 0x14]
mov ecx, dword [ebp - 4]
push 0
push dword [ebp - 8]
push edi
call fcn.004038fc
mov esi, eax
test esi, esi
jge 0x403bf9
cmp dword [ebp + 0x14], 0
je 0x403d34
mov ecx, dword [ebp - 4]
push edi
call fcn.00401dda
mov esi, eax
test esi, esi
jl 0x403d34
cmp ebx, 2
mov eax, dword [ebp - 0x10]
mov dword [ebp + 0x14], eax
je 0x403ced
test ebx, ebx
je 0x403c35
test eax, eax
jne 0x403ced
push ebx
call fcn.004019f7
pop ecx
mov esi, eax
jmp 0x403d34
test eax, eax
je 0x403c7a
push dword [ebp - 8]
mov ecx, dword [ebp - 4]
call fcn.00401eef
test eax, eax
je 0x403c7a
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x114]
push eax
call fcn.00401ec3
test eax, eax
je 0x403ced
cmp dword [ebp - 0xc], 0
je 0x403ced
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 8]
call fcn.004024f0
jmp 0x403ced
lea ecx, [ebp - 8]
call fcn.00401a9e
mov ebx, eax
test ebx, ebx
jne 0x403d12
cmp dword [ebp - 0xc], eax
je 0x403ced
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 0x403d23
lea ecx, [ebp + 8]
call fcn.00401a9e
cmp dword [ebp + 0x10], 0
je 0x403ced
cmp byte [edi], 0x7b
jne 0x403ced
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 1
jne 0x403ced
mov ecx, dword [ebp - 4]
push 0
push dword [ebp + 0x10]
push dword [ebp - 8]
push edi
call fcn.004038fc
mov esi, eax
test esi, esi
jl 0x403d34
mov ecx, dword [ebp - 4]
push edi
call fcn.00401dda
mov esi, eax
test esi, esi
jl 0x403d34
cmp byte [edi], 0x7d
jne 0x40391d
jmp 0x403d34
lea ecx, [ebp + 8]
call fcn.00401a9e
mov esi, 0x80020009
jmp 0x403d34
lea ecx, [ebp - 8]
call fcn.00401a9e
push esi
jmp 0x403d1b
lea ecx, [ebp - 8]
call fcn.00401a9e
push ebx
call fcn.004019f7
pop ecx
jmp 0x403d3e
push eax
call fcn.004019f7
pop ecx
mov esi, eax
lea ecx, [ebp + 8]
call fcn.00401a9e
lea ecx, [ebp - 8]
call fcn.00401a9e
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x10