Function at 0x478580
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4adc43
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x64
push ebx
push ebp
push esi
push edi
mov ebp, ecx
lea eax, [ebp + 0x54]
mov dword [esp + 0x7c], 1
push eax
call dword [0x4b1128]
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0xc]
push ecx
lea eax, [esp + 0x88]
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
call fcn.004a2b3e
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [ebp + 4]
call fcn.00417bc0
lea esi, [ebp + 0x80]
push eax
mov ecx, esi
mov byte [esp + 0x80], 2
call fcn.004a2aa8
lea ecx, [esp + 0x14]
mov byte [esp + 0x7c], 1
call fcn.004a2856
mov dx, word [esp + 0x88]
push 0
push ecx
mov word [ebp + 0x7a], dx
mov ecx, esp
mov dword [esp + 0x90], esp
push esi
call fcn.004a2b3e
mov ecx, dword [ebp + 4]
lea eax, [esp + 0x90]
push eax
call fcn.004178f0
lea ebx, [ebp + 0x7c]
push eax
mov ecx, ebx
mov byte [esp + 0x80], 3
call fcn.004a2aa8
lea ecx, [esp + 0x88]
mov byte [esp + 0x7c], 1
call fcn.004a2856
mov eax, dword [ebp + 0x74]
mov edi, dword [0x4b1b08]
add eax, 0x58
push 0x4e0874
mov eax, dword [eax]
push eax
call edi
add esp, 8
test eax, eax
je 0x47868d
mov ecx, dword [ebp + 0x74]
mov eax, dword [ecx + 0x50]
cmp eax, 1
je 0x478682
cmp eax, 2
jne 0x47868d
cmp dword [ebp + 0x24], 2
jne 0x47868d
add ecx, 0x58
push ecx
mov ecx, ebx
call fcn.004a2aa8
mov eax, dword [ebp + 0x74]
mov cl, byte [eax + 0x5c]
test cl, cl
je 0x4786b7
mov eax, dword [eax + 0x64]
push 0x4e0874
push eax
call edi
add esp, 8
test eax, eax
je 0x4786b7
mov ecx, dword [ebp + 0x74]
add ecx, 0x64
push ecx
mov ecx, ebx
call fcn.004a2aa8
mov edx, dword [esp + 0x8c]
mov ecx, dword [ebp + 0xc]
push edx
call fcn.004437d0
mov ecx, dword [ebp + 0x38]
push ebx
add ecx, 0x10
mov dword [ebp + 0x88], eax
call fcn.004a2aa8
mov ecx, dword [ebp + 0x38]
push esi
add ecx, 0xc
call fcn.004a2aa8
mov eax, dword [ebp + 0x38]
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x90], esp
push 0x4e0874
mov dword [eax + 0x14], 2
call fcn.004a2850
push 0xffffffffffffffff
mov ecx, ebp
call fcn.0048fab0
lea ecx, [esp + 0x24]
call fcn.0046a6d0
push ebx
lea ecx, [esp + 0x2c]
mov byte [esp + 0x80], 4
call fcn.004a2aa8
mov cx, word [ebp + 0x78]
mov dword [esp + 0x24], 1
mov word [esp + 0x2c], cx
mov ecx, dword [ebp + 0x6c]
call fcn.0047cab0
mov edi, eax
mov eax, dword [edi + 0xf4]
add edi, 0xec
mov dword [esp + 0x88], eax
inc eax
push 0xffffffffffffffff
push eax
mov ecx, edi
call fcn.00474390
mov ecx, dword [esp + 0x88]
mov eax, dword [edi + 4]
lea edx, [esp + 0x24]
shl ecx, 5
push edx
add ecx, eax
call fcn.004749b0
mov ecx, dword [ebp + 0x6c]
push esi
call fcn.0047cab0
mov ecx, eax
add ecx, 0xac
call fcn.004a2aa8
mov ecx, dword [ebp + 0x6c]
call fcn.0047cab0
mov cx, word [ebp + 0x7a]
mov word [eax + 0xb0], cx
mov ecx, dword [ebp + 0x6c]
call fcn.0047cab0
mov esi, 1
push ebx
mov dword [eax + 0xdc], esi
mov ecx, dword [ebp + 0x6c]
call fcn.0047cab0
mov ecx, eax
add ecx, 0x60
call fcn.004a2aa8
mov ecx, dword [ebp + 0x6c]
call fcn.0047cab0
mov dx, word [ebp + 0x78]
mov word [eax + 0x64], dx
mov ecx, dword [ebp + 0x6c]
call fcn.0047cab0
push esi
mov dword [eax + 0x90], esi
push 0xa
lea eax, [esp + 0x90]
push eax
call fcn.004903a0
add esp, 0xc
mov ecx, dword [ebp + 0x6c]
push eax
mov byte [esp + 0x80], 5
call fcn.0047cab0
mov ecx, eax
add ecx, 0x94
call fcn.004a2aa8
lea ecx, [esp + 0x88]
mov byte [esp + 0x7c], 4
call fcn.004a2856
mov ecx, dword [ebp + 0x6c]
call fcn.0047cab0
mov ecx, dword [ebp + 0x6c]
add eax, 0x58
push eax
call fcn.0047cab0
mov ecx, eax
add ecx, 0xc
call fcn.00468f10
mov ecx, dword [ebp + 0x6c]
call fcn.0047cab0
mov ecx, dword [ebp + 0x6c]
add eax, 0x58
push eax
call fcn.0047cab0
mov ecx, eax
add ecx, 0x128
call fcn.00468f10
lea ecx, [esp + 0x44]
push ecx
mov ecx, dword [ebp + 0x74]
add ecx, 8
call fcn.00412760
mov ecx, dword [ebp + 0x6c]
add eax, 8
push eax
mov byte [esp + 0x80], 6
call fcn.0047cab0
mov ecx, eax
add ecx, 0x128
call fcn.004a2aa8
lea ecx, [esp + 0x68]
mov byte [esp + 0x7c], 0xa
call fcn.004a2856
lea edx, [esp + 0x54]
mov dword [esp + 0x88], edx
lea ecx, [esp + 0x5c]
mov byte [esp + 0x7c], 0xc
call fcn.004a2856
lea ecx, [esp + 0x58]
mov byte [esp + 0x7c], 0xb
call fcn.004a2856
lea ecx, [esp + 0x54]
mov byte [esp + 0x7c], 9
call fcn.004a2856
lea ecx, [esp + 0x50]
mov byte [esp + 0x7c], 8
call fcn.004a2856
lea ecx, [esp + 0x4c]
mov byte [esp + 0x7c], 7
call fcn.004a2856
lea ecx, [esp + 0x48]
mov byte [esp + 0x7c], 4
call fcn.004a2856
mov ecx, dword [ebp + 0x74]
lea eax, [esp + 0x44]
push eax
add ecx, 8
call fcn.00412760
mov ecx, dword [ebp + 0x6c]
add eax, 4
push eax
mov byte [esp + 0x80], 0xd
call fcn.0047cab0
mov ecx, eax
add ecx, 0x124
call fcn.004a2aa8
lea ecx, [esp + 0x68]
mov byte [esp + 0x7c], 0x11
call fcn.004a2856
lea ecx, [esp + 0x54]
mov dword [esp + 0x88], ecx
lea ecx, [esp + 0x5c]
mov byte [esp + 0x7c], 0x13
call fcn.004a2856
lea ecx, [esp + 0x58]
mov byte [esp + 0x7c], 0x12
call fcn.004a2856
lea ecx, [esp + 0x54]
mov byte [esp + 0x7c], 0x10
call fcn.004a2856
lea ecx, [esp + 0x50]
mov byte [esp + 0x7c], 0xf
call fcn.004a2856
lea ecx, [esp + 0x4c]
mov byte [esp + 0x7c], 0xe
call fcn.004a2856
lea ecx, [esp + 0x48]
mov byte [esp + 0x7c], 4
call fcn.004a2856
mov ecx, dword [ebp + 0x6c]
call fcn.0047cab0
mov dword [eax + 0x184], 0x46
mov ecx, dword [ebp + 0x6c]
push ebx
call fcn.0047cab0
mov ecx, eax
add ecx, 0x208
call fcn.004a2aa8
mov ecx, dword [ebp + 0x74]
lea edx, [esp + 0x44]
push edx
add ecx, 8
call fcn.00412760
mov ecx, dword [ebp + 0x6c]
add eax, 0xc
push eax
mov byte [esp + 0x80], 0x14
call fcn.0047cab0
mov ecx, eax
add ecx, 0x1f0
call fcn.004a2aa8
lea ecx, [esp + 0x68]
mov byte [esp + 0x7c], 0x18
call fcn.004a2856
lea eax, [esp + 0x54]
mov dword [esp + 0x88], eax
lea ecx, [esp + 0x5c]
mov byte [esp + 0x7c], 0x1a
call fcn.004a2856
lea ecx, [esp + 0x58]
mov byte [esp + 0x7c], 0x19
call fcn.004a2856
lea ecx, [esp + 0x54]
mov byte [esp + 0x7c], 0x17
call fcn.004a2856
lea ecx, [esp + 0x50]
mov byte [esp + 0x7c], 0x16
call fcn.004a2856
lea ecx, [esp + 0x4c]
mov byte [esp + 0x7c], 0x15
call fcn.004a2856
lea ecx, [esp + 0x48]
mov byte [esp + 0x7c], 4
call fcn.004a2856
lea ecx, [esp + 0x44]
push ecx
mov ecx, dword [ebp + 0x74]
add ecx, 8
call fcn.00412760
mov ecx, dword [ebp + 0x6c]
add eax, 8
push eax
mov byte [esp + 0x80], 0x1b
call fcn.0047cab0
mov ecx, eax
add ecx, 0x1ec
call fcn.004a2aa8
lea ecx, [esp + 0x68]
mov byte [esp + 0x7c], 0x1f
call fcn.004a2856
lea edx, [esp + 0x54]
mov dword [esp + 0x88], edx
lea ecx, [esp + 0x5c]
mov byte [esp + 0x7c], 0x21
call fcn.004a2856
lea ecx, [esp + 0x58]
mov byte [esp + 0x7c], 0x20
call fcn.004a2856
lea ecx, [esp + 0x54]
mov byte [esp + 0x7c], 0x1e
call fcn.004a2856
lea ecx, [esp + 0x50]
mov byte [esp + 0x7c], 0x1d
call fcn.004a2856
lea ecx, [esp + 0x4c]
mov byte [esp + 0x7c], 0x1c
call fcn.004a2856
lea ecx, [esp + 0x48]
mov byte [esp + 0x7c], 4
call fcn.004a2856
lea ecx, [esp + 0x1c]
call fcn.0046a550
push 0xc0
call fcn.004a2b56
add esp, 4
mov dword [esp + 0x88], eax
test eax, eax
mov byte [esp + 0x7c], 0x22
je 0x478b3e
mov ecx, eax
call fcn.0048d160
mov ebx, eax
mov dword [esp + 0x10], ebx
jmp 0x478b4a
mov dword [esp + 0x10], 0
mov ebx, dword [esp + 0x10]
mov ecx, dword [ebp + 0x74]
lea eax, [esp + 0x44]
push eax
add ecx, 8
mov byte [esp + 0x80], 4
call fcn.00412760
mov cx, word [eax + 2]
mov word [ebx + 0xac], cx
lea ecx, [esp + 0x68]
mov byte [esp + 0x7c], 0x26
call fcn.004a2856
lea edx, [esp + 0x54]
mov dword [esp + 0x88], edx
lea ecx, [esp + 0x5c]
mov byte [esp + 0x7c], 0x28
call fcn.004a2856
lea ecx, [esp + 0x58]
mov byte [esp + 0x7c], 0x27
call fcn.004a2856
lea ecx, [esp + 0x54]
mov byte [esp + 0x7c], 0x25
call fcn.004a2856
lea ecx, [esp + 0x50]
mov byte [esp + 0x7c], 0x24
call fcn.004a2856
lea ecx, [esp + 0x4c]
mov byte [esp + 0x7c], 0x23
call fcn.004a2856
lea ecx, [esp + 0x48]
mov byte [esp + 0x7c], 4
call fcn.004a2856
mov eax, dword [ebp + 0x88]
mov ecx, dword [eax + 0xc]
test ecx, ecx
jle 0x478c2c
mov eax, dword [eax + 4]
mov dword [esp + 0x1c], eax
mov cx, word [ebx + 0xac]
mov word [esp + 0x20], cx
mov ecx, dword [ebp + 0x6c]
call fcn.0047cab0
mov esi, eax
push 0xffffffffffffffff
add esi, 0x1f4
mov ecx, esi
mov edi, dword [esi + 8]
lea edx, [edi + 1]
push edx
call fcn.00474860
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x1c]
mov dword [eax + edi*8], ecx
mov edx, dword [esp + 0x20]
mov dword [eax + edi*8 + 4], edx
mov ecx, dword [ebp + 0xc]
xor esi, esi
mov dword [esp + 0x14], esi
call fcn.004437c0
test eax, eax
jle 0x478e5f
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x88]
push esi
call fcn.004437d0
mov eax, dword [eax + 4]
mov ecx, dword [edi + 4]
cmp eax, ecx
jne 0x478c66
mov eax, dword [edi + 0xc]
test eax, eax
jle 0x478e4a
mov ecx, dword [ebp + 0xc]
push esi
call fcn.004437d0
mov ecx, dword [eax + 4]
mov dword [esp + 0x1c], ecx
mov dx, word [ebx + 0xac]
mov ecx, dword [ebp + 0x6c]
mov word [esp + 0x20], dx
call fcn.0047cab0
mov ebx, eax
mov eax, dword [ebx + 0x1f8]
add ebx, 0x1f4
mov ecx, dword [ebx + 8]
mov edi, ecx
mov dword [esp + 0x88], edi
lea esi, [edi + 1]
test esi, esi
jne 0x478cd3
test eax, eax
je 0x478cc6
push eax
mov dword [esp + 0x8c], ecx
call fcn.004a297c
add esp, 4
mov dword [ebx + 4], 0
xor eax, eax
mov dword [ebx + 0xc], eax
mov dword [ebx + 8], eax
jmp 0x478e30
test eax, eax
jne 0x478d47
lea edi, [esi*8]
push edi
call fcn.004a2b56
mov edx, eax
mov ecx, edi
mov dword [ebx + 4], edx
mov dword [esp + 0x90], edx
mov edi, edx
mov edx, ecx
xor eax, eax
add esp, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [esp + 0x8c]
mov dword [esp + 0x18], edi
test edi, edi
mov byte [esp + 0x7c], 0x29
je 0x478d22
mov ecx, edi
call fcn.0046a550
add edi, 8
dec esi
mov byte [esp + 0x7c], 4
mov dword [esp + 0x8c], edi
jne 0x478d07
mov eax, dword [esp + 0x88]
inc eax
mov dword [ebx + 0xc], eax
mov dword [ebx + 8], eax
jmp 0x478e29
cmp esi, dword [ebx + 0xc]
jg 0x478d79
cmp ecx, esi
jge 0x478d66
mov edx, esi
lea eax, [eax + ecx*8]
sub edx, ecx
push edx
push eax
call fcn.00474c00
mov dword [ebx + 8], esi
jmp 0x478e30
jle 0x478d71
sub ecx, esi
mov dword [esp + 0x88], ecx
mov dword [ebx + 8], esi
jmp 0x478e30
mov eax, dword [ebx + 0x10]
test eax, eax
jne 0x478da3
mov eax, ecx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x478d97
mov eax, 4
jmp 0x478da3
cmp eax, 0x400
jle 0x478da3
mov eax, 0x400
mov ecx, dword [ebx + 0xc]
add eax, ecx
cmp esi, eax
mov dword [esp + 0x8c], eax
jl 0x478dba
mov dword [esp + 0x8c], esi
mov ecx, dword [esp + 0x8c]
lea edx, [ecx*8]
push edx
call fcn.004a2b56
mov ecx, dword [ebx + 8]
mov esi, dword [ebx + 4]
shl ecx, 3
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [esp + 0x8c]
and ecx, 3
add esp, 4
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 8]
lea esi, [edx + 1]
mov edx, esi
mov dword [esp + 0x18], eax
sub edx, ecx
lea eax, [eax + ecx*8]
push edx
push eax
call fcn.00474c00
mov eax, dword [ebx + 4]
push eax
call fcn.004a297c
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x90]
add esp, 4
mov dword [ebx + 4], ecx
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], edx
mov edi, dword [esp + 0x88]
mov eax, dword [ebx + 4]
mov ecx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov dword [eax + edi*8], ecx
mov edx, dword [esp + 0x20]
mov dword [eax + edi*8 + 4], edx
mov ecx, dword [ebp + 0xc]
inc esi
mov dword [esp + 0x14], esi
call fcn.004437c0
cmp esi, eax
jl 0x478c42
push 1
push ecx
lea eax, [esp + 0x98]
mov ecx, esp
mov dword [esp + 0x90], esp
push eax
call fcn.004a2b3e
mov ecx, dword [ebp + 0x6c]
call fcn.0047d110
mov edx, dword [ebp + 0x4c]
add ebp, 0x4c
mov ecx, ebp
call dword [edx + 0x1c]
lea ecx, [esp + 0x40]
mov byte [esp + 0x7c], 0x2c
call fcn.004a2856
lea ecx, [esp + 0x3c]
mov byte [esp + 0x7c], 0x2b
call fcn.004a2856
lea ecx, [esp + 0x30]
mov byte [esp + 0x7c], 0x2a
call fcn.004a2856
lea ecx, [esp + 0x28]
mov byte [esp + 0x7c], 1
call fcn.004a2856
lea ecx, [esp + 0x84]
mov byte [esp + 0x7c], 0
call fcn.004a2856
lea ecx, [esp + 0x90]
mov dword [esp + 0x7c], 0xffffffff
call fcn.004a2856
mov ecx, dword [esp + 0x74]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x70
ret 0x10