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

Disassembly:
mov eax, 0x4136a6
call fcn.00408d30
sub esp, 0x218
and dword [ebp - 0x14], 0
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 0x14]
and dword [ebp - 4], 0
mov edi, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
jmp 0x405bc5
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push str.Delete
push edi
mov dword [ebp - 0x18], 1
call esi
mov ebx, eax
neg ebx
push str.ForceRemove
sbb ebx, ebx
push edi
inc ebx
call esi
test eax, eax
je 0x405829
test ebx, ebx
je 0x4058af
mov ecx, dword [ebp - 0x10]
push edi
call fcn.00403dbb
mov esi, eax
test esi, esi
jl 0x405c18
cmp dword [ebp + 0x10], 0
je 0x4058af
and dword [ebp + 8], 0
push 0x5c
push edi
call fcn.00403d53
test eax, eax
pop ecx
pop ecx
jne 0x405bdc
mov ecx, dword [ebp - 0x10]
push edi
call fcn.00403ea4
test eax, eax
je 0x405878
mov eax, dword [ebp + 0xc]
push edi
lea ecx, [ebp + 8]
mov dword [ebp + 8], eax
call fcn.00404413
and dword [ebp + 8], 0
test ebx, ebx
je 0x4058a7
mov ecx, dword [ebp - 0x10]
push edi
call fcn.00403dbb
mov esi, eax
test esi, esi
jl 0x405c10
mov ecx, dword [ebp - 0x10]
push edi
call fcn.00403f05
lea ecx, [ebp + 8]
mov esi, eax
call fcn.00403a75
jmp 0x405a48
lea ecx, [ebp + 8]
call fcn.00403a75
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x4058d5
mov ecx, dword [ebp - 0x10]
and dword [ebp - 0x18], eax
push edi
call fcn.00403dbb
mov esi, eax
test esi, esi
jl 0x405c18
push 0x41453c
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x4059b8
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x224]
push eax
call fcn.00403dbb
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jl 0x405c18
mov ecx, dword [ebp - 0x10]
push edi
call fcn.00403dbb
mov esi, eax
cmp esi, ebx
jl 0x405c18
cmp byte [edi], 0x3d
jne 0x405be4
cmp dword [ebp + 0x10], ebx
je 0x40595b
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x10]
mov dword [ebp + 8], eax
push edi
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp + 8]
push eax
mov byte [ebp - 4], 1
call fcn.0040548c
mov esi, eax
cmp esi, ebx
mov dword [ebp + 8], ebx
lea ecx, [ebp + 8]
jl 0x405c13
mov byte [ebp - 4], bl
jmp 0x405b8f
cmp dword [ebp + 0x14], ebx
jne 0x4059a6
cmp dword [ebp - 0x18], ebx
je 0x4059a6
push 0x20006
push ebx
push dword [ebp + 0xc]
lea ecx, [ebp + 8]
mov dword [ebp + 8], ebx
call fcn.00403ada
cmp eax, ebx
jne 0x405c07
lea eax, [ebp - 0x224]
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
cmp eax, ebx
je 0x40599e
cmp eax, 2
jne 0x405c07
lea ecx, [ebp + 8]
call fcn.00403a75
mov ecx, dword [ebp - 0x10]
push edi
call fcn.00403f05
mov esi, eax
cmp esi, ebx
jmp 0x405bcf
push 0x5c
push edi
call fcn.00403d53
test eax, eax
pop ecx
pop ecx
jne 0x405be4
cmp dword [ebp + 0x10], eax
je 0x405a55
mov esi, 0x2001f
push esi
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
call fcn.00403ada
test eax, eax
je 0x405a1b
push 0x20019
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
call fcn.00403ada
test eax, eax
je 0x405a1b
xor ebx, ebx
push ebx
push ebx
push esi
push ebx
push ebx
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
call fcn.00403a8c
mov esi, eax
cmp esi, ebx
jne 0x405beb
mov ecx, dword [ebp - 0x10]
push edi
call fcn.00403dbb
mov esi, eax
test esi, esi
jl 0x405c18
cmp byte [edi], 0x3d
jne 0x405b94
mov ecx, dword [ebp - 0x10]
push edi
push 0
lea eax, [ebp - 0x14]
push eax
call fcn.0040548c
mov esi, eax
test esi, esi
jl 0x405c18
jmp 0x405b94
cmp dword [ebp + 0x14], 0
jne 0x405a70
push 0x20019
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
call fcn.00403ada
mov ebx, eax
jmp 0x405a73
push 2
pop ebx
test ebx, ebx
je 0x405a7e
mov dword [ebp + 0x14], 1
push 0x104
push edi
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov ecx, dword [ebp - 0x10]
push edi
call fcn.00403dbb
mov esi, eax
test esi, esi
jl 0x405c18
mov ecx, dword [ebp - 0x10]
push edi
call fcn.00403f05
mov esi, eax
test esi, esi
jl 0x405c18
cmp byte [edi], 0x7b
jne 0x405af0
push dword [ebp + 0x14]
mov ecx, dword [ebp - 0x10]
push 0
push dword [ebp - 0x14]
push edi
call fcn.004057cd
mov esi, eax
test esi, esi
jge 0x405add
cmp dword [ebp + 0x14], 0
je 0x405c18
mov ecx, dword [ebp - 0x10]
push edi
call fcn.00403dbb
mov esi, eax
test esi, esi
jl 0x405c18
cmp ebx, 2
mov eax, dword [ebp - 0x1c]
mov dword [ebp + 0x14], eax
je 0x405bd1
test ebx, ebx
je 0x405b19
test eax, eax
jne 0x405bd1
push ebx
call fcn.0040387d
pop ecx
mov esi, eax
jmp 0x405c18
test eax, eax
je 0x405b5e
push dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
call fcn.00403ed0
test eax, eax
je 0x405b5e
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x120]
push eax
call fcn.00403ea4
test eax, eax
je 0x405bd1
cmp dword [ebp - 0x18], 0
je 0x405bd1
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 0x14]
call fcn.00404413
jmp 0x405bd1
lea ecx, [ebp - 0x14]
call fcn.00403a75
mov ebx, eax
test ebx, ebx
jne 0x405bf6
cmp dword [ebp - 0x18], eax
je 0x405bd1
lea eax, [ebp - 0x120]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
and dword [ebp + 8], ebx
test eax, eax
jne 0x405c07
lea ecx, [ebp + 8]
call fcn.00403a75
cmp dword [ebp + 0x10], 0
je 0x405bd1
cmp byte [edi], 0x7b
jne 0x405bd1
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 1
jne 0x405bd1
mov ecx, dword [ebp - 0x10]
push 0
push dword [ebp + 0x10]
push dword [ebp - 0x14]
push edi
call fcn.004057cd
mov esi, eax
test esi, esi
jl 0x405c18
mov ecx, dword [ebp - 0x10]
push edi
call fcn.00403dbb
mov esi, eax
test esi, esi
jl 0x405c18
cmp byte [edi], 0x7d
jne 0x4057f9
jmp 0x405c18
lea ecx, [ebp + 8]
call fcn.00403a75
mov esi, 0x80020009
jmp 0x405c18
lea ecx, [ebp - 0x14]
call fcn.00403a75
push esi
jmp 0x405bff
lea ecx, [ebp - 0x14]
call fcn.00403a75
push ebx
call fcn.0040387d
pop ecx
jmp 0x405c22
push eax
call fcn.0040387d
pop ecx
mov esi, eax
lea ecx, [ebp + 8]
call fcn.00403a75
lea ecx, [ebp - 0x14]
call fcn.00403a75
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10