Function at 0x10002400
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
xor ebx, ebx
add esp, 0xffffff80
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
cmp dword [eax + 0x14], 3
jne 0x1000242b
mov ebx, dword [eax + 0x18]
test ebx, ebx
je 0x1000242b
cmp dword [ebx + 0x18], 0x4c
jne 0x10002690
mov ebx, dword [ebx + 0x1c]
test byte [0x10006018], 8
jne 0x10002658
mov eax, dword [eax + 0xc]
cmp eax, 2
je 0x1000244d
test byte [0x10006018], 1
jne 0x100025d0
test ebx, ebx
je 0x10002600
lea eax, [ebp - 0x58]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x4c], 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 0x100026b0
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x50]
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x50], 0
mov eax, dword [ebx + 0x1c]
mov dword [ebp - 0x5c], 0
test eax, eax
jne 0x100027c0
mov eax, dword [ebx + 0x2c]
xor esi, esi
test eax, eax
jne 0x100028e0
mov ecx, dword [ebx + 0x24]
test ecx, ecx
je 0x100026a0
lea edx, [ebp - 0x30]
xor eax, eax
mov ecx, 9
mov edi, edx
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 0x5c]
mov dword [ebp - 0x3c], 0x30
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], edi
mov eax, dword [ebx + 0x24]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebx + 0x28]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x60]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x64]
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 + 8]
mov esi, dword [ebp - 0x50]
add eax, 0x60
mov dword [ebp - 0x5c], eax
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetSystemTimeAsFileTime]
mov edx, dword [ebp - 0x60]
mov eax, dword [ebx + 4]
mov dword [ebp - 0x50], 0x14
sub esp, 4
mov dword [esp + 0xc], edx
mov edx, dword [ebp - 0x64]
mov dword [esp + 4], 0xf
mov dword [esp + 8], edx
mov dword [esp], eax
call dword [sym.imp.crypt32.dll_CertGetCertificateContextProperty]
sub esp, 0x10
test eax, eax
jne 0x10002720
mov dword [esp], esi
call dword [sym.imp.crypt32.dll_CertFreeCertificateChainEngine]
xor eax, eax
sub esp, 4
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x70], eax
test byte [0x10006018], 8
jne 0x10002610
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
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], 0x10006018
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
test ebx, ebx
jne 0x10002455
mov eax, 0x800b0100
jmp 0x100025ac
mov eax, dword [ebp + 8]
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], 0x10006018
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
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 + 0xc], str.__p__n
mov dword [esp + 8], str.CertTrustFinalPolicy
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x10006018
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
jmp 0x10002438
xor ebx, ebx
jmp 0x1000242b
mov edx, dword [ebx + 0x2c]
test edx, edx
je 0x10002552
jmp 0x100024ec
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], 4
mov dword [ebp - 0x64], eax
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x50]
mov dword [ebp - 0x60], eax
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x54]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x58]
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 - 0x58]
jne 0x10002702
cmp dword [ebp - 0x54], 4
je 0x100029e0
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov dword [ebp - 0x6c], 0
sub esp, 4
jmp 0x100024bb
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 0x1000287c
mov eax, dword [ebp - 0x64]
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 0x10002868
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 0x1000259e
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 - 0x68], eax
call eax
mov dword [ebp - 0x5c], eax
sub esp, 0x14
test eax, eax
je 0x10002845
mov eax, dword [ebx + 0x1c]
test eax, eax
je 0x100024d4
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 - 0x5c]
mov dword [esp], eax
call ebx
sub esp, 0x10
cmp esi, dword [edi + 0x1c]
jb 0x10002818
mov ebx, edi
mov eax, dword [ebx + 0x2c]
xor esi, esi
test eax, eax
jne 0x100028e8
mov edi, dword [ebx + 0x1c]
test edi, edi
jne 0x100024ec
jmp 0x100024e1
mov dword [esp + 4], 0
mov dword [esp], edi
call dword [sym.imp.crypt32.dll_CertCloseStore]
sub esp, 8
mov eax, dword [ebp - 0x60]
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x1c], eax
mov eax, dword [ebp - 0x6c]
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x4c]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x5c]
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 0x10002970
mov dword [esp], esi
call dword [sym.imp.crypt32.dll_CertFreeCertificateChainEngine]
mov eax, 0x800b0004
sub esp, 4
jmp 0x100025ac
mov eax, dword [sym.imp.crypt32.dll_CertOpenStore]
mov dword [ebp - 0x68], eax
mov dword [esp + 0x10], 0
mov eax, dword [ebp - 0x68]
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 0x10002852
mov eax, dword [ebx + 0x2c]
test eax, eax
je 0x10002852
mov eax, dword [sym.imp.crypt32.dll_CertAddStoreToCollection]
xor edi, edi
mov dword [ebp - 0x68], 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 - 0x68]
call eax
sub esp, 0x10
cmp edi, dword [ebx + 0x2c]
jb 0x10002940
jmp 0x10002852
mov edx, dword [ebp - 0x50]
cmp dword [edx + 0xc], 1
je 0x10002a10
test byte [0x10006018], 1
jne 0x100029b0
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 0x100025ac
mov dword [esp + 0xc], str.unimplemented_for_more_than_1_simple_chain_n
mov dword [esp + 8], str.CertTrustFinalPolicy
mov dword [esp + 4], 0x10006018
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
mov eax, dword [ebp - 0x50]
mov dword [esp], eax
jmp 0x10002989
mov ecx, dword [ebp - 0x50]
mov dword [esp], eax
and ecx, 0x10000
mov dword [ebp - 0x6c], ecx
je 0x10002a80
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov dword [ebp - 0x6c], 0x10000000
sub esp, 4
jmp 0x100024bb
mov eax, dword [edx + 0x10]
mov ecx, 0xa
lea edi, [ebp - 0x38]
mov dword [ebp - 0x60], edx
mov eax, dword [eax]
mov dword [ebp - 0x68], eax
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 0x64]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x3c], 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 0x10002a8e
mov eax, dword [ebp - 0x50]
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 0x100025ac
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
jmp 0x100024bb
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
mov dword [ebp - 0x64], eax
sub esp, 0x10
mov ecx, eax
mov edi, eax
test eax, eax
je 0x10002a5b
mov eax, dword [ebp - 0x68]
mov edx, dword [ebp - 0x60]
mov eax, dword [eax + 4]
mov dword [ecx + 0x1c], eax
mov dword [esp], edx
call dword [sym.imp.crypt32.dll_CertDuplicateCertificateChain]
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x6c], ebx
mov ebx, dword [ebp - 0x68]
sub esp, 4
mov dword [edi + 0x28], eax
xor edi, edi
cmp dword [ebx + 0xc], edi
jbe 0x10002b9a
mov eax, dword [ebp + 8]
lea esi, [edi*4]
mov edx, dword [eax + 0x24]
mov eax, dword [ebx + 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 eax, dword [ebp + 8]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [edx + 0x14]
sub esp, 0x14
test eax, eax
jne 0x10002b40
mov esi, dword [ebp - 0x60]
jmp 0x10002a5b
mov eax, dword [ebp - 0x64]
mov dword [esp + 4], edi
mov dword [esp], eax
call sym._WTHelperGetProvCertFromChain_8
sub esp, 8
mov edx, eax
test eax, eax
je 0x10002b30
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 0x10002ae5
mov ebx, dword [ebp - 0x6c]
mov esi, dword [ebp - 0x60]
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x5c]
mov dword [esp], eax
call dword [sym.imp.crypt32.dll_CertVerifyTimeValidity]
sub esp, 8
test eax, eax
je 0x10002be8
mov eax, dword [ebp - 0x50]
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 0x100025ac
mov eax, dword [ebp - 0x50]
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 0x100025b2