Function at 0x40393b
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 0x403d20
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 0x40398c
test ebx, ebx
je 0x403a12
mov ecx, dword [ebp - 4]
push edi
call fcn.00401dfa
mov esi, eax
test esi, esi
jl 0x403d73
cmp dword [ebp + 0x10], 0
je 0x403a12
and dword [ebp + 8], 0
push 0x5c
push edi
call fcn.00401d92
test eax, eax
pop ecx
pop ecx
jne 0x403d37
mov ecx, dword [ebp - 4]
push edi
call fcn.00401ee3
test eax, eax
je 0x4039db
mov eax, dword [ebp + 0xc]
push edi
lea ecx, [ebp + 8]
mov dword [ebp + 8], eax
call fcn.00402512
and dword [ebp + 8], 0
test ebx, ebx
je 0x403a0a
mov ecx, dword [ebp - 4]
push edi
call fcn.00401dfa
mov esi, eax
test esi, esi
jl 0x403d6b
mov ecx, dword [ebp - 4]
push edi
call fcn.00401f44
lea ecx, [ebp + 8]
mov esi, eax
call fcn.00401abe
jmp 0x403ba3
lea ecx, [ebp + 8]
call fcn.00401abe
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x403a38
mov ecx, dword [ebp - 4]
and dword [ebp - 0xc], eax
push edi
call fcn.00401dfa
mov esi, eax
test esi, esi
jl 0x403d73
push 0x40b340
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x403b13
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x218]
push eax
call fcn.00401dfa
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jl 0x403d73
mov ecx, dword [ebp - 4]
push edi
call fcn.00401dfa
mov esi, eax
cmp esi, ebx
jl 0x403d73
cmp byte [edi], 0x3d
jne 0x403d3f
cmp dword [ebp + 0x10], ebx
je 0x403ab6
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.0040363a
lea ecx, [ebp + 8]
mov esi, eax
mov dword [ebp + 8], ebx
call fcn.00401abe
cmp esi, ebx
jmp 0x403ba5
cmp dword [ebp + 0x14], ebx
jne 0x403b01
cmp dword [ebp - 0xc], ebx
je 0x403b01
push 0x20006
push ebx
push dword [ebp + 0xc]
lea ecx, [ebp + 8]
mov dword [ebp + 8], ebx
call fcn.00401b23
cmp eax, ebx
jne 0x403d62
lea eax, [ebp - 0x218]
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
cmp eax, ebx
je 0x403af9
cmp eax, 2
jne 0x403d62
lea ecx, [ebp + 8]
call fcn.00401abe
mov ecx, dword [ebp - 4]
push edi
call fcn.00401f44
mov esi, eax
cmp esi, ebx
jmp 0x403d2a
push 0x5c
push edi
call fcn.00401d92
test eax, eax
pop ecx
pop ecx
jne 0x403d3f
cmp dword [ebp + 0x10], eax
je 0x403bb0
mov esi, 0x2001f
push esi
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 8]
call fcn.00401b23
test eax, eax
je 0x403b76
push 0x20019
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 8]
call fcn.00401b23
test eax, eax
je 0x403b76
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.00401ad5
mov esi, eax
cmp esi, ebx
jne 0x403d46
mov ecx, dword [ebp - 4]
push edi
call fcn.00401dfa
mov esi, eax
test esi, esi
jl 0x403d73
cmp byte [edi], 0x3d
jne 0x403cef
mov ecx, dword [ebp - 4]
push edi
push 0
lea eax, [ebp - 8]
push eax
call fcn.0040363a
mov esi, eax
test esi, esi
jl 0x403d73
jmp 0x403cef
cmp dword [ebp + 0x14], 0
jne 0x403bcb
push 0x20019
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 8]
call fcn.00401b23
mov ebx, eax
jmp 0x403bce
push 2
pop ebx
test ebx, ebx
je 0x403bd9
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.00401dfa
mov esi, eax
test esi, esi
jl 0x403d73
mov ecx, dword [ebp - 4]
push edi
call fcn.00401f44
mov esi, eax
test esi, esi
jl 0x403d73
cmp byte [edi], 0x7b
jne 0x403c4b
push dword [ebp + 0x14]
mov ecx, dword [ebp - 4]
push 0
push dword [ebp - 8]
push edi
call fcn.0040393b
mov esi, eax
test esi, esi
jge 0x403c38
cmp dword [ebp + 0x14], 0
je 0x403d73
mov ecx, dword [ebp - 4]
push edi
call fcn.00401dfa
mov esi, eax
test esi, esi
jl 0x403d73
cmp ebx, 2
mov eax, dword [ebp - 0x10]
mov dword [ebp + 0x14], eax
je 0x403d2c
test ebx, ebx
je 0x403c74
test eax, eax
jne 0x403d2c
push ebx
call fcn.00401a0c
pop ecx
mov esi, eax
jmp 0x403d73
test eax, eax
je 0x403cb9
push dword [ebp - 8]
mov ecx, dword [ebp - 4]
call fcn.00401f0f
test eax, eax
je 0x403cb9
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x114]
push eax
call fcn.00401ee3
test eax, eax
je 0x403d2c
cmp dword [ebp - 0xc], 0
je 0x403d2c
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 8]
call fcn.00402512
jmp 0x403d2c
lea ecx, [ebp - 8]
call fcn.00401abe
mov ebx, eax
test ebx, ebx
jne 0x403d51
cmp dword [ebp - 0xc], eax
je 0x403d2c
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 0x403d62
lea ecx, [ebp + 8]
call fcn.00401abe
cmp dword [ebp + 0x10], 0
je 0x403d2c
cmp byte [edi], 0x7b
jne 0x403d2c
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 1
jne 0x403d2c
mov ecx, dword [ebp - 4]
push 0
push dword [ebp + 0x10]
push dword [ebp - 8]
push edi
call fcn.0040393b
mov esi, eax
test esi, esi
jl 0x403d73
mov ecx, dword [ebp - 4]
push edi
call fcn.00401dfa
mov esi, eax
test esi, esi
jl 0x403d73
cmp byte [edi], 0x7d
jne 0x40395c
jmp 0x403d73
lea ecx, [ebp + 8]
call fcn.00401abe
mov esi, 0x80020009
jmp 0x403d73
lea ecx, [ebp - 8]
call fcn.00401abe
push esi
jmp 0x403d5a
lea ecx, [ebp - 8]
call fcn.00401abe
push ebx
call fcn.00401a0c
pop ecx
jmp 0x403d7d
push eax
call fcn.00401a0c
pop ecx
mov esi, eax
lea ecx, [ebp + 8]
call fcn.00401abe
lea ecx, [ebp - 8]
call fcn.00401abe
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x10