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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x476817
mov eax, dword fs:[0]
push eax
sub esp, 0x448
mov eax, dword [0x4968d4]
xor eax, esp
mov dword [esp + 0x440], eax
push ebx
push esi
push edi
mov eax, dword [0x4968d4]
xor eax, esp
push eax
lea eax, [esp + 0x458]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x460], ebx
mov edx, dword [ebp + 0x14]
mov eax, edi
mov dword [esp + 0x38], edx
call fcn.00414920
mov esi, eax
cmp esi, ebx
jge 0x414aef
mov dword [esp + 0x460], 0xffffffff
jmp 0x415141
cmp word [edi], 0x7d
je 0x41511a
lea esp, [esp]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push str.Delete
push edi
mov dword [esp + 0x34], 1
call esi
mov ebx, eax
neg ebx
push str.ForceRemove
sbb ebx, ebx
push edi
add ebx, 1
call esi
test eax, eax
je 0x414b33
test ebx, ebx
je 0x414c5b
mov ecx, dword [esp + 0x1c]
mov eax, edi
call fcn.00414920
mov esi, eax
test esi, esi
jl 0x41511a
cmp dword [ebp + 0x10], 0
je 0x414c5b
mov dword [esp + 0x24], 0
mov byte [esp + 0x460], 1
movzx ecx, word [edi]
test cx, cx
mov eax, edi
je 0x414b8e
movzx ecx, cx
cmp cx, 0x5c
je 0x414b86
push eax
call dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [eax]
test cx, cx
jne 0x414b6f
jmp 0x414b8e
test eax, eax
jne 0x4150a7
mov esi, 0x4855cc
mov eax, dword [esi]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x414bc6
add esi, 4
cmp esi, 0x4855fc
jl 0x414b93
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x24], ecx
push edi
lea ecx, [esp + 0x28]
call fcn.00415890
mov dword [esp + 0x24], 0
test ebx, ebx
je 0x414c53
mov ebx, dword [esp + 0x1c]
mov eax, edi
mov ecx, ebx
call fcn.00414920
mov esi, eax
test esi, esi
jl 0x4150d3
mov ecx, ebx
call fcn.004157e0
mov esi, eax
test esi, esi
jl 0x4150d3
mov byte [esp + 0x460], 0
cmp word [edi], 0x7b
jne 0x414c44
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x414c44
mov eax, dword [ebp + 0x10]
mov ecx, dword [esp + 0x14]
mov ebx, dword [esp + 0x1c]
push 0
push eax
push ecx
push edi
mov ecx, ebx
call fcn.00414a70
mov esi, eax
test esi, esi
jl 0x41511a
mov eax, edi
mov ecx, ebx
call fcn.00414920
mov esi, eax
test esi, esi
jl 0x41511a
cmp word [edi], 0x7d
jne 0x414b00
jmp 0x41511a
mov byte [esp + 0x460], 0
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x414c84
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x2c], eax
mov eax, edi
call fcn.00414920
mov esi, eax
test esi, esi
jl 0x41511a
mov ebx, dword [esp + 0x1c]
push 0x484ad0
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x414dc3
lea eax, [esp + 0x244]
mov ecx, ebx
call fcn.00414920
mov esi, eax
test esi, esi
jl 0x41511a
mov eax, edi
mov ecx, ebx
call fcn.00414920
mov esi, eax
test esi, esi
jl 0x41511a
cmp word [edi], 0x3d
jne 0x4150b8
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x414d3e
mov dword [esp + 0x28], esi
mov byte [esp + 0x460], 2
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x244]
push eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2c], edx
push ecx
mov ecx, edi
mov edx, ebx
call fcn.004151c0
mov esi, eax
test esi, esi
mov dword [esp + 0x28], 0
jge 0x414bf6
mov byte [esp + 0x460], 0
lea ecx, [esp + 0x28]
call fcn.00415a70
mov dword [esp + 0x460], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.00415a70
jmp 0x41513f
cmp dword [ebp + 0x14], esi
jne 0x414db7
cmp dword [esp + 0x2c], esi
je 0x414db7
mov dword [esp + 0x34], esi
mov byte [esp + 0x460], 3
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x18]
push edx
push 0x20006
push esi
push esi
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x4150e1
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x244]
push ecx
push esi
mov dword [esp + 0x3c], esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x414d9c
cmp eax, 2
jne 0x4150e1
mov byte [esp + 0x460], 0
test esi, esi
je 0x414db7
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x34], 0
mov ecx, ebx
call fcn.004157e0
jmp 0x414c3a
movzx ecx, word [edi]
xor esi, esi
cmp cx, si
mov eax, edi
je 0x414df1
movzx ecx, cx
cmp cx, 0x5c
je 0x414de9
push eax
call dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [eax]
cmp cx, si
jne 0x414dd2
jmp 0x414df1
cmp eax, esi
jne 0x4150b8
cmp dword [ebp + 0x10], esi
je 0x414ed6
mov ebx, dword [esp + 0x20]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea edx, [esp + 0x18]
push edx
push 0x2001f
push 0
push edi
push ebx
mov dword [esp + 0x2c], 0
call esi
test eax, eax
jne 0x414e43
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x414e37
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], 0
test eax, eax
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x14], ecx
je 0x414e96
lea edx, [esp + 0x18]
push edx
push 0x20019
push 0
push edi
push ebx
mov dword [esp + 0x2c], 0
call esi
test eax, eax
jne 0x414e82
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x414e76
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], 0
test eax, eax
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x14], ecx
je 0x414e96
push ebx
mov edx, edi
lea esi, [esp + 0x18]
call fcn.00415170
test eax, eax
jne 0x4150f6
mov ebx, dword [esp + 0x1c]
mov eax, edi
mov ecx, ebx
call fcn.00414920
mov esi, eax
test esi, esi
jl 0x41511a
cmp word [edi], 0x3d
jne 0x414bfe
push 0
lea edx, [esp + 0x18]
push edx
mov ecx, edi
mov edx, ebx
call fcn.004151c0
mov esi, eax
test esi, esi
jl 0x41511a
jmp 0x414bfe
cmp dword [ebp + 0x14], esi
jne 0x414fdf
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x18]
push eax
push 0x20019
push esi
push edi
push ecx
mov dword [esp + 0x2c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x414f1b
mov ecx, dword [esp + 0x14]
xor eax, eax
cmp ecx, esi
je 0x414f13
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], esi
mov edx, dword [esp + 0x18]
mov dword [esp + 0x14], edx
cmp eax, esi
mov dword [esp + 0x18], eax
je 0x414f2a
mov dword [ebp + 0x14], 1
push 0xffffffffffffffff
push edi
lea eax, [esp + 0x44]
push 0x104
push eax
call fcn.00454576
push eax
call fcn.00402d50
add esp, 0x14
mov eax, edi
mov ecx, ebx
call fcn.00414920
mov esi, eax
test esi, esi
jl 0x41511a
mov ecx, ebx
call fcn.004157e0
mov esi, eax
test esi, esi
jl 0x41511a
cmp word [edi], 0x7b
jne 0x414fb1
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x414fb1
mov ecx, dword [ebp + 0x14]
mov edx, dword [esp + 0x14]
push ecx
push 0
push edx
push edi
mov ecx, ebx
call fcn.00414a70
mov esi, eax
test esi, esi
jge 0x414f9e
cmp dword [ebp + 0x14], 0
je 0x41511a
mov eax, edi
mov ecx, ebx
call fcn.00414920
mov esi, eax
test esi, esi
jl 0x41511a
mov ecx, dword [esp + 0x18]
cmp ecx, 2
mov eax, dword [esp + 0x38]
mov dword [ebp + 0x14], eax
je 0x414c44
test ecx, ecx
je 0x414fec
test eax, eax
jne 0x414c44
mov eax, ecx
call fcn.004167a0
mov esi, eax
jmp 0x41511a
mov dword [esp + 0x18], 2
jmp 0x414f23
test eax, eax
je 0x41502a
mov ecx, dword [esp + 0x14]
call fcn.00415a30
test eax, eax
je 0x41502a
lea ebx, [esp + 0x3c]
call fcn.00415850
test eax, eax
je 0x414c44
cmp dword [esp + 0x2c], 0
je 0x414c44
mov eax, ebx
push eax
lea ecx, [esp + 0x18]
call fcn.00415890
jmp 0x414c44
mov ecx, dword [esp + 0x14]
call fcn.00415a30
cmp dword [esp + 0x14], 0
mov ebx, eax
je 0x415057
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
mov dword [esp + 0x14], 0
jne 0x4150f6
cmp dword [esp + 0x2c], 0
je 0x414c44
test ebx, ebx
jne 0x414c44
mov dword [esp + 0x30], ebx
mov byte [esp + 0x460], 4
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x3c]
push edx
push eax
mov dword [esp + 0x38], eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp eax, ebx
mov dword [esp + 0x30], ebx
jne 0x415102
mov byte [esp + 0x460], bl
lea ecx, [esp + 0x30]
call fcn.00415a70
jmp 0x414c44
mov byte [esp + 0x460], 0
lea ecx, [esp + 0x24]
call fcn.00415a70
mov dword [esp + 0x460], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.00415a70
mov eax, 0x80020009
jmp 0x415141
mov byte [esp + 0x460], 0
lea ecx, [esp + 0x24]
jmp 0x415115
call fcn.004167a0
mov esi, eax
mov byte [esp + 0x460], 0
lea ecx, [esp + 0x34]
jmp 0x415115
call fcn.004167a0
mov esi, eax
jmp 0x414d25
call fcn.004167a0
mov esi, eax
mov byte [esp + 0x460], 0
lea ecx, [esp + 0x30]
call fcn.00415a70
mov dword [esp + 0x460], 0xffffffff
cmp dword [esp + 0x14], 0
je 0x41513f
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], 0
mov eax, esi
mov ecx, dword [esp + 0x458]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x440]
xor ecx, esp
call fcn.00454567
mov esp, ebp
pop ebp
ret 0x10