Function at 0x1001ad60
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x2244
call fcn.10021160
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0x1001ec20
mov edx, dword fs:[0]
mov dword [ebp - 0x18], edx
mov dword fs:[0], eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x20], ecx
push dword [ebp + 8]
call fcn.1001a6c0
mov esi, eax
test eax, eax
js 0x1001b81e
mov ebx, dword [ebp + 8]
nop dword [eax + eax]
cmp word [ebx], 0x7d
mov edi, esi
je 0x1001b827
push str.Delete
push ebx
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
call esi
mov edi, eax
push str.ForceRemove
push ebx
call esi
test edi, edi
je 0x1001ae00
test eax, eax
jne 0x1001af60
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp - 0x20]
push ebx
call fcn.1001a6c0
mov esi, eax
test eax, eax
js 0x1001b81e
cmp dword [ebp + 0x10], 0
je 0x1001aed7
mov dword [ebp - 0x2250], 0
mov dword [ebp - 0x224c], 0
mov dword [ebp - 0x2248], 0
mov edi, dword [ebp + 8]
movzx ecx, word [edi]
test cx, cx
je 0x1001ae75
mov eax, edi
nop word cs:[eax + eax]
nop dword [eax]
cmp cx, 0x5c
je 0x1001aedf
push eax
call dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [eax]
test cx, cx
jne 0x1001ae60
mov ecx, dword [ebp - 0x20]
push edi
call fcn.1001ba20
test eax, eax
je 0x1001aec9
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2250], eax
mov dword [ebp - 0x224c], 0
mov dword [ebp - 0x2248], 0
lea ecx, [ebp - 0x2250]
push edi
call fcn.1001bb10
mov dword [ebp - 0x2250], 0
mov dword [ebp - 0x224c], 0
mov dword [ebp - 0x2248], 0
xor ecx, ecx
mov dl, 1
cmp dword [ebp - 0x30], 0
je 0x1001aeef
mov bl, 1
jmp 0x1001af25
mov ebx, dword [ebp + 8]
jmp 0x1001af60
mov dword [ebp - 0x44], 0x80020009
mov ecx, 1
mov dl, 1
jmp 0x1001af23
mov dword [ebp - 0x10], 1
mov ecx, dword [ebp - 0x20]
push edi
call fcn.1001a6c0
mov esi, eax
test eax, eax
js 0x1001b442
mov ecx, dword [ebp - 0x20]
push dword [ebp + 8]
call fcn.1001bc60
mov esi, eax
mov edx, eax
shr edx, 0x1f
mov ecx, eax
sar ecx, 0x1f
add ecx, 4
xor ebx, ebx
mov eax, dword [ebp - 0x2250]
test eax, eax
je 0x1001af44
push eax
mov edi, ecx
mov dword [ebp - 0x30], ebx
mov ebx, edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, ebx
mov ebx, dword [ebp - 0x30]
mov ecx, edi
test dl, dl
je 0x1001b0f3
test bl, bl
mov ebx, dword [ebp + 8]
je 0x1001b808
nop word [eax + eax]
push str.NoRemove
push ebx
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
call esi
mov dword [ebp - 0x30], eax
test eax, eax
jne 0x1001af98
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp - 0x20]
push ebx
call fcn.1001a6c0
mov edi, eax
test eax, eax
mov ebx, dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
js 0x1001b827
push 0x100544aa
push ebx
call esi
test eax, eax
je 0x1001b050
test ebx, ebx
je 0x1001afd9
movzx ecx, word [ebx]
test cx, cx
je 0x1001afd9
mov eax, ebx
nop word cs:[eax + eax]
cmp cx, 0x5c
je 0x1001b822
push eax
call dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [eax]
test cx, cx
jne 0x1001afc0
cmp dword [ebp + 0x10], 0
je 0x1001b0fb
mov dword [ebp - 0x2250], 0
mov esi, dword [ebp - 0x24]
test esi, esi
je 0x1001b17d
cmp dword [esi], 0
je 0x1001b177
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1001b1c3
push str.RegOpenKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1001b1c3
push 0
push dword [esi]
lea ecx, [ebp - 0x2250]
push ecx
push 0x2001f
push 0
push ebx
push dword [ebp + 0xc]
call eax
test eax, eax
jne 0x1001b1c3
jmp 0x1001b199
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x2250]
push eax
call fcn.1001a6c0
mov esi, eax
mov ecx, 3
test eax, eax
js 0x1001b805
mov ecx, dword [ebp - 0x20]
push dword [ebp + 8]
call fcn.1001a6c0
mov esi, eax
mov ebx, dword [ebp + 8]
test eax, eax
js 0x1001b494
cmp word [ebx], 0x3d
jne 0x1001b21e
cmp dword [ebp + 0x10], 0
je 0x1001b450
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x10], 2
mov ecx, dword [ebp - 0x20]
push ebx
lea eax, [ebp - 0x2250]
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.1001bd20
mov esi, eax
test eax, eax
mov ebx, dword [ebp + 8]
jns 0x1001b3e1
mov ecx, 1
mov dword [ebp - 0x44], esi
cmp ecx, 2
jl 0x1001b811
jmp 0x1001b4a2
mov ebx, dword [ebp + 8]
jmp 0x1001b3e1
mov ecx, 2
mov eax, dword [ebp + 0x14]
test eax, eax
jne 0x1001b501
mov dword [ebp - 0x2250], 0
mov esi, dword [ebp - 0x24]
test esi, esi
je 0x1001b4b5
cmp dword [esi], 0
je 0x1001b4af
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ecx, 1
test eax, eax
je 0x1001b4fe
push str.RegOpenKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, 1
test eax, eax
je 0x1001b4fe
push 0
push dword [esi]
lea ecx, [ebp - 0x2250]
push ecx
push 0x20019
push 0
push ebx
push dword [ebp + 0xc]
call eax
jmp 0x1001b4cd
cmp dword [esi + 4], 0
je 0x1001b1c3
lea eax, [ebp - 0x2250]
push eax
push 0x2001f
push 0
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1001b1c3
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x1001b30f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x2250]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], 0
test eax, eax
je 0x1001b39d
mov dword [ebp - 0x2250], 0
mov esi, dword [ebp - 0x24]
test esi, esi
je 0x1001b23e
cmp dword [esi], 0
je 0x1001b238
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1001b284
push str.RegOpenKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1001b284
push 0
push dword [esi]
lea ecx, [ebp - 0x2250]
push ecx
push 0x20019
push 0
push ebx
push dword [ebp + 0xc]
call eax
test eax, eax
jne 0x1001b284
jmp 0x1001b25a
mov ecx, 1
mov dword [ebp - 0x44], 0x80020009
cmp ecx, 2
jl 0x1001b811
jmp 0x1001b4a2
cmp dword [esi + 4], 0
je 0x1001b284
lea eax, [ebp - 0x2250]
push eax
push 0x20019
push 0
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1001b284
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x1001b30f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x2250]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], 0
test eax, eax
je 0x1001b39d
mov dword [ebp - 0x3c], 0
mov edi, dword [ebp - 0x24]
test edi, edi
je 0x1001b332
cmp dword [edi], 0
je 0x1001b328
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, 1
test eax, eax
je 0x1001b855
push str.RegCreateKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1001b855
mov ecx, dword [edi]
sub esp, 0x2c
mov dword [esp + 0x24], ecx
lea ecx, [ebp - 0x2250]
mov dword [esp + 0x20], ecx
lea ecx, [ebp - 0x3c]
mov dword [esp + 0x1c], ecx
movaps xmm0, xmmword [0x1004aa60]
movups xmmword [esp + 8], xmm0
mov dword [esp + 4], ebx
mov ecx, dword [ebp + 0xc]
mov dword [esp], ecx
mov dword [esp + 0x28], 0
mov dword [esp + 0x18], 0
call eax
jmp 0x1001b36a
mov eax, dword [ebp - 0x2250]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x10], 0
jmp 0x1001b39d
cmp dword [edi + 4], 0
je 0x1001b850
sub esp, 0x24
lea eax, [ebp - 0x2250]
mov dword [esp + 0x20], eax
lea eax, [ebp - 0x3c]
mov dword [esp + 0x1c], eax
movaps xmm0, xmmword [0x1004aa60]
movups xmmword [esp + 8], xmm0
mov dword [esp + 4], ebx
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test eax, eax
jne 0x1001b855
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x1001b386
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
jmp 0x1001b388
xor esi, esi
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 0
test esi, esi
jne 0x1001b855
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp - 0x20]
push ebx
call fcn.1001a6c0
mov esi, eax
test eax, eax
js 0x1001b81e
mov ebx, dword [ebp + 8]
movzx eax, word [ebx]
cmp ax, 0x3d
jne 0x1001b3e4
mov ecx, dword [ebp - 0x20]
push ebx
push 0
lea eax, [ebp - 0x2c]
push eax
call fcn.1001bd20
mov esi, eax
mov edi, eax
test eax, eax
mov ebx, dword [ebp + 8]
js 0x1001b827
movzx eax, word [ebx]
cmp ax, 0x7b
jne 0x1001add0
push ebx
call fcn.10033e2b
add esp, 4
cmp eax, 1
jne 0x1001add0
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp - 0x20]
push 0
push dword [ebp + 0x10]
push eax
push ebx
call fcn.1001ad60
mov edi, eax
test eax, eax
js 0x1001b827
mov ecx, dword [ebp - 0x20]
push dword [ebp + 8]
call fcn.1001a6c0
mov esi, eax
mov edi, eax
test eax, eax
mov ebx, dword [ebp + 8]
jns 0x1001add0
jmp 0x1001b827
mov ecx, 3
xor ebx, ebx
mov dl, 1
jmp 0x1001af25
cmp dword [ebp + 0x14], 0
jne 0x1001b7f2
cmp dword [ebp - 0x30], 0
je 0x1001b7f2
mov dword [ebp - 0x3c], 0
lea eax, [ebp - 0x3c]
push eax
push 0x20006
push 0
push 0
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1001b7b0
push eax
call fcn.1001c2a0
add esp, 4
mov esi, eax
mov ecx, 3
cmp ecx, 2
jl 0x1001b811
mov edi, esi
je 0x1001add0
jmp 0x1001b827
cmp dword [esi + 4], 0
je 0x1001b4f9
lea eax, [ebp - 0x2250]
push eax
push 0x20019
push 0
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, eax
test eax, eax
jne 0x1001b4fe
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x1001b4e5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, eax
jmp 0x1001b4e7
xor ecx, ecx
mov eax, dword [ebp - 0x2250]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 0
jmp 0x1001b4fe
mov ecx, 1
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x40], ecx
test ecx, ecx
mov ecx, 1
cmove ecx, eax
mov dword [ebp - 0x48], ecx
push 0xffffffffffffffff
push ebx
push 0x104
lea eax, [ebp - 0x250]
push eax
call fcn.10034225
add esp, 0x10
cmp eax, 0x16
jge 0x1001b546
cmp eax, 0xc
jge 0x1001b8a4
mov dword [ebp - 0x10], 0
test eax, eax
je 0x1001b565
jmp 0x1001b8b7
cmp eax, 0x22
jl 0x1001b88e
cmp eax, 0x50
jl 0x1001b880
mov dword [ebp - 0x10], 0
jne 0x1001b8b7
mov ecx, dword [ebp - 0x20]
push ebx
call fcn.1001a6c0
mov edi, eax
test eax, eax
js 0x1001b827
mov ecx, dword [ebp - 0x20]
push dword [ebp + 8]
call fcn.1001bc60
mov esi, eax
test eax, eax
js 0x1001b81e
mov ebx, dword [ebp + 8]
cmp word [ebx], 0x7b
jne 0x1001b5e6
push ebx
call fcn.10033e2b
add esp, 4
cmp eax, 1
mov eax, dword [ebp - 0x40]
jne 0x1001b5e9
mov ecx, dword [ebp - 0x20]
push dword [ebp - 0x48]
push 0
push dword [ebp - 0x2c]
push ebx
call fcn.1001ad60
cmp dword [ebp - 0x48], 0
jne 0x1001b5c8
mov edi, eax
test eax, eax
js 0x1001b827
mov ecx, dword [ebp - 0x20]
push dword [ebp + 8]
call fcn.1001a6c0
mov esi, eax
mov edi, eax
test eax, eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 0x40]
jns 0x1001b5e9
jmp 0x1001b827
mov eax, dword [ebp - 0x40]
cmp eax, 2
je 0x1001add0
test eax, eax
je 0x1001b605
cmp dword [ebp + 0x14], 0
jne 0x1001add0
jmp 0x1001b84d
cmp dword [ebp + 0x14], 0
je 0x1001b6ac
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x2250], 0
sub esp, 0x30
xorps xmm0, xmm0
movups xmmword [esp + 0x14], xmm0
lea ecx, [ebp - 0x2250]
mov dword [esp + 0x10], ecx
mov dword [esp], eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x1001b6ac
cmp dword [ebp - 0x2250], 0
je 0x1001b6ac
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x250]
push eax
call fcn.1001ba20
cmp dword [ebp - 0x30], 0
je 0x1001add0
test eax, eax
je 0x1001add0
lea ecx, [ebp - 0x2c]
lea eax, [ebp - 0x250]
push eax
call fcn.1001bb10
jmp 0x1001add0
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x2250], 0
sub esp, 0x30
xorps xmm0, xmm0
movups xmmword [esp + 0x14], xmm0
lea ecx, [ebp - 0x2250]
mov dword [esp + 0x10], ecx
mov dword [esp], eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
sete bl
cmp dword [ebp - 0x2250], 0
setne bh
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x1001b73b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
test eax, eax
je 0x1001b742
jmp 0x1001b84d
mov dword [ebp - 0x28], 0
and bl, bh
cmp dword [ebp - 0x30], 0
sete al
or al, bl
mov ebx, dword [ebp + 8]
jne 0x1001add0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2250], eax
mov dword [ebp - 0x224c], 0
mov dword [ebp - 0x2248], 0
lea ecx, [ebp - 0x2250]
lea eax, [ebp - 0x250]
push eax
call fcn.1001c2c0
mov dword [ebp - 0x2250], 0
mov dword [ebp - 0x224c], 0
mov dword [ebp - 0x2248], 0
test eax, eax
je 0x1001add0
jmp 0x1001b862
mov edi, dword [ebp - 0x3c]
lea eax, [ebp - 0x2250]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, 0xfffffffd
je 0x1001b7e7
push eax
call fcn.1001c2a0
add esp, 4
mov esi, eax
test edi, edi
je 0x1001b494
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1001b494
test edi, edi
je 0x1001b7f2
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x20]
push ebx
call fcn.1001bc60
mov esi, eax
mov ecx, eax
shr ecx, 0x1f
or ecx, 2
mov ebx, dword [ebp + 8]
cmp ecx, 2
jge 0x1001b4a2
mov edi, dword [ebp - 0x44]
test ecx, ecx
je 0x1001add0
jmp 0x1001b827
mov edi, esi
jmp 0x1001b827
mov edi, 0x80020009
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x1001b835
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, edi
add esp, 0x2244
pop esi
pop edi
pop ebx
pop ebp
ret 0x10
push eax
jmp 0x1001b856
mov esi, 1
push esi
call fcn.1001c2a0
add esp, 4
mov edi, eax
jmp 0x1001b827
push eax
call fcn.1001c2a0
add esp, 4
mov edi, eax
mov eax, dword [ebp - 0x2250]
test eax, eax
je 0x1001b827
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1001b827
mov dword [ebp - 0x10], 0
cmp eax, 0x22
je 0x1001b89a
jmp 0x1001b8b7
mov dword [ebp - 0x10], 0
cmp eax, 0x16
jne 0x1001b8b7
push 0x80070057
call fcn.10015ab0
mov dword [ebp - 0x10], 0
jne 0x1001b8b7
push 0x8007000e
call fcn.10015ab0
push 0x80004005
call fcn.10015ab0
nop word cs:[eax + eax]
nop dword [eax + eax]
push ebp
sub esp, 0x30
add ebp, 0xc
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x1001b8e5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0x30
pop ebp
ret