Function at 0x4a953e
Capabilities:
Get number of processors

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4e1db6
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov ebx, ecx
call fcn.004a8b9e
mov edi, dword [esp + 0x40]
push edi
call fcn.0044ceee
add esp, 4
cmp eax, 1
je 0x4a9893
mov ebp, dword [esp + 0x44]
push ebp
call fcn.0044ceee
add esp, 4
cmp eax, 1
je 0x4a9893
xor esi, esi
push str.NewOpenDatabase
mov ecx, 0x540432
mov dword [ebx + 0xa8], esi
call fcn.0043609e
cmp eax, esi
je 0x4a95b0
push 1
push esi
push edi
call eax
jmp 0x4a95c7
push str.OpenDatabase
mov ecx, 0x540432
call fcn.0043609e
cmp eax, esi
je 0x4a95cd
push esi
push edi
call eax
mov dword [ebx + 0xa8], eax
cmp dword [ebx + 0xa8], esi
je 0x4a988c
push str.OpenTableToModi
mov ecx, 0x540432
call fcn.0043609e
mov edi, eax
cmp edi, esi
je 0x4a988c
push 7
push str.select
push ebp
call fcn.004c0acf
add esp, 0xc
test eax, eax
je 0x4a9649
push str.select__from
lea ecx, [esp + 0x48]
call fcn.004d3736
push ebp
lea ecx, [esp + 0x48]
mov dword [esp + 0x3c], esi
call fcn.004d3a58
mov eax, dword [esp + 0x44]
mov ecx, dword [ebx + 0xa8]
push eax
push ecx
call edi
lea ecx, [esp + 0x44]
mov dword [ebx + 0xac], eax
mov dword [esp + 0x38], 0xffffffff
call fcn.004d36c8
jmp 0x4a9659
mov edx, dword [ebx + 0xa8]
push ebp
push edx
call edi
mov dword [ebx + 0xac], eax
cmp dword [ebx + 0xac], esi
je 0x4a988c
push str.BDGetColCount
mov ecx, 0x540432
call fcn.0043609e
cmp eax, esi
je 0x4a988c
mov ecx, dword [ebx + 0xac]
mov edx, dword [ebx + 0xa8]
push ecx
push edx
call eax
mov ebp, eax
cmp ebp, esi
mov dword [esp + 0x24], ebp
jle 0x4a988c
call fcn.004af55e
push str.BDGetColWidth
mov ecx, 0x540432
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], edx
call fcn.0043609e
mov edi, eax
cmp ebp, esi
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], esi
jle 0x4a9885
jmp 0x4a96ce
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 0x4a9705
mov edx, dword [ebx + 0xac]
mov eax, dword [ebx + 0xa8]
push esi
push edx
push eax
call edi
cmp eax, 3
jge 0x4a9705
mov edi, 3
mov dword [esp + 0x40], edi
jmp 0x4a973e
mov ecx, dword [ebx + 0xac]
mov edx, dword [ebx + 0xa8]
push esi
push ecx
push edx
call edi
cmp eax, 0x64
jle 0x4a9725
mov dword [esp + 0x40], 0x64
jmp 0x4a973a
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 0x4a977f
test eax, eax
je 0x4a976c
push eax
call fcn.004cffb4
add esp, 4
mov dword [ebx + 0xb8], 0
xor eax, eax
mov dword [ebx + 0xc0], eax
mov dword [ebx + 0xbc], eax
jmp 0x4a985f
test eax, eax
jne 0x4a97aa
lea edx, [ebp*4]
push edx
call fcn.004cff8b
add esp, 4
mov dword [ebx + 0xb8], eax
mov dword [ebx + 0xc0], ebp
mov dword [ebx + 0xbc], ebp
jmp 0x4a985f
mov ecx, dword [ebx + 0xc0]
cmp ebp, ecx
jg 0x4a97bf
mov dword [ebx + 0xbc], ebp
jmp 0x4a985f
mov eax, dword [ebx + 0xc4]
test eax, eax
jne 0x4a97ec
mov eax, edx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x4a97e0
mov eax, 4
jmp 0x4a97ec
cmp eax, 0x400
jle 0x4a97ec
mov eax, 0x400
add eax, ecx
cmp ebp, eax
mov dword [esp + 0x10], eax
jl 0x4a97fa
mov dword [esp + 0x10], ebp
mov eax, dword [esp + 0x10]
lea ecx, [eax*4]
push ecx
call fcn.004cff8b
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.004cffb4
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 0x4a96ca
mov eax, 1
jmp 0x4a9895
mov ecx, ebx
call fcn.004a8b9e
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