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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x42c
mov eax, dword [ebp + 0x14]
and dword [esp + 4], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
mov dword [esp + 0x1c], eax
push edi
mov eax, ebx
mov dword [esp + 0x18], ecx
call fcn.100044a2
mov esi, eax
test esi, esi
jl 0x1000504b
cmp word [ebx], 0x7d
je 0x10005049
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push str.Delete
push ebx
mov dword [esp + 0x1c], 1
call esi
mov edi, eax
neg edi
push str.ForceRemove
sbb edi, edi
push ebx
inc edi
call esi
test eax, eax
je 0x10004c3e
test edi, edi
je 0x10004d0b
mov ecx, dword [esp + 0x18]
mov eax, ebx
call fcn.100044a2
mov esi, eax
test esi, esi
jl 0x10005038
cmp dword [ebp + 0x10], 0
je 0x10004d0b
push 0x5c
mov eax, ebx
call fcn.10004456
test eax, eax
pop ecx
jne 0x100050ee
push ebx
call fcn.100048b5
test eax, eax
je 0x10004c8a
mov eax, dword [ebp + 0xc]
push ebx
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], eax
call fcn.10003e3b
test edi, edi
je 0x10004d0b
mov ecx, dword [esp + 0x18]
mov eax, ebx
call fcn.100044a2
mov esi, eax
test esi, esi
jl 0x10005038
mov ecx, dword [esp + 0x18]
mov edi, ebx
call fcn.10004916
mov esi, eax
test esi, esi
jl 0x10005038
cmp word [ebx], 0x7b
jne 0x10004cfc
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x10004cfc
mov ecx, dword [esp + 0x18]
push 0
push dword [ebp + 0x10]
push dword [esp + 0x18]
push ebx
call fcn.10004bd0
mov esi, eax
test esi, esi
jl 0x10005038
mov ecx, dword [esp + 0x18]
mov eax, ebx
call fcn.100044a2
mov esi, eax
test esi, esi
jl 0x10005038
cmp word [ebx], 0x7d
jne 0x10004c0d
jmp 0x10005038
push str.NoRemove
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x10004d34
and dword [esp + 0x14], eax
mov ecx, dword [esp + 0x18]
mov eax, ebx
call fcn.100044a2
mov esi, eax
test esi, esi
jl 0x10005038
push 0x1001ef20
push ebx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x10004e20
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x230]
call fcn.100044a2
mov esi, eax
test esi, esi
jl 0x10005038
mov ecx, dword [esp + 0x18]
mov eax, ebx
call fcn.100044a2
mov esi, eax
test esi, esi
jl 0x10005038
cmp word [ebx], 0x3d
jne 0x100050ee
cmp dword [ebp + 0x10], edi
je 0x10004db9
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x14], eax
push ebx
lea eax, [esp + 0x234]
push eax
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x24]
call fcn.100045b3
mov esi, eax
cmp esi, edi
jge 0x10004cb8
cmp dword [esp + 0x10], edi
jmp 0x1000503d
cmp dword [ebp + 0x14], edi
jne 0x10004e10
cmp dword [esp + 0x14], edi
je 0x10004e10
lea eax, [esp + 0x14]
push eax
push 0x20006
push edi
push edi
push dword [ebp + 0xc]
mov dword [esp + 0x28], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x10005031
mov edi, dword [esp + 0x14]
lea eax, [esp + 0x230]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x10004e05
cmp eax, 2
jne 0x10005109
test edi, edi
je 0x10004e10
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x18]
mov edi, ebx
call fcn.10004916
jmp 0x10004cf2
push 0x5c
mov eax, ebx
call fcn.10004456
test eax, eax
pop ecx
jne 0x10005124
cmp dword [ebp + 0x10], edi
je 0x10004f31
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [esp + 0x14]
push eax
push 0x2001f
push edi
push ebx
push dword [ebp + 0xc]
mov dword [esp + 0x28], edi
call esi
cmp eax, edi
jne 0x10004e7e
xor eax, eax
cmp dword [esp + 0x10], edi
je 0x10004e6c
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
mov edi, dword [esp + 0x14]
mov dword [esp + 0x10], edi
je 0x10004efc
jmp 0x10004e82
mov edi, dword [esp + 0x10]
and dword [esp + 0x14], 0
lea eax, [esp + 0x14]
push eax
push 0x20019
push 0
push ebx
push dword [ebp + 0xc]
call esi
xor esi, esi
test eax, eax
jne 0x10004eb6
cmp edi, esi
je 0x10004eaa
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, esi
mov edi, dword [esp + 0x14]
mov dword [esp + 0x10], edi
je 0x10004efc
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x18]
push eax
push esi
push 0x2001f
push esi
push esi
push esi
push ebx
push dword [ebp + 0xc]
mov dword [esp + 0x38], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, esi
jne 0x1000512a
xor eax, eax
cmp edi, esi
je 0x10004eec
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, esi
mov edi, dword [esp + 0x14]
mov dword [esp + 0x10], edi
jne 0x1000512a
mov ecx, dword [esp + 0x18]
mov eax, ebx
call fcn.100044a2
mov esi, eax
test esi, esi
jl 0x10005038
cmp word [ebx], 0x3d
jne 0x10004cb8
push ebx
push 0
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x24]
call fcn.100045b3
jmp 0x10004cae
cmp dword [ebp + 0x14], edi
jne 0x10004f73
lea eax, [esp + 0x1c]
push eax
push 0x20019
push edi
push ebx
push dword [ebp + 0xc]
mov dword [esp + 0x30], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x10004f6d
xor eax, eax
cmp dword [esp + 0x10], edi
je 0x10004f65
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x1c], eax
jmp 0x10004f7b
mov dword [esp + 0x1c], 2
cmp dword [esp + 0x1c], edi
je 0x10004f88
mov dword [ebp + 0x14], 1
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x30]
push 0x104
push eax
call fcn.1000828f
push eax
call fcn.10001069
mov ecx, dword [esp + 0x2c]
add esp, 0x14
mov eax, ebx
call fcn.100044a2
mov esi, eax
test esi, esi
jl 0x10005038
mov ecx, dword [esp + 0x18]
mov edi, ebx
call fcn.10004916
mov esi, eax
test esi, esi
jl 0x10005038
cmp word [ebx], 0x7b
jne 0x1000500b
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x1000500b
push dword [ebp + 0x14]
mov ecx, dword [esp + 0x1c]
push 0
push dword [esp + 0x18]
push ebx
call fcn.10004bd0
mov esi, eax
test esi, esi
jge 0x10004ffa
cmp dword [ebp + 0x14], 0
je 0x10005038
mov ecx, dword [esp + 0x18]
mov eax, ebx
call fcn.100044a2
mov esi, eax
test esi, esi
jl 0x10005038
cmp dword [esp + 0x1c], 2
mov eax, dword [esp + 0x20]
mov dword [ebp + 0x14], eax
je 0x10004cfc
mov eax, dword [esp + 0x1c]
xor edi, edi
cmp eax, edi
je 0x10005054
cmp dword [esp + 0x20], edi
jne 0x10004cfc
call fcn.10003cb1
mov esi, eax
cmp dword [esp + 0x10], 0
je 0x10005049
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp dword [esp + 0x20], edi
je 0x10005096
push dword [esp + 0x10]
call fcn.100048e1
test eax, eax
je 0x10005096
lea eax, [esp + 0x28]
push eax
call fcn.100048b5
test eax, eax
je 0x10004cfc
cmp dword [esp + 0x14], edi
je 0x10004cfc
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x14]
call fcn.10003e3b
jmp 0x10004cfc
push dword [esp + 0x10]
call fcn.100048e1
cmp dword [esp + 0x10], edi
mov dword [esp + 0x1c], eax
je 0x100050bf
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, edi
mov dword [esp + 0x10], edi
jne 0x10005143
cmp dword [esp + 0x14], edi
je 0x10004cfc
cmp dword [esp + 0x1c], edi
jne 0x10004cfc
lea eax, [esp + 0x28]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x10005031
jmp 0x10004cfc
cmp dword [esp + 0x10], 0
je 0x100050ff
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x1000504b
call fcn.10003cb1
test edi, edi
mov esi, eax
je 0x10005038
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10005038
cmp dword [esp + 0x10], edi
jmp 0x100050f3
call fcn.10003cb1
cmp edi, esi
mov ebx, eax
je 0x1000513c
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x1000504b
call fcn.10003cb1
jmp 0x1000504b