Function at 0x468660
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c8d7d
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x66e5c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov ecx, eax
mov edx, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x2c], edx
cmp dword [eax + 0x14], 7
mov dword [ebp - 0x34], eax
jbe 0x4686a4
mov ecx, dword [eax]
mov dword [eax + 0x10], 0
xor eax, eax
mov word [ecx], ax
test edx, edx
jne 0x4686bb
xor al, al
jmp 0x46885c
xorps xmm0, xmm0
mov dword [ebp - 0x14], eax
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
lea eax, [ebp - 0x25]
push eax
push 0x200
lea ecx, [ebp - 0x1c]
mov byte [ebp - 0x25], 0
call fcn.00468b20
mov esi, dword [ebp - 0x18]
mov eax, esi
mov edi, dword [ebp - 0x1c]
sub eax, edi
cmp dword [ebx + 0x14], 7
mov dword [ebp - 0x20], eax
mov eax, ebx
mov dword [ebp - 0x24], 0
jbe 0x468709
mov eax, dword [ebx]
lea ecx, [ebp - 0x20]
push ecx
push edi
lea ecx, [ebp - 0x24]
push ecx
push 0
push eax
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x30], eax
test eax, eax
jne 0x468733
test ecx, ecx
jne 0x468733
mov bl, 1
jmp 0x468811
cmp ecx, 1
je 0x46874b
cmp ecx, 2
je 0x46874b
test ecx, ecx
je 0x46874b
mov eax, 0x490
jmp 0x46880c
cmp eax, 0xea
jne 0x4687a0
mov ecx, dword [ebp - 0x20]
cmp ecx, 1
jbe 0x46880c
lea eax, [ebp - 0x25]
mov byte [ebp - 0x25], 0
push eax
cmp edi, esi
lea eax, [ecx + 8]
push eax
cmovne esi, edi
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x18], esi
call fcn.004688c0
cmp dword [ebx + 0x14], 7
jbe 0x468782
mov ebx, dword [ebx]
mov edi, dword [ebp - 0x1c]
lea eax, [ebp - 0x20]
push eax
push edi
lea eax, [ebp - 0x24]
push eax
push 0
push ebx
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x30], eax
test eax, eax
jne 0x46880e
mov byte [ebp - 0x25], al
cmp esi, dword [ebp - 0x14]
je 0x4687b4
mov byte [esi], al
inc esi
mov dword [ebp - 0x18], esi
jmp 0x4687c7
lea eax, [ebp - 0x25]
push eax
push esi
lea ecx, [ebp - 0x1c]
call fcn.00468cb0
mov esi, dword [ebp - 0x18]
mov edi, dword [ebp - 0x1c]
mov byte [ebp - 0x25], 0
cmp esi, dword [ebp - 0x14]
je 0x4687d9
mov byte [esi], 0
inc esi
mov dword [ebp - 0x18], esi
jmp 0x4687e9
lea eax, [ebp - 0x25]
push eax
push esi
lea ecx, [ebp - 0x1c]
call fcn.00468cb0
mov edi, dword [ebp - 0x1c]
mov edx, edi
lea ecx, [edx + 2]
nop
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4687f0
sub edx, ecx
mov ecx, dword [ebp - 0x34]
sar edx, 1
push edx
push edi
call fcn.0044e9f0
mov eax, dword [ebp - 0x30]
test eax, eax
sete bl
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x46885a
mov ecx, dword [ebp - 0x14]
mov eax, edi
sub ecx, edi
cmp ecx, 0x1000
jb 0x46883b
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46887a
push ecx
push edi
call fcn.004c427d
add esp, 8
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c3ed9
mov esp, ebp
pop ebp
ret 0xc
call fcn.004d85ca
int3