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

Disassembly:
mov eax, 0x1068567
call fcn.010016d0
sub esp, 0x21c
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ebx
mov eax, dword [ebp + 0x14]
mov edi, dword [ebp + 8]
push edi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x20], eax
call fcn.01044c6b
jmp 0x1045ce3
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push 0x106dd00
push edi
call esi
mov ebx, eax
neg ebx
push 0x106dd24
sbb ebx, ebx
push edi
inc ebx
call esi
test eax, eax
je 0x1045b57
test ebx, ebx
je 0x1045bef
mov ecx, dword [ebp - 0x10]
push edi
call fcn.01044c6b
mov esi, eax
test esi, esi
jl 0x1045f3d
cmp dword [ebp + 0x10], 0
je 0x1045bef
and dword [ebp + 8], 0
push 0x5c
push edi
mov byte [ebp - 4], 1
call fcn.01044bfd
test eax, eax
jne 0x1045f30
mov ecx, dword [ebp - 0x10]
push edi
call fcn.01044efe
test eax, eax
je 0x1045ba8
mov eax, dword [ebp + 0xc]
push edi
lea ecx, [ebp + 8]
mov dword [ebp + 8], eax
call fcn.010456fe
and dword [ebp + 8], 0
test ebx, ebx
je 0x1045be3
mov ecx, dword [ebp - 0x10]
push edi
call fcn.01044c6b
mov esi, eax
test esi, esi
jl 0x1045f6e
mov ecx, dword [ebp - 0x10]
push edi
call fcn.01044fd5
mov esi, eax
test esi, esi
lea ecx, [ebp + 8]
jl 0x1045f71
and byte [ebp - 4], 0
call fcn.0104474e
jmp 0x1045ee6
and byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.0104474e
push 0x106dd10
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1045c15
mov ecx, dword [ebp - 0x10]
and dword [ebp - 0x1c], eax
push edi
call fcn.01044c6b
mov esi, eax
test esi, esi
jl 0x1045f3d
push 0x106dd3c
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1045cec
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x228]
push eax
call fcn.01044c6b
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jl 0x1045f3d
mov ecx, dword [ebp - 0x10]
push edi
call fcn.01044c6b
mov esi, eax
cmp esi, ebx
jl 0x1045f3d
cmp word [edi], 0x3d
jne 0x1045f38
cmp dword [ebp + 0x10], ebx
je 0x1045c94
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x10]
mov dword [ebp + 8], eax
push edi
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp + 8]
push eax
call fcn.01044d5d
lea ecx, [ebp + 8]
mov esi, eax
mov dword [ebp + 8], ebx
call fcn.0104474e
cmp esi, ebx
jmp 0x1045ee4
cmp dword [ebp + 0x14], ebx
jne 0x1045cda
push 0x20006
push ebx
push dword [ebp + 0xc]
lea ecx, [ebp + 8]
mov dword [ebp + 8], ebx
call fcn.010447b3
cmp eax, ebx
jne 0x1045f60
lea eax, [ebp - 0x228]
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, ebx
je 0x1045cd2
cmp eax, 2
jne 0x1045f5e
lea ecx, [ebp + 8]
call fcn.0104474e
mov ecx, dword [ebp - 0x10]
push edi
call fcn.01044fd5
mov esi, eax
cmp esi, ebx
jmp 0x1045f22
push 0x5c
push edi
call fcn.01044bfd
test eax, eax
jne 0x1045f38
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x1045d7a
mov esi, 0xf003f
push esi
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
call fcn.010447b3
test eax, eax
je 0x1045d49
push 0x20019
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
call fcn.010447b3
test eax, eax
je 0x1045d49
xor eax, eax
push eax
push eax
push esi
push eax
push eax
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
call fcn.01044765
test eax, eax
jne 0x1045f38
mov ecx, dword [ebp - 0x10]
push edi
call fcn.01044c6b
mov esi, eax
test esi, esi
jl 0x1045f3d
cmp word [edi], 0x3d
jne 0x1045ee6
mov ecx, dword [ebp - 0x10]
push edi
push 0
lea eax, [ebp - 0x14]
push eax
call fcn.01044d5d
jmp 0x1045ee0
cmp dword [ebp + 0x14], esi
jne 0x1045d9b
push 0x20019
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
call fcn.010447b3
test eax, eax
je 0x1045d9b
mov dword [ebp + 0x14], 1
cmp dword [ebp - 0x18], esi
jne 0x1045dad
mov eax, 0x208
call fcn.010057d1
mov dword [ebp - 0x18], esp
push 0x104
push edi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
cmp dword [ebp + 0x14], esi
jne 0x1045de3
push dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
call fcn.01044f2a
test eax, eax
jne 0x1045de3
push dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
call fcn.01044f5f
test eax, eax
je 0x1045e9b
mov ecx, dword [ebp - 0x10]
push edi
call fcn.01044c6b
mov esi, eax
test esi, esi
jl 0x1045f3d
mov ebx, dword [ebp - 0x10]
push edi
mov ecx, ebx
call fcn.01044fd5
mov esi, eax
test esi, esi
jl 0x1045f3d
cmp word [edi], 0x7b
jne 0x1045e56
push dword [ebp + 0x14]
mov ecx, ebx
push 0
push dword [ebp - 0x14]
push edi
call fcn.01045af2
mov esi, eax
test esi, esi
jl 0x1045f3d
cmp dword [ebp + 0x14], 0
je 0x1045e63
mov eax, dword [ebp - 0x20]
push edi
mov ecx, ebx
mov dword [ebp + 0x14], eax
call fcn.01044c6b
mov esi, eax
test esi, esi
jl 0x1045f3d
push edi
mov ecx, ebx
call fcn.01044fd5
jmp 0x1045f1e
cmp dword [ebp + 0x14], 0
jne 0x1045f24
mov ebx, dword [ebp - 0x10]
push dword [ebp - 0x14]
mov ecx, ebx
call fcn.01044f2a
test eax, eax
je 0x1045e91
push dword [ebp - 0x18]
mov ecx, ebx
call fcn.01044efe
test eax, eax
je 0x1045e8a
push dword [ebp - 0x18]
lea ecx, [ebp - 0x14]
call fcn.010456fe
mov ecx, ebx
jmp 0x1045f18
cmp dword [ebp + 0x14], 0
jne 0x1045f24
lea ecx, [ebp - 0x14]
call fcn.0104474e
test eax, eax
jne 0x1045f38
cmp dword [ebp - 0x1c], eax
je 0x1045ec8
push dword [ebp - 0x18]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
and dword [ebp + 8], 0
lea ecx, [ebp + 8]
call fcn.0104474e
mov ecx, dword [ebp - 0x10]
push edi
call fcn.01044c6b
mov esi, eax
test esi, esi
jl 0x1045f3d
mov ecx, dword [ebp - 0x10]
push edi
call fcn.01044fd5
mov esi, eax
test esi, esi
jl 0x1045f3d
cmp dword [ebp + 0x10], 0
je 0x1045f24
cmp word [edi], 0x7b
jne 0x1045f24
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x1045f24
mov ecx, dword [ebp - 0x10]
push 0
push dword [ebp + 0x10]
push dword [ebp - 0x14]
push edi
call fcn.01045af2
mov esi, eax
test esi, esi
jl 0x1045f3d
mov ecx, dword [ebp - 0x10]
push edi
call fcn.01044c6b
mov esi, eax
test esi, esi
jl 0x1045f3d
cmp word [edi], 0x7d
jne 0x1045b2e
jmp 0x1045f3d
lea ecx, [ebp + 8]
call fcn.0104474e
mov esi, 0x80020009
lea ecx, [ebp - 0x14]
call fcn.0104474e
mov eax, esi
lea esp, [ebp - 0x234]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 0x10
cmp eax, ebx
jle 0x1045f6c
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
lea ecx, [ebp + 8]
call fcn.0104474e
jmp 0x1045f3d