Function at 0x463ad0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x48d489
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
push ebx
push ebp
mov ebp, dword [esp + 0x60]
push esi
mov ebx, ecx
push edi
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x29]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x10], 0
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 [ebx + 0x30]
mov eax, dword [ecx + 0x9c]
lea ecx, [esp + 0x1c]
push eax
call dword [sym.imp.Staff2.dll_public:_void___thiscall_CSWMRLock::constructor_class_CSWMRG__]
xor esi, esi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x60], esi
call dword [sym.imp.Staff2.dll_public:_int___thiscall_CSWMRLock::ReadLock_void_]
lea edx, [esp + 0x68]
lea eax, [esp + 0x14]
push edx
lea ecx, [esp + 0x2c]
lea edi, [ebx + 0x31dc]
push eax
push ecx
mov ecx, edi
call fcn.00488210
test eax, eax
je 0x463d26
mov dx, word [ebp + 0x852]
mov ecx, dword [esp + 0x3a]
and edx, 0x800
mov ax, 0x4e
cmp edx, 0x800
je 0x463b87
movsx ax, byte [ebp + 0x24]
cmp ax, cx
mov word [esp + 0x3a], ax
je 0x463b99
mov dword [esp + 0x10], 1
mov al, byte [ebp + 0x6e0]
test al, al
je 0x463bc6
cmp al, 6
je 0x463bb5
mov ax, word [ebp + 0x6e2]
mov word [esp + 0x3c], ax
jmp 0x463bcb
mov cx, word [ebp + 0x6e2]
neg cx
mov word [esp + 0x3c], cx
jmp 0x463bcb
mov word [esp + 0x3c], si
mov al, byte [ebp + 0x6c0]
test al, al
je 0x463bf8
cmp al, 6
je 0x463be7
mov dx, word [ebp + 0x6c2]
mov word [esp + 0x3e], dx
jmp 0x463bfd
mov ax, word [ebp + 0x6c2]
neg ax
mov word [esp + 0x3e], ax
jmp 0x463bfd
mov word [esp + 0x3e], si
mov al, byte [esp + 0x6c]
cmp al, 0xff
je 0x463c09
mov byte [esp + 0x40], al
mov eax, dword [ebp + 0xa3c]
mov ecx, dword [ebp + 0x84c]
mov edx, dword [ebp + 0x850]
cmp eax, esi
mov dword [esp + 0x42], ecx
mov dword [esp + 0x46], edx
jbe 0x463c2e
mov byte [esp + 0x4e], 0x64
jmp 0x463c9a
cmp dword [ebp + 0x980], esi
jbe 0x463c3d
mov byte [esp + 0x4e], 0x9c
jmp 0x463c9a
mov eax, dword [ebp + 0x794]
cmp eax, esi
jle 0x463c6d
lea ecx, [eax - 1]
mov eax, 0x51eb851f
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
inc dl
cmp dl, 5
mov byte [esp + 0x4e], dl
jle 0x463c9a
mov byte [esp + 0x4e], 5
jmp 0x463c9a
jge 0x463c95
lea ecx, [eax + 1]
mov eax, 0x51eb851f
imul ecx
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
dec dl
cmp dl, 0xfb
mov byte [esp + 0x4e], dl
jge 0x463c9a
mov byte [esp + 0x4e], 0xfb
jmp 0x463c9a
mov byte [esp + 0x4e], 0
mov al, byte [ebp + 0x97c]
mov cl, byte [esp + 0x4c]
cmp cl, al
jne 0x463cb6
mov dl, byte [esp + 0x4d]
mov cl, byte [ebp + 0x97d]
cmp dl, cl
je 0x463ccf
mov ecx, dword [esp + 0x68]
mov byte [esp + 0x4c], al
mov al, byte [ebp + 0x97d]
mov byte [esp + 0x4d], al
mov byte [ecx + 0x4564], 4
mov eax, dword [ebx + 0x32c4]
cmp eax, 0x84
jl 0x463ce3
cmp eax, 0x88
jle 0x463cf1
cmp eax, 0xb4
jl 0x463cff
cmp eax, 0xbc
jg 0x463cff
mov ecx, dword [esp + 0x68]
push ebp
call fcn.00422430
mov byte [esp + 0x55], al
mov edx, dword [esp + 0x68]
lea eax, [esp + 0x28]
push edx
push eax
mov ecx, edi
call fcn.00488410
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
lea eax, [esp + 0x2c]
push edx
push eax
mov ecx, ebx
call fcn.00463f50
lea ecx, [esp + 0x1c]
call dword [sym.imp.Staff2.dll_public:_int___thiscall_CSWMRLock::Unlock_void_]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x60], 0xffffffff
call dword [sym.imp.Staff2.dll_public_virtual:_void___thiscall_CSWMRLock::destructor_void_]
mov ecx, dword [esp + 0x58]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x54
ret 8