Function at 0x40d1f0
Capabilities:
Get number of processors

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x40d9f0
sub esp, 0x64
xor eax, eax
mov dword [esp + 0x28], eax
mov ebx, dword [0x6cfca8]
cmp ebx, 2
jne 0x40d22f
mov ebx, 0x5fa546
mov dword [esp], ebx
mov dword [esp + 4], 0x32
call fcn.00429650
mov ebx, dword [esp + 0x68]
cmp ebx, 0
jne 0x40d245
mov ebx, 0x6cfd18
mov dword [esp + 0x74], ebx
add esp, 0x64
ret
mov ebx, dword [0x6cff2c]
cmp ebx, 0
je 0x40d296
mov eax, 0x10
mov ebx, dword [esp + 0x6c]
xor ebp, ebp
cmp ebx, ebp
je 0x40d269
mov ebx, dword [esp + 0x6c]
movzx ebp, byte [ebx + 0xd]
mov eax, ebp
mov ebx, dword [esp + 0x68]
mov dword [esp], ebx
mov dword [esp + 4], eax
mov ebx, 0x6d1e80
mov dword [esp + 8], ebx
add dword [esp + 8], 0xa0
call fcn.0040dff0
mov ebx, dword [esp + 0xc]
mov dword [esp + 0x74], ebx
add esp, 0x64
ret
mov dword [esp + 0x38], 0
mov ebx, dword [0x6cfca0]
cmp ebx, 0
je 0x40d30e
mov ebx, dword fs:[0x14]
mov ecx, dword [ebx]
mov ebp, dword [ecx + 0x18]
mov eax, dword [ebp + 0x4c]
xor ebx, ebx
cmp eax, ebx
je 0x40d2c8
mov ebp, dword [ecx + 0x18]
mov ecx, dword [ebp + 0x4c]
mov eax, dword [ecx + 0xdc]
mov edx, dword [ecx + 0xe0]
mov ebp, dword [esp + 0x68]
xor ebx, ebx
sub eax, ebp
sbb edx, ebx
mov dword [ecx + 0xdc], eax
mov dword [ecx + 0xe0], edx
mov dword [esp + 0x38], ecx
mov ebp, dword [ecx + 0xdc]
mov eax, dword [ecx + 0xe0]
cmp eax, 0
jg 0x40d30e
jl 0x40d306
cmp ebp, 0
jae 0x40d30e
mov dword [esp], ecx
call fcn.00418f00
mov ebx, dword fs:[0x14]
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x18]
mov edx, dword [eax + 0x70]
inc edx
mov dword [eax + 0x70], edx
mov edx, dword [ecx + 0x18]
mov dword [esp + 0x30], edx
mov ebp, dword [edx + 0x60]
cmp ebp, 0
je 0x40d34d
mov ebx, 0x5f1005
mov dword [esp], ebx
mov dword [esp + 4], 0xf
call fcn.00429650
mov edx, dword [esp + 0x30]
mov ebp, dword [edx + 0x2c]
mov ebx, dword fs:[0x14]
mov ebx, dword [ebx]
cmp ebp, ebx
jne 0x40d37a
mov ebx, 0x5f2ad8
mov dword [esp], ebx
mov dword [esp + 4], 0x14
call fcn.00429650
mov edx, dword [esp + 0x30]
mov eax, 1
mov dword [edx + 0x60], eax
mov byte [esp + 0x16], 0
mov ebx, dword [esp + 0x68]
mov dword [esp + 0x1c], ebx
mov ebx, dword fs:[0x14]
mov ebx, dword [ebx]
mov ebp, dword [ebx + 0x18]
mov ecx, dword [ebp + 0xb0]
mov dword [esp + 0x34], ecx
mov ebx, dword [esp + 0x6c]
xor ebp, ebp
cmp ebx, ebp
je 0x40d9e2
mov ebx, dword [esp + 0x6c]
movzx ebp, byte [ebx + 0xf]
mov ebx, ebp
and ebx, 0x80
cmp bl, 0
jne 0x40d9e2
xor eax, eax
mov byte [esp + 0x17], al
mov ebx, dword [esp + 0x68]
cmp ebx, 0x8000
ja 0x40d96a
cmp al, 0
je 0x40d836
mov ebx, dword [esp + 0x68]
cmp ebx, 0x10
jae 0x40d836
mov eax, dword [ecx + 0xc]
mov ebx, dword [esp + 0x68]
and ebx, 7
cmp ebx, 0
jne 0x40d7f4
mov ebx, 8
add eax, ebx
dec eax
dec ebx
xor ebx, 0xffffffff
and eax, ebx
mov ebx, eax
add ebx, dword [esp + 0x68]
cmp ebx, 0x10
ja 0x40d482
mov ebp, dword [ecx + 8]
cmp ebp, 0
je 0x40d482
mov esi, dword [ecx + 8]
add esi, eax
add eax, dword [esp + 0x68]
mov dword [ecx + 0xc], eax
mov eax, dword [ecx + 0x10]
inc eax
mov dword [ecx + 0x10], eax
xor eax, eax
mov dword [edx + 0x60], eax
mov eax, edx
mov ebx, dword fs:[0x14]
mov ecx, dword [ebx]
mov edx, dword [edx + 0x70]
dec edx
mov dword [eax + 0x70], edx
mov ebp, dword [eax + 0x70]
cmp ebp, 0
jne 0x40d47a
movzx ebx, byte [ecx + 0x80]
cmp bl, 0
je 0x40d47a
mov eax, 0xfffffade
mov dword [ecx + 8], eax
mov dword [esp + 0x74], esi
add esp, 0x64
ret
mov ebp, dword [ecx + 0x1c]
mov dword [esp], ebp
call fcn.0040ce40
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 4]
cmp eax, 0
jne 0x40d4b8
mov dword [esp], edx
mov byte [esp + 4], 2
call fcn.0040cf60
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 8]
movzx ebx, byte [esp + 0x10]
mov byte [esp + 0x16], bl
mov ecx, eax
xor esi, esi
xor ebp, ebp
mov dword [eax], esi
mov dword [eax + 4], ebp
xor esi, esi
xor ebp, ebp
mov dword [eax + 8], esi
mov dword [eax + 0xc], ebp
mov ebp, dword [edx + 0xc]
mov ebx, dword [esp + 0x68]
cmp ebp, ebx
ja 0x40d7e5
mov ebp, dword [edx + 8]
cmp ebp, 0
je 0x40d7e5
mov dword [esp + 0x68], 0x10
mov dword [esp + 0x18], 0
cmp byte [esp + 0x17], 0
je 0x40d76c
mov dword [esp + 0x20], ecx
xor ebx, ebx
mov ebx, dword [0x6c2500]
mov ebp, ecx
sub ebp, ebx
mov ebx, dword [0x6c2500]
sub ecx, ebx
shr ecx, 2
xor ebx, ebx
mov eax, dword [0x6c24f8]
mov edx, ecx
shr edx, 2
sub eax, edx
dec eax
and ecx, 3
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], ecx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], eax
movzx edx, byte [eax]
mov dword [esp + 0x48], ecx
mov ebx, 0x11
cmp ecx, 8
jae 0x40d765
shl ebx, cl
xor ebx, 0xffffffff
and ebx, edx
mov byte [eax], bl
call fcn.004515e0
mov ebx, dword [0x6cfca8]
cmp ebx, 0
je 0x40d58f
mov ebx, dword [esp + 0x20]
mov dword [esp], ebx
mov ebx, dword [esp + 0x68]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x18]
mov dword [esp + 8], ebx
call fcn.0041b980
xor eax, eax
mov ebx, dword [esp + 0x30]
mov dword [ebx + 0x60], eax
mov eax, dword [esp + 0x30]
mov ebx, dword fs:[0x14]
mov ecx, dword [ebx]
mov edx, dword [eax + 0x70]
dec edx
mov dword [eax + 0x70], edx
mov ebp, dword [eax + 0x70]
cmp ebp, 0
jne 0x40d5cc
movzx ebx, byte [ecx + 0x80]
cmp bl, 0
je 0x40d5cc
mov eax, 0xfffffade
mov dword [ecx + 8], eax
mov ebx, dword [0x6cff00]
cmp ebx, 0
je 0x40d5f3
mov ebx, dword [esp + 0x20]
mov dword [esp], ebx
mov ebx, dword [esp + 0x68]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x6c]
mov dword [esp + 8], ebx
call fcn.00422800
mov eax, dword [0x6a60e4]
cmp eax, 0
jle 0x40d62e
mov ebx, dword [esp + 0x68]
cmp eax, ebx
jbe 0x40d6ee
mov eax, dword [esp + 0x68]
mov ebx, dword [esp + 0x34]
mov ebp, dword [ebx]
cmp eax, ebp
jge 0x40d6ee
mov ebx, dword [esp + 0x34]
mov ebp, dword [ebx]
mov ebx, dword [esp + 0x68]
sub ebp, ebx
mov ebx, dword [esp + 0x34]
mov dword [ebx], ebp
mov ebx, dword [esp + 0x38]
xor ebp, ebp
cmp ebx, ebp
je 0x40d666
mov ebx, dword [esp + 0x38]
mov eax, dword [ebx + 0xdc]
mov edx, dword [ebx + 0xe0]
mov ebp, dword [esp + 0x68]
sub ebp, dword [esp + 0x1c]
xor ebx, ebx
sub eax, ebp
sbb edx, ebx
mov ebx, dword [esp + 0x38]
mov dword [ebx + 0xdc], eax
mov dword [ebx + 0xe0], edx
cmp byte [esp + 0x16], 0
je 0x40d6b9
xor eax, eax
mov ebx, dword [0x6cfca8]
cmp ebx, 0
jne 0x40d6a1
cmp al, 0
jne 0x40d6c5
mov esi, dword [0x6d3494]
mov ebp, dword [0x6d3498]
mov edx, dword [0x6d1f28]
mov eax, dword [0x6d1f2c]
cmp ebp, eax
ja 0x40d6c5
jb 0x40d6a1
cmp esi, edx
jae 0x40d6c5
xor eax, eax
cmp al, 0
je 0x40d6b9
mov dword [esp], 0
mov byte [esp + 4], 0
call fcn.00415450
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x74], ebx
add esp, 0x64
ret
movzx ebx, byte [0x6d2f4c]
cmp bl, 0
je 0x40d6a1
mov ebx, dword [0x6cfcd8]
cmp ebx, 0
jne 0x40d6a1
mov ebx, dword [0x6cfca4]
cmp ebx, 0
jl 0x40d6a1
mov eax, 1
jmp 0x40d6a3
mov ebx, dword fs:[0x14]
mov eax, dword [ebx]
mov ecx, dword [eax + 0x18]
mov edx, dword [ecx + 0x70]
inc edx
mov dword [ecx + 0x70], edx
mov ebp, dword [eax + 0x18]
mov dword [esp + 0x2c], ebp
mov dword [esp], ebp
mov ebx, dword [esp + 0x20]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x68]
mov dword [esp + 8], ebx
call fcn.0040dcc0
mov eax, dword [esp + 0x2c]
mov ebx, dword fs:[0x14]
mov ecx, dword [ebx]
mov edx, dword [eax + 0x70]
dec edx
mov dword [eax + 0x70], edx
mov ebp, dword [eax + 0x70]
cmp ebp, 0
jne 0x40d62e
movzx ebx, byte [ecx + 0x80]
cmp bl, 0
je 0x40d62e
mov eax, 0xfffffade
mov dword [ecx + 8], eax
jmp 0x40d62e
xor ebx, ebx
jmp 0x40d55a
mov ebx, dword [esp + 0x6c]
mov ebp, dword [0x6be00c]
cmp ebx, ebp
jne 0x40d782
mov dword [esp + 0x1c], 0x1c
mov dword [esp + 0x20], ecx
mov dword [esp], ecx
mov ebx, dword [esp + 0x68]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x1c]
mov dword [esp + 8], ebx
mov ebx, dword [esp + 0x6c]
mov dword [esp + 0xc], ebx
call fcn.0040fca0
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x34]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x6c]
mov ebp, dword [eax]
cmp ebp, edi
jae 0x40d7e0
mov ebp, dword [eax + 4]
cmp ebp, 0
je 0x40d7cf
mov ebx, dword [eax]
mov edx, edi
sub edx, ebx
mov ebx, dword [eax + 4]
add edx, ebx
mov eax, dword [esi + 4]
add eax, edx
mov dword [esp + 0x18], edx
mov dword [esi + 4], eax
jmp 0x40d563
mov edx, dword [eax + 4]
jmp 0x40d7cf
mov dword [edx + 8], ecx
mov eax, dword [esp + 0x68]
mov dword [edx + 0xc], eax
jmp 0x40d4e8
mov ebx, dword [esp + 0x68]
and ebx, 3
cmp ebx, 0
jne 0x40d813
mov ebx, 4
add eax, ebx
dec eax
dec ebx
xor ebx, 0xffffffff
and eax, ebx
jmp 0x40d41d
mov ebx, dword [esp + 0x68]
and ebx, 1
cmp ebx, 0
jne 0x40d41d
mov ebx, 2
add eax, ebx
dec eax
dec ebx
xor ebx, 0xffffffff
and eax, ebx
jmp 0x40d41d
mov ebx, dword [esp + 0x68]
cmp ebx, 0x3f8
ja 0x40d939
mov ebx, dword [esp + 0x68]
add ebx, 7
shr ebx, 3
mov ebp, 0x6d0040
cmp ebx, 0x81
jae 0x40d932
add ebp, ebx
movzx ebx, byte [ebp]
mov eax, ebx
movsx ebx, al
mov ebp, 0x6d0300
cmp ebx, 0x43
jae 0x40d92b
shl ebx, 2
add ebp, ebx
mov ebx, dword [ebp]
mov dword [esp + 0x68], ebx
cmp ecx, 0
je 0x40d924
movsx ebp, al
mov byte [esp + 0x15], al
lea esi, [ecx + 0x14]
cmp ebp, 0x43
jae 0x40d91d
shl ebp, 2
add esi, ebp
mov eax, dword [esi]
mov dword [esp + 0x24], eax
mov dword [esp], eax
call fcn.0040ce40
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 4]
cmp eax, 0
jne 0x40d8e4
mov ebx, dword [esp + 0x34]
mov dword [esp], ebx
movzx ebx, byte [esp + 0x15]
mov byte [esp + 4], bl
call fcn.0040cf60
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
movzx ebx, byte [esp + 0x10]
mov byte [esp + 0x16], bl
mov ecx, eax
mov dword [esp + 0x20], eax
cmp byte [esp + 0x70], 0
je 0x40d4f0
movzx ebp, byte [edx + 0x3d]
xchg ebp, eax
cmp al, 0
xchg ebp, eax
je 0x40d4f0
mov dword [esp], eax
mov ebx, dword [esp + 0x68]
mov dword [esp + 4], ebx
call fcn.00452570
mov ecx, dword [esp + 0x20]
jmp 0x40d4f0
call fcn.00427990
ud2
mov dword [ecx], eax
jmp 0x40d88f
call fcn.00427990
ud2
call fcn.00427990
ud2
mov ebx, dword [esp + 0x68]
sub ebx, 0x400
add ebx, 0x7f
shr ebx, 7
mov ebp, 0x6d00e0
cmp ebx, 0xf9
jae 0x40d963
add ebp, ebx
movzx ebx, byte [ebp]
mov eax, ebx
jmp 0x40d869
call fcn.00427990
ud2
mov dword [esp + 0x28], 0
mov byte [esp + 0x16], 1
xor eax, eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov byte [esp + 0x60], al
lea eax, [esp + 0x54]
mov ecx, 0x44ae50
mov dword [eax], ecx
lea ebx, [esp + 0x28]
mov dword [eax + 4], ebx
lea ebx, [esp + 0x68]
mov dword [eax + 8], ebx
movzx ebx, byte [esp + 0x70]
mov byte [eax + 0xc], bl
mov dword [esp], eax
call fcn.0044fe50
mov eax, 1
mov ebx, dword [esp + 0x28]
mov dword [ebx + 0x18], eax
mov eax, 1
mov ebx, dword [esp + 0x28]
mov word [ebx + 0x38], ax
mov ebx, dword [esp + 0x28]
mov ecx, dword [ebx + 0xc]
mov ebx, dword [esp + 0x28]
mov ebp, dword [ebx + 0x40]
mov dword [esp + 0x68], ebp
jmp 0x40d4f0
mov eax, 1
mov byte [esp + 0x17], al
jmp 0x40d3d6
call fcn.0044ff60
jmp fcn.0040d1f0