Function at 0x10002f10
Capabilities:
Get number of processors
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov dword [ebp - 0x14], edx
mov ebx, ecx
mov edi, dword fs:[0x18]
mov eax, dword [edi + 0x30]
push 0x18
push 0
push dword [eax + 0x18]
call dword [sym.imp.kernel32.dll_HeapAlloc]
test eax, eax
je 0x10002fa5
mov esi, eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], eax
lea eax, [ebx + 0x68]
mov dword [ebp - 0x18], eax
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
lea ecx, [ebx + 0x64]
mov eax, dword [ebx + 0x64]
test eax, eax
mov dword [ebp - 0x10], ecx
je 0x10002fe3
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], edi
mov edi, dword [esi + 0x10]
nop
mov ebx, eax
push eax
push edi
mov eax, dword [ebp - 0x14]
call dword [eax + 0x60]
add esp, 8
test eax, eax
je 0x10003160
mov edx, eax
not eax
shr eax, 0x1f
xor ecx, ecx
test edx, edx
setns dl
mov eax, dword [ebx + eax*4 + 4]
test eax, eax
jne 0x10002f70
mov cl, dl
lea eax, [ebx + ecx*4]
add eax, 4
jmp 0x10002fe7
mov eax, 0x8007000e
test byte [0x1003c018], 2
je 0x100031a8
sub esp, 0x10
mov dword [esp + 0xc], str.Failed_to_allocate_wrapper_lookup__n
mov dword [esp + 8], str.wrapper_add_entry
mov dword [esp], 1
call dbg.wine_dbg_log
mov eax, 0x8007000e
add esp, 0x10
jmp 0x100031a8
xor ebx, ebx
mov eax, ecx
mov dword [esi + 0xc], 1
mov dword [esi], ebx
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [eax], esi
mov eax, dword [esi]
test eax, eax
mov ebx, dword [ebp - 0x10]
jne 0x10003031
mov eax, dword [ebx]
and dword [eax + 0xc], 0xfffffffe
push dword [ebp - 0x18]
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
jmp 0x100031a6
mov dword [edx + 4], ecx
mov esi, dword [ecx]
mov dword [edx], esi
mov dword [ecx], edx
mov esi, eax
mov eax, dword [eax]
test eax, eax
je 0x10003009
mov ecx, dword [eax + 0xc]
test cl, 1
je 0x10003009
mov edx, dword [eax]
mov edi, dword [edx + 4]
cmp eax, edi
je 0x10003060
test edi, edi
je 0x1000304c
test byte [edi + 0xc], 1
jne 0x1000307f
cmp esi, dword [eax + 4]
je 0x10003089
mov edx, eax
mov eax, esi
jmp 0x100030a6
mov edi, dword [edx + 8]
test edi, edi
je 0x1000306d
test byte [edi + 0xc], 1
jne 0x100030e9
cmp esi, dword [eax + 8]
je 0x10003101
mov edx, eax
mov eax, esi
jmp 0x1000311e
xor byte [edx + 0xc], 1
xor byte [edi + 0xc], 1
jmp 0x100030f1
mov dword [edx + 8], esi
mov ecx, dword [esi + 8]
mov dword [eax + 4], ecx
test ecx, ecx
je 0x10003098
mov dword [ecx], eax
mov dword [esi + 8], eax
mov ecx, dword [eax]
mov dword [esi], ecx
mov dword [eax], esi
mov ecx, dword [esi + 0xc]
mov edx, esi
and ecx, 0xfffffffe
mov dword [edx + 0xc], ecx
mov ecx, dword [eax]
mov ecx, dword [ecx]
or dword [ecx + 0xc], 1
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov edi, dword [ecx]
mov edx, dword [ecx + 8]
mov esi, ebx
test edi, edi
je 0x100030d2
lea ebx, [edi + 4]
lea esi, [edi + 8]
cmp dword [edi + 4], ecx
cmove esi, ebx
mov ebx, dword [ebp - 0x10]
mov dword [esi], edx
mov esi, dword [edx + 4]
mov dword [ecx + 8], esi
test esi, esi
je 0x10003020
mov dword [esi], ecx
jmp 0x10003020
xor byte [edx + 0xc], 1
xor byte [eax + 0xc], 1
mov eax, dword [edx + 8]
xor dword [eax + 0xc], 1
mov eax, dword [esi]
mov eax, dword [eax]
jmp 0x10003029
mov dword [edx + 4], esi
mov ecx, dword [esi + 4]
mov dword [eax + 8], ecx
test ecx, ecx
je 0x10003110
mov dword [ecx], eax
mov dword [esi + 4], eax
mov ecx, dword [eax]
mov dword [esi], ecx
mov dword [eax], esi
mov ecx, dword [esi + 0xc]
mov edx, esi
and ecx, 0xfffffffe
mov dword [edx + 0xc], ecx
mov ecx, dword [eax]
mov ecx, dword [ecx]
or dword [ecx + 0xc], 1
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov edi, dword [ecx]
mov edx, dword [ecx + 4]
mov esi, ebx
test edi, edi
je 0x1000314a
lea ebx, [edi + 4]
lea esi, [edi + 8]
cmp dword [edi + 4], ecx
cmove esi, ebx
mov ebx, dword [ebp - 0x10]
mov dword [esi], edx
mov esi, dword [edx + 8]
mov dword [ecx + 4], esi
test esi, esi
je 0x10003158
mov dword [esi], ecx
mov dword [edx + 8], ecx
jmp 0x10003023
push dword [ebp - 0x18]
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
test byte [0x1003c018], 4
je 0x10003194
sub esp, 0x10
mov dword [esp + 0xc], str.wrapper_lookup_already_present_in_the_tree___n
mov dword [esp + 8], str.wrapper_add_entry
mov dword [esp], 2
call dbg.wine_dbg_log
add esp, 0x10
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x30]
push esi
push 0
push dword [eax + 0x18]
call dword [sym.imp.kernel32.dll_HeapFree]
xor eax, eax
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret