Function at 0x47efd0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a1509
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x62cf50]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 7
mov word [ebp - 0x34], ax
mov edx, dword [ebp + 8]
mov ecx, edx
mov dword [ebp - 4], eax
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47f020
sub ecx, esi
sar ecx, 1
cmp ecx, 0x1a
jbe 0x47f1f9
movzx eax, word [edx + 0x34]
cmp eax, 0x38
jne 0x47f04a
push 5
push 0x5b41b8
jmp 0x47f064
cmp eax, 0x42
jne 0x47f058
push 4
push 0x5b41c4
jmp 0x47f064
cmp eax, 0x43
jne 0x47f06c
push 2
push 0x5b41d0
lea ecx, [ebp - 0x34]
call fcn.00409db0
mov esi, dword [ebp - 0x24]
lea ecx, [ebp - 0x6c]
xor eax, eax
mov byte [ebp - 4], 1
mov word [ebp - 0x6c], ax
mov dword [ebp - 0x5c], 0
lea eax, [esi + 0x1d]
mov dword [ebp - 0x58], 7
push eax
mov dword [ebp - 0x18], 1
call fcn.00413ce0
push 0x1d
push 0x5b41f8
lea ecx, [ebp - 0x6c]
call fcn.0040f730
cmp dword [ebp - 0x20], 8
lea eax, [ebp - 0x34]
push esi
cmovae eax, dword [ebp - 0x34]
lea ecx, [ebp - 0x6c]
push eax
call fcn.0040f730
push 0xe
push str.AVEntitlement
lea ecx, [ebp - 0x6c]
call fcn.0040f730
mov dword [ebp - 0x3c], 0
xor ecx, ecx
mov dword [ebp - 0x38], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x4c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x3c], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov eax, dword [ebp - 0x58]
mov byte [ebp - 4], 4
cmp eax, 8
jb 0x47f118
inc eax
lea ecx, [ebp - 0x6c]
push eax
push dword [ebp - 0x6c]
call fcn.0040a5e0
xor eax, eax
mov dword [ebp - 0x5c], 0
cmp dword [ebp - 0x38], 8
lea ecx, [ebp - 0x50]
mov word [ebp - 0x6c], ax
mov byte [ebp - 0x51], al
lea eax, [ebp - 0x4c]
cmovae eax, dword [ebp - 0x4c]
xor esi, esi
push ecx
push 0x20019
push esi
push eax
push 0x80000001
mov dword [ebp - 0x58], 7
mov byte [ebp - 4], 3
mov dword [ebp - 0x18], 4
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x47f1d6
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
push esi
push str.iEntitlementLevel
push dword [ebp - 0x50]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x47f1bc
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
mov byte [ebp - 0x51], 1
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push str.bLoginStatus
push dword [ebp - 0x50]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x47f1bc
cmp dword [ebp - 0x14], eax
setne byte [ebp - 0x51]
push dword [ebp - 0x50]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 0x51], 0
je 0x47f1d6
cmp esi, 0x64
jb 0x47f1d6
mov byte [ebp - 0x51], 1
jmp 0x47f1db
xor al, al
mov byte [ebp - 0x51], al
mov eax, dword [ebp - 0x38]
mov byte [ebp - 4], 7
cmp eax, 8
jb 0x47f1f4
inc eax
lea ecx, [ebp - 0x4c]
push eax
push dword [ebp - 0x4c]
call fcn.0040a5e0
mov al, byte [ebp - 0x51]
jmp 0x47f1fe
xor al, al
mov byte [ebp - 0x51], al
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 4], 9
cmp ecx, 8
jb 0x47f21d
inc ecx
push ecx
push dword [ebp - 0x34]
lea ecx, [ebp - 0x34]
call fcn.0040a5e0
mov al, byte [ebp - 0x51]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call int.004016cd
mov esp, ebp
pop ebp
ret