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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46ca17
mov eax, dword fs:[0]
push eax
mov eax, 0x224c
call fcn.00452710
mov eax, dword [0x48d814]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x221c], ecx
mov dword [ebp - 0x222c], eax
mov dword [ebp - 0x2224], ebx
mov dword [ebp - 0x2220], ebx
mov dword [ebp - 4], ebx
mov edx, dword [ebp + 0x14]
push edi
mov dword [ebp - 0x224c], edx
call fcn.0040eee0
mov esi, eax
cmp esi, ebx
jge 0x41073c
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x2220], ebx
jmp 0x410e2b
cmp word [edi], 0x7d
je 0x410e03
jmp 0x410750
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push str.Delete
push edi
mov dword [ebp - 0x2228], 1
call esi
mov ebx, eax
neg ebx
push str.ForceRemove
sbb ebx, ebx
push edi
inc ebx
call esi
test eax, eax
je 0x410783
test ebx, ebx
je 0x4108a7
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.0040eee0
mov esi, eax
test esi, esi
jl 0x410e03
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x4108a9
mov dword [ebp - 0x2238], esi
mov dword [ebp - 0x2234], esi
mov byte [ebp - 4], 1
push 0x5c
push edi
call fcn.0040ee30
add esp, 8
test eax, eax
jne 0x410d59
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.0040f060
test eax, eax
je 0x410801
mov eax, dword [ebp - 0x222c]
push edi
lea ecx, [ebp - 0x2238]
mov dword [ebp - 0x2238], eax
mov dword [ebp - 0x2234], esi
call fcn.0040f220
mov dword [ebp - 0x2238], esi
mov dword [ebp - 0x2234], esi
cmp ebx, esi
je 0x41089b
mov ebx, dword [ebp - 0x221c]
push edi
mov ecx, ebx
call fcn.0040eee0
mov esi, eax
test esi, esi
jl 0x410d84
push edi
mov ecx, ebx
call fcn.0040f0f0
mov esi, eax
test esi, esi
jl 0x410d84
mov byte [ebp - 4], 0
mov dword [ebp - 0x2234], 0
cmp word [edi], 0x7b
jne 0x41088c
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x41088c
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x2224]
mov ecx, dword [ebp - 0x221c]
push 0
push edx
push eax
push edi
call fcn.004106c0
mov esi, eax
test esi, esi
jl 0x410e03
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.0040eee0
mov esi, eax
test esi, esi
jl 0x410e03
cmp word [edi], 0x7d
jne 0x410750
jmp 0x410e03
mov byte [ebp - 4], 0
mov dword [ebp - 0x2234], esi
jmp 0x4108a9
xor esi, esi
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4108d7
mov ecx, dword [ebp - 0x221c]
push edi
mov dword [ebp - 0x2228], eax
call fcn.0040eee0
mov esi, eax
test esi, esi
jl 0x410e03
xor esi, esi
mov ebx, dword [ebp - 0x222c]
push 0x473634
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x410a22
lea ecx, [ebp - 0x2218]
push ecx
mov ecx, dword [ebp - 0x221c]
call fcn.0040eee0
mov esi, eax
test esi, esi
jl 0x410e03
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.0040eee0
mov esi, eax
test esi, esi
jl 0x410e03
cmp word [edi], 0x3d
jne 0x410d68
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
je 0x410994
mov dword [ebp - 0x2240], ebx
mov dword [ebp - 0x223c], ebx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x222c]
push edi
lea eax, [ebp - 0x2218]
push eax
lea ecx, [ebp - 0x2240]
push ecx
mov ecx, dword [ebp - 0x221c]
mov dword [ebp - 0x2240], edx
mov dword [ebp - 0x223c], ebx
call fcn.00410300
mov esi, eax
cmp esi, ebx
mov dword [ebp - 0x2240], ebx
mov dword [ebp - 0x223c], ebx
jl 0x410d90
mov byte [ebp - 4], bl
mov dword [ebp - 0x223c], ebx
jmp 0x410841
cmp dword [ebp + 0x14], ebx
jne 0x410a0d
cmp dword [ebp - 0x2228], ebx
je 0x410a0d
mov dword [ebp - 0x2254], ebx
mov dword [ebp - 0x2250], ebx
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x222c]
push 0x20006
push ebx
push edx
lea ecx, [ebp - 0x2254]
call fcn.0040ea30
cmp eax, ebx
jne 0x410db3
mov esi, dword [ebp - 0x2254]
lea eax, [ebp - 0x2218]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, ebx
je 0x4109f2
cmp eax, 2
jne 0x410db3
mov byte [ebp - 4], 0
cmp esi, ebx
je 0x410a07
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2254], ebx
mov dword [ebp - 0x2250], ebx
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.0040f0f0
mov esi, eax
cmp esi, ebx
jmp 0x410886
push 0x5c
push edi
call fcn.0040ee30
add esp, 8
test eax, eax
jne 0x410d68
cmp dword [ebp + 0x10], esi
je 0x410b46
lea ecx, [ebp - 0x2228]
push ecx
push 0x2001f
push esi
push edi
push ebx
mov dword [ebp - 0x2228], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x410a8c
mov ecx, dword [ebp - 0x2224]
xor eax, eax
cmp ecx, esi
je 0x410a76
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2224], esi
mov edx, dword [ebp - 0x2228]
mov dword [ebp - 0x2220], esi
mov dword [ebp - 0x2224], edx
cmp eax, esi
je 0x410b02
push 0x20019
push edi
push ebx
lea ecx, [ebp - 0x2224]
call fcn.0040ea30
cmp eax, esi
je 0x410b02
lea eax, [ebp - 0x2258]
push eax
lea ecx, [ebp - 0x2228]
push ecx
push esi
push 0x2001f
push esi
push esi
push esi
push edi
push ebx
mov dword [ebp - 0x2228], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, esi
jne 0x410dca
mov ecx, dword [ebp - 0x2224]
xor eax, eax
cmp ecx, esi
je 0x410ae8
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2224], esi
mov edx, dword [ebp - 0x2228]
mov dword [ebp - 0x2220], esi
mov dword [ebp - 0x2224], edx
cmp eax, esi
jne 0x410dca
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.0040eee0
mov esi, eax
test esi, esi
jl 0x410e03
cmp word [edi], 0x3d
jne 0x410841
mov ecx, dword [ebp - 0x221c]
push edi
push 0
lea eax, [ebp - 0x2224]
push eax
call fcn.00410300
mov esi, eax
test esi, esi
jl 0x410e03
jmp 0x410841
cmp dword [ebp + 0x14], esi
jne 0x410c40
push 0x20019
push edi
push ebx
lea ecx, [ebp - 0x2224]
call fcn.0040ea30
mov ebx, eax
mov dword [ebp - 0x2230], eax
cmp ebx, esi
je 0x410b74
mov dword [ebp + 0x14], 1
push 0xffffffffffffffff
push edi
lea ecx, [ebp - 0x218]
push 0x104
push ecx
call fcn.0045263d
push eax
call fcn.0040df70
mov ecx, dword [ebp - 0x221c]
add esp, 0x14
push edi
call fcn.0040eee0
mov esi, eax
test esi, esi
jl 0x410e03
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.0040f0f0
mov esi, eax
test esi, esi
jl 0x410e03
cmp word [edi], 0x7b
jne 0x410c12
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x410c12
mov ebx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x2224]
mov ecx, dword [ebp - 0x221c]
push ebx
push 0
push edx
push edi
call fcn.004106c0
mov esi, eax
test esi, esi
jge 0x410bf6
test ebx, ebx
je 0x410e03
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.0040eee0
mov esi, eax
test esi, esi
jl 0x410e03
mov ebx, dword [ebp - 0x2230]
mov eax, dword [ebp - 0x224c]
mov dword [ebp + 0x14], eax
cmp ebx, 2
je 0x41088c
test ebx, ebx
je 0x410c55
test eax, eax
jne 0x41088c
push ebx
call fcn.0040e920
add esp, 4
mov esi, eax
jmp 0x410e03
mov dword [ebp - 0x2230], 2
mov ebx, dword [ebp - 0x2230]
jmp 0x410b6d
mov ebx, dword [ebp - 0x2224]
test eax, eax
je 0x410cad
mov ecx, dword [ebp - 0x221c]
push ebx
call fcn.0040f0a0
test eax, eax
je 0x410cad
lea ecx, [ebp - 0x218]
push ecx
mov ecx, dword [ebp - 0x221c]
call fcn.0040f060
test eax, eax
je 0x41088c
cmp dword [ebp - 0x2228], 0
je 0x41088c
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp - 0x2224]
call fcn.0040f220
jmp 0x41088c
mov ecx, dword [ebp - 0x221c]
push ebx
call fcn.0040f0a0
mov dword [ebp - 0x2230], eax
xor eax, eax
test ebx, ebx
je 0x410cd6
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2224], 0
mov dword [ebp - 0x2220], 0
test eax, eax
jne 0x410dca
cmp dword [ebp - 0x2228], eax
je 0x41088c
cmp dword [ebp - 0x2230], eax
jne 0x41088c
xor ebx, ebx
mov dword [ebp - 0x2248], ebx
mov dword [ebp - 0x2244], ebx
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x222c]
lea ecx, [ebp - 0x218]
push ecx
push eax
mov dword [ebp - 0x2248], eax
mov dword [ebp - 0x2244], ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov dword [ebp - 0x2248], ebx
mov dword [ebp - 0x2244], ebx
cmp eax, ebx
jne 0x410de9
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x2248]
call fcn.0040f200
jmp 0x41088c
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2238]
call fcn.0040f200
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2224]
call fcn.0040f200
mov eax, 0x80020009
jmp 0x410e2b
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2238]
jmp 0x410dfe
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2240]
call fcn.0040f200
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2224]
call fcn.0040f200
jmp 0x410e29
push eax
call fcn.0040e920
add esp, 4
mov esi, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2254]
jmp 0x410dfe
push eax
call fcn.0040e920
add esp, 4
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2224]
call fcn.0040f200
jmp 0x410e29
push eax
call fcn.0040e920
add esp, 4
mov esi, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2248]
call fcn.0040f200
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2224]
xor edi, edi
cmp eax, edi
je 0x410e23
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2224], edi
mov dword [ebp - 0x2220], edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045075f
mov esp, ebp
pop ebp
ret 0x10