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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x424378
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x22c
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 0x14]
mov edi, dword [ebp + 8]
push edi
mov dword [ebp - 0x28], eax
call fcn.00401bb0
mov esi, eax
cmp esi, ebx
jge 0x405ddd
mov dword [ebp - 4], 0xffffffff
jmp 0x40639c
cmp byte [edi], 0x7d
je 0x406380
jmp 0x405df0
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 0x405e20
test ebx, ebx
je 0x405f0e
mov ecx, dword [ebp - 0x14]
push edi
call fcn.00401bb0
mov esi, eax
test esi, esi
jl 0x406380
mov eax, dword [ebp + 0x10]
xor esi, esi
cmp eax, esi
je 0x405f0e
mov dword [ebp + 8], esi
mov byte [ebp - 4], 1
mov cl, byte [edi]
test cl, cl
mov eax, edi
je 0x405e6c
nop
cmp cl, 0x5c
je 0x405e64
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov cl, byte [eax]
test cl, cl
jne 0x405e50
jmp 0x405e6c
cmp eax, esi
jne 0x4062fd
mov ecx, dword [ebp - 0x14]
push edi
call fcn.00401cf0
test eax, eax
je 0x405e8b
mov ecx, dword [ebp + 0xc]
mov dword [ebp + 8], ecx
push edi
lea ecx, [ebp + 8]
call fcn.004033f0
mov dword [ebp + 8], esi
cmp ebx, esi
je 0x405f0a
mov ebx, dword [ebp - 0x14]
push edi
mov ecx, ebx
call fcn.00401bb0
mov esi, eax
test esi, esi
jl 0x406330
push edi
mov ecx, ebx
call fcn.00401d80
mov esi, eax
test esi, esi
jl 0x406330
mov byte [ebp - 4], 0
cmp byte [edi], 0x7b
jne 0x405efc
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 1
jne 0x405efc
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x14]
push 0
push eax
push ecx
push edi
mov ecx, ebx
call fcn.00405d90
mov esi, eax
test esi, esi
jl 0x406380
push edi
mov ecx, ebx
call fcn.00401bb0
mov esi, eax
test esi, esi
jl 0x406380
cmp byte [edi], 0x7d
jne 0x405df0
jmp 0x406380
mov byte [ebp - 4], 0
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x405f34
mov ecx, dword [ebp - 0x14]
push edi
mov dword [ebp - 0x18], eax
call fcn.00401bb0
mov esi, eax
test esi, esi
jl 0x406380
push 0x42696c
push edi
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40603e
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x238]
push edx
call fcn.00401bb0
mov esi, eax
test esi, esi
jl 0x406380
mov ecx, dword [ebp - 0x14]
push edi
call fcn.00401bb0
mov esi, eax
test esi, esi
jl 0x406380
cmp byte [edi], 0x3d
jne 0x406309
cmp dword [ebp + 0x10], ebx
je 0x405fd1
mov dword [ebp - 0x24], ebx
mov byte [ebp - 4], 2
mov eax, dword [ebp + 0xc]
push edi
lea ecx, [ebp - 0x238]
push ecx
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x24]
push edx
mov dword [ebp - 0x24], eax
call fcn.004059d0
mov esi, eax
cmp esi, ebx
mov dword [ebp - 0x24], ebx
jge 0x405eb6
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x24]
call fcn.004033d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004033d0
jmp 0x40639c
cmp dword [ebp + 0x14], ebx
jne 0x40602c
cmp dword [ebp - 0x18], ebx
je 0x40602c
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 4], 3
mov eax, dword [ebp + 0xc]
push 0x20006
push ebx
push eax
lea ecx, [ebp - 0x1c]
call fcn.00401780
cmp eax, ebx
jne 0x406339
mov esi, dword [ebp - 0x1c]
lea ecx, [ebp - 0x238]
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
cmp eax, ebx
je 0x40601a
cmp eax, 2
jne 0x406339
mov byte [ebp - 4], 0
cmp esi, ebx
je 0x40602c
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x1c], ebx
mov ecx, dword [ebp - 0x14]
push edi
call fcn.00401d80
mov esi, eax
cmp esi, ebx
jmp 0x405ef6
mov cl, byte [edi]
test cl, cl
mov eax, edi
je 0x406062
cmp cl, 0x5c
je 0x40605a
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov cl, byte [eax]
test cl, cl
jne 0x406046
jmp 0x406062
cmp eax, ebx
jne 0x406309
cmp dword [ebp + 0x10], ebx
je 0x406165
mov eax, dword [ebp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea edx, [ebp - 0x18]
push edx
push 0x2001f
push ebx
push edi
push eax
mov dword [ebp - 0x18], ebx
call esi
cmp eax, ebx
jne 0x4060ac
mov ecx, dword [ebp - 0x10]
xor eax, eax
cmp ecx, ebx
je 0x40609c
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x10], ebx
test eax, eax
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x10], ebx
je 0x40612b
jmp 0x4060af
mov ebx, dword [ebp - 0x10]
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x18]
push ecx
push 0x20019
push 0
push edi
push edx
mov dword [ebp - 0x18], 0
call esi
xor esi, esi
test eax, eax
jne 0x4060e6
cmp ebx, esi
je 0x4060dc
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x10], esi
cmp eax, esi
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x10], ebx
je 0x40612b
mov edx, dword [ebp + 0xc]
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x18]
push ecx
push esi
push 0x2001f
push esi
push esi
push esi
push edi
push edx
mov dword [ebp - 0x18], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, esi
jne 0x40634d
xor eax, eax
cmp ebx, esi
je 0x40611d
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x10], esi
cmp eax, esi
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x10], ecx
jne 0x40634d
mov ecx, dword [ebp - 0x14]
push edi
call fcn.00401bb0
mov esi, eax
test esi, esi
jl 0x406380
cmp byte [edi], 0x3d
jne 0x405eba
mov ecx, dword [ebp - 0x14]
push edi
push 0
lea edx, [ebp - 0x10]
push edx
call fcn.004059d0
mov esi, eax
test esi, esi
jl 0x406380
jmp 0x405eba
cmp dword [ebp + 0x14], ebx
jne 0x406253
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x20]
push eax
push 0x20019
push ebx
push edi
push ecx
mov dword [ebp - 0x20], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x4061a3
mov ecx, dword [ebp - 0x10]
xor eax, eax
cmp ecx, ebx
je 0x40619d
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x10], ebx
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x10], edx
cmp eax, ebx
mov dword [ebp - 0x20], eax
je 0x4061b1
mov dword [ebp + 0x14], 1
push 0x104
push edi
lea eax, [ebp - 0x134]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov ecx, dword [ebp - 0x14]
push edi
call fcn.00401bb0
mov esi, eax
test esi, esi
jl 0x406380
mov ecx, dword [ebp - 0x14]
push edi
call fcn.00401d80
mov esi, eax
test esi, esi
jl 0x406380
cmp byte [edi], 0x7b
jne 0x406223
mov ebx, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x10]
push ebx
push 0
push ecx
mov ecx, dword [ebp - 0x14]
push edi
call fcn.00405d90
mov esi, eax
test esi, esi
jge 0x406210
test ebx, ebx
je 0x406380
mov ecx, dword [ebp - 0x14]
push edi
call fcn.00401bb0
mov esi, eax
test esi, esi
jl 0x406380
mov eax, dword [ebp - 0x20]
cmp eax, 2
mov edx, dword [ebp - 0x28]
mov dword [ebp + 0x14], edx
je 0x405efc
test eax, eax
je 0x40625f
mov ecx, edx
test ecx, ecx
jne 0x405efc
push eax
call fcn.00401670
add esp, 4
mov esi, eax
jmp 0x406380
mov dword [ebp - 0x20], 2
jmp 0x4061aa
mov eax, dword [ebp - 0x28]
test eax, eax
mov ebx, dword [ebp - 0x10]
je 0x4062ac
mov ecx, dword [ebp - 0x14]
push ebx
call fcn.00401d30
test eax, eax
je 0x4062ac
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x134]
push eax
call fcn.00401cf0
test eax, eax
je 0x405efc
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x405efc
lea ecx, [ebp - 0x134]
push ecx
lea ecx, [ebp - 0x10]
call fcn.004033f0
jmp 0x405efc
test ebx, ebx
je 0x4062c6
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
mov dword [ebp - 0x10], 0
jne 0x40634d
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x405efc
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
mov byte [ebp - 4], 4
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x134]
push edx
push eax
mov dword [ebp - 0x2c], eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
cmp eax, ebx
mov dword [ebp - 0x2c], ebx
jne 0x406369
mov byte [ebp - 4], bl
jmp 0x405efc
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.004033d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004033d0
pop edi
pop esi
mov eax, 0x80020009
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
jmp 0x40637b
push eax
call fcn.00401670
add esp, 4
mov esi, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
jmp 0x40637b
push eax
call fcn.00401670
add esp, 4
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004033d0
jmp 0x40639c
push eax
call fcn.00401670
add esp, 4
mov esi, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.004033d0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x40639c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10