Function at 0x45ffc0
Capabilities:
Delete registry value

Disassembly:
push ebp
lea ebp, [esp - 0x220c]
mov eax, 0x220c
call fcn.0046f5e0
push 0xffffffffffffffff
push 0x497158
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x4c4074]
xor eax, ebp
mov dword [ebp + 0x2208], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 0x2218]
mov edi, dword [ebp + 0x2214]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0
mov ecx, eax
push edi
call fcn.0045fe10
mov esi, eax
test esi, esi
js 0x460775
cmp word [edi], 0x7d
je 0x460775
nop dword [eax]
push str.Delete
push edi
mov dword [ebp - 0x18], 1
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
push 0x4ad518
sbb ebx, ebx
push edi
inc ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x460080
test ebx, ebx
je 0x460180
mov ecx, dword [ebp - 0x10]
push edi
call fcn.0045fe10
mov esi, eax
test esi, esi
js 0x460775
cmp dword [ebp + 0x221c], 0
je 0x460180
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov byte [ebp - 4], 1
mov ecx, edi
movzx eax, word [edi]
test ax, ax
je 0x4600e8
mov edx, eax
cmp dx, 0x5c
je 0x4600e0
push ecx
call dword [sym.imp.USER32.dll_CharNextW]
mov ecx, eax
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x4600c5
jmp 0x4600e8
test ecx, ecx
jne 0x4606d4
mov esi, 0x4ae904
nop dword [eax]
push dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x46013a
add esi, 4
cmp esi, str.RegDeleteKeyTransactedW
jl 0x4600f0
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x34]
push edi
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
call fcn.0045fb80
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
test ebx, ebx
je 0x460175
mov ebx, dword [ebp - 0x10]
mov ecx, ebx
push edi
call fcn.0045fe10
mov esi, eax
test esi, esi
js 0x4606e9
push edi
mov ecx, ebx
call fcn.0045fb00
mov esi, eax
test esi, esi
js 0x4606e9
mov byte [ebp - 4], 0
mov dword [ebp - 0x30], 0
jmp 0x460455
mov byte [ebp - 4], 0
mov dword [ebp - 0x30], 0
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov ebx, dword [ebp - 0x10]
test eax, eax
jne 0x4601a8
push edi
mov ecx, ebx
mov dword [ebp - 0x18], eax
call fcn.0045fe10
mov esi, eax
test esi, esi
js 0x460775
push 0x4ad510
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4602f6
lea eax, [ebp]
mov ecx, ebx
push eax
call fcn.0045fe10
mov esi, eax
test esi, esi
js 0x460775
push edi
mov ecx, ebx
call fcn.0045fe10
mov esi, eax
test esi, esi
js 0x460775
cmp word [edi], 0x3d
jne 0x4606df
cmp dword [ebp + 0x221c], 0
je 0x460262
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov byte [ebp - 4], 2
mov ecx, ebx
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x40], eax
lea eax, [ebp]
push edi
push eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0x3c], 0
push eax
mov dword [ebp - 0x38], 0
call fcn.0045f5d0
mov esi, eax
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
test esi, esi
js 0x4606f6
mov byte [ebp - 4], 0
mov dword [ebp - 0x3c], 0
jmp 0x460455
cmp dword [ebp + 0x2220], 0
jne 0x4602df
cmp dword [ebp - 0x18], 0
je 0x4602df
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x4c]
push 0x20006
push 0
push dword [ebp - 0x14]
call fcn.0041ab80
test eax, eax
jne 0x46072b
mov ebx, dword [ebp - 0x4c]
lea eax, [ebp]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x4602bf
cmp eax, 2
jne 0x460703
mov byte [ebp - 4], 0
test ebx, ebx
je 0x4602d5
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x4c], 0
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x48], 0
push edi
mov ecx, ebx
call fcn.0045fb00
mov esi, eax
test esi, esi
js 0x460775
jmp 0x4606c5
movzx eax, word [edi]
mov ecx, edi
test ax, ax
je 0x460325
mov edx, eax
cmp dx, 0x5c
je 0x46031d
push ecx
call dword [sym.imp.USER32.dll_CharNextW]
mov ecx, eax
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x460302
jmp 0x460325
test ecx, ecx
jne 0x4606df
cmp dword [ebp + 0x221c], 0
je 0x4604b0
mov esi, dword [ebp - 0x14]
lea ecx, [ebp - 0x28]
push 0x2001f
push edi
push esi
call fcn.0041ab80
test eax, eax
je 0x460425
push 0x20019
push edi
push esi
lea ecx, [ebp - 0x28]
call fcn.0041ab80
test eax, eax
je 0x460425
mov esi, dword [ebp - 0x20]
mov dword [ebp - 0x18], 0
test esi, esi
je 0x4603ca
cmp dword [esi], 0
je 0x4603bd
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x46038c
mov eax, 1
jmp 0x4603e9
push str.RegCreateKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4603c3
push 0
push dword [esi]
lea ecx, [ebp - 0x5c]
push ecx
lea ecx, [ebp - 0x18]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
push edi
push dword [ebp - 0x14]
call eax
jmp 0x4603e9
cmp dword [esi + 4], 0
jne 0x4603ca
mov eax, 1
jmp 0x4603e9
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push edi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x46076c
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x460406
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x28], 0
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], 0
test eax, eax
jne 0x46076c
mov ebx, dword [ebp - 0x10]
push edi
mov ecx, ebx
call fcn.0045fe10
mov esi, eax
test esi, esi
js 0x460775
cmp word [edi], 0x3d
jne 0x460455
push edi
push 0
lea eax, [ebp - 0x28]
mov ecx, ebx
push eax
call fcn.0045f5d0
mov esi, eax
test esi, esi
js 0x460775
cmp word [edi], 0x7b
jne 0x4606c5
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x460464
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x4606c5
push 0
push dword [ebp + 0x221c]
mov ecx, ebx
push dword [ebp - 0x28]
push edi
call fcn.0045ffc0
mov esi, eax
test esi, esi
js 0x460775
push edi
mov ecx, ebx
call fcn.0045fe10
mov esi, eax
test esi, esi
js 0x460775
jmp 0x4606c5
mov esi, dword [ebp + 0x2220]
test esi, esi
jne 0x4604cf
push 0x20019
push edi
push dword [ebp - 0x14]
lea ecx, [ebp - 0x28]
call fcn.0041ab80
mov ebx, eax
jmp 0x4604d4
mov ebx, 2
test ebx, ebx
mov ecx, 1
push 0xffffffffffffffff
mov eax, esi
cmovne eax, ecx
push edi
mov dword [ebp - 0x1c], eax
lea eax, [ebp + 0x2000]
push 0x104
push eax
call fcn.00477cc3
push eax
call fcn.00407150
mov ecx, dword [ebp - 0x10]
add esp, 0x14
push edi
call fcn.0045fe10
mov esi, eax
test esi, esi
js 0x460775
mov ecx, dword [ebp - 0x10]
push edi
call fcn.0045fb00
mov esi, eax
test esi, esi
js 0x460775
cmp word [edi], 0x7b
jne 0x460579
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x460531
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x460579
push dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
push 0
push dword [ebp - 0x28]
push edi
call fcn.0045ffc0
mov esi, eax
test esi, esi
jns 0x460566
cmp dword [ebp - 0x1c], 0
je 0x460775
mov ecx, dword [ebp - 0x10]
push edi
call fcn.0045fe10
mov esi, eax
test esi, esi
js 0x460775
cmp ebx, 2
je 0x4606c5
test ebx, ebx
je 0x46059a
cmp dword [ebp + 0x2220], 0
jne 0x4606c5
mov ecx, ebx
jmp 0x46076e
cmp dword [ebp + 0x2220], 0
je 0x460620
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push eax
push 0
push 0
push 0
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x460620
cmp dword [ebp - 0x1c], eax
jbe 0x460620
mov ebx, 0x4ae904
nop dword [eax]
push dword [ebx]
lea eax, [ebp + 0x2000]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4606c5
add ebx, 4
cmp ebx, str.RegDeleteKeyTransactedW
jl 0x4605e0
cmp dword [ebp - 0x18], 0
je 0x4606c5
lea eax, [ebp + 0x2000]
push eax
lea ecx, [ebp - 0x28]
call fcn.0045fb80
jmp 0x4606c5
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push eax
push 0
push 0
push 0
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x460650
xor ebx, ebx
jmp 0x460659
xor eax, eax
cmp eax, dword [ebp - 0x1c]
sbb ebx, ebx
neg ebx
mov ecx, dword [ebp - 0x28]
xor eax, eax
test ecx, ecx
je 0x46066e
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], 0
test eax, eax
jne 0x46076c
cmp dword [ebp - 0x18], eax
je 0x4606c5
test ebx, ebx
jne 0x4606c5
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x58]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x58], eax
lea eax, [ebp + 0x2000]
push eax
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
call fcn.0045fcd0
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
test eax, eax
jne 0x460756
mov byte [ebp - 4], al
mov dword [ebp - 0x54], eax
cmp word [edi], 0x7d
jne 0x460050
jmp 0x460775
mov byte [ebp - 4], 0
mov dword [ebp - 0x30], 0
mov esi, 0x80020009
jmp 0x460775
mov byte [ebp - 4], 0
mov dword [ebp - 0x30], 0
jmp 0x460775
mov byte [ebp - 4], 0
mov dword [ebp - 0x3c], 0
jmp 0x460775
mov ecx, eax
call fcn.0045fe00
mov esi, eax
mov byte [ebp - 4], 0
test ebx, ebx
je 0x46074d
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
jmp 0x460775
mov ecx, eax
call fcn.0045fe00
mov esi, eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x46074d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
jmp 0x460775
mov ecx, eax
call fcn.0045fe00
mov esi, eax
mov byte [ebp - 4], 0
mov dword [ebp - 0x54], 0
jmp 0x460775
mov ecx, eax
call fcn.0045fe00
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x460791
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x28], 0
mov eax, esi
mov dword [ebp - 0x24], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x2208]
xor ecx, ebp
call fcn.0046e38e
lea esp, [ebp + 0x220c]
pop ebp
ret 0x10