Function at 0x21795e6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
lea eax, [ebp - 0x14]
push esi
lea ecx, [ebp - 0x10]
push edi
xor esi, esi
push eax
mov dword [0x218c354], esi
push ecx
mov dword [0x218c34c], esi
call sub.SECURITY.dll_EnumerateSecurityPackagesW
test eax, eax
jne 0x21796cc
mov eax, dword [ebp - 0x10]
add eax, eax
push eax
call fcn.02171697
add esp, 4
mov dword [0x218c350], eax
mov eax, dword [ebp - 0x10]
add eax, eax
push eax
call fcn.02171697
add esp, 4
mov dword [0x218c358], eax
cmp dword [0x218c350], esi
je 0x217969c
cmp eax, esi
je 0x217969c
mov edx, dword [ebp - 0x14]
cmp dword [ebp - 0x10], esi
jbe 0x21796c4
test byte [edx], 0x18
je 0x217966a
mov cx, word [edx + 6]
mov edi, dword [0x218c354]
mov eax, dword [0x218c358]
mov word [eax + edi*2], cx
inc dword [0x218c354]
mov eax, dword [edx]
test al, 0x18
je 0x2179691
not eax
or eax, 0xffffffbf
je 0x2179691
mov ax, word [edx + 6]
mov ecx, dword [0x218c34c]
mov edi, dword [0x218c350]
mov word [edi + ecx*2], ax
inc dword [0x218c34c]
add edx, 0x14
inc esi
cmp dword [ebp - 0x10], esi
ja 0x217964c
jmp 0x21796c4
mov eax, dword [0x218c350]
push eax
call fcn.02171305
add esp, 4
mov eax, dword [0x218c358]
push eax
call fcn.02171305
add esp, 4
xor eax, eax
mov dword [0x218c350], eax
mov dword [0x218c358], eax
push dword [ebp - 0x14]
call sub.SECURITY.dll_FreeContextBuffer
xor edi, edi
mov eax, 2
mov dword [0x218cbe0], edi
mov dword [0x218cbd8], edi
mov dword [0x218cbe4], edi
mov dword [0x218cbd4], eax
push 0x218c35c
mov dword [0x218cbdc], eax
push 0x20019
mov dword [0x218cbd0], edi
push edi
mov dword [0x218cbe8], edi
mov dword [0x218cbec], 1
push 0x2187228
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x21799a4
lea eax, [ebp - 4]
lea ecx, [ebp - 8]
push eax
lea edx, [ebp - 0xc]
push ecx
mov eax, dword [0x218c35c]
push edx
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 4], 4
push edi
push 0x2187210
push eax
call esi
test eax, eax
jne 0x2179776
cmp dword [ebp - 0xc], 1
jne 0x2179776
cmp dword [ebp - 4], edi
je 0x2179776
cmp word [ebp - 8], 0x79
je 0x217976c
cmp word [ebp - 8], 0x59
jne 0x2179776
mov dword [0x218cbe0], 1
lea eax, [ebp - 4]
lea ecx, [ebp - 8]
push eax
lea edx, [ebp - 0xc]
push ecx
mov eax, dword [0x218c35c]
mov dword [ebp - 4], 4
push edx
push 0
push 0x21871f0
push eax
call esi
test eax, eax
jne 0x21797c0
cmp dword [ebp - 0xc], 1
jne 0x21797c0
cmp dword [ebp - 4], 0
je 0x21797c0
cmp word [ebp - 8], 0x79
je 0x21797b6
cmp word [ebp - 8], 0x59
jne 0x21797c0
mov dword [0x218cbd8], 1
lea eax, [ebp - 4]
lea ecx, [ebp - 8]
push eax
lea edx, [ebp - 0xc]
push ecx
mov eax, dword [0x218c35c]
mov dword [ebp - 4], 4
push edx
push 0
push str.IgnoreServerExceptions
push eax
call esi
test eax, eax
jne 0x217980a
cmp dword [ebp - 0xc], 1
jne 0x217980a
cmp dword [ebp - 4], 0
je 0x217980a
cmp word [ebp - 8], 0x79
je 0x2179800
cmp word [ebp - 8], 0x59
jne 0x217980a
mov dword [0x218cbec], 0
xor edi, edi
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0xc]
push edi
mov ebx, str.LegacyAuthenticationService
push ecx
mov eax, dword [0x218c35c]
push edi
mov dword [ebp - 4], edi
push ebx
push eax
call esi
test eax, eax
jne 0x21798a8
cmp dword [ebp - 0xc], 3
jne 0x21798a8
cmp dword [ebp - 4], 6
jb 0x21798a8
push dword [ebp - 4]
call fcn.02171697
add esp, 4
mov dword [0x218cbe4], eax
cmp eax, edi
je 0x21798a8
lea eax, [ebp - 4]
lea edx, [ebp - 0xc]
push eax
mov eax, dword [0x218c35c]
push dword [0x218cbe4]
push edx
push edi
push ebx
push eax
call esi
test eax, eax
jne 0x2179890
cmp dword [ebp - 0xc], 3
jne 0x2179890
cmp dword [ebp - 4], 6
jb 0x2179890
mov eax, dword [0x218cbe4]
cmp word [eax + 2], di
jne 0x2179890
mov eax, dword [ebp - 4]
mov ecx, dword [0x218cbe4]
and al, 0xfe
cmp word [eax + ecx - 2], di
je 0x21798a8
mov eax, dword [0x218cbe4]
push eax
call fcn.02171305
mov dword [0x218cbe4], 0
add esp, 4
lea eax, [ebp - 4]
lea ecx, [ebp - 8]
push eax
lea edx, [ebp - 0xc]
push ecx
mov eax, dword [0x218c35c]
mov dword [ebp - 4], 4
push edx
push 0
push str.LegacyAuthenticationLevel
push eax
call esi
test eax, eax
jne 0x21798dc
cmp dword [ebp - 0xc], 4
jne 0x21798dc
mov eax, dword [ebp - 8]
mov dword [0x218cbd4], eax
lea eax, [ebp - 4]
lea ecx, [ebp - 8]
push eax
lea edx, [ebp - 0xc]
push ecx
mov eax, dword [0x218c35c]
mov dword [ebp - 4], 4
push edx
push 0
push str.LegacyImpersonationLevel
push eax
call esi
test eax, eax
jne 0x2179910
cmp dword [ebp - 0xc], 4
jne 0x2179910
mov eax, dword [ebp - 8]
mov dword [0x218cbdc], eax
lea eax, [ebp - 4]
lea ecx, [ebp - 8]
push eax
lea edx, [ebp - 0xc]
push ecx
mov eax, dword [0x218c35c]
mov dword [ebp - 4], 4
push edx
push 0
push str.LegacyMutualAuthentication
push eax
call esi
test eax, eax
jne 0x217995a
cmp dword [ebp - 0xc], 1
jne 0x217995a
cmp dword [ebp - 4], 0
je 0x217995a
cmp word [ebp - 8], 0x79
je 0x2179950
cmp word [ebp - 8], 0x59
jne 0x217995a
mov dword [0x218cbd0], 1
lea eax, [ebp - 4]
lea ecx, [ebp - 8]
push eax
lea edx, [ebp - 0xc]
push ecx
mov eax, dword [0x218c35c]
mov dword [ebp - 4], 4
push edx
push 0
push str.LegacySecureReferences
push eax
call esi
test eax, eax
jne 0x21799a4
cmp dword [ebp - 0xc], 1
jne 0x21799a4
cmp dword [ebp - 4], 0
je 0x21799a4
cmp word [ebp - 8], 0x79
je 0x217999a
cmp word [ebp - 8], 0x59
jne 0x21799a4
mov dword [0x218cbe8], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret