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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x488346
mov eax, dword fs:[0]
push eax
sub esp, 0x438
mov eax, dword [0x4ab1a4]
xor eax, esp
mov dword [esp + 0x430], eax
push ebx
push esi
push edi
mov eax, dword [0x4ab1a4]
xor eax, esp
push eax
lea eax, [esp + 0x448]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
and dword [esp + 0x10], 0
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x14]
and dword [esp + 0x450], 0
mov dword [esp + 0x24], eax
mov eax, edi
call fcn.004102e6
mov esi, eax
test esi, esi
jl 0x4108bc
cmp word [edi], 0x7d
je 0x4108ba
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push str.Delete
push edi
mov dword [esp + 0x28], 1
call esi
mov ebx, eax
neg ebx
push str.ForceRemove
sbb ebx, ebx
push edi
inc ebx
call esi
test eax, eax
je 0x4104a5
test ebx, ebx
je 0x410571
mov ecx, dword [esp + 0x18]
mov eax, edi
call fcn.004102e6
mov esi, eax
test esi, esi
jl 0x4108a9
cmp dword [ebp + 0x10], 0
je 0x410571
push 0x5c
mov eax, edi
call fcn.004101bf
test eax, eax
pop ecx
jne 0x41097f
push edi
call fcn.00410ea0
test eax, eax
je 0x4104f2
mov eax, dword [esp + 0x1c]
push edi
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], eax
call fcn.00410ecc
test ebx, ebx
je 0x410571
mov ecx, dword [esp + 0x18]
mov eax, edi
call fcn.004102e6
mov esi, eax
test esi, esi
jl 0x4108a9
mov ecx, dword [esp + 0x18]
call fcn.00410e3b
mov esi, eax
test esi, esi
jl 0x4108a9
cmp word [edi], 0x7b
jne 0x410562
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x410562
mov ecx, dword [esp + 0x18]
push 0
push dword [ebp + 0x10]
push dword [esp + 0x18]
push edi
call fcn.004103f7
mov esi, eax
test esi, esi
jl 0x4108a9
mov ecx, dword [esp + 0x18]
mov eax, edi
call fcn.004102e6
mov esi, eax
test esi, esi
jl 0x4108a9
cmp word [edi], 0x7d
jne 0x410474
jmp 0x4108a9
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x41059a
and dword [esp + 0x20], eax
mov ecx, dword [esp + 0x18]
mov eax, edi
call fcn.004102e6
mov esi, eax
test esi, esi
jl 0x4108a9
push 0x494fc4
push edi
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x410696
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x234]
call fcn.004102e6
mov esi, eax
test esi, esi
jl 0x4108a9
mov ecx, dword [esp + 0x18]
mov eax, edi
call fcn.004102e6
mov esi, eax
test esi, esi
jl 0x4108a9
cmp word [edi], 0x3d
jne 0x41097f
cmp dword [ebp + 0x10], ebx
je 0x41062a
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov byte [esp + 0x450], 1
mov dword [esp + 0x14], eax
push edi
lea eax, [esp + 0x238]
push eax
lea edx, [esp + 0x1c]
call fcn.004109e7
mov esi, eax
cmp esi, ebx
jl 0x41099a
mov byte [esp + 0x450], bl
jmp 0x41051e
cmp dword [ebp + 0x14], ebx
jne 0x410684
cmp dword [esp + 0x20], ebx
je 0x410684
lea eax, [esp + 0x14]
push eax
push 0x20006
push ebx
push ebx
push dword [esp + 0x2c]
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x4108a2
mov ebx, dword [esp + 0x14]
lea eax, [esp + 0x234]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x410677
cmp eax, 2
jne 0x4109a3
test ebx, ebx
je 0x410682
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
mov ecx, dword [esp + 0x18]
call fcn.00410e3b
mov esi, eax
cmp esi, ebx
jmp 0x41055c
push 0x5c
mov eax, edi
call fcn.004101bf
test eax, eax
pop ecx
jne 0x4109be
cmp dword [ebp + 0x10], ebx
je 0x4107a9
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [esp + 0x14]
push eax
push 0x2001f
push ebx
push edi
push dword [esp + 0x2c]
mov dword [esp + 0x28], ebx
call esi
cmp eax, ebx
jne 0x4106f5
xor eax, eax
cmp dword [esp + 0x10], ebx
je 0x4106e3
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x10], ebx
je 0x410775
jmp 0x4106f9
mov ebx, dword [esp + 0x10]
and dword [esp + 0x14], 0
lea eax, [esp + 0x14]
push eax
push 0x20019
push 0
push edi
push dword [esp + 0x2c]
call esi
xor esi, esi
test eax, eax
jne 0x41072e
cmp ebx, esi
je 0x410722
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, esi
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x10], ebx
je 0x410775
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x18]
push eax
push esi
push 0x2001f
push esi
push esi
push esi
push edi
push dword [esp + 0x3c]
mov dword [esp + 0x38], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, esi
jne 0x4109c4
xor eax, eax
cmp ebx, esi
je 0x410765
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, esi
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x10], ebx
jne 0x4109c4
mov ecx, dword [esp + 0x18]
mov eax, edi
call fcn.004102e6
mov esi, eax
test esi, esi
jl 0x4108a9
cmp word [edi], 0x3d
jne 0x41051e
mov ecx, dword [esp + 0x18]
push edi
push 0
lea edx, [esp + 0x18]
call fcn.004109e7
jmp 0x410514
cmp dword [ebp + 0x14], ebx
jne 0x4107ec
lea eax, [esp + 0x14]
push eax
push 0x20019
push ebx
push edi
push dword [esp + 0x2c]
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x4107e6
xor eax, eax
cmp dword [esp + 0x10], ebx
je 0x4107de
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
jmp 0x4107f4
mov dword [esp + 0x14], 2
cmp dword [esp + 0x14], ebx
je 0x410801
mov dword [ebp + 0x14], 1
push 0xffffffffffffffff
push edi
lea eax, [esp + 0x34]
push 0x104
push eax
call fcn.00457b68
push eax
call fcn.00401650
mov ecx, dword [esp + 0x2c]
add esp, 0x14
mov eax, edi
call fcn.004102e6
mov esi, eax
test esi, esi
jl 0x4108a9
mov ecx, dword [esp + 0x18]
call fcn.00410e3b
mov esi, eax
test esi, esi
jl 0x4108a9
cmp word [edi], 0x7b
jne 0x41087e
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x41087e
push dword [ebp + 0x14]
mov ecx, dword [esp + 0x1c]
push 0
push dword [esp + 0x18]
push edi
call fcn.004103f7
mov esi, eax
test esi, esi
jge 0x41086d
cmp dword [ebp + 0x14], 0
je 0x4108a9
mov ecx, dword [esp + 0x18]
mov eax, edi
call fcn.004102e6
mov esi, eax
test esi, esi
jl 0x4108a9
mov eax, dword [esp + 0x24]
mov dword [ebp + 0x14], eax
mov eax, dword [esp + 0x14]
cmp eax, 2
je 0x410562
xor ebx, ebx
cmp eax, ebx
je 0x4108e2
cmp dword [esp + 0x24], ebx
jne 0x410562
call fcn.00438ecf
mov esi, eax
cmp dword [esp + 0x10], 0
je 0x4108ba
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x448]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x430]
xor ecx, esp
call fcn.0045447b
mov esp, ebp
pop ebp
ret 0x10
cmp dword [esp + 0x24], ebx
je 0x410925
push dword [esp + 0x10]
call fcn.00411024
test eax, eax
je 0x410925
lea eax, [esp + 0x2c]
push eax
call fcn.00410ea0
test eax, eax
je 0x410562
cmp dword [esp + 0x20], 0
je 0x410562
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x14]
call fcn.00410ecc
jmp 0x410562
push dword [esp + 0x10]
call fcn.00411024
cmp dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
je 0x41094e
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
mov dword [esp + 0x10], ebx
jne 0x4109dd
cmp dword [esp + 0x20], ebx
je 0x410562
cmp dword [esp + 0x14], 0
jne 0x410562
lea eax, [esp + 0x2c]
push eax
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x4108a2
jmp 0x410562
cmp dword [esp + 0x10], 0
je 0x410990
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x4108bc
cmp dword [esp + 0x10], ebx
jmp 0x4108ae
call fcn.00438ecf
test ebx, ebx
mov esi, eax
je 0x4108a9
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4108a9
cmp dword [esp + 0x10], ebx
jmp 0x410984
call fcn.00438ecf
cmp ebx, esi
mov edi, eax
je 0x4109d6
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x4108bc
call fcn.00438ecf
jmp 0x4108bc