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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x10140b8]
xor eax, dword [ebp + 4]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x1c], eax
call fcn.01004d5c
jmp 0x1005ea4
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push 0x100143c
push edi
call esi
mov ebx, eax
neg ebx
push 0x1001450
sbb ebx, ebx
push edi
inc ebx
call esi
test eax, eax
je 0x1005d2e
test ebx, ebx
je 0x1005db1
mov ecx, dword [ebp - 8]
push edi
call fcn.01004d5c
mov esi, eax
test esi, esi
jl 0x1006114
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x1005db1
push 0x5c
push edi
mov dword [ebp + 8], esi
call fcn.01004cf2
test eax, eax
jne 0x1006107
mov ecx, dword [ebp - 8]
push edi
call fcn.01004e45
test eax, eax
je 0x1005d7a
mov eax, dword [ebp + 0xc]
push edi
lea ecx, [ebp + 8]
mov dword [ebp + 8], eax
call fcn.0100547e
mov dword [ebp + 8], esi
cmp ebx, esi
je 0x1005da9
mov ecx, dword [ebp - 8]
push edi
call fcn.01004d5c
mov esi, eax
test esi, esi
jl 0x100614e
mov ecx, dword [ebp - 8]
push edi
call fcn.01004f31
lea ecx, [ebp + 8]
mov esi, eax
call fcn.0100495e
jmp 0x10060bb
lea ecx, [ebp + 8]
call fcn.0100495e
push 0x1001444
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x1005dd7
mov ecx, dword [ebp - 8]
and dword [ebp - 0x14], eax
push edi
call fcn.01004d5c
mov esi, eax
test esi, esi
jl 0x1006114
push 0x100145c
push edi
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x1005ead
mov ecx, dword [ebp - 8]
lea eax, [ebp - 0x120]
push eax
call fcn.01004d5c
mov esi, eax
cmp esi, ebx
jl 0x1006114
mov ecx, dword [ebp - 8]
push edi
call fcn.01004d5c
mov esi, eax
cmp esi, ebx
jl 0x1006114
cmp byte [edi], 0x3d
jne 0x100610f
cmp dword [ebp + 0x10], ebx
je 0x1005e55
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
mov dword [ebp + 8], eax
push edi
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp + 8]
push eax
call fcn.0100596c
lea ecx, [ebp + 8]
mov esi, eax
mov dword [ebp + 8], ebx
call fcn.0100495e
cmp esi, ebx
jmp 0x10060bd
cmp dword [ebp + 0x14], ebx
jne 0x1005e9b
push 0x20006
push ebx
push dword [ebp + 0xc]
lea ecx, [ebp + 8]
mov dword [ebp + 8], ebx
call fcn.010049c3
cmp eax, ebx
jne 0x1006140
lea eax, [ebp - 0x120]
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
cmp eax, ebx
je 0x1005e93
cmp eax, 2
jne 0x100613e
lea ecx, [ebp + 8]
call fcn.0100495e
mov ecx, dword [ebp - 8]
push edi
call fcn.01004f31
mov esi, eax
cmp esi, ebx
jmp 0x10060fa
push 0x5c
push edi
call fcn.01004cf2
test eax, eax
jne 0x100610f
cmp dword [ebp + 0x10], ebx
je 0x1005f36
mov esi, 0xf003f
push esi
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0xc]
call fcn.010049c3
test eax, eax
je 0x1005f06
push 0x20019
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0xc]
call fcn.010049c3
test eax, eax
je 0x1005f06
push ebx
push ebx
push esi
push ebx
push ebx
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0xc]
call fcn.01004975
test eax, eax
jne 0x100610f
mov ecx, dword [ebp - 8]
push edi
call fcn.01004d5c
mov esi, eax
test esi, esi
jl 0x1006114
cmp byte [edi], 0x3d
jne 0x10060bf
mov ecx, dword [ebp - 8]
push edi
push 0
lea eax, [ebp - 0xc]
push eax
call fcn.0100596c
jmp 0x10060b9
cmp dword [ebp + 0x14], ebx
jne 0x1005f57
push 0x20019
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0xc]
call fcn.010049c3
test eax, eax
je 0x1005f57
mov dword [ebp + 0x14], 1
cmp dword [ebp - 0x10], ebx
mov esi, 0x104
jne 0x1005f8c
push esi
call fcn.010047c8
test al, al
je 0x1005f77
mov eax, esi
call fcn.01007230
mov dword [ebp - 0x10], esp
jmp 0x1005f83
push esi
lea ecx, [ebp - 0x18]
call fcn.010055e7
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], ebx
je 0x1006158
push esi
push edi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
cmp dword [ebp + 0x14], ebx
jne 0x1005fbe
push dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
call fcn.01004e71
test eax, eax
jne 0x1005fbe
push dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
call fcn.01004ea6
test eax, eax
je 0x1006074
mov ebx, dword [ebp - 8]
push edi
mov ecx, ebx
call fcn.01004d5c
mov esi, eax
test esi, esi
jl 0x1006114
push edi
mov ecx, ebx
call fcn.01004f31
mov esi, eax
test esi, esi
jl 0x1006114
cmp byte [edi], 0x7b
jne 0x100602f
push dword [ebp + 0x14]
mov ecx, ebx
push 0
push dword [ebp - 0xc]
push edi
call fcn.01005cc5
mov esi, eax
test esi, esi
jl 0x1006114
cmp dword [ebp + 0x14], 0
je 0x100603c
mov eax, dword [ebp - 0x1c]
push edi
mov ecx, ebx
mov dword [ebp + 0x14], eax
call fcn.01004d5c
mov esi, eax
test esi, esi
jl 0x1006114
push edi
mov ecx, ebx
call fcn.01004f31
jmp 0x10060f6
cmp dword [ebp + 0x14], 0
jne 0x10060fc
mov ebx, dword [ebp - 8]
push dword [ebp - 0xc]
mov ecx, ebx
call fcn.01004e71
test eax, eax
je 0x100606a
push dword [ebp - 0x10]
mov ecx, ebx
call fcn.01004e45
test eax, eax
je 0x1006063
push dword [ebp - 0x10]
lea ecx, [ebp - 0xc]
call fcn.0100547e
mov ecx, ebx
jmp 0x10060f0
cmp dword [ebp + 0x14], 0
jne 0x10060fc
lea ecx, [ebp - 0xc]
call fcn.0100495e
test eax, eax
jne 0x100610f
cmp dword [ebp - 0x14], eax
je 0x10060a1
push dword [ebp - 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
and dword [ebp + 8], 0
lea ecx, [ebp + 8]
call fcn.0100495e
mov ecx, dword [ebp - 8]
push edi
call fcn.01004d5c
mov esi, eax
test esi, esi
jl 0x1006114
mov ecx, dword [ebp - 8]
push edi
call fcn.01004f31
mov esi, eax
test esi, esi
jl 0x1006114
cmp dword [ebp + 0x10], 0
je 0x10060fc
cmp byte [edi], 0x7b
jne 0x10060fc
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 1
jne 0x10060fc
mov ecx, dword [ebp - 8]
push 0
push dword [ebp + 0x10]
push dword [ebp - 0xc]
push edi
call fcn.01005cc5
mov esi, eax
test esi, esi
jl 0x1006114
mov ecx, dword [ebp - 8]
push edi
call fcn.01004d5c
mov esi, eax
test esi, esi
jl 0x1006114
cmp byte [edi], 0x7d
jne 0x1005d05
jmp 0x1006114
lea ecx, [ebp + 8]
call fcn.0100495e
mov esi, 0x80020009
lea ecx, [ebp - 0xc]
call fcn.0100495e
lea ecx, [ebp - 0x18]
call fcn.0100535e
mov eax, esi
lea esp, [ebp - 0x12c]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.0100701d
pop edi
pop esi
pop ebx
leave
ret 0x10
cmp eax, ebx
jle 0x100614c
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
lea ecx, [ebp + 8]
call fcn.0100495e
jmp 0x1006114
mov esi, 0x8007000e
jmp 0x1006114