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

Disassembly:
mov eax, 0x10013850
call fcn.1000af08
sub esp, 0x220
mov eax, dword [0x10018e70]
and dword [ebp - 0x21c], 0
push esi
mov dword [ebp - 0x10], eax
push edi
mov dword [ebp - 0x220], ecx
mov eax, dword [ebp + 0x14]
mov edi, dword [ebp + 8]
and dword [ebp - 4], 0
push edi
mov dword [ebp - 0x228], eax
call fcn.10004da6
mov esi, eax
test esi, esi
jge 0x100051f7
lea ecx, [ebp - 0x21c]
call fcn.100057b7
mov eax, esi
jmp 0x10005718
push ebx
jmp 0x10005339
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push str.Delete
push edi
mov dword [ebp - 0x224], 1
call esi
mov ebx, eax
neg ebx
push str.ForceRemove
sbb ebx, ebx
push edi
inc ebx
call esi
test eax, eax
je 0x10005230
test ebx, ebx
je 0x1000535a
mov ecx, dword [ebp - 0x220]
push edi
call fcn.10004da6
mov esi, eax
test esi, esi
jl 0x10005700
cmp dword [ebp + 0x10], 0
je 0x1000535a
and dword [ebp + 8], 0
mov cl, byte [edi]
mov byte [ebp - 4], 1
mov eax, edi
jmp 0x1000526c
cmp cl, 0x5c
je 0x10005272
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov cl, byte [eax]
test cl, cl
jne 0x1000525e
jmp 0x1000527a
test eax, eax
jne 0x10005730
mov esi, 0x10014324
push dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x100052aa
add esi, 4
cmp esi, str.TypeLib
jl 0x1000527f
mov eax, dword [ebp + 0xc]
push edi
lea ecx, [ebp + 8]
mov dword [ebp + 8], eax
call fcn.1000589d
and dword [ebp + 8], 0
test ebx, ebx
je 0x10005347
mov ecx, dword [ebp - 0x220]
push edi
call fcn.10004da6
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jl 0x10005767
mov ecx, dword [ebp - 0x220]
push edi
call fcn.10005838
mov esi, eax
cmp esi, ebx
jl 0x10005767
cmp dword [ebp + 8], ebx
mov byte [ebp - 4], bl
je 0x100052f1
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [edi], 0x7b
jne 0x10005339
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 1
jne 0x10005339
mov ecx, dword [ebp - 0x220]
push 0
push dword [ebp + 0x10]
push dword [ebp - 0x21c]
push edi
call fcn.100051a2
mov esi, eax
test esi, esi
jl 0x10005700
mov ecx, dword [ebp - 0x220]
push edi
call fcn.10004da6
mov esi, eax
test esi, esi
jl 0x10005700
cmp byte [edi], 0x7d
jne 0x100051fd
jmp 0x10005700
cmp dword [ebp + 8], 0
mov byte [ebp - 4], 0
je 0x1000535a
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x10005386
mov ecx, dword [ebp - 0x220]
and dword [ebp - 0x224], eax
push edi
call fcn.10004da6
mov esi, eax
test esi, esi
jl 0x10005700
push 0x100143f4
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x1000547b
mov ecx, dword [ebp - 0x220]
lea eax, [ebp - 0x218]
push eax
call fcn.10004da6
mov esi, eax
test esi, esi
jl 0x10005700
mov ecx, dword [ebp - 0x220]
push edi
call fcn.10004da6
mov esi, eax
test esi, esi
jl 0x10005700
cmp byte [edi], 0x3d
jne 0x10005777
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
je 0x10005412
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x220]
mov dword [ebp + 8], eax
push edi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp + 8]
push eax
mov byte [ebp - 4], 2
call fcn.10005948
mov esi, eax
cmp esi, ebx
mov dword [ebp + 8], ebx
jl 0x10005789
mov byte [ebp - 4], bl
jmp 0x100052f1
cmp dword [ebp + 0x14], ebx
jne 0x10005466
cmp dword [ebp - 0x224], ebx
je 0x10005466
push 0x20006
push ebx
push dword [ebp + 0xc]
lea ecx, [ebp + 8]
mov dword [ebp + 8], ebx
call fcn.100057ce
cmp eax, ebx
jne 0x1000575e
lea eax, [ebp - 0x218]
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
cmp eax, ebx
je 0x10005458
cmp eax, 2
jne 0x1000575e
cmp dword [ebp + 8], ebx
je 0x10005466
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x220]
push edi
call fcn.10005838
mov esi, eax
cmp esi, ebx
jmp 0x10005333
mov cl, byte [edi]
mov eax, edi
jmp 0x1000548f
cmp cl, 0x5c
je 0x10005495
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov cl, byte [eax]
test cl, cl
jne 0x10005481
jmp 0x1000549d
test eax, eax
jne 0x10005777
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x10005573
mov esi, 0x2001f
push esi
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x21c]
call fcn.100057ce
test eax, eax
je 0x10005530
push 0x20019
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x21c]
call fcn.100057ce
test eax, eax
je 0x10005530
lea eax, [ebp - 0x22c]
push eax
xor ebx, ebx
lea eax, [ebp - 0x224]
push eax
push ebx
push esi
push ebx
push ebx
push ebx
push edi
push dword [ebp + 0xc]
mov dword [ebp - 0x224], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
jne 0x10005780
xor eax, eax
cmp dword [ebp - 0x21c], ebx
je 0x1000551c
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
mov ecx, dword [ebp - 0x224]
mov dword [ebp - 0x21c], ecx
jne 0x10005780
mov ecx, dword [ebp - 0x220]
push edi
call fcn.10004da6
mov esi, eax
test esi, esi
jl 0x10005700
cmp byte [edi], 0x3d
jne 0x100052f1
mov ecx, dword [ebp - 0x220]
push edi
push 0
lea eax, [ebp - 0x21c]
push eax
call fcn.10005948
mov esi, eax
test esi, esi
jl 0x10005700
jmp 0x100052f1
cmp dword [ebp + 0x14], esi
jne 0x10005591
push 0x20019
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x21c]
call fcn.100057ce
mov dword [ebp + 8], eax
jmp 0x10005598
mov dword [ebp + 8], 2
cmp dword [ebp + 8], esi
je 0x100055a4
mov dword [ebp + 0x14], 1
push 0x104
push edi
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov ebx, dword [ebp - 0x220]
push edi
mov ecx, ebx
call fcn.10004da6
mov esi, eax
test esi, esi
jl 0x10005700
push edi
mov ecx, ebx
call fcn.10005838
mov esi, eax
test esi, esi
jl 0x10005700
cmp byte [edi], 0x7b
jne 0x1000561b
push dword [ebp + 0x14]
mov ecx, ebx
push 0
push dword [ebp - 0x21c]
push edi
call fcn.100051a2
mov esi, eax
test esi, esi
jge 0x10005609
cmp dword [ebp + 0x14], 0
je 0x10005700
push edi
mov ecx, ebx
call fcn.10004da6
mov esi, eax
test esi, esi
jl 0x10005700
cmp dword [ebp + 8], 2
mov eax, dword [ebp - 0x228]
mov dword [ebp + 0x14], eax
je 0x10005339
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x10005645
cmp eax, ebx
jne 0x10005339
push dword [ebp + 8]
jmp 0x100056f8
cmp dword [ebp - 0x228], ebx
je 0x100056ad
push dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x220]
call fcn.10005803
test eax, eax
je 0x100056ad
mov ebx, 0x10014324
push dword [ebx]
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x10005339
add ebx, 4
cmp ebx, str.TypeLib
jl 0x10005667
cmp dword [ebp - 0x224], 0
je 0x10005339
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x21c]
call fcn.1000589d
jmp 0x10005339
cmp dword [ebp - 0x21c], ebx
je 0x100056d2
push dword [ebp - 0x21c]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call ebx
and dword [ebp - 0x21c], 0
test eax, eax
jne 0x10005794
cmp dword [ebp - 0x224], 0
je 0x10005339
lea eax, [ebp - 0x114]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
je 0x10005339
push eax
call fcn.10001339
pop ecx
mov esi, eax
cmp dword [ebp - 0x21c], 0
je 0x10005715
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop ebx
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
call fcn.10009f7e
leave
ret 0x10
xor esi, esi
cmp dword [ebp + 8], esi
je 0x10005743
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp + 8], esi
cmp dword [ebp - 0x21c], esi
je 0x10005757
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x10005717
push eax
call fcn.10001339
pop ecx
mov esi, eax
cmp dword [ebp + 8], ebx
je 0x10005700
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10005700
cmp dword [ebp - 0x21c], 0
jmp 0x10005749
push eax
call fcn.10001339
pop ecx
mov esi, eax
cmp dword [ebp - 0x21c], ebx
jmp 0x10005707
push eax
call fcn.10001339
cmp dword [ebp - 0x21c], 0
pop ecx
mov esi, eax
je 0x10005715
push dword [ebp - 0x21c]
call ebx
jmp 0x10005715