Function at 0x492560
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4f33a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push ebp
push esi
mov esi, dword [0x4f9618]
mov ebx, ecx
push 0x409
call esi
push 0x10
mov dword [esp + 0x2c], eax
call esi
mov ebp, dword [esp + 0x44]
mov dword [esp + 0x24], eax
push ebp
call esi
mov dword [esp + 0x2c], eax
mov al, byte [esp + 0x48]
cmp al, 3
mov byte [esp + 0x30], al
jne 0x4925cc
mov eax, 0xa
mov dword [ebx + 0x134], ebp
mov dword [ebx + 0x130], 1
mov dword [0x5164c0], eax
mov dword [0x5164bc], eax
mov eax, dword [ebx]
lea ecx, [esp + 0x24]
push 0x10
push ecx
mov ecx, ebx
call dword [eax + 0xc]
test ebp, ebp
je 0x492809
cmp byte [esp + 0x48], 3
jne 0x492809
mov eax, dword [ebx + 0x130]
push edi
test eax, eax
mov esi, 0x64
je 0x492616
mov edi, dword [0x4f92ac]
test esi, esi
jle 0x492616
push 0xa
dec esi
call edi
mov eax, dword [ebx + 0x130]
test eax, eax
jne 0x492603
lea edx, [ebx + 0x44]
lea ecx, [esp + 0x10]
push edx
mov dword [0x5164c0], 0x1f4
mov dword [0x5164bc], 0x3e8
call fcn.00410350
lea ecx, [esp + 0x10]
mov dword [esp + 0x40], 0
call fcn.00410370
mov eax, dword [ebx + 0x8c]
test eax, eax
je 0x492750
mov eax, dword [ebx + 0x90]
push eax
call fcn.004dcb8f
mov esi, dword [ebx + 0x8c]
mov ebp, eax
mov eax, dword [ebx + 0x90]
add esp, 4
xor edi, edi
mov dword [esp + 0x20], ebp
test eax, eax
mov dword [esp + 0x14], ebp
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x4c], edi
jle 0x4926f5
lea edi, [esi + 0x5f]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
mov ecx, dword [esi + 0x28]
push ecx
add ebp, 0x60
call dword [0x4f95f8]
cmp eax, dword [esp + 0x48]
je 0x4926d9
mov eax, dword [esp + 0x14]
mov ecx, ebp
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [esp + 0x4c]
and ecx, 3
add edx, ebp
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x1c]
add eax, ebp
mov dword [esp + 0x4c], edx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x18]
add esi, ebp
sub eax, ebp
mov dword [esp + 0x1c], esi
test eax, eax
mov dword [esp + 0x18], eax
jg 0x49268d
mov ebp, dword [esp + 0x20]
mov edi, dword [esp + 0x4c]
mov eax, dword [ebx + 0x8c]
test eax, eax
je 0x492712
push eax
call fcn.004dcaa6
add esp, 4
mov dword [ebx + 0x8c], 0
push edi
call fcn.004dcb8f
mov dword [ebx + 0x90], edi
mov ecx, edi
mov dword [ebx + 0x8c], eax
mov edi, eax
mov eax, ecx
mov esi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x24]
add esp, 4
and ecx, 3
test eax, eax
rep movsb byte es:[edi], byte [esi]
je 0x49274c
push eax
call fcn.004dcaa6
add esp, 4
mov ebp, dword [esp + 0x48]
lea ecx, [esp + 0x10]
call fcn.00410380
lea ecx, [ebx + 0x5c]
push ecx
lea ecx, [esp + 0x28]
call fcn.00410350
lea ecx, [esp + 0x24]
mov byte [esp + 0x40], 1
call fcn.00410370
mov esi, dword [ebx + 0x98]
mov eax, dword [ebx + 0x9c]
cmp esi, eax
je 0x4927e9
cmp ebp, dword [esi]
je 0x492791
add esi, 0xc
cmp esi, eax
jne 0x492784
jmp 0x4927e9
mov eax, dword [esi + 8]
test eax, eax
je 0x4927a8
push eax
call fcn.004dcaa6
add esp, 4
mov dword [esi + 8], 0
mov edx, dword [ebx + 0x9c]
lea eax, [esi + 0xc]
cmp eax, edx
je 0x4927d6
lea ecx, [eax - 0xc]
mov esi, eax
mov edi, ecx
add eax, 0xc
add ecx, 0xc
mov ebp, dword [esi]
cmp eax, edx
mov dword [edi], ebp
mov ebp, dword [esi + 4]
mov dword [edi + 4], ebp
mov esi, dword [esi + 8]
mov dword [edi + 8], esi
jne 0x4927b8
mov eax, dword [ebx + 0x9c]
add eax, 0xfffffff4
mov dword [esp + 0x4c], eax
mov dword [ebx + 0x9c], eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x40], 0
call fcn.00410360
lea ecx, [esp + 0x10]
mov dword [esp + 0x40], 0xffffffff
call fcn.00410360
pop edi
mov ecx, dword [esp + 0x34]
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x34
ret 8