Function at 0x4fa460
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ec43e
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x50
mov eax, dword [0x69001c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x58], eax
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0xc]
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x4c], 0
mov edx, dword [eax]
test edx, edx
jne 0x4fa4d2
xor eax, eax
mov dword [esi], edx
mov dword [esi + 0x10], edx
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [ebp - 4], eax
jmp 0x4fa6ad
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x4fa4dc
mov eax, dword [edi]
lea ecx, [ebp - 0x50]
push ecx
push 0
lea ecx, [ebp - 0x54]
push ecx
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4fa691
cmp dword [ebp - 0x50], eax
je 0x4fa691
mov eax, dword [ebp - 0x54]
cmp eax, 1
je 0x4fa512
cmp eax, 2
jne 0x4fa691
xor eax, eax
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
mov dword [ebp - 4], 1
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x34]
shr ecx, 1
cmp ecx, eax
ja 0x4fa57f
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
mov dword [ebp - 0x34], ecx
cmovae eax, dword [ebp - 0x44]
xor edx, edx
mov word [eax + ecx*2], dx
jmp 0x4fa58c
sub ecx, eax
push 0
push ecx
lea ecx, [ebp - 0x44]
call fcn.0043a310
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
cmp dword [edi + 0x14], 8
jb 0x4fa59f
mov edi, dword [edi]
lea ecx, [ebp - 0x50]
push ecx
push eax
mov eax, dword [ebp - 0x58]
push 0
push 0
push edi
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4fa676
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
push dword [ebp - 0x34]
cmovae eax, dword [ebp - 0x44]
lea ecx, [ebp - 0x2c]
push eax
call fcn.00406e80
mov edx, dword [ebp - 0x1c]
test edx, edx
je 0x4fa61c
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x2c]
mov edi, dword [ebp - 0x2c]
cmovae ecx, edi
setae byte [ebp - 0x45]
cmp word [ecx + edx*2 - 2], 0
jne 0x4fa61c
lea ecx, [edx - 1]
cmp ecx, edx
ja 0x4fa60f
cmp byte [ebp - 0x45], 0
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x1c], ecx
cmovne eax, edi
xor edx, edx
mov word [eax + ecx*2], dx
jmp 0x4fa61c
sub ecx, edx
push 0
push ecx
lea ecx, [ebp - 0x2c]
call fcn.0043a310
movups xmm0, xmmword [ebp - 0x2c]
mov dword [esi], 0
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
mov word [ebp - 0x2c], ax
movq xmm0, qword [ebp - 0x1c]
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x4c], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.004075e0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.004075e0
jmp 0x4fa6b4
xor eax, eax
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
jmp 0x4fa655
mov dword [esi], 0
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x4c], 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0059046a
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc