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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [ebp + 0x14]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x14], eax
call fcn.1005ace7
mov esi, eax
cmp esi, ebx
jl 0x1005b4ec
cmp byte [edi], 0x7d
je 0x1005b4c8
push dword [0x100b7188]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push edi
call esi
push dword [0x100b7180]
mov ebx, eax
neg ebx
sbb ebx, ebx
push edi
inc ebx
call esi
test eax, eax
je 0x1005b086
test ebx, ebx
je 0x1005b149
mov ecx, dword [ebp - 8]
push edi
call fcn.1005ace7
mov esi, eax
test esi, esi
jl 0x1005b4c8
cmp dword [ebp + 0x10], 0
je 0x1005b149
and dword [ebp + 8], 0
mov cl, byte [edi]
mov eax, edi
test cl, cl
je 0x1005b0c7
cmp cl, 0x5c
je 0x1005b0bf
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov cl, byte [eax]
jmp 0x1005b0ab
test eax, eax
jne 0x1005b4a2
mov esi, section..data
push dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x1005b0f7
add esi, 4
cmp esi, str.TYPELIB
jl 0x1005b0cc
mov eax, dword [ebp + 0xc]
push edi
lea ecx, [ebp + 8]
mov dword [ebp + 8], eax
call fcn.1005b544
and dword [ebp + 8], 0
test ebx, ebx
je 0x1005b13a
mov ecx, dword [ebp - 8]
push edi
call fcn.1005ace7
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jl 0x1005b4ba
mov ecx, dword [ebp - 8]
push edi
call fcn.1005b94b
mov esi, eax
cmp esi, ebx
jl 0x1005b4ba
cmp dword [ebp + 8], ebx
je 0x1005b454
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1005b454
cmp dword [ebp + 8], 0
je 0x1005b149
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [0x100b7184]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x1005b170
mov ecx, dword [ebp - 8]
and dword [ebp - 0x10], eax
push edi
call fcn.1005ace7
mov esi, eax
test esi, esi
jl 0x1005b4c8
push dword [0x100b717c]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x1005b214
mov ecx, dword [ebp - 8]
lea eax, [ebp - 0x11c]
push eax
call fcn.1005ace7
mov esi, eax
test esi, esi
jl 0x1005b4c8
mov ecx, dword [ebp - 8]
push edi
call fcn.1005ace7
mov esi, eax
test esi, esi
jl 0x1005b4c8
cmp byte [edi], 0x3d
jne 0x1005b4e6
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
je 0x1005b1ed
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
mov dword [ebp + 8], eax
lea eax, [ebp - 0x11c]
push edi
push eax
lea eax, [ebp + 8]
push eax
call fcn.1005b628
mov esi, eax
mov dword [ebp + 8], ebx
cmp esi, ebx
jl 0x1005b4ec
jmp 0x1005b454
cmp dword [ebp + 0x14], ebx
jne 0x1005b202
lea eax, [ebp - 0x11c]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov ecx, dword [ebp - 8]
push edi
call fcn.1005b94b
mov esi, eax
cmp esi, ebx
jmp 0x1005b49b
mov cl, byte [edi]
mov eax, edi
test cl, cl
je 0x1005b238
cmp cl, 0x5c
je 0x1005b22c
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov cl, byte [eax]
jmp 0x1005b218
xor ebx, ebx
cmp eax, ebx
jne 0x1005b4f1
jmp 0x1005b23a
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
je 0x1005b2de
mov esi, 0xf003f
lea ecx, [ebp - 4]
push esi
push edi
push dword [ebp + 0xc]
call fcn.1005b506
test eax, eax
je 0x1005b2ae
push 0x20019
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 4]
call fcn.1005b506
test eax, eax
je 0x1005b2ae
lea eax, [ebp - 0x18]
mov dword [ebp + 8], ebx
push eax
lea eax, [ebp + 8]
push eax
push ebx
push esi
push ebx
push ebx
push ebx
push edi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
jne 0x1005b4f1
xor eax, eax
cmp dword [ebp - 4], ebx
je 0x1005b2a0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 8]
cmp eax, ebx
mov dword [ebp - 4], ecx
jne 0x1005b4f1
mov ecx, dword [ebp - 8]
push edi
call fcn.1005ace7
mov esi, eax
test esi, esi
jl 0x1005b4c8
cmp byte [edi], 0x3d
jne 0x1005b454
mov ecx, dword [ebp - 8]
push edi
lea eax, [ebp - 4]
push 0
push eax
call fcn.1005b628
jmp 0x1005b44e
cmp dword [ebp + 0x14], ebx
jne 0x1005b2ff
push 0x20019
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 4]
call fcn.1005b506
test eax, eax
je 0x1005b2ff
mov dword [ebp + 0x14], 1
cmp dword [ebp - 0xc], ebx
jne 0x1005b311
mov eax, 0x104
call fcn.100b1f10
mov dword [ebp - 0xc], esp
push 0x104
push edi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
cmp dword [ebp + 0x14], ebx
jne 0x1005b347
push dword [ebp - 4]
mov ecx, dword [ebp - 8]
call fcn.1005b89f
test eax, eax
jne 0x1005b347
push dword [ebp - 4]
mov ecx, dword [ebp - 8]
call fcn.1005b8d4
test eax, eax
je 0x1005b406
mov ecx, dword [ebp - 8]
push edi
call fcn.1005ace7
mov esi, eax
test esi, esi
jl 0x1005b4c8
mov ecx, dword [ebp - 8]
push edi
call fcn.1005b94b
mov esi, eax
test esi, esi
jl 0x1005b4c8
cmp byte [edi], 0x7b
jne 0x1005b3ba
push dword [ebp + 0x14]
mov ecx, dword [ebp - 8]
push 0
push dword [ebp - 4]
push edi
call fcn.1005b01b
mov esi, eax
test esi, esi
jl 0x1005b4c8
cmp dword [ebp + 0x14], 0
je 0x1005b3c4
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
push edi
mov dword [ebp + 0x14], eax
call fcn.1005ace7
mov esi, eax
test esi, esi
jl 0x1005b4c8
mov ecx, dword [ebp - 8]
push edi
call fcn.1005b94b
jmp 0x1005b497
cmp dword [ebp + 0x14], 0
jne 0x1005b052
push dword [ebp - 4]
mov ecx, dword [ebp - 8]
call fcn.1005b89f
test eax, eax
je 0x1005b406
mov esi, section..data
push dword [esi]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x1005b48e
add esi, 4
cmp esi, str.TYPELIB
jl 0x1005b3d8
push dword [ebp - 0xc]
lea ecx, [ebp - 4]
call fcn.1005b544
jmp 0x1005b48e
xor esi, esi
cmp dword [ebp - 4], esi
je 0x1005b421
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, esi
mov dword [ebp - 4], esi
jne 0x1005b4ff
cmp dword [ebp - 0x10], esi
je 0x1005b432
push dword [ebp - 0xc]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov ecx, dword [ebp - 8]
push edi
call fcn.1005ace7
mov esi, eax
test esi, esi
jl 0x1005b4c8
mov ecx, dword [ebp - 8]
push edi
call fcn.1005b94b
mov esi, eax
test esi, esi
jl 0x1005b4c8
cmp dword [ebp + 0x10], 0
je 0x1005b052
cmp byte [edi], 0x7b
jne 0x1005b052
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 1
jne 0x1005b052
push 0
mov ecx, dword [ebp - 8]
push dword [ebp + 0x10]
push dword [ebp - 4]
push edi
call fcn.1005b01b
mov esi, eax
test esi, esi
jl 0x1005b4c8
mov ecx, dword [ebp - 8]
push edi
call fcn.1005ace7
mov esi, eax
test esi, esi
jl 0x1005b4c8
jmp 0x1005b052
xor esi, esi
cmp dword [ebp + 8], esi
je 0x1005b4b5
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp + 8], esi
cmp dword [ebp - 4], esi
jmp 0x1005b4f4
cmp dword [ebp + 8], ebx
je 0x1005b4c8
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], 0
je 0x1005b4d7
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
lea esp, [ebp - 0x128]
pop edi
pop esi
pop ebx
leave
ret 0x10
cmp dword [ebp - 4], 0
jmp 0x1005b4f4
cmp dword [ebp - 4], ebx
jmp 0x1005b4cc
cmp dword [ebp - 4], ebx
je 0x1005b4ff
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x1005b4d9