Function at 0x768c1f20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
xor ebx, ebx
sub esp, 0x8c
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
cmp dword [eax + 0x14], 3
jne 0x768c1f4e
mov ebx, dword [eax + 0x18]
test ebx, ebx
je 0x768c1f4e
cmp dword [ebx + 0x18], 0x4c
jne 0x768c21d0
mov ebx, dword [ebx + 0x1c]
test byte [0x768c7158], 8
jne 0x768c2182
mov eax, dword [eax + 0xc]
cmp eax, 2
je 0x768c1f70
test byte [0x768c7158], 1
jne 0x768c20e5
test ebx, ebx
je 0x768c2125
lea eax, [ebp - 0x5c]
mov dword [esp + 0xc], 0x20019
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0
mov dword [esp + 4], str.SoftwareMicrosoftCryptography7801ebd0_cf4b_11d0_851f_0060979387ea
mov dword [esp], 0x80000002
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x50], 0x10
call sym._RegOpenKeyExW_20
sub esp, 0x14
test eax, eax
je 0x768c21f0
lea eax, [ebp - 0x40]
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x54]
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x54], 0
mov eax, dword [ebx + 0x1c]
mov dword [ebp - 0x6c], 0
test eax, eax
jne 0x768c2300
mov eax, dword [ebx + 0x2c]
xor esi, esi
test eax, eax
jne 0x768c237b
mov edi, dword [ebx + 0x24]
test edi, edi
je 0x768c21e0
lea edx, [ebp - 0x34]
xor eax, eax
mov ecx, 9
mov edi, edx
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 0x6c]
mov dword [ebp - 0x40], 0x30
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x3c], edi
mov eax, dword [ebx + 0x24]
mov dword [ebp - 0x30], eax
mov eax, dword [ebx + 0x28]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x64]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x68]
mov dword [esp], eax
call sym._CertCreateCertificateChainEngine_8
sub esp, 8
mov dword [esp + 4], 0
mov dword [esp], edi
call sym._CertCloseStore_8
sub esp, 8
mov dword [esp + 4], 0
mov dword [esp], esi
call sym._CertCloseStore_8
sub esp, 8
mov eax, dword [ebp + 8]
mov esi, dword [ebp - 0x54]
add eax, 0x60
mov dword [esp], eax
mov dword [ebp - 0x6c], eax
call sym._GetSystemTimeAsFileTime_4
mov edx, dword [ebp - 0x64]
mov eax, dword [ebx + 4]
mov dword [ebp - 0x54], 0x14
sub esp, 4
mov dword [esp + 0xc], edx
mov edx, dword [ebp - 0x68]
mov dword [esp + 4], 0xf
mov dword [esp + 8], edx
mov dword [esp], eax
call sym._CertGetCertificateContextProperty_16
sub esp, 0x10
test eax, eax
jne 0x768c2260
mov dword [esp], esi
call sym._CertFreeCertificateChainEngine_4
xor eax, eax
sub esp, 4
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x70], eax
test byte [0x768c7158], 8
jne 0x768c2130
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret 4
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], str.unimplemented_for_UI_choice__d_n
mov dword [esp + 0x10], 0x137
mov dword [esp + 0xc], str.CertTrustFinalPolicy
mov dword [esp + 8], 0x768c8049
mov dword [esp + 4], 0x768c7158
mov dword [esp], 0
call sym._ros_dbg_log
test ebx, ebx
jne 0x768c1f78
mov eax, 0x800b0100
jmp 0x768c20ca
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x70]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], str.returning__d___08x__n
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], 0x172
mov dword [esp + 0xc], str.CertTrustFinalPolicy
mov dword [esp + 8], 0x768c8049
mov dword [esp + 4], 0x768c7158
mov dword [esp], 3
call sym._ros_dbg_log
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret 4
mov eax, dword [ebp + 8]
mov dword [esp + 0x14], str.__p__n
mov dword [esp + 0x10], 0x134
mov dword [esp + 0x18], eax
mov dword [esp + 0xc], str.CertTrustFinalPolicy
mov dword [esp + 8], 0x768c8049
mov dword [esp + 4], 0x768c7158
mov dword [esp], 3
call sym._ros_dbg_log
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
jmp 0x768c1f5b
xor ebx, ebx
jmp 0x768c1f4e
mov ecx, dword [ebx + 0x2c]
test ecx, ecx
je 0x768c2073
jmp 0x768c200e
lea eax, [ebp - 0x40]
mov dword [esp + 8], 0
mov dword [ebp - 0x68], eax
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x54]
mov dword [ebp - 0x64], eax
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x58]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x5c]
mov dword [esp + 4], str.PolicyFlags
mov dword [esp], eax
mov dword [ebp - 0x40], 4
call sym._RegQueryValueExW_24
sub esp, 0x18
test eax, eax
mov eax, dword [ebp - 0x5c]
jne 0x768c2241
cmp dword [ebp - 0x58], 4
je 0x768c24f0
mov dword [esp], eax
call sym._RegCloseKey_4
mov dword [ebp - 0x70], 0
sub esp, 4
jmp 0x768c1fdd
mov dword [esp + 0x10], str.Disallowed
mov dword [esp + 0xc], 0x10000
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0xa
call sym._CertOpenStore_20
sub esp, 0x14
mov edi, eax
test eax, eax
je 0x768c2413
mov eax, dword [ebp - 0x68]
mov dword [esp + 0x14], 0
mov dword [esp + 0xc], 0xe0000
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], edi
call sym._CertFindCertificateInStore_24
sub esp, 0x18
test eax, eax
je 0x768c2400
mov dword [esp], eax
call sym._CertFreeCertificateContext_4
sub esp, 4
mov dword [esp + 4], 0
mov dword [esp], edi
call sym._CertCloseStore_8
sub esp, 8
jmp 0x768c20bd
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x2000
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0xb
call sym._CertOpenStore_20
sub esp, 0x14
mov dword [ebp - 0x6c], eax
mov edi, eax
test eax, eax
je 0x768c2372
mov eax, dword [ebx + 0x1c]
test eax, eax
je 0x768c1ff6
xor esi, esi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov eax, dword [ebx + 0x20]
mov eax, dword [eax + esi*4]
mov dword [esp], edi
add esi, 1
mov dword [esp + 4], eax
call sym._CertAddStoreToCollection_16
sub esp, 0x10
cmp esi, dword [ebx + 0x1c]
jb 0x768c2345
mov eax, dword [ebx + 0x2c]
xor esi, esi
test eax, eax
je 0x768c23ed
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x2000
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0xb
call sym._CertOpenStore_20
sub esp, 0x14
mov esi, eax
test eax, eax
je 0x768c23ed
mov eax, dword [ebx + 0x2c]
test eax, eax
je 0x768c23ed
xor edi, edi
lea esi, [esi]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov eax, dword [ebx + 0x30]
mov eax, dword [eax + edi*4]
mov dword [esp], esi
add edi, 1
mov dword [esp + 4], eax
call sym._CertAddStoreToCollection_16
sub esp, 0x10
cmp edi, dword [ebx + 0x2c]
jb 0x768c23c0
mov eax, dword [ebx + 0x1c]
test eax, eax
jne 0x768c200e
jmp 0x768c2003
mov dword [esp + 4], 0
mov dword [esp], edi
call sym._CertCloseStore_8
sub esp, 8
mov eax, dword [ebp - 0x64]
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x1c], eax
mov eax, dword [ebp - 0x70]
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x50]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x6c]
mov dword [esp + 8], eax
mov eax, dword [ebx + 4]
mov dword [esp], esi
mov dword [esp + 4], eax
call sym._CertGetCertificateChain_32
sub esp, 0x20
test eax, eax
jne 0x768c2470
mov dword [esp], esi
call sym._CertFreeCertificateChainEngine_4
mov eax, 0x800b0004
sub esp, 4
jmp 0x768c20ca
mov edx, dword [ebp - 0x54]
cmp dword [edx + 0xc], 1
je 0x768c2520
test byte [0x768c7158], 1
jne 0x768c24b0
mov dword [esp], edx
call sym._CertFreeCertificateChain_4
sub esp, 4
mov dword [esp], esi
call sym._CertFreeCertificateChainEngine_4
mov eax, 0x800b0003
sub esp, 4
jmp 0x768c20ca
mov dword [esp + 0x14], str.unimplemented_for_more_than_1_simple_chain_n
mov dword [esp + 0x10], 0x150
mov dword [esp + 0xc], str.CertTrustFinalPolicy
mov dword [esp + 8], 0x768c8049
mov dword [esp + 4], 0x768c7158
mov dword [esp], 0
call sym._ros_dbg_log
mov eax, dword [ebp - 0x54]
mov dword [esp], eax
jmp 0x768c2489
mov ecx, dword [ebp - 0x54]
mov dword [esp], eax
and ecx, 0x10000
mov dword [ebp - 0x70], ecx
je 0x768c2590
call sym._RegCloseKey_4
mov dword [ebp - 0x70], 0x10000000
sub esp, 4
jmp 0x768c1fdd
mov eax, dword [edx + 0x10]
mov ecx, 0xa
lea edi, [ebp - 0x3c]
mov dword [ebp - 0x64], edx
mov eax, dword [eax]
mov dword [ebp - 0x70], eax
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 0x68]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x40], 0x2c
mov eax, dword [eax + 0x24]
mov dword [esp + 0xc], ecx
mov ecx, dword [ebp + 8]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], ecx
call dword [eax + 0x10]
sub esp, 0x10
test eax, eax
jne 0x768c259d
mov eax, dword [ebp - 0x54]
mov dword [esp], eax
call sym._CertFreeCertificateChain_4
sub esp, 4
mov dword [esp], esi
call sym._CertFreeCertificateChainEngine_4
mov eax, 0x80096001
sub esp, 4
jmp 0x768c20ca
call sym._RegCloseKey_4
sub esp, 4
jmp 0x768c1fdd
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._WTHelperGetProvSignerFromChain_16
sub esp, 0x10
mov edi, eax
mov dword [ebp - 0x74], eax
test eax, eax
je 0x768c256b
mov eax, dword [ebp - 0x70]
mov edx, dword [ebp - 0x64]
mov eax, dword [eax + 4]
mov dword [edi + 0x1c], eax
mov dword [esp], edx
call sym._CertDuplicateCertificateChain_4
mov dword [edi + 0x28], eax
mov eax, dword [ebp - 0x70]
sub esp, 4
mov edx, dword [eax + 0xc]
test edx, edx
je 0x768c26b7
mov dword [ebp - 0x70], ebx
mov ebx, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x68], esi
mov esi, eax
lea eax, [edi*4]
mov edx, dword [ebx + 0x24]
mov dword [ebp - 0x64], eax
mov eax, dword [esi + 0x10]
mov eax, dword [eax + edi*4]
mov eax, dword [eax + 4]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0
mov dword [esp], ebx
call dword [edx + 0x14]
sub esp, 0x14
test eax, eax
jne 0x768c2650
mov esi, dword [ebp - 0x68]
jmp 0x768c256b
mov eax, dword [ebp - 0x74]
mov dword [esp + 4], edi
mov dword [esp], eax
call sym._WTHelperGetProvCertFromChain_8
sub esp, 8
test eax, eax
je 0x768c2640
mov ecx, dword [ebp - 0x64]
mov edx, dword [esi + 0x10]
mov edx, dword [edx + ecx]
mov ecx, dword [edx + 8]
mov dword [ebp - 0x64], ecx
and ecx, 8
sete cl
movzx ecx, cl
shl ecx, 0x1c
test byte [ebp - 0x64], 1
jne 0x768c268d
or ecx, 0x1000000
test byte [ebp - 0x64], 2
jne 0x768c2699
or ecx, 0x100000
mov dword [eax + 0x1c], ecx
mov ecx, dword [edx + 8]
add edi, 1
mov dword [eax + 0x38], edx
mov dword [eax + 0x20], ecx
cmp edi, dword [esi + 0xc]
jb 0x768c2601
mov ebx, dword [ebp - 0x70]
mov esi, dword [ebp - 0x68]
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x6c]
mov dword [esp], eax
call sym._CertVerifyTimeValidity_8
sub esp, 8
test eax, eax
je 0x768c2700
mov eax, dword [ebp - 0x54]
mov dword [esp], eax
call sym._CertFreeCertificateChain_4
sub esp, 4
mov dword [esp], esi
call sym._CertFreeCertificateChainEngine_4
mov eax, 0x800b0101
sub esp, 4
jmp 0x768c20ca
mov eax, dword [ebp - 0x54]
mov dword [esp], eax
call sym._CertFreeCertificateChain_4
sub esp, 4
mov dword [esp], esi
call sym._CertFreeCertificateChainEngine_4
sub esp, 4
jmp 0x768c20d0