Function at 0x1000ba60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x378
test byte [0x10013318], 8
jne 0x1000bac0
call sym._SECUR32_initSchannelSP
call sym._load_auth_packages
lea eax, [ebp - 0x358]
mov dword [esp + 0xc], 0x20019
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0
mov dword [esp + 4], str.SYSTEMCurrentControlSetControlSecurityProviders
mov dword [esp], 0x80000002
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
sub esp, 0x14
test eax, eax
je 0x1000baf0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0xc], 0x10016e83
mov dword [esp + 8], str.SECUR32_initializeProviders
mov dword [esp + 4], 0x10013318
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_3
jmp 0x1000ba75
lea eax, [ebp - 0x354]
mov dword [esp + 8], 0
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x214]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x350]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x358]
mov dword [ebp - 0x354], 0x208
mov dword [esp + 4], str.SecurityProviders
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
sub esp, 0x18
test eax, eax
jne 0x1000bd76
cmp dword [ebp - 0x350], 1
jne 0x1000bd76
mov eax, dword [ebp - 0x354]
lea edi, [ebp - 0x214]
shr eax, 1
lea esi, [ebp + eax*2 - 0x214]
mov dword [ebp - 0x354], eax
cmp esi, edi
jbe 0x1000bd76
lea esi, [esi]
movzx eax, word [edi]
cmp ax, 0x2c
je 0x1000be86
mov ecx, edi
test ax, ax
je 0x1000be7c
movzx ebx, word [ecx + 2]
add ecx, 2
test bx, bx
je 0x1000bd90
cmp bx, 0x2c
jne 0x1000bb90
xor eax, eax
mov word [ecx], ax
movzx eax, word [edi]
jmp 0x1000bbb4
movzx eax, word [ebx + 2]
test ax, ax
je 0x1000be70
mov dword [esp], eax
mov ebx, edi
call dword [sym.imp.ucrtbase.dll_iswspace]
cmp edi, esi
lea edi, [edi + 2]
setb dl
test eax, eax
setne al
test dl, al
jne 0x1000bbb0
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_LoadLibraryW]
sub esp, 4
mov edi, eax
test eax, eax
je 0x1000bda0
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [esp + 4], str.InitSecurityInterfaceW
mov dword [esp], edi
call esi
sub esp, 8
mov dword [ebp - 0x35c], eax
mov dword [esp + 4], str.InitSecurityInterfaceA
mov dword [esp], edi
call esi
sub esp, 8
mov esi, eax
test byte [0x10013318], 8
jne 0x1000bee8
mov eax, dword [ebp - 0x35c]
or eax, esi
je 0x1000bd38
mov dword [ebp - 0x34c], 0
mov dword [ebp - 0x348], 0
mov dword [ebp - 0x344], 0
test esi, esi
je 0x1000c03a
call esi
mov esi, eax
mov eax, dword [ebp - 0x35c]
test eax, eax
je 0x1000c28a
call eax
mov dword [ebp - 0x35c], eax
test eax, eax
je 0x1000bc87
mov eax, dword [eax + 4]
test eax, eax
jne 0x1000c063
test esi, esi
je 0x1000bcba
mov eax, dword [esi + 4]
test eax, eax
je 0x1000bcba
cmp esi, 0x10013260
je 0x1000c2f4
lea edx, [ebp - 0x348]
mov dword [esp + 4], edx
lea edx, [ebp - 0x34c]
mov dword [esp], edx
call eax
sub esp, 8
test eax, eax
jne 0x1000bd38
mov eax, dword [ebp - 0x34c]
test eax, eax
je 0x1000bd38
mov ecx, dword [ebp - 0x344]
test ecx, ecx
je 0x1000c2b3
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], 0
call sym._SECUR32_addProvider
test eax, eax
je 0x1000bd14
mov edx, dword [ebp - 0x344]
mov dword [esp], eax
mov dword [esp + 0xc], edx
mov edx, dword [ebp - 0x348]
mov dword [esp + 8], edx
mov edx, dword [ebp - 0x34c]
mov dword [esp + 4], edx
call sym._SECUR32_addPackages
mov eax, dword [ebp - 0x344]
test eax, eax
je 0x1000c3d7
mov dword [esp], eax
mov eax, dword [ebp - 0x35c]
call dword [eax + 0x40]
sub esp, 4
lea esi, [esi]
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_FreeLibrary]
sub esp, 4
cmp word [ebx], 0
je 0x1000c5ca
mov edx, ebx
add edx, 2
cmp word [edx], 0
jne 0x1000bd50
sub edx, ebx
add edx, 2
mov eax, dword [ebp - 0x354]
lea edi, [ebx + edx]
lea esi, [ebp + eax*2 - 0x214]
cmp esi, edi
ja 0x1000bb78
mov eax, dword [ebp - 0x358]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp bx, 0x2c
jne 0x1000bbbd
jmp 0x1000bba6
test byte [0x10013318], 4
je 0x1000bd44
mov eax, ebx
shr eax, 0x10
je 0x1000c2d0
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, 0x10016dea
sub esp, 8
test eax, eax
jne 0x1000bebb
cmp word [ebx], 0
je 0x1000c40c
nop
mov edx, eax
lea eax, [eax + 1]
cmp word [ebx + edx*2 + 2], 0
jne 0x1000bde0
mov eax, 0x224c
mov edi, ebx
lea esi, [ebp - 0x33e]
mov word [ebp - 0x340], ax
jmp 0x1000be3b
cmp ax, 9
je 0x1000c279
cmp ax, 0xa
jne 0x1000c206
mov eax, 0x6e5c
add esi, 2
mov word [esi - 2], ax
nop
lea esi, [esi]
lea eax, [edx - 1]
test edx, edx
jle 0x1000be8d
lea ecx, [ebp - 0x21e]
cmp esi, ecx
ja 0x1000be8d
mov edx, eax
movzx eax, word [edi]
add edi, 2
cmp ax, 0xd
je 0x1000c268
jbe 0x1000be03
cmp ax, 0x22
je 0x1000c257
cmp ax, 0x5c
jne 0x1000c1f9
mov eax, 0x5c5c
add esi, 2
mov word [esi - 2], ax
jmp 0x1000be28
mov ebx, edi
mov edx, 2
jmp 0x1000bd5e
cmp ax, 0x2c
jne 0x1000bbb4
mov ecx, edi
jmp 0x1000bba6
mov byte [esi], 0x22
test eax, eax
jle 0x1000c422
mov edi, 0x2e2e
mov byte [esi + 3], 0x2e
lea eax, [esi + 4]
mov word [esi + 1], di
mov byte [eax], 0
lea eax, [ebp - 0x340]
mov dword [esp], eax
call sym.___wine_dbg_strdup
mov edx, eax
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], str.failed_to_load__s_n
mov dword [esp + 8], str._tryLoadProvider
mov dword [esp + 4], 0x10013318
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_3
jmp 0x1000bd44
mov eax, ebx
shr eax, 0x10
je 0x1000c299
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, 0x10016dea
sub esp, 8
test eax, eax
jne 0x1000bfff
cmp word [ebx], 0
je 0x1000c3eb
nop
mov edx, eax
lea eax, [eax + 1]
cmp word [ebx + edx*2 + 2], 0
jne 0x1000bf20
mov ecx, 0x224c
mov dword [ebp - 0x364], esi
mov esi, ebx
mov word [ebp - 0x340], cx
lea ecx, [ebp - 0x33e]
mov dword [ebp - 0x360], edi
mov dword [ebp - 0x368], ebx
jmp 0x1000bf8b
cmp ax, 9
je 0x1000c179
cmp ax, 0xa
jne 0x1000c197
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
lea esi, [esi]
lea eax, [edx - 1]
test edx, edx
jle 0x1000bfbf
lea edi, [ebp - 0x21e]
cmp ecx, edi
ja 0x1000bfbf
mov edx, eax
movzx eax, word [esi]
add esi, 2
cmp ax, 0xd
je 0x1000c168
jbe 0x1000bf55
cmp ax, 0x22
je 0x1000c1e8
cmp ax, 0x5c
jne 0x1000c18a
mov ebx, 0x5c5c
add ecx, 2
mov word [ecx - 2], bx
jmp 0x1000bf78
mov edi, dword [ebp - 0x360]
mov esi, dword [ebp - 0x364]
mov byte [ecx], 0x22
mov ebx, dword [ebp - 0x368]
test eax, eax
jle 0x1000c404
mov edx, 0x2e2e
mov byte [ecx + 3], 0x2e
lea eax, [ecx + 4]
mov word [ecx + 1], dx
mov byte [eax], 0
lea eax, [ebp - 0x340]
mov dword [esp], eax
call sym.___wine_dbg_strdup
mov edx, eax
mov eax, dword [ebp - 0x35c]
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], eax
mov dword [esp + 0xc], str.loaded__s__InitSecurityInterfaceA_is__p__InitSecurityInterfaceW_is__p_n
mov dword [esp + 8], str._tryLoadProvider
mov dword [esp + 4], 0x10013318
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_3
jmp 0x1000bc2a
mov eax, dword [ebp - 0x35c]
call eax
mov dword [ebp - 0x35c], eax
test eax, eax
je 0x1000bcba
mov eax, dword [ebp - 0x35c]
xor esi, esi
mov eax, dword [eax + 4]
test eax, eax
je 0x1000bcba
lea edx, [ebp - 0x344]
cmp dword [ebp - 0x35c], 0x100131e0
jne 0x1000bca4
test byte [0x10013318], 8
je 0x1000bcba
mov eax, ebx
shr eax, 0x10
je 0x1000c444
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
push ecx
push ecx
test eax, eax
jne 0x1000c4f5
cmp word [ebx], 0
je 0x1000c5d4
mov edx, eax
lea eax, [eax + 1]
cmp word [ebx + edx*2 + 2], 0
jne 0x1000c0b6
mov dword [ebp - 0x364], edx
lea eax, [ebp - 0x33e]
mov word [ebp - 0x340], 0x224c
mov dword [ebp - 0x360], ebx
mov dword [ebp - 0x368], ebx
jmp 0x1000c127
cmp dx, 9
je 0x1000c437
cmp dx, 0xa
jne 0x1000c48d
mov word [eax], 0x6e5c
add eax, 2
mov ecx, dword [ebp - 0x364]
lea ebx, [ebp - 0x21e]
lea edx, [ecx - 1]
cmp eax, ebx
ja 0x1000c5ab
test ecx, ecx
jle 0x1000c5ab
mov dword [ebp - 0x364], edx
add dword [ebp - 0x360], 2
mov ecx, dword [ebp - 0x360]
movzx edx, word [ecx - 2]
cmp dx, 0xd
je 0x1000c42a
jbe 0x1000c0e6
cmp dx, 0x22
je 0x1000c4de
cmp dx, 0x5c
jne 0x1000c484
mov word [eax], 0x5c5c
add eax, 2
jmp 0x1000c102
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x1000bf78
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x1000bf78
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x1000c2c6
mov edi, eax
mov byte [ecx], 0x5c
add ecx, 5
shr di, 0xc
movzx edi, di
movzx ebx, byte [edi + str.0123456789abcdefAddSecurityPackageA]
mov edi, eax
shr di, 8
and edi, 0xf
mov byte [ecx - 4], bl
movzx ebx, byte [edi + str.0123456789abcdefAddSecurityPackageA]
mov edi, eax
and eax, 0xf
shr di, 4
movzx eax, byte [eax + str.0123456789abcdefAddSecurityPackageA]
and edi, 0xf
mov byte [ecx - 3], bl
movzx ebx, byte [edi + str.0123456789abcdefAddSecurityPackageA]
mov byte [ecx - 1], al
mov byte [ecx - 2], bl
jmp 0x1000bf78
mov edi, 0x225c
add ecx, 2
mov word [ecx - 2], di
jmp 0x1000bf78
lea ecx, [eax - 0x20]
cmp cx, 0x5e
jbe 0x1000c2ea
mov ecx, eax
mov byte [esi], 0x5c
add esi, 5
shr cx, 0xc
movzx ecx, cx
movzx ecx, byte [ecx + str.0123456789abcdefAddSecurityPackageA]
mov byte [esi - 4], cl
mov ecx, eax
shr cx, 8
and ecx, 0xf
movzx ecx, byte [ecx + str.0123456789abcdefAddSecurityPackageA]
mov byte [esi - 3], cl
mov ecx, eax
and eax, 0xf
shr cx, 4
movzx eax, byte [eax + str.0123456789abcdefAddSecurityPackageA]
and ecx, 0xf
movzx ecx, byte [ecx + str.0123456789abcdefAddSecurityPackageA]
mov byte [esi - 1], al
mov byte [esi - 2], cl
jmp 0x1000be28
mov eax, 0x225c
add esi, 2
mov word [esi - 2], ax
jmp 0x1000be28
mov eax, 0x725c
add esi, 2
mov word [esi - 2], ax
jmp 0x1000be28
mov eax, 0x745c
add esi, 2
mov word [esi - 2], ax
jmp 0x1000be28
mov dword [ebp - 0x35c], 0
jmp 0x1000bc87
movzx eax, bx
mov dword [esp], 0x10016df4
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf
mov edx, eax
jmp 0x1000bfff
mov edx, dword [ebp - 0x348]
test edx, edx
jne 0x1000bcd2
jmp 0x1000bd38
mov byte [ecx], al
add ecx, 1
jmp 0x1000bf78
movzx eax, bx
mov dword [esp], 0x10016df4
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf
mov edx, eax
jmp 0x1000bebb
mov byte [esi], al
add esi, 1
jmp 0x1000be28
test byte [0x10013318], 8
je 0x1000bcba
mov eax, ebx
shr eax, 0x10
je 0x1000c444
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
push edx
push edx
test eax, eax
jne 0x1000c4f5
cmp word [ebx], 0
je 0x1000c5d4
mov edx, eax
lea eax, [eax + 1]
cmp word [ebx + edx*2 + 2], 0
jne 0x1000c331
mov dword [ebp - 0x364], edx
lea eax, [ebp - 0x33e]
mov word [ebp - 0x340], 0x224c
mov dword [ebp - 0x360], ebx
jmp 0x1000c39c
cmp dx, 9
je 0x1000c550
cmp dx, 0xa
jne 0x1000c4ff
mov word [eax], 0x6e5c
add eax, 2
mov ecx, dword [ebp - 0x364]
lea edx, [ecx - 1]
test ecx, ecx
jle 0x1000c56a
lea ecx, [ebp - 0x21e]
cmp eax, ecx
ja 0x1000c56a
mov dword [ebp - 0x364], edx
add dword [ebp - 0x360], 2
mov ecx, dword [ebp - 0x360]
movzx edx, word [ecx - 2]
cmp dx, 0xd
je 0x1000c55d
jbe 0x1000c35b
cmp dx, 0x22
je 0x1000c5bd
cmp dx, 0x5c
jne 0x1000c594
mov word [eax], 0x5c5c
add eax, 2
jmp 0x1000c377
mov eax, dword [ebp - 0x348]
mov dword [esp], eax
call dword [esi + 0x40]
sub esp, 4
jmp 0x1000bd38
mov edx, 0x224c
mov byte [ebp - 0x33e], 0x22
lea ecx, [ebp - 0x33e]
mov word [ebp - 0x340], dx
lea eax, [ecx + 1]
jmp 0x1000bfec
mov word [ebp - 0x340], 0x224c
lea esi, [ebp - 0x33e]
mov byte [ebp - 0x33e], 0x22
lea eax, [esi + 1]
jmp 0x1000bea8
mov word [eax], 0x725c
add eax, 2
jmp 0x1000c102
mov word [eax], 0x745c
add eax, 2
jmp 0x1000c102
movzx eax, bx
mov dword [esp], 0x10016df4
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str._s_has_built_in_providers__skip_adding_n
mov dword [esp + 8], str._tryLoadProvider
mov dword [esp + 4], 0x10013318
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_3
jmp 0x1000bcba
lea ecx, [edx - 0x20]
cmp cx, 0x5e
jbe 0x1000c4eb
mov ecx, edx
mov byte [eax], 0x5c
add eax, 5
shr cx, 0xc
movzx ecx, cx
movzx ecx, byte [ecx + str.0123456789abcdefAddSecurityPackageA]
mov byte [eax - 4], cl
mov ecx, edx
shr cx, 8
and ecx, 0xf
movzx ecx, byte [ecx + str.0123456789abcdefAddSecurityPackageA]
mov byte [eax - 3], cl
mov ecx, edx
and edx, 0xf
shr cx, 4
movzx edx, byte [edx + str.0123456789abcdefAddSecurityPackageA]
and ecx, 0xf
movzx ecx, byte [ecx + str.0123456789abcdefAddSecurityPackageA]
mov byte [eax - 1], dl
mov byte [eax - 2], cl
jmp 0x1000c102
mov word [eax], 0x225c
add eax, 2
jmp 0x1000c102
mov byte [eax], dl
add eax, 1
jmp 0x1000c102
mov eax, 0x10016dea
jmp 0x1000c457
mov ecx, edx
mov byte [eax], 0x5c
add eax, 5
shr cx, 0xc
movzx ecx, cx
movzx ecx, byte [ecx + str.0123456789abcdefAddSecurityPackageA]
mov byte [eax - 4], cl
mov ecx, edx
shr cx, 8
and ecx, 0xf
movzx ecx, byte [ecx + str.0123456789abcdefAddSecurityPackageA]
mov byte [eax - 3], cl
mov ecx, edx
and edx, 0xf
shr cx, 4
movzx edx, byte [edx + str.0123456789abcdefAddSecurityPackageA]
and ecx, 0xf
movzx ecx, byte [ecx + str.0123456789abcdefAddSecurityPackageA]
mov byte [eax - 1], dl
mov byte [eax - 2], cl
jmp 0x1000c377
mov word [eax], 0x745c
add eax, 2
jmp 0x1000c377
mov word [eax], 0x725c
add eax, 2
jmp 0x1000c377
mov byte [eax], 0x22
test edx, edx
jle 0x1000c5b8
mov word [eax + 1], 0x2e2e
lea edx, [eax + 4]
mov byte [eax + 3], 0x2e
lea eax, [ebp - 0x340]
mov byte [edx], 0
mov dword [esp], eax
call sym.___wine_dbg_strdup
jmp 0x1000c457
lea ecx, [edx - 0x20]
cmp cx, 0x5e
ja 0x1000c4ff
mov byte [eax], dl
add eax, 1
jmp 0x1000c377
mov ebx, dword [ebp - 0x368]
mov byte [eax], 0x22
test edx, edx
jg 0x1000c571
lea edx, [eax + 1]
jmp 0x1000c57e
mov word [eax], 0x225c
add eax, 2
jmp 0x1000c377
mov edx, 2
jmp 0x1000bd5e
mov word [ebp - 0x340], 0x224c
lea eax, [ebp - 0x33e]
mov byte [ebp - 0x33e], 0x22
jmp 0x1000c5b8