Function at 0x10007570
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100b2eb8
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x100ca040]
xor eax, esp
mov dword [esp + 0x70], eax
push ebx
push esi
push edi
mov eax, dword [0x100ca040]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x30], edi
cmp dword [ebx + 0x1d0], 0
je 0x10007679
lea eax, [ebx + 0x988]
push 0
push eax
lea ecx, [esp + 0x3c]
mov dword [esp + 0x18], eax
call fcn.100860e0
mov dword [esp + 0x90], 0
lea ecx, [esp + 0x60]
mov edx, 0x100b55c8
mov esi, 0xc
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x10007665
add ecx, 4
add edx, 4
sub esi, 4
jae 0x100075f0
lea ecx, [edi + 0x2c]
mov edx, 0x100b55c8
mov esi, 0xc
mov edi, edi
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x10007665
add ecx, 4
add edx, 4
sub esi, 4
jae 0x10007610
mov edx, dword [edi + 0x44]
lea ecx, [esp + 0x34]
mov esi, dword [esp + 0x78]
push edi
mov eax, dword [edx + 0x38]
mov dword [esi + 0x38], eax
mov eax, dword [edx + 0x3c]
mov dword [esi + 0x3c], eax
call fcn.100861e0
test eax, eax
je 0x10007665
mov ecx, dword [esp + 0x10]
push edi
call fcn.100861c0
lea ecx, [esp + 0x34]
mov dword [esp + 0x90], 0xffffffff
call fcn.10086180
jmp 0x10007848
lea ecx, [esp + 0x34]
mov dword [esp + 0x90], 0xffffffff
call fcn.10086180
push 0
xor dl, dl
mov ecx, ebx
call fcn.10006640
xor ecx, ecx
mov eax, 4
cmp dword [ebx + 0x96c], 0x8086
cmove eax, ecx
mov dword [ebx + 0x984], eax
mov eax, dword [ebx + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
test al, 0x10
je 0x100076bc
mov eax, dword [ebx + 0x984]
cdq
sub eax, edx
sar eax, 1
mov dword [ebx + 0x984], eax
cmp dword [ebx + 0x1cc], 0
mov eax, dword [0x100b5b34]
mov esi, dword [ebp + 0xc]
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], eax
mov eax, dword [0x100b5b38]
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], eax
mov eax, dword [0x100b5b3c]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], eax
mov eax, dword [0x100b5b40]
mov dword [esp + 0x10], eax
mov dword [esp + 0x2c], eax
je 0x1000773c
lea eax, [esp + 0x10]
mov ecx, ebx
push eax
lea eax, [esp + 0x24]
push eax
push esi
call fcn.10006bf0
test eax, eax
jns 0x1000771c
mov eax, 0x80004005
jmp 0x1000784a
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x14], eax
push edi
push esi
push ebx
mov dword [ebx + 0x948], 0
call fcn.10001d00
test eax, eax
js 0x1000784a
cmp esi, 0x1c
je 0x10007760
cmp esi, 2
jne 0x1000777c
mov eax, dword [ebx + 0x20]
mov eax, dword [eax + 0x8c]
test eax, eax
je 0x1000777c
cmp eax, 0xc
je 0x1000777c
cmp eax, 0x3d
je 0x1000777c
cmp eax, 0xffffffff
jne 0x10007712
cmp esi, 0x1c
jne 0x1000779f
mov eax, dword [ebx + 0x20]
mov eax, dword [eax + 0x348]
cmp eax, 0xffffff9d
je 0x100077b9
and eax, 0xfffffdff
cmp eax, 0x64
jg 0x10007712
jmp 0x100077b9
cmp esi, 0x48
je 0x100077a9
cmp esi, 0x47
jne 0x100077b9
mov eax, dword [ebx + 0x20]
cmp dword [eax + 0x348], 2
je 0x10007712
cmp dword [ebx + 0x28], 2
mov eax, 0x20
mov esi, dword [ebx + 0x20]
mov edx, 0x10
cmove edx, eax
mov ecx, dword [esi + 0x80]
dec ecx
lea eax, [edx - 1]
add ecx, edx
not eax
and ecx, eax
mov edx, 0x10
cmp dword [ebx + 0x28], 2
mov eax, 0x20
mov dword [ebx + 0x964], ecx
mov ecx, dword [esi + 0x84]
cmove edx, eax
dec ecx
sub esp, 0x10
add ecx, edx
lea eax, [edx - 1]
not eax
and ecx, eax
mov eax, esp
mov dword [ebx + 0x968], ecx
mov ecx, dword [esp + 0x24]
mov dword [eax], ecx
mov ecx, dword [esp + 0x28]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x2c]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x20]
mov dword [eax + 0xc], ecx
mov ecx, ebx
call fcn.10007100
test eax, eax
js 0x10007712
push dword [esp + 0x30]
lea ecx, [ebx + 0x988]
call fcn.100861c0
xor eax, eax
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.1008c1b5
mov esp, ebp
pop ebp
ret 0xc