Function at 0x65742410
Capabilities:
Query or enumerate registry value

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
xor ebx, ebx
push ecx
sub esp, 0x98
mov eax, dword [ecx]
mov dword [ebp - 0x6c], eax
mov eax, dword [eax + 4]
cmp dword [eax + 0x14], 3
jne 0x6574244b
mov ebx, dword [eax + 0x18]
test ebx, ebx
je 0x6574244b
cmp dword [ebx + 0x18], 0x4c
jne 0x657426b8
mov ebx, dword [ebx + 0x1c]
test byte [0x65746018], 8
jne 0x65742680
mov eax, dword [eax + 0xc]
cmp eax, 2
je 0x6574246d
test byte [0x65746018], 1
jne 0x657425f0
test ebx, ebx
je 0x65742620
lea eax, [ebp - 0x64]
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x58], 0x10
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x20019
mov dword [esp + 8], 0
mov dword [esp + 4], str.SoftwareMicrosoftCryptography7801ebd0_cf4b_11d0_851f_0060979387ea
mov dword [esp], 0x80000002
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
sub esp, 0x14
test eax, eax
je 0x657426d0
lea eax, [ebp - 0x48]
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x5c], 0
mov eax, dword [ebx + 0x1c]
mov dword [ebp - 0x70], 0
test eax, eax
jne 0x657427e0
mov eax, dword [ebx + 0x2c]
xor esi, esi
test eax, eax
jne 0x65742900
mov ecx, dword [ebx + 0x24]
test ecx, ecx
je 0x657426c0
lea edx, [ebp - 0x3c]
xor eax, eax
mov ecx, 9
mov edi, edx
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 0x70]
mov dword [ebp - 0x48], 0x30
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x44], edi
mov eax, dword [ebx + 0x24]
mov dword [ebp - 0x38], eax
mov eax, dword [ebx + 0x28]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x74]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x78]
mov dword [esp], eax
call dword [sym.imp.crypt32.dll_CertCreateCertificateChainEngine]
sub esp, 8
mov dword [esp], edi
mov edi, dword [sym.imp.crypt32.dll_CertCloseStore]
mov dword [esp + 4], 0
call edi
sub esp, 8
mov dword [esp + 4], 0
mov dword [esp], esi
call edi
sub esp, 8
mov eax, dword [ebp - 0x6c]
mov esi, dword [ebp - 0x5c]
add eax, 0x60
mov dword [ebp - 0x70], eax
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetSystemTimeAsFileTime]
mov eax, dword [ebx + 4]
mov edx, dword [ebp - 0x74]
mov dword [ebp - 0x5c], 0x14
mov ecx, dword [ebp - 0x78]
sub esp, 4
mov dword [esp + 0xc], edx
mov dword [esp + 8], ecx
mov dword [esp + 4], 0xf
mov dword [esp], eax
call dword [sym.imp.crypt32.dll_CertGetCertificateContextProperty]
sub esp, 0x10
test eax, eax
jne 0x65742740
mov dword [esp], esi
call dword [sym.imp.crypt32.dll_CertFreeCertificateChainEngine]
xor eax, eax
sub esp, 4
mov edx, dword [ebp - 0x6c]
mov dword [edx + 0x70], eax
test byte [0x65746018], 8
jne 0x65742630
lea esp, [ebp - 0x10]
xor eax, eax
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 4
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.unimplemented_for_UI_choice__ld_n
mov dword [esp + 8], str.CertTrustFinalPolicy
mov dword [esp + 4], 0x65746018
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
test ebx, ebx
jne 0x65742475
mov eax, 0x800b0100
jmp 0x657425cc
mov eax, dword [ebp - 0x6c]
mov eax, dword [eax + 0x70]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], str.returning__ld___08lx__n
mov dword [esp + 0x14], eax
mov dword [esp + 8], str.CertTrustFinalPolicy
mov dword [esp + 4], 0x65746018
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
lea esp, [ebp - 0x10]
xor eax, eax
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 4
mov esi, dword [ebp - 0x6c]
mov dword [esp + 0xc], str.__p__n
mov dword [esp + 8], str.CertTrustFinalPolicy
mov dword [esp + 0x10], esi
mov dword [esp + 4], 0x65746018
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
mov eax, dword [esi + 4]
jmp 0x65742458
xor ebx, ebx
jmp 0x6574244b
mov edx, dword [ebx + 0x2c]
test edx, edx
je 0x65742572
jmp 0x6574250c
lea eax, [ebp - 0x48]
mov dword [ebp - 0x48], 4
mov dword [ebp - 0x78], eax
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x74], eax
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x60]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x64]
mov dword [esp + 8], 0
mov dword [esp + 4], str.PolicyFlags
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
sub esp, 0x18
test eax, eax
mov eax, dword [ebp - 0x64]
jne 0x65742722
cmp dword [ebp - 0x60], 4
je 0x65742a00
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov dword [ebp - 0x80], 0
sub esp, 4
jmp 0x657424db
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 dword [sym.imp.crypt32.dll_CertOpenStore]
sub esp, 0x14
mov edi, eax
test eax, eax
je 0x6574289c
mov eax, dword [ebp - 0x78]
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 dword [sym.imp.crypt32.dll_CertFindCertificateInStore]
sub esp, 0x18
test eax, eax
je 0x65742888
mov dword [esp], eax
call dword [sym.imp.crypt32.dll_CertFreeCertificateContext]
sub esp, 4
mov dword [esp + 4], 0
mov dword [esp], edi
call dword [sym.imp.crypt32.dll_CertCloseStore]
sub esp, 8
jmp 0x657425be
mov eax, dword [sym.imp.crypt32.dll_CertOpenStore]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x2000
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0xb
mov dword [ebp - 0x7c], eax
call eax
mov dword [ebp - 0x70], eax
sub esp, 0x14
test eax, eax
je 0x65742865
mov eax, dword [ebx + 0x1c]
test eax, eax
je 0x657424f4
mov eax, dword [sym.imp.crypt32.dll_CertAddStoreToCollection]
mov edi, ebx
xor esi, esi
mov ebx, eax
lea esi, [esi]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov eax, dword [edi + 0x20]
mov eax, dword [eax + esi*4]
inc esi
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x70]
mov dword [esp], eax
call ebx
sub esp, 0x10
cmp esi, dword [edi + 0x1c]
jb 0x65742838
mov ebx, edi
mov eax, dword [ebx + 0x2c]
xor esi, esi
test eax, eax
jne 0x65742908
mov edi, dword [ebx + 0x1c]
test edi, edi
jne 0x6574250c
jmp 0x65742501
mov dword [esp + 4], 0
mov dword [esp], edi
call dword [sym.imp.crypt32.dll_CertCloseStore]
sub esp, 8
mov eax, dword [ebp - 0x74]
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x1c], eax
mov eax, dword [ebp - 0x80]
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x58]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x70]
mov dword [esp + 8], eax
mov eax, dword [ebx + 4]
mov dword [esp], esi
mov dword [esp + 4], eax
call dword [sym.imp.crypt32.dll_CertGetCertificateChain]
sub esp, 0x20
test eax, eax
jne 0x65742990
mov dword [esp], esi
call dword [sym.imp.crypt32.dll_CertFreeCertificateChainEngine]
mov eax, 0x800b0004
sub esp, 4
jmp 0x657425cc
mov eax, dword [sym.imp.crypt32.dll_CertOpenStore]
mov dword [ebp - 0x7c], eax
mov dword [esp + 0x10], 0
mov eax, dword [ebp - 0x7c]
mov dword [esp + 0xc], 0x2000
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0xb
call eax
sub esp, 0x14
mov esi, eax
test eax, eax
je 0x65742872
mov eax, dword [ebx + 0x2c]
test eax, eax
je 0x65742872
mov eax, dword [sym.imp.crypt32.dll_CertAddStoreToCollection]
xor edi, edi
mov dword [ebp - 0x7c], eax
lea esi, [esi]
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
inc edi
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x7c]
call eax
sub esp, 0x10
cmp edi, dword [ebx + 0x2c]
jb 0x65742960
jmp 0x65742872
mov edx, dword [ebp - 0x5c]
cmp dword [edx + 0xc], 1
je 0x65742a30
test byte [0x65746018], 1
jne 0x657429d0
mov dword [esp], edx
call dword [sym.imp.crypt32.dll_CertFreeCertificateChain]
sub esp, 4
mov dword [esp], esi
call dword [sym.imp.crypt32.dll_CertFreeCertificateChainEngine]
mov eax, 0x800b0003
sub esp, 4
jmp 0x657425cc
mov dword [esp + 0xc], str.unimplemented_for_more_than_1_simple_chain_n
mov dword [esp + 8], str.CertTrustFinalPolicy
mov dword [esp + 4], 0x65746018
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
mov eax, dword [ebp - 0x5c]
mov dword [esp], eax
jmp 0x657429a9
mov edx, dword [ebp - 0x5c]
mov dword [esp], eax
and edx, 0x10000
mov dword [ebp - 0x80], edx
je 0x65742aa0
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov dword [ebp - 0x80], 0x10000000
sub esp, 4
jmp 0x657424db
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x74], edx
mov ecx, 0xa
lea edi, [ebp - 0x44]
mov edx, dword [ebp - 0x6c]
mov eax, dword [eax]
mov dword [ebp - 0x7c], eax
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, dword [edx + 0x24]
mov ecx, dword [ebp - 0x78]
mov dword [ebp - 0x48], 0x2c
mov dword [esp + 8], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 4], 0
mov dword [esp], edx
call dword [eax + 0x10]
sub esp, 0x10
test eax, eax
jne 0x65742aae
mov eax, dword [ebp - 0x5c]
mov dword [esp], eax
call dword [sym.imp.crypt32.dll_CertFreeCertificateChain]
sub esp, 4
mov dword [esp], esi
call dword [sym.imp.crypt32.dll_CertFreeCertificateChainEngine]
mov eax, 0x80096001
sub esp, 4
jmp 0x657425cc
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
jmp 0x657424db
mov eax, dword [ebp - 0x6c]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._WTHelperGetProvSignerFromChain_16
mov dword [ebp - 0x78], eax
sub esp, 0x10
mov edx, eax
mov edi, eax
test eax, eax
je 0x65742a78
mov eax, dword [ebp - 0x7c]
mov eax, dword [eax + 4]
mov dword [edx + 0x1c], eax
mov edx, dword [ebp - 0x74]
mov dword [esp], edx
call dword [sym.imp.crypt32.dll_CertDuplicateCertificateChain]
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x80], ebx
mov ebx, dword [ebp - 0x7c]
sub esp, 4
mov dword [edi + 0x28], eax
xor edi, edi
cmp dword [ebx + 0xc], edi
jbe 0x65742bb2
mov edx, dword [ebx + 0x10]
mov ecx, dword [ebp - 0x6c]
lea esi, [edi*4]
mov edx, dword [edx + edi*4]
mov eax, dword [ecx + 0x24]
mov edx, dword [edx + 4]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 0x10], edx
mov dword [esp + 4], 0
mov dword [esp], ecx
call dword [eax + 0x14]
sub esp, 0x14
test eax, eax
jne 0x65742b58
mov esi, dword [ebp - 0x74]
jmp 0x65742a78
mov eax, dword [ebp - 0x78]
mov dword [esp + 4], edi
mov dword [esp], eax
call sym._WTHelperGetProvCertFromChain_8
sub esp, 8
mov edx, eax
test eax, eax
je 0x65742b4d
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax + esi]
xor eax, eax
test byte [ecx + 8], 8
sete al
shl eax, 0x1c
mov esi, eax
or esi, 0x1000000
test byte [ecx + 8], 1
cmove eax, esi
mov esi, eax
or esi, 0x100000
test byte [ecx + 8], 2
cmove eax, esi
inc edi
mov dword [edx + 0x1c], eax
mov eax, dword [ecx + 8]
mov dword [edx + 0x38], ecx
mov dword [edx + 0x20], eax
jmp 0x65742b05
mov ebx, dword [ebp - 0x80]
mov esi, dword [ebp - 0x74]
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x70]
mov dword [esp], eax
call dword [sym.imp.crypt32.dll_CertVerifyTimeValidity]
sub esp, 8
test eax, eax
je 0x65742c00
mov eax, dword [ebp - 0x5c]
mov dword [esp], eax
call dword [sym.imp.crypt32.dll_CertFreeCertificateChain]
sub esp, 4
mov dword [esp], esi
call dword [sym.imp.crypt32.dll_CertFreeCertificateChainEngine]
mov eax, 0x800b0101
sub esp, 4
jmp 0x657425cc
mov eax, dword [ebp - 0x5c]
mov dword [esp], eax
call dword [sym.imp.crypt32.dll_CertFreeCertificateChain]
sub esp, 4
mov dword [esp], esi
call dword [sym.imp.crypt32.dll_CertFreeCertificateChainEngine]
sub esp, 4
jmp 0x657425d2