Function at 0x460460
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x8448
call fcn.00518940
mov eax, dword [0x5c9ea4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x208
lea eax, [ebp - 0x20c]
mov esi, ecx
push 0
push eax
call fcn.0052fbd0
add esp, 0xc
mov dword [ebp - 0x8420], 0x104
cmp dword [ebp + 0x1c], 8
lea ecx, [ebp - 0x8448]
lea eax, [ebp + 8]
mov dword [ebp - 0x841c], 0
cmovae eax, dword [ebp + 8]
push ecx
push 0x2011b
push 0
push eax
push esi
mov dword [ebp - 0x8418], 0x3fff
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x460570
mov edx, dword [ebp + 0x1c]
cmp edx, 8
jb 0x460511
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x460507
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46072b
push edx
push ecx
call fcn.00518414
add esp, 8
mov edx, dword [ebp + 0x34]
xor eax, eax
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 7
mov word [ebp + 8], ax
cmp edx, 8
jb 0x46055f
mov ecx, dword [ebp + 0x20]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x460555
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46072b
push edx
push ecx
call fcn.00518414
add esp, 8
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005181d3
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x8444]
push eax
lea eax, [ebp - 0x842c]
push eax
lea eax, [ebp - 0x8430]
push eax
lea eax, [ebp - 0x8434]
push eax
lea eax, [ebp - 0x8424]
push eax
lea eax, [ebp - 0x8438]
push eax
lea eax, [ebp - 0x843c]
push eax
lea eax, [ebp - 0x841c]
push eax
push 0
lea eax, [ebp - 0x8420]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x8448]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov esi, dword [ebp - 0x8424]
test esi, esi
je 0x46068e
add esi, 0xffffffff
js 0x46068e
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
nop dword [eax]
xor eax, eax
mov dword [ebp - 0x8418], 0x3fff
push eax
push eax
push eax
push eax
mov word [ebp - 0x8414], ax
lea eax, [ebp - 0x8418]
push eax
lea eax, [ebp - 0x8414]
push eax
push esi
push dword [ebp - 0x8448]
call ebx
test eax, eax
jne 0x460683
lea eax, [ebp - 0x8428]
mov dword [ebp - 0x8428], 0x208
push eax
lea eax, [ebp - 0x414]
push eax
push 0
push 2
lea eax, [ebp - 0x8414]
push eax
push 0
push dword [ebp - 0x8448]
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x460683
cmp dword [ebp + 0x34], 8
lea eax, [ebp + 0x20]
cmovae eax, dword [ebp + 0x20]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x460683
lea eax, [ebp - 0x8414]
push eax
push dword [ebp - 0x8448]
call edi
sub esi, 1
jns 0x4605f0
pop edi
pop ebx
push dword [ebp - 0x8448]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp + 0x1c]
cmp edx, 8
jb 0x4606d0
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4606c6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46072b
push edx
push ecx
call fcn.00518414
add esp, 8
mov edx, dword [ebp + 0x34]
xor eax, eax
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 7
mov word [ebp + 8], ax
cmp edx, 8
jb 0x46071a
mov ecx, dword [ebp + 0x20]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x460710
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46072b
push edx
push ecx
call fcn.00518414
add esp, 8
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.005181d3
mov esp, ebp
pop ebp
ret
call fcn.00533a91
int3