Function at 0x50cd70
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x5932d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0xfc]
mov ecx, dword [eax + 4]
lea esi, [edi + 0xf8]
push ecx
mov ecx, esi
mov dword [esp + 0x1c], edi
call fcn.0050c7f0
mov eax, dword [esi + 4]
mov dword [eax + 4], eax
mov eax, dword [esi + 4]
xor ebp, ebp
mov dword [esi + 8], ebp
mov dword [eax], eax
mov esi, dword [esi + 4]
mov dword [esi + 8], esi
mov edx, dword [edi + 0x108]
mov eax, dword [edx + 4]
lea esi, [edi + 0x104]
push eax
mov ecx, esi
call fcn.0050c830
mov eax, dword [esi + 4]
mov dword [eax + 4], eax
mov eax, dword [esi + 4]
mov dword [esi + 8], ebp
mov dword [eax], eax
mov esi, dword [esi + 4]
push ebp
push 0x599956
lea ecx, [esp + 0x2c]
mov dword [esi + 8], esi
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], ebp
mov byte [esp + 0x30], 0
call fcn.00404250
mov esi, 0x599e5c
mov dword [esp + 0x20], esi
push 0xffffffffffffffff
push ebp
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [edi + 0x24]
mov dword [esp + 0x54], ebp
call fcn.00403f50
mov eax, dword [esp + 0x3c]
mov ebx, 0x10
cmp eax, ebx
mov dword [esp + 0x48], 0xffffffff
mov dword [esp + 0x20], esi
jb 0x50ce4d
mov edx, dword [esp + 0x28]
push edx
call fcn.004796fd
add esp, 4
push ebp
push 0x599956
lea ecx, [esp + 0x2c]
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], ebp
mov byte [esp + 0x30], 0
call fcn.00404250
mov dword [esp + 0x20], esi
push 0xffffffffffffffff
push ebp
lea eax, [esp + 0x2c]
push eax
lea ecx, [edi + 0x44]
mov dword [esp + 0x54], 1
call fcn.00403f50
cmp dword [esp + 0x3c], ebx
mov dword [esp + 0x48], 0xffffffff
mov dword [esp + 0x20], esi
jb 0x50cea8
mov ecx, dword [esp + 0x28]
push ecx
call fcn.004796fd
add esp, 4
push ebp
push 0x599956
lea ecx, [esp + 0x2c]
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], ebp
mov byte [esp + 0x30], 0
call fcn.00404250
mov dword [esp + 0x20], esi
push 0xffffffffffffffff
push ebp
lea edx, [esp + 0x2c]
push edx
lea ecx, [edi + 0x64]
mov dword [esp + 0x54], 2
call fcn.00403f50
cmp dword [esp + 0x3c], ebx
mov dword [esp + 0x48], 0xffffffff
mov dword [esp + 0x20], esi
jb 0x50cf03
mov eax, dword [esp + 0x28]
push eax
call fcn.004796fd
add esp, 4
push 0xb
push str.motlist.txt
lea ecx, [esp + 0x2c]
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], ebp
mov byte [esp + 0x30], 0
call fcn.00404250
mov dword [esp + 0x20], esi
push 0xffffffffffffffff
push ebp
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [edi + 0x84]
mov dword [esp + 0x54], 3
call fcn.00403f50
cmp dword [esp + 0x3c], ebx
mov dword [esp + 0x48], 0xffffffff
mov dword [esp + 0x20], esi
jb 0x50cf62
mov edx, dword [esp + 0x28]
push edx
call fcn.004796fd
add esp, 4
mov eax, dword [edi + 0xd8]
mov ecx, dword [eax + 4]
lea esi, [edi + 0xd4]
push ecx
mov ecx, esi
call fcn.00457e60
mov eax, dword [esi + 4]
mov dword [eax + 4], eax
mov eax, dword [esi + 4]
mov dword [esi + 8], ebp
mov dword [eax], eax
mov esi, dword [esi + 4]
mov dword [esi + 8], esi
mov edx, dword [edi + 0xc0]
mov eax, dword [edx + 4]
lea esi, [edi + 0xbc]
push eax
mov ecx, esi
call fcn.0050c7b0
mov eax, dword [esi + 4]
mov dword [eax + 4], eax
mov eax, dword [esi + 4]
mov dword [esi + 8], ebp
mov dword [eax], eax
mov esi, dword [esi + 4]
mov dword [esi + 8], esi
mov ecx, dword [edi + 0xf0]
mov edx, dword [ecx + 4]
lea esi, [edi + 0xec]
push edx
mov ecx, esi
call fcn.00403c70
mov eax, dword [esi + 4]
mov dword [eax + 4], eax
mov eax, dword [esi + 4]
mov dword [esi + 8], ebp
mov dword [eax], eax
mov esi, dword [esi + 4]
mov dword [esi + 8], esi
mov eax, dword [edi + 0xe4]
mov ecx, dword [eax + 4]
lea esi, [edi + 0xe0]
push ecx
mov ecx, esi
call fcn.0050a9c0
mov eax, dword [esi + 4]
mov dword [eax + 4], eax
mov eax, dword [esi + 4]
mov dword [esi + 8], ebp
mov dword [eax], eax
mov esi, dword [esi + 4]
mov dword [esi + 8], esi
mov eax, dword [edi + 0xcc]
mov ebx, dword [eax]
cmp ebx, eax
mov dword [esp + 0x10], ebx
je 0x50d17c
mov ecx, dword [ebx + 0x10]
mov eax, dword [ecx + 0xc]
mov esi, dword [eax]
cmp esi, eax
mov dword [esp + 0x14], ecx
je 0x50d0cc
xor ebx, ebx
mov edi, dword [esi + 0x14]
test edi, edi
je 0x50d06b
mov ecx, dword [esi + 0x18]
sub ecx, edi
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebp, eax
jae 0x50d06b
mov edx, dword [ebx + edi + 8]
push edx
call fcn.00511da0
add esp, 4
inc ebp
add ebx, 0xc
jmp 0x50d038
mov al, byte [esi + 0x21]
test al, al
jne 0x50d0b3
mov eax, dword [esi + 8]
mov cl, byte [eax + 0x21]
test cl, cl
jne 0x50d094
mov esi, eax
mov eax, dword [esi]
mov cl, byte [eax + 0x21]
test cl, cl
jne 0x50d0b3
mov esi, eax
mov eax, dword [esi]
mov cl, byte [eax + 0x21]
test cl, cl
je 0x50d087
jmp 0x50d0b3
mov eax, dword [esi + 4]
mov cl, byte [eax + 0x21]
test cl, cl
jne 0x50d0b1
mov edi, edi
cmp esi, dword [eax + 8]
jne 0x50d0b1
mov esi, eax
mov eax, dword [eax + 4]
mov cl, byte [eax + 0x21]
test cl, cl
je 0x50d0a0
mov esi, eax
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0xc]
xor ebp, ebp
cmp esi, eax
jne 0x50d036
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 0x18]
mov esi, dword [0x62b16c]
cmp esi, ebp
mov edx, dword [0x62b170]
mov dword [esp + 0x1c], ecx
je 0x50d108
mov ecx, dword [0x62b174]
mov eax, edx
sub eax, esi
sub ecx, esi
sar eax, 2
sar ecx, 2
cmp eax, ecx
jae 0x50d108
mov ecx, dword [esp + 0x14]
mov eax, edx
add eax, 4
mov dword [edx], ecx
mov dword [0x62b170], eax
jmp 0x50d11a
lea eax, [esp + 0x1c]
push eax
push 1
push edx
mov ecx, 0x62b168
call fcn.00509770
mov al, byte [ebx + 0x15]
test al, al
jne 0x50d170
mov ecx, dword [ebx + 8]
mov al, byte [ecx + 0x15]
test al, al
jne 0x50d145
mov eax, dword [ecx]
mov dl, byte [eax + 0x15]
test dl, dl
jne 0x50d13f
mov ecx, eax
mov eax, dword [ecx]
mov dl, byte [eax + 0x15]
test dl, dl
je 0x50d134
mov dword [esp + 0x10], ecx
jmp 0x50d16c
mov eax, dword [ebx + 4]
mov cl, byte [eax + 0x15]
test cl, cl
jne 0x50d168
jmp 0x50d155
mov ebx, dword [esp + 0x10]
cmp ebx, dword [eax + 8]
jne 0x50d168
mov dword [esp + 0x10], eax
mov eax, dword [eax + 4]
mov cl, byte [eax + 0x15]
test cl, cl
je 0x50d151
mov dword [esp + 0x10], eax
mov ebx, dword [esp + 0x10]
cmp ebx, dword [edi + 0xcc]
jne 0x50d022
mov ecx, dword [edi + 0xcc]
mov esi, dword [ecx + 4]
mov al, byte [esi + 0x15]
test al, al
lea ebx, [edi + 0xc8]
mov dword [esp + 0x14], esi
jne 0x50d1bb
mov edx, dword [esi + 8]
push edx
mov ecx, ebx
call fcn.00508af0
mov eax, dword [esp + 0x14]
mov esi, dword [esi]
push eax
call fcn.004796fd
mov al, byte [esi + 0x15]
add esp, 4
test al, al
mov dword [esp + 0x14], esi
je 0x50d196
mov eax, dword [ebx + 4]
mov dword [eax + 4], eax
mov eax, dword [ebx + 4]
mov dword [ebx + 8], ebp
mov dword [eax], eax
mov ebx, dword [ebx + 4]
mov ecx, edi
mov dword [ebx + 8], ebx
call fcn.0050a100
mov ecx, dword [esp + 0x40]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x3c
ret