Function at 0x404370
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4e72b5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x33c
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov dword [esp + 0x38], ebp
xor ebx, ebx
lea ecx, [esp + 0x18]
mov dword [esp + 0x354], ebx
call fcn.004be970
lea ecx, [esp + 0x1c]
mov byte [esp + 0x354], 1
call fcn.004be970
mov al, byte [esp + 0x43]
mov dword [esp + 0x24], ebx
mov byte [esp + 0x20], al
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
lea ecx, [esp + 0x30]
mov byte [esp + 0x354], 2
call fcn.004be970
push 2
lea ecx, [esp + 0x368]
mov byte [esp + 0x358], 3
call fcn.004bec90
and eax, 0xff
sub eax, 2
je 0x404c8e
sub eax, 0xe5
je 0x4049cc
sub eax, 0xd
je 0x404498
lea ecx, [esp + 0x30]
mov byte [esp + 0x354], 2
call fcn.004beab0
mov eax, dword [esp + 0x24]
mov byte [esp + 0x354], 7
cmp eax, ebx
je 0x404453
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x40444a
cmp al, 0xff
je 0x40444a
dec al
mov byte [ecx], al
jmp 0x404453
push ecx
call fcn.004deb10
add esp, 4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call fcn.004beab0
lea ecx, [esp + 0x18]
mov byte [esp + 0x354], 0
call fcn.004beab0
lea ecx, [esp + 0x364]
mov dword [esp + 0x354], 0xffffffff
call fcn.004beab0
xor ax, ax
jmp 0x404ed2
mov al, byte [esp + 0x360]
mov dword [esp + 0x10], ebx
test al, al
jne 0x4046c2
push ebx
lea ecx, [esp + 0x368]
call fcn.004bec90
movzx ax, al
sub eax, 3
cmp ax, 0xa
mov dword [esp + 0x10], eax
jle 0x4044d2
mov eax, 0xa
mov dword [esp + 0x10], eax
movsx eax, ax
cmp eax, ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x48], eax
jle 0x404945
mov ebp, dword [esp + 0x38]
mov edi, 0x520168
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x34]
lea ebx, [ecx + 3]
lea ecx, [esp + 0x364]
push ebx
call fcn.004bec90
and eax, 0xff
lea edx, [esp + 0x4c]
push eax
push 0x50f938
push edx
call fcn.004df246
mov edi, 0x520168
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x24c]
mov eax, ecx
mov esi, edi
mov edi, edx
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x368]
call fcn.004bec90
mov al, byte [ebp + 0x26]
test al, al
ja 0x404586
mov al, byte [ebp + 0x27]
test al, al
jbe 0x40462c
cmp word [esp + 0x35c], 0
jne 0x40462c
lea edi, [esp + 0x4c]
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + 0x18], 1
mov ebx, ecx
lea ecx, [esp + 0x24]
push ebx
call fcn.00412290
test al, al
je 0x4045de
mov edi, dword [esp + 0x24]
mov ecx, ebx
mov edx, ecx
lea esi, [esp + 0x4c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x28], ebx
mov byte [eax + ebx], 0
push 2
push 0x50f94c
lea ecx, [esp + 0x20]
call fcn.004bef10
mov cl, byte [ebp + 0x26]
push ecx
lea ecx, [esp + 0x1c]
call fcn.004bee10
mov dl, byte [ebp + 0x27]
lea ecx, [esp + 0x18]
push edx
call fcn.004bee10
push 0
lea ecx, [esp + 0x1c]
call fcn.004bee10
mov al, byte [esp + 0x34]
lea ecx, [esp + 0x18]
inc al
push eax
call fcn.004bee10
push ecx
mov ecx, esp
mov dword [esp + 0x40], esp
jmp 0x40467c
lea edi, [esp + 0x4c]
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + 0x18], 0
mov ebx, ecx
lea ecx, [esp + 0x24]
push ebx
call fcn.00412290
test al, al
je 0x404675
mov edi, dword [esp + 0x24]
mov ecx, ebx
mov edx, ecx
lea esi, [esp + 0x4c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x28], ebx
mov byte [eax + ebx], 0
push ecx
mov ecx, esp
mov dword [esp + 0x40], esp
push 6
push 0x50f944
call fcn.004bea10
lea ecx, [esp + 0x20]
call fcn.004beca0
mov ecx, dword [esp + 0x368]
lea edx, [esp + 0x14]
push edx
push 1
mov eax, dword [ecx + 8]
push eax
call fcn.00412940
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x48]
inc eax
cmp eax, ecx
mov dword [esp + 0x34], eax
jl 0x4044e9
jmp 0x404945
mov al, byte [ebp + 0x54]
lea ecx, [ebp + 0x54]
cmp al, 0x80
jb 0x404945
movzx ax, byte [ebp + 0x60]
cmp ax, 4
mov dword [esp + 0x10], eax
jle 0x4046e8
mov eax, 4
mov dword [esp + 0x10], eax
movsx eax, ax
cmp eax, ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x48], eax
jle 0x404945
mov dword [esp + 0x3c], ecx
mov esi, dword [esp + 0x3c]
lea eax, [esp + 0x30]
push eax
mov eax, dword [esp + 0x38]
mov dl, byte [esi + 1]
lea ecx, [esp + 0x50]
push ecx
add eax, 3
push edx
push eax
lea ecx, [esp + 0x374]
call fcn.004bec90
mov cl, byte [esi]
mov ebp, dword [esp + 0x44]
push eax
push ecx
mov ecx, ebp
call fcn.00403b60
mov al, byte [ebp + 0x26]
test al, al
ja 0x404746
mov al, byte [ebp + 0x27]
test al, al
jbe 0x404850
cmp word [esp + 0x35c], 0
jne 0x404850
lea edi, [esp + 0x4c]
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x14], 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [esp + 0x20]
call fcn.00412e50
cmp eax, ebx
jae 0x40477c
call fcn.004deb1b
mov edi, dword [esp + 0x24]
test edi, edi
je 0x4047a4
mov al, byte [edi - 1]
test al, al
je 0x4047a4
cmp al, 0xff
je 0x4047a4
test ebx, ebx
jne 0x4047cd
dec al
push ebx
lea ecx, [esp + 0x24]
mov byte [edi - 1], al
call fcn.00411e90
jmp 0x4047f9
test ebx, ebx
jne 0x4047b5
push 1
lea ecx, [esp + 0x24]
call fcn.00411e90
jmp 0x4047f9
mov eax, dword [esp + 0x2c]
cmp eax, 0x1f
ja 0x4047c2
cmp eax, ebx
jae 0x4047db
push 1
lea ecx, [esp + 0x24]
call fcn.00411e90
push ebx
lea ecx, [esp + 0x24]
call fcn.00412e60
mov edi, dword [esp + 0x24]
mov ecx, ebx
lea esi, [esp + 0x4c]
mov edx, ecx
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x24]
call fcn.00412270
push 2
push 0x50f94c
lea ecx, [esp + 0x20]
call fcn.004bef10
mov al, byte [ebp + 0x26]
lea ecx, [esp + 0x18]
push eax
call fcn.004bee10
mov cl, byte [ebp + 0x27]
push ecx
lea ecx, [esp + 0x1c]
call fcn.004bee10
mov edx, dword [esp + 0x360]
lea ecx, [esp + 0x18]
push edx
call fcn.004bee10
mov al, byte [esp + 0x34]
lea ecx, [esp + 0x18]
inc al
push eax
call fcn.004bee10
push ecx
mov ecx, esp
mov dword [esp + 0x48], esp
jmp 0x4048fb
lea edi, [esp + 0x4c]
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x14], 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [esp + 0x20]
call fcn.00412e50
cmp eax, ebx
jae 0x404877
call fcn.004deb1b
mov edi, dword [esp + 0x24]
test edi, edi
je 0x40489f
mov al, byte [edi - 1]
test al, al
je 0x40489f
cmp al, 0xff
je 0x40489f
test ebx, ebx
jne 0x4048c8
dec al
push ebx
lea ecx, [esp + 0x24]
mov byte [edi - 1], al
call fcn.00411e90
jmp 0x4048f4
test ebx, ebx
jne 0x4048b0
push 1
lea ecx, [esp + 0x24]
call fcn.00411e90
jmp 0x4048f4
mov eax, dword [esp + 0x2c]
cmp eax, 0x1f
ja 0x4048bd
cmp eax, ebx
jae 0x4048d6
push 1
lea ecx, [esp + 0x24]
call fcn.00411e90
push ebx
lea ecx, [esp + 0x24]
call fcn.00412e60
mov edi, dword [esp + 0x24]
mov ecx, ebx
lea esi, [esp + 0x4c]
mov eax, ecx
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x24]
call fcn.00412270
push ecx
mov ecx, esp
mov dword [esp + 0x48], esp
lea edx, [esp + 0x34]
push edx
call fcn.004be980
lea ecx, [esp + 0x20]
call fcn.004beca0
mov ecx, dword [esp + 0x368]
lea edx, [esp + 0x14]
push edx
push 1
mov eax, dword [ecx + 8]
push eax
call fcn.00412940
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x48]
inc eax
add edx, 3
cmp eax, ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x3c], edx
jl 0x4046ff
lea ecx, [esp + 0x30]
mov byte [esp + 0x354], 2
call fcn.004beab0
mov eax, dword [esp + 0x24]
xor esi, esi
cmp eax, esi
mov byte [esp + 0x354], 5
je 0x404985
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x40497c
cmp al, 0xff
je 0x40497c
dec al
mov byte [ecx], al
jmp 0x404985
push ecx
call fcn.004deb10
add esp, 4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
call fcn.004beab0
lea ecx, [esp + 0x18]
mov byte [esp + 0x354], 0
call fcn.004beab0
lea ecx, [esp + 0x364]
mov dword [esp + 0x354], 0xffffffff
call fcn.004beab0
mov ax, word [esp + 0x10]
jmp 0x404ed2
xor ecx, ecx
mov eax, 0x100
lea edi, [ebp + 0x54]
mov edx, 0x519d68
mov edi, 0x520168
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
add edx, 0x100
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
cmp edx, 0x520168
rep movsb byte es:[edi], byte [esi]
jl 0x4049db
push ebx
lea ecx, [esp + 0x368]
call fcn.004bec90
and eax, 0xff
sub eax, 3
mov ecx, eax
mov eax, 0x55555556
imul ecx
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
mov esi, edx
cmp si, 0xa
mov dword [esp + 0x10], esi
jle 0x404a45
mov esi, 0xa
mov dword [esp + 0x10], esi
movsx eax, si
xor ebx, ebx
mov byte [ebp + 0x50], 0
test eax, eax
jle 0x404c09
jmp 0x404a5c
mov ebp, dword [esp + 0x38]
lea esi, [ebx + ebx*2 + 3]
lea ecx, [esp + 0x364]
push esi
call fcn.004bec90
cmp al, 0x25
jne 0x404a75
mov byte [ebp + 0x50], 1
lea edx, [esp + 0x30]
lea eax, [esp + 0x4c]
push edx
lea ecx, [ebx + ebx*2 + 5]
push eax
push ecx
lea ecx, [esp + 0x370]
call fcn.004bec90
lea edx, [ebx + ebx*2 + 4]
push eax
push edx
lea ecx, [esp + 0x374]
call fcn.004bec90
push eax
push esi
lea ecx, [esp + 0x378]
call fcn.004bec90
push eax
mov ecx, ebp
call fcn.0047eeb0
mov al, byte [ebp + 0x26]
test al, al
ja 0x404aca
mov al, byte [ebp + 0x27]
test al, al
jbe 0x404b7d
cmp word [esp + 0x35c], 0
jne 0x404b7d
lea edi, [esp + 0x4c]
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + 0x18], 1
mov ebp, ecx
lea ecx, [esp + 0x24]
push ebp
call fcn.00412290
test al, al
je 0x404b22
mov edi, dword [esp + 0x24]
mov ecx, ebp
mov eax, ecx
lea esi, [esp + 0x4c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x28], ebp
mov byte [ecx + ebp], 0
push 2
push 0x50f94c
lea ecx, [esp + 0x20]
call fcn.004bef10
mov esi, dword [esp + 0x38]
lea ecx, [esp + 0x18]
mov dl, byte [esi + 0x26]
push edx
call fcn.004bee10
mov al, byte [esi + 0x27]
lea ecx, [esp + 0x18]
push eax
call fcn.004bee10
mov ecx, dword [esp + 0x360]
push ecx
lea ecx, [esp + 0x1c]
call fcn.004bee10
mov dl, bl
lea ecx, [esp + 0x18]
inc dl
push edx
call fcn.004bee10
push ecx
lea eax, [esp + 0x34]
mov ecx, esp
mov dword [esp + 0x48], esp
push eax
jmp 0x404bd2
lea edi, [esp + 0x4c]
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + 0x18], 0
mov ebp, ecx
lea ecx, [esp + 0x24]
push ebp
call fcn.00412290
test al, al
je 0x404bc6
mov edi, dword [esp + 0x24]
mov ecx, ebp
mov edx, ecx
lea esi, [esp + 0x4c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x28], ebp
mov byte [eax + ebp], 0
push ecx
lea edx, [esp + 0x34]
mov ecx, esp
mov dword [esp + 0x48], esp
push edx
call fcn.004be980
lea ecx, [esp + 0x20]
call fcn.004beca0
mov ecx, dword [esp + 0x368]
lea edx, [esp + 0x14]
push edx
push 1
mov eax, dword [ecx + 8]
push eax
call fcn.00412940
movsx eax, word [esp + 0x10]
inc ebx
cmp ebx, eax
jl 0x404a58
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x30]
mov byte [esp + 0x354], 2
call fcn.004beab0
mov eax, dword [esp + 0x24]
xor edi, edi
cmp eax, edi
mov byte [esp + 0x354], 4
je 0x404c49
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x404c40
cmp al, 0xff
je 0x404c40
dec al
mov byte [ecx], al
jmp 0x404c49
push ecx
call fcn.004deb10
add esp, 4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
call fcn.004beab0
lea ecx, [esp + 0x18]
mov byte [esp + 0x354], 0
call fcn.004beab0
lea ecx, [esp + 0x364]
mov dword [esp + 0x354], 0xffffffff
call fcn.004beab0
mov ax, si
jmp 0x404ed2
mov ecx, 0x40
xor eax, eax
lea edi, [ebp + 0x54]
mov edx, 0x519d68
rep stosd dword es:[edi], eax
mov edi, 0x520168
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
add edx, 0x100
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
cmp edx, 0x520168
rep movsb byte es:[edi], byte [esi]
jl 0x404c9f
lea ecx, [esp + 0x364]
mov edi, 6
mov dword [esp + 0x10], ebx
call fcn.004bee40
cmp ax, di
jle 0x404e46
movsx esi, word [esp + 0x10]
lea ebx, [edi - 3]
lea ecx, [esp + 0x364]
push ebx
call fcn.004bec90
mov ecx, dword [esp + 0x38]
lea edx, [ecx + esi*2 + 0x38]
mov byte [esi + edx + 0x1c], al
lea eax, [ecx + esi*2]
lea ecx, [edi - 2]
push ecx
lea ecx, [esp + 0x368]
lea ebp, [esi + eax]
call fcn.004bec90
mov byte [ebp + 0x55], al
lea eax, [edi - 1]
push eax
lea ecx, [esp + 0x368]
call fcn.004bec90
push ebx
lea ecx, [esp + 0x368]
mov byte [ebp + 0x56], al
call fcn.004bec90
cmp al, 0x8d
jne 0x404e09
xor eax, eax
xor edx, edx
movsx ebx, di
mov dword [0x519d64], eax
mov dword [0x519d60], eax
mov dl, byte [ebp + 0x56]
mov esi, edi
add edx, ebx
cmp ebx, edx
jge 0x404e09
push esi
lea ecx, [esp + 0x368]
call fcn.004bec90
cmp al, 0x80
jae 0x404e09
push esi
lea ecx, [esp + 0x368]
call fcn.004bec90
cmp al, 3
je 0x404dc9
push esi
lea ecx, [esp + 0x368]
call fcn.004bec90
mov edx, dword [0x519d64]
mov ecx, dword [0x519d60]
shl edx, 8
cmp ecx, 0x100
mov byte [edx + ecx + 0x519d68], al
jge 0x404e09
inc ecx
mov dword [0x519d60], ecx
jmp 0x404df6
mov eax, dword [0x519d64]
mov edx, dword [0x519d60]
mov ecx, eax
shl ecx, 8
cmp eax, 0x64
mov byte [ecx + edx + 0x519d68], 0
jge 0x404e09
inc eax
mov dword [0x519d60], 0
mov dword [0x519d64], eax
inc esi
xor eax, eax
mov al, byte [ebp + 0x56]
movsx ecx, si
add eax, ebx
cmp ecx, eax
jl 0x404d6f
mov esi, dword [esp + 0x10]
lea eax, [edi - 1]
inc esi
push eax
lea ecx, [esp + 0x368]
mov dword [esp + 0x14], esi
call fcn.004bec90
xor dx, dx
cmp si, 4
mov dl, al
lea edi, [edi + edx + 3]
je 0x404e46
lea ecx, [esp + 0x364]
call fcn.004bee40
cmp di, ax
jl 0x404ced
mov eax, dword [esp + 0x38]
mov cl, byte [esp + 0x10]
mov byte [esp + 0x354], 2
mov byte [eax + 0x60], cl
lea ecx, [esp + 0x30]
call fcn.004beab0
mov eax, dword [esp + 0x24]
xor esi, esi
cmp eax, esi
mov byte [esp + 0x354], 6
je 0x404e91
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x404e88
cmp al, 0xff
je 0x404e88
dec al
mov byte [ecx], al
jmp 0x404e91
push ecx
call fcn.004deb10
add esp, 4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
call fcn.004beab0
lea ecx, [esp + 0x18]
mov byte [esp + 0x354], 0
call fcn.004beab0
lea ecx, [esp + 0x364]
mov dword [esp + 0x354], 0xffffffff
call fcn.004beab0
mov ax, 0xff
mov ecx, dword [esp + 0x34c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x348
ret 0x10