Function at 0x100879b0
Capabilities:
Get number of processors

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x100c09a8
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov ebx, ecx
call fcn.10086ff0
mov esi, dword [esp + 0x40]
push esi
call fcn.1002a390
add esp, 4
cmp eax, 1
je 0x10087ceb
mov edi, dword [esp + 0x44]
push edi
call fcn.1002a390
add esp, 4
cmp eax, 1
je 0x10087ceb
push str.OpenDatabase
mov ecx, 0x100ed374
call fcn.10013540
test eax, eax
je 0x10087ceb
push 0
push esi
call eax
test eax, eax
mov dword [ebx + 0xa8], eax
je 0x10087ce4
push str.OpenTableToModi
mov ecx, 0x100ed374
call fcn.10013540
mov esi, eax
test esi, esi
je 0x10087ce4
push 7
push str.select
push edi
call fcn.1009ec81
add esp, 0xc
test eax, eax
je 0x10087a9d
push str.select__from
lea ecx, [esp + 0x48]
call fcn.100b18dd
push edi
lea ecx, [esp + 0x48]
mov dword [esp + 0x3c], 0
call fcn.100b1bff
mov eax, dword [esp + 0x44]
mov ecx, dword [ebx + 0xa8]
push eax
push ecx
call esi
lea ecx, [esp + 0x44]
mov dword [ebx + 0xac], eax
mov dword [esp + 0x38], 0xffffffff
call fcn.100b186f
jmp 0x10087aad
mov edx, dword [ebx + 0xa8]
push edi
push edx
call esi
mov dword [ebx + 0xac], eax
mov eax, dword [ebx + 0xac]
test eax, eax
je 0x10087ce4
push str.BDGetColCount
mov ecx, 0x100ed374
call fcn.10013540
test eax, eax
je 0x10087ce4
mov ecx, dword [ebx + 0xac]
mov edx, dword [ebx + 0xa8]
push ecx
push edx
call eax
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x24], ebp
jle 0x10087ce4
call fcn.1008d9d0
push str.BDGetColWidth
mov ecx, 0x100ed374
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], edx
call fcn.10013540
mov edi, eax
xor esi, esi
test ebp, ebp
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], esi
jle 0x10087cdd
jmp 0x10087b26
mov edi, dword [esp + 0x18]
mov eax, dword [ebx + 0xac]
mov ecx, dword [ebx + 0xa8]
push esi
push eax
push ecx
call edi
cmp eax, 0x64
jg 0x10087b5d
mov edx, dword [ebx + 0xac]
mov eax, dword [ebx + 0xa8]
push esi
push edx
push eax
call edi
cmp eax, 3
jge 0x10087b5d
mov edi, 3
mov dword [esp + 0x40], edi
jmp 0x10087b96
mov ecx, dword [ebx + 0xac]
mov edx, dword [ebx + 0xa8]
push esi
push ecx
push edx
call edi
cmp eax, 0x64
jle 0x10087b7d
mov dword [esp + 0x40], 0x64
jmp 0x10087b92
mov eax, dword [ebx + 0xac]
mov ecx, dword [ebx + 0xa8]
push esi
push eax
push ecx
call edi
mov dword [esp + 0x40], eax
mov edi, dword [esp + 0x40]
mov edx, dword [ebx + 0xbc]
mov eax, dword [ebx + 0xb8]
mov dword [esp + 0x20], edx
lea ebp, [edx + 1]
test ebp, ebp
jne 0x10087bd7
test eax, eax
je 0x10087bc4
push eax
call fcn.100ae156
add esp, 4
mov dword [ebx + 0xb8], 0
xor eax, eax
mov dword [ebx + 0xc0], eax
mov dword [ebx + 0xbc], eax
jmp 0x10087cb7
test eax, eax
jne 0x10087c02
lea edx, [ebp*4]
push edx
call fcn.100ae12d
add esp, 4
mov dword [ebx + 0xb8], eax
mov dword [ebx + 0xc0], ebp
mov dword [ebx + 0xbc], ebp
jmp 0x10087cb7
mov ecx, dword [ebx + 0xc0]
cmp ebp, ecx
jg 0x10087c17
mov dword [ebx + 0xbc], ebp
jmp 0x10087cb7
mov eax, dword [ebx + 0xc4]
test eax, eax
jne 0x10087c44
mov eax, edx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x10087c38
mov eax, 4
jmp 0x10087c44
cmp eax, 0x400
jle 0x10087c44
mov eax, 0x400
add eax, ecx
cmp ebp, eax
mov dword [esp + 0x10], eax
jl 0x10087c52
mov dword [esp + 0x10], ebp
mov eax, dword [esp + 0x10]
lea ecx, [eax*4]
push ecx
call fcn.100ae12d
mov ecx, dword [ebx + 0xbc]
mov esi, dword [ebx + 0xb8]
shl ecx, 2
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov dword [esp + 0x20], eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 0xb8]
push eax
call fcn.100ae156
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x48]
add esp, 8
mov dword [ebx + 0xb8], ecx
mov dword [ebx + 0xbc], ebp
mov dword [ebx + 0xc0], edx
imul edi, dword [esp + 0x28]
mov eax, dword [ebx + 0xb8]
mov ecx, dword [esp + 0x20]
add edi, 0x1b
inc esi
mov dword [eax + ecx*4], edi
mov eax, dword [esp + 0x24]
cmp esi, eax
mov dword [esp + 0x14], esi
jl 0x10087b22
mov eax, 1
jmp 0x10087ced
mov ecx, ebx
call fcn.10086ff0
xor eax, eax
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 8