Function at 0x404220
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4e6f25
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.004be1a0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x354], 1
call fcn.004be1a0
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.004be1a0
push 2
lea ecx, [esp + 0x368]
mov byte [esp + 0x358], 3
call fcn.004be4c0
and eax, 0xff
sub eax, 2
je 0x404b3e
sub eax, 0xe5
je 0x40487c
sub eax, 0xd
je 0x404348
lea ecx, [esp + 0x30]
mov byte [esp + 0x354], 2
call fcn.004be2e0
mov eax, dword [esp + 0x24]
mov byte [esp + 0x354], 7
cmp eax, ebx
je 0x404303
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4042fa
cmp al, 0xff
je 0x4042fa
dec al
mov byte [ecx], al
jmp 0x404303
push ecx
call fcn.004de1a0
add esp, 4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call fcn.004be2e0
lea ecx, [esp + 0x18]
mov byte [esp + 0x354], 0
call fcn.004be2e0
lea ecx, [esp + 0x364]
mov dword [esp + 0x354], 0xffffffff
call fcn.004be2e0
xor ax, ax
jmp 0x404d84
mov al, byte [esp + 0x360]
mov dword [esp + 0x10], ebx
test al, al
jne 0x404572
push ebx
lea ecx, [esp + 0x368]
call fcn.004be4c0
movzx ax, al
sub eax, 3
cmp ax, 0xa
mov dword [esp + 0x10], eax
jle 0x404382
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 0x4047f5
mov ebp, dword [esp + 0x38]
mov edi, 0x520010
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.004be4c0
and eax, 0xff
lea edx, [esp + 0x4c]
push eax
push 0x50f930
push edx
call fcn.004de8d6
mov edi, 0x520010
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.004be4c0
mov al, byte [ebp + 0x26]
test al, al
ja 0x404436
mov al, byte [ebp + 0x27]
test al, al
jbe 0x4044dc
cmp word [esp + 0x35c], 0
jne 0x4044dc
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.004144a0
test al, al
je 0x40448e
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 0x50f944
lea ecx, [esp + 0x20]
call fcn.004be740
mov cl, byte [ebp + 0x26]
push ecx
lea ecx, [esp + 0x1c]
call fcn.004be640
mov dl, byte [ebp + 0x27]
lea ecx, [esp + 0x18]
push edx
call fcn.004be640
push 0
lea ecx, [esp + 0x1c]
call fcn.004be640
mov al, byte [esp + 0x34]
lea ecx, [esp + 0x18]
inc al
push eax
call fcn.004be640
push ecx
mov ecx, esp
mov dword [esp + 0x40], esp
jmp 0x40452c
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.004144a0
test al, al
je 0x404525
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 0x50f93c
call fcn.004be240
lea ecx, [esp + 0x20]
call fcn.004be4d0
mov ecx, dword [esp + 0x368]
lea edx, [esp + 0x14]
push edx
push 1
mov eax, dword [ecx + 8]
push eax
call fcn.00414b40
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x48]
inc eax
cmp eax, ecx
mov dword [esp + 0x34], eax
jl 0x404399
jmp 0x4047f5
mov al, byte [ebp + 0x50]
lea ecx, [ebp + 0x50]
cmp al, 0x80
jb 0x4047f5
movzx ax, byte [ebp + 0x5c]
cmp ax, 4
mov dword [esp + 0x10], eax
jle 0x404598
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 0x4047f5
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.004be4c0
mov cl, byte [esi]
mov ebp, dword [esp + 0x44]
push eax
push ecx
mov ecx, ebp
call fcn.00403a10
mov al, byte [ebp + 0x26]
test al, al
ja 0x4045f6
mov al, byte [ebp + 0x27]
test al, al
jbe 0x404700
cmp word [esp + 0x35c], 0
jne 0x404700
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.00415050
cmp eax, ebx
jae 0x40462c
call fcn.004de1ab
mov edi, dword [esp + 0x24]
test edi, edi
je 0x404654
mov al, byte [edi - 1]
test al, al
je 0x404654
cmp al, 0xff
je 0x404654
test ebx, ebx
jne 0x40467d
dec al
push ebx
lea ecx, [esp + 0x24]
mov byte [edi - 1], al
call fcn.00414090
jmp 0x4046a9
test ebx, ebx
jne 0x404665
push 1
lea ecx, [esp + 0x24]
call fcn.00414090
jmp 0x4046a9
mov eax, dword [esp + 0x2c]
cmp eax, 0x1f
ja 0x404672
cmp eax, ebx
jae 0x40468b
push 1
lea ecx, [esp + 0x24]
call fcn.00414090
push ebx
lea ecx, [esp + 0x24]
call fcn.00415060
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.00414480
push 2
push 0x50f944
lea ecx, [esp + 0x20]
call fcn.004be740
mov al, byte [ebp + 0x26]
lea ecx, [esp + 0x18]
push eax
call fcn.004be640
mov cl, byte [ebp + 0x27]
push ecx
lea ecx, [esp + 0x1c]
call fcn.004be640
mov edx, dword [esp + 0x360]
lea ecx, [esp + 0x18]
push edx
call fcn.004be640
mov al, byte [esp + 0x34]
lea ecx, [esp + 0x18]
inc al
push eax
call fcn.004be640
push ecx
mov ecx, esp
mov dword [esp + 0x48], esp
jmp 0x4047ab
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.00415050
cmp eax, ebx
jae 0x404727
call fcn.004de1ab
mov edi, dword [esp + 0x24]
test edi, edi
je 0x40474f
mov al, byte [edi - 1]
test al, al
je 0x40474f
cmp al, 0xff
je 0x40474f
test ebx, ebx
jne 0x404778
dec al
push ebx
lea ecx, [esp + 0x24]
mov byte [edi - 1], al
call fcn.00414090
jmp 0x4047a4
test ebx, ebx
jne 0x404760
push 1
lea ecx, [esp + 0x24]
call fcn.00414090
jmp 0x4047a4
mov eax, dword [esp + 0x2c]
cmp eax, 0x1f
ja 0x40476d
cmp eax, ebx
jae 0x404786
push 1
lea ecx, [esp + 0x24]
call fcn.00414090
push ebx
lea ecx, [esp + 0x24]
call fcn.00415060
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.00414480
push ecx
mov ecx, esp
mov dword [esp + 0x48], esp
lea edx, [esp + 0x34]
push edx
call fcn.004be1b0
lea ecx, [esp + 0x20]
call fcn.004be4d0
mov ecx, dword [esp + 0x368]
lea edx, [esp + 0x14]
push edx
push 1
mov eax, dword [ecx + 8]
push eax
call fcn.00414b40
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 0x4045af
lea ecx, [esp + 0x30]
mov byte [esp + 0x354], 2
call fcn.004be2e0
mov eax, dword [esp + 0x24]
xor esi, esi
cmp eax, esi
mov byte [esp + 0x354], 5
je 0x404835
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x40482c
cmp al, 0xff
je 0x40482c
dec al
mov byte [ecx], al
jmp 0x404835
push ecx
call fcn.004de1a0
add esp, 4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
call fcn.004be2e0
lea ecx, [esp + 0x18]
mov byte [esp + 0x354], 0
call fcn.004be2e0
lea ecx, [esp + 0x364]
mov dword [esp + 0x354], 0xffffffff
call fcn.004be2e0
mov ax, word [esp + 0x10]
jmp 0x404d84
xor ecx, ecx
mov eax, 0x100
lea edi, [ebp + 0x50]
mov edx, 0x519c10
mov edi, 0x520010
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, 0x520010
rep movsb byte es:[edi], byte [esi]
jl 0x40488b
push ebx
lea ecx, [esp + 0x368]
call fcn.004be4c0
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 0x4048f5
mov esi, 0xa
mov dword [esp + 0x10], esi
movsx eax, si
xor ebx, ebx
mov byte [ebp + 0x4c], 0
test eax, eax
jle 0x404ab9
jmp 0x40490c
mov ebp, dword [esp + 0x38]
lea esi, [ebx + ebx*2 + 3]
lea ecx, [esp + 0x364]
push esi
call fcn.004be4c0
cmp al, 0x25
jne 0x404925
mov byte [ebp + 0x4c], 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.004be4c0
lea edx, [ebx + ebx*2 + 4]
push eax
push edx
lea ecx, [esp + 0x374]
call fcn.004be4c0
push eax
push esi
lea ecx, [esp + 0x378]
call fcn.004be4c0
push eax
mov ecx, ebp
call fcn.0047ef10
mov al, byte [ebp + 0x26]
test al, al
ja 0x40497a
mov al, byte [ebp + 0x27]
test al, al
jbe 0x404a2d
cmp word [esp + 0x35c], 0
jne 0x404a2d
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.004144a0
test al, al
je 0x4049d2
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 0x50f944
lea ecx, [esp + 0x20]
call fcn.004be740
mov esi, dword [esp + 0x38]
lea ecx, [esp + 0x18]
mov dl, byte [esi + 0x26]
push edx
call fcn.004be640
mov al, byte [esi + 0x27]
lea ecx, [esp + 0x18]
push eax
call fcn.004be640
mov ecx, dword [esp + 0x360]
push ecx
lea ecx, [esp + 0x1c]
call fcn.004be640
mov dl, bl
lea ecx, [esp + 0x18]
inc dl
push edx
call fcn.004be640
push ecx
lea eax, [esp + 0x34]
mov ecx, esp
mov dword [esp + 0x48], esp
push eax
jmp 0x404a82
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.004144a0
test al, al
je 0x404a76
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.004be1b0
lea ecx, [esp + 0x20]
call fcn.004be4d0
mov ecx, dword [esp + 0x368]
lea edx, [esp + 0x14]
push edx
push 1
mov eax, dword [ecx + 8]
push eax
call fcn.00414b40
movsx eax, word [esp + 0x10]
inc ebx
cmp ebx, eax
jl 0x404908
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x30]
mov byte [esp + 0x354], 2
call fcn.004be2e0
mov eax, dword [esp + 0x24]
xor edi, edi
cmp eax, edi
mov byte [esp + 0x354], 4
je 0x404af9
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x404af0
cmp al, 0xff
je 0x404af0
dec al
mov byte [ecx], al
jmp 0x404af9
push ecx
call fcn.004de1a0
add esp, 4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
call fcn.004be2e0
lea ecx, [esp + 0x18]
mov byte [esp + 0x354], 0
call fcn.004be2e0
lea ecx, [esp + 0x364]
mov dword [esp + 0x354], 0xffffffff
call fcn.004be2e0
mov ax, si
jmp 0x404d84
mov ecx, 0x40
xor eax, eax
lea edi, [ebp + 0x50]
mov edx, 0x519c10
rep stosd dword es:[edi], eax
mov edi, 0x520010
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, 0x520010
rep movsb byte es:[edi], byte [esi]
jl 0x404b4f
lea ecx, [esp + 0x364]
mov edi, 6
mov dword [esp + 0x10], ebx
call fcn.004be670
cmp ax, di
jle 0x404cf8
movsx esi, word [esp + 0x10]
mov ecx, dword [esp + 0x38]
lea ebx, [edi - 3]
push ebx
lea edx, [ecx + esi*2]
lea ecx, [esp + 0x368]
lea ebp, [esi + edx]
call fcn.004be4c0
mov byte [ebp + 0x50], al
lea eax, [edi - 2]
push eax
lea ecx, [esp + 0x368]
call fcn.004be4c0
mov ecx, dword [esp + 0x38]
lea edx, [ecx + esi*2 + 0x36]
lea ecx, [esp + 0x364]
mov byte [esi + edx + 0x1b], al
lea eax, [edi - 1]
push eax
call fcn.004be4c0
push ebx
lea ecx, [esp + 0x368]
mov byte [ebp + 0x52], al
call fcn.004be4c0
cmp al, 0x8d
jne 0x404cbb
xor eax, eax
mov esi, edi
movsx ebx, di
mov dword [0x519c0c], eax
mov dword [0x519c08], eax
mov al, byte [ebp + 0x52]
add eax, ebx
cmp ebx, eax
jge 0x404cbb
push esi
lea ecx, [esp + 0x368]
call fcn.004be4c0
cmp al, 0x80
jae 0x404cbb
push esi
lea ecx, [esp + 0x368]
call fcn.004be4c0
cmp al, 3
je 0x404c7b
push esi
lea ecx, [esp + 0x368]
call fcn.004be4c0
mov edx, dword [0x519c0c]
mov ecx, dword [0x519c08]
shl edx, 8
cmp ecx, 0x100
mov byte [edx + ecx + 0x519c10], al
jge 0x404cbb
inc ecx
mov dword [0x519c08], ecx
jmp 0x404ca8
mov eax, dword [0x519c0c]
mov edx, dword [0x519c08]
mov ecx, eax
shl ecx, 8
cmp eax, 0x64
mov byte [ecx + edx + 0x519c10], 0
jge 0x404cbb
inc eax
mov dword [0x519c08], 0
mov dword [0x519c0c], eax
inc esi
xor eax, eax
mov al, byte [ebp + 0x52]
movsx ecx, si
add eax, ebx
cmp ecx, eax
jl 0x404c21
mov esi, dword [esp + 0x10]
lea eax, [edi - 1]
inc esi
push eax
lea ecx, [esp + 0x368]
mov dword [esp + 0x14], esi
call fcn.004be4c0
xor dx, dx
cmp si, 4
mov dl, al
lea edi, [edi + edx + 3]
je 0x404cf8
lea ecx, [esp + 0x364]
call fcn.004be670
cmp di, ax
jl 0x404b9d
mov eax, dword [esp + 0x38]
mov cl, byte [esp + 0x10]
mov byte [esp + 0x354], 2
mov byte [eax + 0x5c], cl
lea ecx, [esp + 0x30]
call fcn.004be2e0
mov eax, dword [esp + 0x24]
xor esi, esi
cmp eax, esi
mov byte [esp + 0x354], 6
je 0x404d43
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x404d3a
cmp al, 0xff
je 0x404d3a
dec al
mov byte [ecx], al
jmp 0x404d43
push ecx
call fcn.004de1a0
add esp, 4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
call fcn.004be2e0
lea ecx, [esp + 0x18]
mov byte [esp + 0x354], 0
call fcn.004be2e0
lea ecx, [esp + 0x364]
mov dword [esp + 0x354], 0xffffffff
call fcn.004be2e0
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