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

Disassembly:
push ebp
lea ebp, [esp - 0x19c]
sub esp, 0x21c
mov eax, dword [0x1000d040]
and dword [ebp - 0x74], 0
mov dword [ebp + 0x198], eax
mov eax, dword [ebp + 0x1b0]
push ebx
mov ebx, dword [ebp + 0x1a4]
mov dword [ebp - 0x80], eax
push esi
mov eax, ebx
mov dword [ebp - 0x78], ecx
call fcn.10003105
mov esi, eax
test esi, esi
jge 0x10003873
jmp 0x10003c15
cmp byte [ebx], 0x7d
push edi
je 0x10003c12
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push str.Delete
push ebx
mov dword [ebp - 0x7c], 1
call esi
mov edi, eax
neg edi
push str.ForceRemove
sbb edi, edi
push ebx
inc edi
call esi
test eax, eax
je 0x100038a9
test edi, edi
je 0x10003921
mov ecx, dword [ebp - 0x78]
mov eax, ebx
call fcn.10003105
mov esi, eax
test esi, esi
jl 0x10003c03
cmp dword [ebp + 0x1ac], 0
je 0x10003921
push 0x5c
mov eax, ebx
call fcn.100030b0
test eax, eax
pop ecx
jne 0x10003cf4
push ebx
call fcn.10003530
test eax, eax
je 0x100038fa
mov eax, dword [ebp + 0x1a8]
push ebx
lea ecx, [ebp + 0x1a4]
mov dword [ebp + 0x1a4], eax
call fcn.10002617
test edi, edi
je 0x10003921
mov ecx, dword [ebp - 0x78]
mov eax, ebx
call fcn.10003105
mov esi, eax
test esi, esi
jl 0x10003c03
mov ecx, dword [ebp - 0x78]
mov edi, ebx
call fcn.10003591
jmp 0x10003b17
push str.NoRemove
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x10003948
and dword [ebp - 0x7c], eax
mov ecx, dword [ebp - 0x78]
mov eax, ebx
call fcn.10003105
mov esi, eax
test esi, esi
jl 0x10003c03
push 0x1000b768
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x10003a7a
mov ecx, dword [ebp - 0x78]
lea eax, [ebp - 0x70]
call fcn.10003105
mov esi, eax
xor edi, edi
cmp esi, edi
jl 0x10003c03
mov ecx, dword [ebp - 0x78]
mov eax, ebx
call fcn.10003105
mov esi, eax
cmp esi, edi
jl 0x10003c03
cmp byte [ebx], 0x3d
jne 0x10003cb1
cmp dword [ebp + 0x1ac], edi
je 0x10003a13
mov eax, dword [ebp + 0x1a8]
mov dword [ebp + 0x1a4], eax
push ebx
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp + 0x1a4]
push eax
push dword [ebp - 0x78]
call fcn.100031e7
mov esi, eax
cmp esi, edi
jl 0x10003cb6
cmp byte [ebx], 0x7b
jne 0x10003a05
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 1
jne 0x10003a05
mov ecx, dword [ebp - 0x78]
push 0
push dword [ebp + 0x1ac]
push dword [ebp - 0x74]
push ebx
call fcn.10003830
mov esi, eax
test esi, esi
jl 0x10003c03
mov ecx, dword [ebp - 0x78]
mov eax, ebx
call fcn.10003105
mov esi, eax
test esi, esi
jl 0x10003c03
cmp byte [ebx], 0x7d
jne 0x1000387d
jmp 0x10003c03
cmp dword [ebp + 0x1b0], edi
jne 0x10003a6e
cmp dword [ebp - 0x7c], edi
je 0x10003a6e
push 0x20006
push edi
push dword [ebp + 0x1a8]
lea eax, [ebp + 0x1a4]
mov dword [ebp + 0x1a4], edi
call fcn.1000138b
cmp eax, edi
jne 0x10003cd0
mov edi, dword [ebp + 0x1a4]
lea eax, [ebp - 0x70]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x10003a63
cmp eax, 2
jne 0x10003cbe
test edi, edi
je 0x10003a6e
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x78]
mov edi, ebx
call fcn.10003591
jmp 0x100039fb
push 0x5c
mov eax, ebx
call fcn.100030b0
test eax, eax
pop ecx
jne 0x10003cf4
xor esi, esi
cmp dword [ebp + 0x1ac], esi
je 0x10003b26
push 0x2001f
push ebx
push dword [ebp + 0x1a8]
lea eax, [ebp - 0x74]
call fcn.1000138b
test eax, eax
je 0x10003aeb
push 0x20019
push ebx
push dword [ebp + 0x1a8]
lea eax, [ebp - 0x74]
call fcn.1000138b
test eax, eax
je 0x10003aeb
push esi
push 0x2001f
push esi
push esi
push ebx
push dword [ebp + 0x1a8]
xor edi, edi
lea eax, [ebp - 0x74]
call fcn.10002551
cmp eax, esi
jne 0x10003bfc
mov ecx, dword [ebp - 0x78]
mov eax, ebx
call fcn.10003105
mov esi, eax
test esi, esi
jl 0x10003c03
cmp byte [ebx], 0x3d
jne 0x100039c2
push ebx
push 0
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x78]
call fcn.100031e7
mov esi, eax
test esi, esi
jl 0x10003c03
jmp 0x100039c2
cmp dword [ebp + 0x1b0], esi
jne 0x10003b4a
push 0x20019
push ebx
push dword [ebp + 0x1a8]
lea eax, [ebp - 0x74]
call fcn.1000138b
mov dword [ebp + 0x1a4], eax
jmp 0x10003b54
mov dword [ebp + 0x1a4], 2
cmp dword [ebp + 0x1a4], esi
je 0x10003b66
mov dword [ebp + 0x1b0], 1
push 0x104
push ebx
lea eax, [ebp + 0x94]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov ecx, dword [ebp - 0x78]
mov eax, ebx
call fcn.10003105
mov esi, eax
test esi, esi
jl 0x10003c03
mov ecx, dword [ebp - 0x78]
mov edi, ebx
call fcn.10003591
mov esi, eax
test esi, esi
jl 0x10003c03
cmp byte [ebx], 0x7b
jne 0x10003bd1
push dword [ebp + 0x1b0]
mov ecx, dword [ebp - 0x78]
push 0
push dword [ebp - 0x74]
push ebx
call fcn.10003830
mov esi, eax
test esi, esi
jge 0x10003bc1
cmp dword [ebp + 0x1b0], 0
je 0x10003c03
mov ecx, dword [ebp - 0x78]
mov eax, ebx
call fcn.10003105
mov esi, eax
test esi, esi
jl 0x10003c03
cmp dword [ebp + 0x1a4], 2
mov eax, dword [ebp - 0x80]
mov dword [ebp + 0x1b0], eax
je 0x10003a05
mov eax, dword [ebp + 0x1a4]
xor edi, edi
cmp eax, edi
je 0x10003c2c
cmp dword [ebp - 0x80], edi
jne 0x10003a05
call fcn.10001d2d
mov esi, eax
cmp dword [ebp - 0x74], 0
je 0x10003c12
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
mov ecx, dword [ebp + 0x198]
pop esi
pop ebx
call fcn.10009226
add ebp, 0x19c
leave
ret 0x10
cmp dword [ebp - 0x80], edi
je 0x10003c6f
push dword [ebp - 0x74]
call fcn.1000355c
test eax, eax
je 0x10003c6f
lea eax, [ebp + 0x94]
push eax
call fcn.10003530
test eax, eax
je 0x10003a05
cmp dword [ebp - 0x7c], 0
je 0x10003a05
lea eax, [ebp + 0x94]
push eax
lea ecx, [ebp - 0x74]
call fcn.10002617
jmp 0x10003a05
cmp dword [ebp - 0x74], edi
je 0x10003c88
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, edi
mov dword [ebp - 0x74], edi
jne 0x10003d0d
cmp dword [ebp - 0x7c], edi
je 0x10003a05
lea eax, [ebp + 0x94]
push eax
push dword [ebp + 0x1a8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x10003bfc
jmp 0x10003a05
cmp dword [ebp - 0x74], edi
jmp 0x10003cf8
cmp dword [ebp - 0x74], edi
jmp 0x10003c07
call fcn.10001d2d
test edi, edi
mov esi, eax
je 0x10003c03
push edi
jmp 0x10003ce9
call fcn.10001d2d
cmp dword [ebp + 0x1a4], edi
mov esi, eax
je 0x10003c03
push dword [ebp + 0x1a4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10003c03
cmp dword [ebp - 0x74], 0
je 0x10003d03
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x10003c14
call fcn.10001d2d
jmp 0x10003c14