Function at 0x5e9220
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x641add
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x6ccc30]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, 7
mov dword [ebp - 0x24], 0
xor eax, eax
mov dword [ebp - 0x20], edi
mov word [ebp - 0x34], ax
mov edx, dword [ebp + 8]
mov ecx, edx
mov dword [ebp - 4], eax
lea esi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5e9270
sub ecx, esi
sar ecx, 1
cmp ecx, 0x1a
jbe 0x5e94ce
movzx eax, word [edx + 0x34]
cmp eax, 0x38
jne 0x5e929a
push 5
push 0x64c868
jmp 0x5e92b4
cmp eax, 0x42
jne 0x5e92a8
push 4
push 0x64c874
jmp 0x5e92b4
cmp eax, 0x43
jne 0x5e92bf
push 2
push 0x64c880
lea ecx, [ebp - 0x34]
call fcn.005d2810
mov edi, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
mov eax, 0x7ffffffe
sub eax, ecx
cmp eax, 0x1d
jb 0x5e950b
cmp edi, 8
mov dword [ebp - 0x5c], 0
lea eax, [ebp - 0x34]
mov dword [ebp - 0x58], 0
cmovae eax, dword [ebp - 0x34]
mov esi, 7
mov dword [ebp - 0x18], eax
lea eax, [ecx + 0x1d]
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x50], ecx
cmp eax, esi
jbe 0x5e9337
mov esi, eax
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x5e9316
mov esi, 0x7ffffffe
jmp 0x5e9320
mov eax, 0xa
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
push eax
lea ecx, [ebp - 0x6c]
call fcn.005d2900
mov ecx, eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x6c], ecx
movups xmm0, xmmword [0x64c8a8]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], esi
movups xmmword [ecx], xmm0
movups xmm0, xmmword [0x64c8b8]
movups xmmword [ecx + 0x10], xmm0
movups xmm0, xmmword [0x64c8c8]
movups xmmword [ecx + 0x20], xmm0
movq xmm0, qword [0x64c8d8]
movq qword [ecx + 0x30], xmm0
mov ax, word [0x64c8e0]
mov word [ecx + 0x38], ax
add ecx, 0x3a
mov eax, dword [ebp - 0x24]
add eax, eax
push eax
push dword [ebp - 0x18]
push ecx
call fcn.0061e340
mov eax, dword [ebp - 0x50]
xor edx, edx
mov ecx, dword [ebp - 0x14]
add esp, 0xc
mov word [eax + ecx*2], dx
push 0xe
push str.AVEntitlement
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 1
call fcn.005d7ff0
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 0x5e93f3
inc eax
lea ecx, [ebp - 0x6c]
push eax
push dword [ebp - 0x6c]
call fcn.005d31d0
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 0x5e94af
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 0x5e9497
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 0x5e9497
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 0x5e94af
mov byte [ebp - 0x51], 1
cmp esi, 0x64
jae 0x5e94b3
mov byte [ebp - 0x51], 0
mov eax, dword [ebp - 0x38]
mov byte [ebp - 4], 7
cmp eax, 8
jb 0x5e94d2
inc eax
lea ecx, [ebp - 0x4c]
push eax
push dword [ebp - 0x4c]
call fcn.005d31d0
jmp 0x5e94d2
mov byte [ebp - 0x51], 0
mov dword [ebp - 4], 9
cmp edi, 8
jb 0x5e94ed
lea ecx, [edi + 1]
push ecx
push dword [ebp - 0x34]
lea ecx, [ebp - 0x34]
call fcn.005d31d0
mov al, byte [ebp - 0x51]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005ce525
mov esp, ebp
pop ebp
ret
call fcn.005e8c90
int3