Function at 0x40c980
Capabilities:
Get number of processors

Disassembly:
mov ecx, dword [0x8f791c]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x40d337
sub esp, 0x64
cmp dword [0x8f7820], 2
je 0x40d320
mov eax, dword [esp + 0x68]
test eax, eax
je 0x40d276
movzx ecx, byte [0x8f7eb8]
test cl, cl
je 0x40ca7b
mov ecx, dword [0x8f7ec4]
test ecx, ecx
je 0x40ca29
mov ecx, dword [esp + 0x6c]
test ecx, ecx
je 0x40ca02
test eax, 7
jne 0x40c9df
mov ecx, 8
jmp 0x40ca07
test eax, 3
jne 0x40c9ed
mov ecx, 4
jmp 0x40ca07
test eax, 1
jne 0x40c9fb
mov ecx, 2
jmp 0x40ca07
mov ecx, 1
jmp 0x40ca07
mov ecx, 0x10
mov dword [esp], eax
mov dword [esp + 4], ecx
lea eax, [0x8fc3d8]
mov dword [esp + 8], eax
call fcn.0040d7b0
mov eax, dword [esp + 0xc]
mov dword [esp + 0x74], eax
add esp, 0x64
ret
movzx ecx, byte [0x8f7c90]
test cl, cl
je 0x40ca7b
mov ecx, dword [0x8f791c]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
mov edx, dword [ecx + 0x50]
mov ecx, dword [ecx + 0x54]
cmp dword [0x8f7c94], edx
sete dl
cmp dword [0x8f7c98], ecx
sete cl
and ecx, edx
test cl, cl
je 0x40ca7b
mov ecx, dword [0x8f7c9c]
mov edx, dword [0x8f7ca0]
add ecx, 1
mov dword [0x8f7c9c], ecx
adc edx, 0
mov dword [0x8f7ca0], edx
mov dword [esp], eax
call fcn.0040d350
mov eax, dword [0x8f791c]
mov eax, dword fs:[eax]
mov eax, dword [eax]
mov ecx, dword [eax + 0x18]
mov edx, dword [esp + 4]
nop
inc dword [ecx + 0x7c]
mov eax, dword [eax + 0x18]
mov ecx, dword [eax + 0x6c]
test ecx, ecx
jne 0x40d30a
mov ebx, dword [0x8f791c]
mov ebx, dword fs:[ebx]
mov ebx, dword [ebx]
cmp dword [eax + 0x30], ebx
je 0x40d2f4
mov dword [eax + 0x6c], 1
mov ebx, dword [eax + 0x58]
test ebx, ebx
je 0x40cace
mov ebx, dword [ebx + 0x30]
jmp 0x40cad4
mov ebx, dword [0x8f7888]
test ebx, ebx
je 0x40d2de
mov ebp, dword [esp + 0x6c]
test ebp, ebp
je 0x40caf2
mov esi, dword [ebp + 4]
test esi, esi
xchg esi, ebx
sete bl
xchg esi, ebx
jmp 0x40caf7
mov esi, 1
mov dword [esp + 0x5c], edx
mov dword [esp + 0x50], eax
mov dword [esp + 0x2c], ebx
xchg esi, eax
mov byte [esp + 0x1d], al
xchg esi, eax
mov edi, dword [esp + 0x68]
cmp edi, 0x7ff8
ja 0x40cf94
xchg esi, eax
test al, al
xchg esi, eax
je 0x40cd38
cmp edi, 0x10
jae 0x40cd2e
mov ecx, dword [ebx + 0xc]
test edi, 7
jne 0x40cb3f
add ecx, 7
and ecx, 0xfffffff8
jmp 0x40cb69
cmp edi, 0xc
jne 0x40cb4c
add ecx, 7
and ecx, 0xfffffff8
jmp 0x40cb69
test edi, 3
jne 0x40cb5c
add ecx, 3
and ecx, 0xfffffffc
jmp 0x40cb69
test edi, 1
jne 0x40cb69
inc ecx
nop
and ecx, 0xfffffffe
lea edx, [ecx + edi]
cmp edx, 0x10
ja 0x40cbbe
mov ebp, dword [ebx + 8]
test ebp, ebp
je 0x40cbba
add ecx, ebp
mov dword [ebx + 0xc], edx
inc dword [ebx + 0x10]
mov dword [eax + 0x6c], 0
mov edx, dword [eax + 0x7c]
lea ebx, [edx - 1]
nop
mov ebp, dword [0x8f791c]
mov ebp, dword fs:[ebp]
mov ebp, dword [ebp]
mov dword [eax + 0x7c], ebx
cmp edx, 1
jne 0x40cbb2
movzx eax, byte [ebp + 0x65]
test al, al
je 0x40cbb2
mov dword [ebp + 8], 0xfffffade
mov dword [esp + 0x74], ecx
add esp, 0x64
ret
mov ebp, dword [esp + 0x6c]
mov edx, dword [ebx + 0x28]
mov ecx, dword [edx + 0x24]
bsf eax, ecx
jne 0x40cbce
mov eax, 0x20
mov ebp, dword [edx + 0x20]
bsf esi, ebp
jne 0x40cbdb
mov esi, 0x20
cmp ebp, 1
sbb ebx, ebx
xor ebx, 0xffffffff
not ebx
and eax, ebx
lea ebx, [esi + eax]
cmp ebx, 0x40
jge 0x40ccbe
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x24], edx
movzx edi, word [edx + 0x18]
lea ebp, [edi + ebx]
movzx edx, word [edx + 0x1a]
cmp dx, bp
jbe 0x40ccb6
lea ebx, [edi + ebx + 1]
test bx, 0x3f
jne 0x40cc2e
cmp dx, bx
je 0x40cc2e
mov edx, dword [esp + 0x24]
mov edi, dword [esp + 0x68]
xor ebp, ebp
jmp 0x40ccc0
mov dword [esp + 0x48], ecx
mov word [esp + 0x22], bx
lea edx, [eax + esi - 0x1f]
mov dword [esp + 0x44], edx
mov edi, ecx
mov ecx, edx
shr edi, cl
mov dword [esp + 0x40], edi
neg ecx
mov ebx, dword [esp + 0x48]
shl ebx, cl
lea eax, [esi + eax + 1]
mov esi, ecx
mov ecx, eax
mov edi, dword [esp + 0x4c]
shr edi, cl
mov edx, dword [esp + 0x48]
shr edx, cl
movzx ebp, bp
cmp esi, 0x20
sbb esi, esi
and ebx, esi
cmp eax, 0x20
sbb eax, eax
and edi, eax
or edi, ebx
and edx, eax
mov eax, dword [esp + 0x44]
cmp eax, 0x20
sbb eax, eax
mov ebx, dword [esp + 0x40]
and ebx, eax
or ebx, edi
mov eax, dword [esp + 0x24]
mov dword [eax + 0x20], ebx
mov dword [eax + 0x24], edx
movzx edx, word [esp + 0x22]
mov word [eax + 0x18], dx
movzx edx, word [eax + 0x3c]
inc edx
mov word [eax + 0x3c], dx
imul ebp, dword [eax + 0x44]
add ebp, dword [eax + 0xc]
mov edx, eax
mov edi, dword [esp + 0x68]
jmp 0x40ccc0
mov edx, dword [esp + 0x24]
mov edi, dword [esp + 0x68]
xor ebp, ebp
test ebp, ebp
je 0x40ccc8
xor eax, eax
jmp 0x40ccea
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
mov byte [esp + 4], 5
call fcn.0040c740
mov ebp, dword [esp + 8]
mov edx, dword [esp + 0xc]
movzx eax, byte [esp + 0x10]
mov edi, dword [esp + 0x68]
mov dword [ebp], 0
mov dword [ebp + 4], 0
mov dword [ebp + 8], 0
mov dword [ebp + 0xc], 0
mov ecx, dword [esp + 0x2c]
cmp dword [ecx + 0xc], edi
ja 0x40cd16
mov ebx, dword [ecx + 8]
test ebx, ebx
jne 0x40cd20
mov ebx, ebp
mov dword [ecx + 8], ebp
mov dword [ecx + 0xc], edi
jmp 0x40cd22
mov ebx, ebp
mov ebp, 0x10
xor esi, esi
jmp 0x40cf80
xchg esi, eax
test al, al
xchg esi, eax
je 0x40cd38
xor ecx, ecx
jmp 0x40cd41
cmp edi, 0x80
seta cl
test cl, cl
je 0x40cd4e
lea edx, [edi + 8]
mov edi, edx
mov edx, dword [esp + 0x5c]
cmp edi, 0x3f8
ja 0x40cd74
add edi, 7
shr edi, 3
cmp edi, 0x81
jae 0x40d2d2
lea edx, [0x880760]
movzx edx, byte [edx + edi]
jmp 0x40cd9a
add edi, 0xfffffc7f
shr edi, 7
cmp edi, 0xf9
jae 0x40d2c6
lea ebp, str._______________________....______0001123333333333444444444455666677777888888888889999999999::::::___________________________________________________________________________AAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
movzx ebp, byte [ebp + edi]
mov edx, ebp
mov ebp, dword [esp + 0x6c]
movzx edi, dl
cmp edi, 0x44
jae 0x40d2ba
shl edx, 1
xchg esi, ebx
movzx eax, bl
xchg esi, ebx
or edx, eax
movzx eax, dl
lea ebp, [0x8808a0]
movzx ebp, word [ebp + edi*2]
nop
cmp eax, 0x88
jae 0x40d2b0
mov byte [esp + 0x1e], cl
mov byte [esp + 0x1b], dl
mov dword [esp + 0x3c], ebp
mov eax, dword [ebx + eax*4 + 0x14]
mov edi, dword [eax + 0x24]
bsf esi, edi
jne 0x40cde8
mov esi, 0x20
mov edx, dword [eax + 0x20]
bsf ebx, edx
jne 0x40cdf5
mov ebx, 0x20
cmp edx, 1
sbb ebp, ebp
xor ebp, 0xffffffff
xchg ebp, ebx
not ebx
xchg ebp, ebx
and esi, ebp
lea ebp, [ebx + esi]
cmp ebp, 0x40
jge 0x40ced9
mov dword [esp + 0x24], eax
mov dword [esp + 0x4c], edx
movzx ecx, word [eax + 0x18]
lea edx, [ecx + ebp]
movzx eax, word [eax + 0x1a]
cmp ax, dx
jbe 0x40ced0
lea ebp, [ecx + ebp + 1]
test bp, 0x3f
jne 0x40ce4d
cmp ax, bp
je 0x40ce4d
mov eax, dword [esp + 0x24]
movzx ecx, byte [esp + 0x1e]
xor edx, edx
jmp 0x40cedb
mov word [esp + 0x20], bp
mov dword [esp + 0x48], edi
lea ecx, [ebx + esi - 0x1f]
mov dword [esp + 0x44], ecx
mov eax, edi
shr edi, cl
neg ecx
shl eax, cl
mov dword [esp + 0x40], eax
lea ebx, [ebx + esi + 1]
mov esi, ecx
mov ecx, ebx
mov ebp, dword [esp + 0x4c]
shr ebp, cl
mov eax, dword [esp + 0x48]
shr eax, cl
movzx edx, dx
cmp ecx, 0x20
sbb ebx, ebx
and eax, ebx
and ebp, ebx
mov ebx, dword [esp + 0x44]
cmp ebx, 0x20
sbb ebx, ebx
and edi, ebx
cmp esi, 0x20
sbb ebx, ebx
mov esi, dword [esp + 0x40]
and esi, ebx
or ebp, esi
or ebp, edi
mov ebx, dword [esp + 0x24]
mov dword [ebx + 0x20], ebp
mov dword [ebx + 0x24], eax
movzx eax, word [esp + 0x20]
mov word [ebx + 0x18], ax
movzx eax, word [ebx + 0x3c]
inc eax
mov word [ebx + 0x3c], ax
imul edx, dword [ebx + 0x44]
add edx, dword [ebx + 0xc]
mov eax, ebx
movzx ecx, byte [esp + 0x1e]
jmp 0x40cedb
mov eax, dword [esp + 0x24]
movzx ecx, byte [esp + 0x1e]
xor edx, edx
test edx, edx
je 0x40cee3
xor ebx, ebx
jmp 0x40cf0c
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
movzx ecx, byte [esp + 0x1b]
mov byte [esp + 4], cl
call fcn.0040c740
mov edx, dword [esp + 8]
mov eax, dword [esp + 0xc]
movzx ecx, byte [esp + 0x10]
mov ebx, ecx
movzx ecx, byte [esp + 0x1e]
movzx ebp, byte [esp + 0x70]
xchg ebp, eax
test al, al
xchg ebp, eax
je 0x40cf57
movzx ebp, byte [eax + 0x40]
xchg ebp, eax
test al, al
xchg ebp, eax
jne 0x40cf25
test cl, cl
jmp 0x40cf59
mov dword [esp + 0x60], edx
mov byte [esp + 0x1c], bl
mov dword [esp + 0x38], eax
mov dword [esp], edx
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], eax
call fcn.0046ca10
movzx eax, byte [esp + 0x1e]
test al, al
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x60]
movzx ebx, byte [esp + 0x1c]
jmp 0x40cf59
test cl, cl
je 0x40cf68
nop
mov ecx, dword [esp + 0x3c]
lea ebp, [ecx - 8]
lea ecx, [edx + 8]
jmp 0x40cf70
mov ebp, dword [esp + 0x3c]
mov ecx, edx
xor edx, edx
mov edi, dword [esp + 0x68]
mov esi, edx
mov edx, eax
mov eax, ebx
mov ebx, ecx
mov ecx, dword [esp + 0x2c]
mov byte [esp + 0x30], al
xor eax, eax
mov byte [esp + 0x1f], al
movzx eax, byte [esp + 0x30]
jmp 0x40d037
mov dword [esp], ebx
mov dword [esp + 4], edi
xchg esi, eax
mov byte [esp + 8], al
xchg esi, eax
call fcn.00414b50
mov eax, dword [esp + 0xc]
mov word [eax + 0x18], 1
mov word [eax + 0x3c], 1
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 0x44]
movzx ebx, byte [esp + 0x70]
test bl, bl
je 0x40d00c
movzx ebx, byte [eax + 0x40]
test bl, bl
je 0x40d003
movzx ebx, byte [esp + 0x1d]
test bl, bl
jne 0x40cfff
mov dword [esp + 0x24], eax
mov dword [esp + 0x3c], edx
mov dword [esp + 0x54], ecx
mov dword [esp], ecx
mov dword [esp + 4], edx
call fcn.0046ca10
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x3c]
movzx ebx, byte [esp + 0x1d]
mov ebp, ebx
jmp 0x40d013
movzx ebp, byte [esp + 0x1d]
xor ebx, ebx
jmp 0x40d013
movzx ebp, byte [esp + 0x1d]
xor ebx, ebx
xchg ebp, eax
test al, al
xchg ebp, eax
je 0x40d01d
xor esi, esi
jmp 0x40d020
lea esi, [eax + 0x5c]
mov edi, dword [esp + 0x68]
mov ebp, edx
mov byte [esp + 0x1f], bl
mov ebx, ecx
mov ecx, dword [esp + 0x2c]
mov edx, eax
mov eax, 1
mov dword [esp + 0x54], ebx
mov byte [esp + 0x1c], al
mov dword [esp + 0x58], esi
mov dword [esp + 0x28], ebp
mov dword [esp + 0x24], edx
movzx eax, byte [esp + 0x1d]
test al, al
jne 0x40d07e
mov dword [esp], ebx
mov dword [esp + 4], edi
mov ecx, dword [esp + 0x6c]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edx
call fcn.004145d0
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + 4]
add ecx, dword [esp + 0x14]
mov dword [eax + 4], ecx
call fcn.0046bec0
mov eax, dword [esp + 0x24]
movzx ecx, word [eax + 0x18]
mov word [eax + 0x1c], cx
mov ecx, dword [0x8f7820]
test ecx, ecx
je 0x40d0ad
mov ecx, dword [esp + 0x54]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.004211f0
mov eax, dword [esp + 0x24]
mov ecx, dword [0x87cacc]
mov eax, dword [eax + 0x44]
mov dword [esp + 0x3c], eax
test ecx, ecx
jle 0x40d0ef
cmp ecx, 1
je 0x40d0d3
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx]
cmp edx, eax
jbe 0x40d0d3
sub edx, eax
mov dword [ecx], edx
jmp 0x40d0ef
mov ecx, dword [esp + 0x50]
mov dword [esp], ecx
mov edx, dword [esp + 0x54]
mov dword [esp + 4], edx
mov dword [esp + 8], eax
call fcn.0040d540
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x50]
mov dword [ecx + 0x6c], 0
mov edx, dword [ecx + 0x7c]
lea ebx, [edx - 1]
nop
mov ebp, dword [0x8f791c]
mov ebp, dword fs:[ebp]
mov ebp, dword [ebp]
mov dword [ecx + 0x7c], ebx
cmp edx, 1
jne 0x40d125
movzx ecx, byte [ebp + 0x65]
test cl, cl
je 0x40d125
mov dword [ebp + 8], 0xfffffade
movzx ecx, byte [esp + 0x1f]
test cl, cl
je 0x40d15f
movzx ecx, byte [esp + 0x1d]
test cl, cl
je 0x40d29a
mov ecx, dword [esp + 0x58]
test ecx, ecx
jne 0x40d284
mov eax, dword [esp + 0x28]
mov dword [esp], eax
mov ecx, dword [esp + 0x54]
mov dword [esp + 4], ecx
call fcn.0040d3d0
mov eax, dword [esp + 0x3c]
movzx ecx, byte [0x8f7eb8]
test cl, cl
je 0x40d1e5
mov ecx, dword [0x8f7ebc]
test ecx, ecx
je 0x40d194
mov eax, dword [esp + 0x54]
mov dword [esp], eax
mov ecx, dword [esp + 0x28]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x6c]
mov dword [esp + 8], ecx
call fcn.00432c00
mov eax, dword [esp + 0x3c]
movzx ecx, byte [0x8f7c90]
test cl, cl
je 0x40d1e5
mov ecx, dword [0x8f791c]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
mov edx, dword [ecx + 0x50]
mov ecx, dword [ecx + 0x54]
cmp dword [0x8f7c94], edx
sete dl
cmp dword [0x8f7c98], ecx
sete cl
and edx, ecx
test dl, dl
je 0x40d1e5
mov ecx, dword [0x8f7ca4]
mov edx, dword [0x8f7ca8]
add ecx, eax
mov dword [0x8f7ca4], ecx
adc edx, 0
mov dword [0x8f7ca8], edx
mov ecx, dword [esp + 0x5c]
test ecx, ecx
je 0x40d210
mov edx, dword [ecx + 0xfc]
mov ebx, dword [ecx + 0x100]
mov ebp, dword [esp + 0x68]
sub eax, ebp
sub edx, eax
mov dword [ecx + 0xfc], edx
sbb ebx, 0
mov dword [ecx + 0x100], ebx
movzx eax, byte [esp + 0x1c]
test al, al
je 0x40d26a
mov dword [esp], 0
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call fcn.00419070
movzx eax, byte [esp + 0x10]
test al, al
je 0x40d26a
mov dword [esp], 0
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call fcn.004191e0
mov eax, dword [esp + 0x54]
mov dword [esp + 0x74], eax
add esp, 0x64
ret
lea eax, [0x8f77c0]
mov dword [esp + 0x74], eax
add esp, 0x64
ret
lea eax, [0x6ada5e]
mov dword [esp], eax
mov dword [esp + 4], 0x3b
call fcn.0043a0c0
lea eax, [0x6ac31c]
mov dword [esp], eax
mov dword [esp + 4], 0x31
call fcn.0043a0c0
mov ecx, 0x88
call fcn.0046c2c0
mov eax, edi
mov ecx, 0x44
call fcn.0046c2c0
mov eax, edi
mov ecx, 0xf9
call fcn.0046c2d0
mov eax, edi
mov ecx, 0x81
call fcn.0046c2d0
lea eax, [0x6accea]
mov dword [esp], eax
mov dword [esp + 4], 0x34
call fcn.0043a0c0
lea eax, [0x6a0cd3]
mov dword [esp], eax
mov dword [esp + 4], 0x14
call fcn.0043a0c0
lea eax, [0x69e31a]
mov dword [esp], eax
mov dword [esp + 4], 0xf
call fcn.0043a0c0
lea eax, [0x6ac6f7]
mov dword [esp], eax
mov dword [esp + 4], 0x32
call fcn.0043a0c0
nop
call fcn.0046ae40
jmp fcn.0040c980