Function at 0x5222d0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x5caae0
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push ebp
push esi
push edi
mov eax, dword [0x67ff88]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
mov eax, dword [eax + 0x50]
push 0
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x30]
push edx
mov edx, dword [esp + 0x68]
lea ecx, [esp + 0x38]
push ecx
push edx
mov ecx, esi
call eax
mov ecx, dword [esp + 0x60]
mov edi, dword [ecx + 4]
test edi, edi
je 0x522340
cmp dword [edi + 0x14], 0
je 0x522340
mov eax, dword [edi + 8]
mov edx, dword [esp + 0x2c]
lea ebx, [eax + edx]
mov eax, dword [edi + 0xc]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x24], eax
jmp 0x522352
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x24], edx
mov ebx, ecx
mov ebp, dword [esp + 0x68]
mov ecx, dword [esp + 0x64]
mov edx, dword [ecx]
mov eax, ebp
and eax, 0x200
mov dword [esp + 0x40], eax
je 0x522378
mov eax, dword [ecx + 8]
sub eax, ebx
lea eax, [eax + edx - 1]
mov dword [esp + 0x64], eax
jmp 0x522398
test ebp, 0x100
je 0x522394
mov eax, dword [ecx + 8]
sub eax, ebx
add eax, edx
add eax, edx
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x64], eax
jmp 0x522398
mov dword [esp + 0x64], edx
test ebp, 0x400
je 0x5223ad
mov ebp, dword [ecx + 0xc]
add ebp, dword [ecx + 4]
sub ebp, dword [esp + 0x24]
dec ebp
jmp 0x5223cf
test ebp, 0x800
je 0x5223cc
mov eax, dword [ecx + 0xc]
sub eax, dword [esp + 0x24]
mov edx, dword [ecx + 4]
add eax, edx
add eax, edx
cdq
sub eax, edx
mov ebp, eax
sar ebp, 1
jmp 0x5223cf
mov ebp, dword [ecx + 4]
mov eax, dword [esp + 0x64]
xor ecx, ecx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], ebp
mov dword [esp + 0x48], ebx
cmp edi, ecx
je 0x522427
cmp dword [edi + 0x14], ecx
je 0x522427
mov edx, dword [esi]
mov edi, dword [esp + 0x60]
push 1
push ebp
push eax
mov eax, dword [edx + 0x104]
push edi
mov ecx, esi
call eax
mov eax, dword [edi + 4]
test eax, eax
je 0x522409
mov eax, dword [eax + 8]
add eax, 4
add dword [esp + 0x64], eax
sub ebx, eax
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x28]
mov dword [esp + 0x18], ebx
cdq
sub eax, edx
sar eax, 1
add ebp, eax
xor ecx, ecx
mov edx, dword [section..data]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x60], ecx
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x5c]
mov ebx, dword [eax]
mov dword [esp + 0x54], ecx
jmp 0x522450
movzx eax, word [ebx]
cmp ax, 0xa
je 0x5224e1
test ax, ax
je 0x5224e1
mov edx, dword [esp + 0x5c]
mov ecx, ebx
sub ecx, dword [edx]
sar ecx, 1
cmp ecx, dword [esp + 0x6c]
jne 0x5224cd
mov eax, dword [esi]
mov eax, dword [eax + 0x140]
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x28]
push edx
mov ecx, esi
call eax
movzx ecx, word [ebx]
push ecx
push 1
lea ecx, [esp + 0x1c]
call fcn.004cf460
mov edx, dword [esi]
mov edx, dword [edx + 0x140]
push 0
push 0
push 0
push 0
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x28]
push ecx
mov ecx, esi
call edx
mov eax, dword [esp + 0x34]
lea ecx, [eax + ebp]
mov dword [esp + 0x60], ecx
add ebx, 2
jmp 0x522450
push eax
push 1
lea ecx, [esp + 0x1c]
call fcn.004cf460
add ebx, 2
jmp 0x522450
mov edx, dword [esp + 0x14]
cmp dword [edx - 8], 0
mov edi, dword [esp + 0x64]
je 0x52254e
test dword [esp + 0x68], 0x300
je 0x52253b
mov eax, dword [esi]
mov eax, dword [eax + 0x140]
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x28]
push edx
mov ecx, esi
call eax
cmp dword [esp + 0x40], 0
je 0x522528
sub edi, dword [esp + 0x30]
add edi, dword [esp + 0x18]
jmp 0x52253b
mov eax, dword [esp + 0x18]
sub eax, dword [esp + 0x30]
cdq
sub eax, edx
mov edi, eax
sar edi, 1
add edi, dword [esp + 0x64]
mov edx, dword [esi]
mov edx, dword [edx + 0x108]
push ebp
push edi
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
call edx
add ebp, dword [esp + 0x34]
cmp ebp, dword [esp + 0x60]
jne 0x522560
add dword [esp + 0x20], edi
add dword [esp + 0x1c], edi
cmp word [ebx], 0
je 0x52257f
mov eax, dword [0x5f09fc]
push eax
push 0
lea ecx, [esp + 0x1c]
call fcn.004cff70
add ebx, 2
jmp 0x522450
mov ecx, dword [esp + 0x1c]
cmp dword [esp + 0x20], ecx
je 0x5225dd
mov edx, dword [esi]
mov eax, dword [edx + 0x80]
push 0x64
push 0
mov ecx, esi
call eax
push eax
lea ecx, [esp + 0x4c]
call fcn.00524200
mov edx, dword [esi]
push eax
mov eax, dword [edx + 0x30]
mov ecx, esi
mov byte [esp + 0x58], 1
call eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x54], 0
call fcn.00525080
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esi]
mov edx, dword [edx + 0xe0]
dec eax
push eax
push ecx
push eax
mov eax, dword [esp + 0x2c]
push eax
mov ecx, esi
call edx
mov eax, dword [esp + 0x70]
test eax, eax
je 0x5225fe
mov ecx, dword [esp + 0x28]
mov edi, dword [esp + 0x64]
mov edx, dword [esp + 0x2c]
mov dword [eax], edi
sub ebp, ecx
mov dword [eax + 4], ebp
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x38]
mov eax, dword [esi]
mov edx, dword [esp + 0x3c]
mov eax, dword [eax + 0xc0]
push ecx
push edx
mov ecx, esi
call eax
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x38]
mov edx, dword [esi]
mov edx, dword [edx + 0xc0]
add eax, ecx
mov ecx, dword [esp + 0x3c]
push eax
mov eax, dword [esp + 0x4c]
add eax, ecx
push eax
mov ecx, esi
call edx
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
mov dword [esp + 0x54], 0xffffffff
cmp eax, 0xffffffff
je 0x522659
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x522659
call fcn.004ce2e0
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret 0x18