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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov ebx, dword [ebp + 8]
test byte [0x687da03c], 8
jne 0x687cd840
mov eax, dword [ebp + 0xc]
mov esi, dword fs:[0x18]
mov dword [eax], 0
mov dword [esp + 8], 0x58
mov dword [esp + 4], 0
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call sub.kernel32.dll_HeapAlloc
sub esp, 0xc
mov edi, eax
test eax, eax
je 0x687cd90f
mov dword [eax], 0x687ded20
lea eax, [eax + 0x3c]
mov dword [eax - 0x38], 0x687dec20
mov dword [eax - 0x34], 0x687deca0
mov dword [eax - 0x30], 0x687deaa0
mov dword [eax - 0x2c], 0x687deb60
mov dword [eax - 0x28], 0x687de8e0
mov dword [eax - 0x24], 0x687de9c0
mov dword [eax - 0x20], 1
mov dword [eax - 0x1c], 0
mov dword [eax - 0x18], 0
mov dword [eax - 0x14], 0
mov dword [eax - 0x10], 0
mov dword [eax - 0xc], 0
mov dword [eax - 8], 0
mov dword [eax - 4], 1
mov dword [esp], eax
call sub.kernel32.dll_InitializeCriticalSection
mov eax, dword [edi + 0x3c]
sub esp, 4
mov dword [eax + 0x18], str..._.._.._.._proton_wine_dlls_dplayx_dplay.c:_IDirectPlayImpl.lock
mov dword [esp + 8], 0x84
mov dword [esp + 4], 8
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call sub.kernel32.dll_HeapAlloc
lea edx, [edi + 0x18]
mov dword [edi + 0x54], eax
sub esp, 0xc
mov dword [ebp - 0x1c], edx
test eax, eax
je 0x687cd6e4
mov dword [eax], 0
mov eax, dword [edi + 0x54]
mov dword [eax + 4], 0xffffffff
mov eax, dword [edi + 0x54]
mov dword [eax + 0xc], 0
mov eax, dword [edi + 0x54]
mov dword [eax + 0x14], 0
mov eax, dword [edi + 0x54]
mov dword [eax + 0x20], 0
mov eax, dword [edi + 0x54]
lea ecx, [eax + 0x20]
mov dword [eax + 0x24], ecx
mov eax, dword [edi + 0x54]
mov dword [eax + 0x28], 0
mov eax, dword [edi + 0x54]
lea ecx, [eax + 0x28]
mov dword [eax + 0x2c], ecx
mov eax, dword [edi + 0x54]
mov dword [eax + 0x7c], 0
mov eax, dword [edi + 0x54]
lea ecx, [eax + 0x7c]
mov dword [eax + 0x80], ecx
mov eax, dword [edi + 0x54]
add eax, 0x10
mov dword [esp], eax
call fcn.687d80b0
test eax, eax
jne 0x687cd708
mov ebx, 0x8007000e
mov eax, dword [edi + 0x18]
mov edx, dword [ebp - 0x1c]
mov dword [esp], edx
call dword [eax + 8]
sub esp, 4
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [edi + 0x54]
mov dword [esp + 8], 0x50
mov dword [esp + 4], 8
mov eax, dword [esi + 0x30]
mov dword [ebp - 0x20], ecx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call sub.kernel32.dll_HeapAlloc
mov ecx, dword [ebp - 0x20]
sub esp, 0xc
mov dword [ecx + 0x1c], eax
mov eax, dword [edi + 0x54]
mov eax, dword [eax + 0x1c]
test eax, eax
je 0x687cd6e4
mov dword [eax], 0x50
mov eax, dword [edi + 0x54]
mov dword [eax + 0x54], 0x60000
mov ecx, dword [edi + 0x54]
mov dword [esp + 8], 0x60
mov dword [esp + 4], 8
mov eax, dword [esi + 0x30]
mov dword [ebp - 0x20], ecx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call sub.kernel32.dll_HeapAlloc
mov ecx, dword [ebp - 0x20]
sub esp, 0xc
mov dword [ecx + 0x30], eax
mov eax, dword [edi + 0x54]
mov eax, dword [eax + 0x30]
mov dword [eax], 0x60
mov eax, dword [edi + 0x54]
mov eax, dword [eax + 0x30]
mov dword [eax + 4], 0x60000
mov dword [esp + 8], edi
mov eax, dword [edi + 0x54]
mov dword [esp], 0x687dc17c
add eax, 0x34
mov dword [esp + 4], eax
call fcn.687ceec0
test eax, eax
js 0x687cd6e4
mov eax, dword [edi + 0x54]
mov dword [eax + 0x60], 0x60000
mov ecx, dword [edi + 0x54]
mov dword [esp + 8], 0x74
mov dword [esp + 4], 8
mov eax, dword [esi + 0x30]
mov dword [ebp - 0x20], ecx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call sub.kernel32.dll_HeapAlloc
mov ecx, dword [ebp - 0x20]
sub esp, 0xc
mov dword [ecx + 0x5c], eax
mov eax, dword [edi + 0x54]
mov eax, dword [eax + 0x5c]
mov dword [eax], 0x74
mov dword [esp + 8], edi
mov eax, dword [edi + 0x54]
mov dword [esp], 0x687dc16c
add eax, 0x64
mov dword [esp + 4], eax
call fcn.687d7ac0
test eax, eax
js 0x687cd6e4
mov eax, dword [edi + 0x18]
mov esi, dword [ebp + 0xc]
lea edx, [edi + 0x18]
mov dword [esp + 4], ebx
mov dword [esp], edx
mov dword [esp + 8], esi
call dword [eax]
sub esp, 0xc
mov ebx, eax
jmp 0x687cd6e9
test ebx, ebx
je 0x687cd908
mov eax, ebx
shr eax, 0x10
je 0x687cd8f0
movzx eax, byte [ebx + 0xf]
mov dword [esp + 0x2c], eax
movzx eax, byte [ebx + 0xe]
mov dword [esp + 0x28], eax
movzx eax, byte [ebx + 0xd]
mov dword [esp + 0x24], eax
movzx eax, byte [ebx + 0xc]
mov dword [esp + 0x20], eax
movzx eax, byte [ebx + 0xb]
mov dword [esp + 0x1c], eax
movzx eax, byte [ebx + 0xa]
mov dword [esp + 0x18], eax
movzx eax, byte [ebx + 9]
mov dword [esp + 0x14], eax
movzx eax, byte [ebx + 8]
mov dword [esp + 0x10], eax
movzx eax, word [ebx + 6]
mov dword [esp + 0xc], eax
movzx eax, word [ebx + 4]
mov dword [esp + 8], eax
mov eax, dword [ebx]
mov dword [esp], 0x687dc2fc
mov dword [esp + 4], eax
call fcn.687c3460
mov esi, dword [ebp + 0xc]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x687dd8dc
mov dword [esp + 0x14], esi
mov dword [esp + 8], str.dplay_create
mov dword [esp + 4], 0x687da03c
mov dword [esp], 3
call fcn.687c3970
jmp 0x687cd589
movzx eax, bx
mov dword [esp], 0x687dc2ec
mov dword [esp + 4], eax
call fcn.687c3460
jmp 0x687cd8b5
mov eax, 0x687dc1a0
jmp 0x687cd8b5
mov ebx, 0x8007000e
jmp 0x687cd6f8