Function at 0x10008160
Capabilities:
Get number of processors

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff8
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x448
mov ebx, dword [ecx]
mov edi, dword [ecx + 4]
mov esi, dword [ecx + 8]
test byte [0x100131c0], 8
jne 0x10008270
test ebx, ebx
je 0x100087e0
mov eax, dword [ebx]
mov edx, 1
call sym._schan_get_object
mov ebx, eax
test eax, eax
je 0x100087e0
cmp edi, 0x23
ja 0x100081d0
cmp edi, 3
jbe case.0x100081c4.6
lea eax, [edi - 4]
cmp eax, 0x1f
ja case.0x100081c4.6
jmp dword [eax*4 + 0x10016314]
cmp edi, 0x5a
je 0x100086b0
cmp edi, 0x64
jne 0x10008234
mov eax, dword [eax]
mov edx, dword [ebx + 4]
mov dword [ebp - 0x408], esi
mov dword [esp + 8], 7
mov dword [ebp - 0x410], eax
lea eax, [ebp - 0x410]
mov dword [ebp - 0x40c], edx
mov dword [esp + 0xc], eax
mov eax, dword [0x1001c0e0]
mov edx, dword [0x1001c0e4]
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [0x100133ac]
sub esp, 0x10
mov ecx, eax
lea esp, [ebp - 0x10]
mov eax, ecx
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0xc
cmp edi, 0x53
jne case.0x100081c4.6
call sym._ensure_remote_cert
mov ecx, eax
test eax, eax
jne 0x10008224
mov dword [ebp - 0x42c], eax
mov eax, dword [ebx + 0xc]
mov dword [esp], eax
call dword [0x1001e204]
mov ecx, dword [ebp - 0x42c]
mov dword [esi], eax
sub esp, 4
jmp 0x10008224
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str.context_handle__p__attribute__lx__buffer__p_n
mov dword [esp + 8], str.schan_QueryContextAttributesW
mov dword [esp + 4], 0x100131c0
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_2
jmp 0x1000818c
mov eax, dword [ebx]
mov edx, dword [ebx + 4]
mov dword [ebp - 0x408], esi
mov dword [esp + 8], 6
mov dword [ebp - 0x410], eax
lea eax, [ebp - 0x410]
mov dword [ebp - 0x40c], edx
mov dword [esp + 0xc], eax
jmp 0x10008207
mov ecx, 0x80090302
test byte [0x100131c0], 1
je 0x10008224
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], str.Unhandled_attribute__lx_n
mov dword [esp + 8], str.schan_QueryContextAttributesW
mov dword [esp + 4], 0x100131c0
mov dword [esp], 0
mov dword [ebp - 0x42c], ecx
call sym._wine_dbg_log.constprop.0_2
mov ecx, dword [ebp - 0x42c]
jmp 0x10008224
mov eax, dword [ebx]
mov edx, dword [ebx + 4]
mov dword [esp + 8], 8
mov dword [ebp - 0x420], eax
lea eax, [ebp - 0x410]
mov dword [ebp - 0x418], eax
lea eax, [ebp - 0x420]
mov dword [ebp - 0x41c], edx
mov edx, dword [0x1001c0e4]
mov dword [esp + 0xc], eax
mov eax, dword [0x1001c0e0]
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [0x100133ac]
sub esp, 0x10
mov ecx, eax
test eax, eax
jne 0x10008224
mov dword [ebp - 0x430], eax
mov eax, dword [ebx]
mov edx, dword [ebx + 4]
mov dword [esp + 8], 0xc
mov dword [ebp - 0x428], eax
mov eax, dword [ebp - 0x400]
mov dword [ebp - 0x424], edx
lea edx, [ebp - 0x428]
mov dword [ebp - 0x42c], eax
mov eax, dword [0x1001c0e0]
mov dword [esp + 0xc], edx
mov edx, dword [0x1001c0e4]
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [0x100133ac]
lea edx, [ebp - 0x428]
sub esp, 0x10
mov edi, eax
mov eax, dword [0x1001c0e0]
mov dword [esp + 0xc], edx
mov edx, dword [0x1001c0e4]
mov dword [esp + 8], 0xb
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [0x100133ac]
mov ecx, dword [ebp - 0x430]
sub esp, 0x10
test byte [0x100131c0], 8
mov edx, eax
jne 0x10008780
mov eax, dword [ebx + 0x10]
mov dword [esi + 8], edx
mov dword [esi + 0xc], 4
mov dword [esi], eax
mov eax, dword [ebp - 0x42c]
mov dword [esi + 0x10], edi
add eax, 0x100
mov dword [esi + 4], eax
jmp 0x10008224
mov eax, dword [ebx]
mov edx, dword [ebx + 4]
mov dword [esp + 8], 8
mov dword [ebp - 0x420], eax
lea eax, [ebp - 0x410]
mov dword [ebp - 0x418], eax
lea eax, [ebp - 0x420]
mov dword [ebp - 0x41c], edx
mov edx, dword [0x1001c0e4]
mov dword [esp + 0xc], eax
mov eax, dword [0x1001c0e0]
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [0x100133ac]
sub esp, 0x10
mov ecx, eax
test eax, eax
jne 0x10008224
mov dword [ebp - 0x42c], eax
mov eax, dword [ebx]
mov edx, dword [ebx + 4]
mov dword [ebp - 0x428], eax
mov eax, dword [ebp - 0x408]
mov dword [ebp - 0x424], edx
mov dword [esi + 8], eax
lea eax, [ebp - 0x428]
mov edx, dword [0x1001c0e4]
mov dword [esp + 0xc], eax
mov eax, dword [0x1001c0e0]
mov dword [esp + 4], edx
mov dword [esp + 8], 0xa
mov dword [esp], eax
call dword [0x100133ac]
mov edx, dword [ebp - 0x40c]
mov dword [esi + 0xc], eax
sub esp, 0x10
mov dword [esi + 0x10], edx
mov edx, 1
call sym._get_alg_name
mov edx, 1
mov dword [esi], eax
mov eax, dword [esi + 0x10]
call sym._get_alg_name
mov ecx, dword [ebp - 0x42c]
mov dword [esi + 4], eax
jmp 0x10008224
mov eax, dword [ebx]
mov edx, dword [ebx + 4]
lea ebx, [ebp - 0x410]
mov dword [ebp - 0x408], 0
mov dword [esp + 0xc], ebx
mov dword [ebp - 0x410], eax
lea eax, [ebp - 0x420]
mov dword [ebp - 0x40c], edx
mov edx, dword [0x1001c0e4]
mov dword [ebp - 0x404], eax
mov eax, dword [0x1001c0e0]
mov dword [esp + 8], 0xe
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [0x100133ac]
mov ecx, 0x80090304
sub esp, 0x10
cmp eax, 0x80090321
jne 0x10008224
mov eax, dword [ebp - 0x420]
mov edx, dword fs:[0x18]
add eax, 0x2b
mov dword [esi], eax
mov dword [esp + 8], eax
mov dword [esp + 4], 8
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [esi + 4], eax
sub esp, 0xc
test eax, eax
je 0x100087ea
mov esi, dword [ebp - 0x420]
mov byte [eax + 0x2a], 0x3a
add eax, 0x2b
mov dword [eax - 0xf], 0x20
lea edx, [esi + 0xb]
mov dword [eax - 0xb], 0x2d736c74
mov dword [eax - 0x13], edx
mov edx, 0x6575
mov dword [eax - 7], 0x71696e75
mov word [eax - 3], dx
mov dword [ebp - 0x408], eax
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0xe
jmp 0x10008207
mov eax, ebx
call sym._ensure_remote_cert
mov ecx, eax
test eax, eax
jne 0x10008224
mov dword [esp + 8], 0
mov dword [ebp - 0x42c], eax
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov dword [esp], 1
mov dword [esp + 4], eax
call dword [0x1001e218]
mov ecx, dword [ebp - 0x42c]
mov edx, 0x800c
sub esp, 0xc
test eax, eax
je 0x10008645
mov edx, dword [eax + 0x10]
lea eax, [edx - 0x8003]
cmp eax, 1
mov eax, 0x800c
cmovbe edx, eax
mov dword [ebp - 0x420], 0x400
mov eax, dword [ebx + 0xc]
lea ebx, [ebp - 0x420]
mov dword [esp + 0x18], ebx
lea ebx, [ebp - 0x410]
mov dword [esp + 0x14], ebx
mov edi, dword [eax + 8]
mov dword [ebp - 0x42c], ecx
mov dword [esp + 0x10], edi
mov eax, dword [eax + 4]
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
mov dword [esp + 4], edx
mov dword [esp], 0
call dword [0x1001e21c]
mov ecx, dword [ebp - 0x42c]
sub esp, 0x1c
test eax, eax
jne 0x100086e0
mov eax, dword fs:[0x18]
mov ecx, dword [eax + 0x34]
jmp 0x10008224
mov eax, dword [eax]
mov edx, dword [ebx + 4]
mov dword [ebp - 0x408], esi
mov dword [esp + 8], 8
mov dword [ebp - 0x410], eax
lea eax, [ebp - 0x410]
mov dword [ebp - 0x40c], edx
mov dword [esp + 0xc], eax
jmp 0x10008207
mov eax, dword [ebp - 0x420]
mov dword [ebp - 0x42c], ecx
mov edx, dword fs:[0x18]
add eax, 0x35
mov dword [esi], eax
mov dword [esp + 8], eax
mov dword [esp + 4], 8
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [esi + 4], eax
sub esp, 0xc
test eax, eax
je 0x100087ea
mov esi, dword [ebp - 0x420]
mov dword [eax + 0x1c], 0x20
add eax, 0x35
mov dword [eax - 0x15], 0x2d736c74
lea edx, [esi + 0x15]
mov dword [eax - 0x11], 0x76726573
mov dword [eax - 0x1d], edx
mov dword [eax - 0xd], 0x652d7265
mov dword [eax - 9], 0x702d646e
mov dword [eax - 5], 0x746e696f
mov byte [eax - 1], 0x3a
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], eax
call sym._memcpy
mov ecx, dword [ebp - 0x42c]
jmp 0x10008224
mov dword [esp + 0x18], eax
mov dword [ebp - 0x430], eax
mov eax, dword [ebp - 0x42c]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x10]
mov dword [esp + 0xc], str.Using_header_size__Iu_mac_bytes__Iu__message_size__u__block_size__u_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.schan_QueryContextAttributesW
mov dword [esp + 4], 0x100131c0
mov dword [esp], 3
mov dword [ebp - 0x434], ecx
call sym._wine_dbg_log.constprop.0_2
mov ecx, dword [ebp - 0x434]
mov edx, dword [ebp - 0x430]
jmp 0x10008406
mov ecx, 0x80090301
jmp 0x10008224
mov ecx, 0x80090300
jmp 0x10008224