Function at 0x481860
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x528608
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x56b1dc]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, edx
mov ebx, dword [esp + 0x54]
mov ebp, dword [esp + 0x4c]
lea eax, [esp + 0x4c]
push eax
call fcn.00402550
mov dword [esp + 0x38], 0
mov ecx, dword [esp + 0x4c]
cmp dword [ecx - 0xc], 0
je 0x481a88
cmp dword [esp + 0x58], 0
jne 0x4818c5
call fcn.0046c230
mov edi, eax
mov dword [esp + 0x54], edi
jmp 0x4818f7
mov eax, dword [edi + 8]
test eax, eax
mov ecx, dword [edi + 0x10]
mov esi, dword [edi]
jne 0x4818d6
mov eax, 0xfffffff4
test ecx, ecx
push 1
je 0x4818e3
push 0x2bc
jmp 0x4818e8
push 0x190
push eax
call fcn.004891f0
add esp, 0xc
mov dword [esp + 0x54], eax
mov edi, eax
test edi, edi
je 0x481a76
mov edx, dword [esp + 0x40]
mov esi, dword [edx + 0x50]
test esi, esi
je 0x48190f
call fcn.004696b0
mov eax, dword [esp + 0x5c]
mov ecx, eax
shr ecx, 0x18
cmp ecx, 0xff
mov dword [esp + 0x14], ecx
jne 0x481949
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x44]
push eax
mov eax, dword [esp + 0x50]
push edi
mov edi, dword [esp + 0x50]
push eax
mov eax, dword [esp + 0x4c]
push ebx
push ecx
push ebp
push edx
call fcn.004822e0
jmp 0x481a72
push 0x70
call fcn.00500104
add esp, 4
test eax, eax
je 0x481a76
call fcn.00482fd0
mov esi, eax
test esi, esi
je 0x481a76
mov edi, dword [esp + 0x48]
mov eax, dword [esp + 0x50]
add eax, edi
lea ecx, [ebx + ebp]
sub eax, edi
sub ecx, ebp
mov ebx, eax
push ecx
push ebx
mov eax, esi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ecx
call fcn.004830f0
mov ecx, dword [esp + 0x1c]
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
lea eax, [ecx + ebp]
mov ecx, eax
sub esp, 0x10
mov eax, esp
mov dword [eax], edi
add ebx, edi
mov dword [eax + 4], ebp
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ecx
mov dword [esp + 0x30], edi
mov edi, dword [esp + 0x54]
mov dword [esp + 0x38], ebx
xor eax, eax
mov ebx, esi
mov dword [esp + 0x34], ebp
mov dword [esp + 0x3c], ecx
call fcn.0048a0a0
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0x3c]
mov dword [eax + 4], ebp
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
xor eax, eax
call fcn.0048a0a0
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x4c]
push eax
mov eax, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x20]
push edx
push eax
mov eax, dword [esp + 0x50]
push ecx
push 0
push esi
xor edi, edi
call fcn.004822e0
call fcn.004837c0
mov edi, dword [esp + 0x44]
push edi
lea edx, [esp + 0x24]
push edx
push esi
call fcn.00483810
call fcn.00483960
mov ecx, dword [esp + 0x14]
imul ecx, ecx, 0x64
mov eax, 0x80808081
mul ecx
shr edx, 7
push edx
mov eax, esi
call fcn.004839e0
lea eax, [esp + 0x20]
mov edx, edi
call fcn.00483610
push edi
mov edi, dword [esp + 0x4c]
mov ebx, ebp
call fcn.004896a0
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
mov edi, dword [esp + 0x54]
cmp dword [esp + 0x58], 0
je 0x481a88
test edi, edi
je 0x481a88
push edi
call dword [0x5310c4]
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x481ab0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 0x20