Function at 0x5ad530
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffbc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov ebx, ecx
test ebx, ebx
js 0x5ad55a
mov esi, dword [edx + ebx*4]
dec ebx
push esi
jns 0x5ad553
mov edx, esp
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov ebx, eax
mov ecx, dword [ebp - 0xc]
inc ecx
mov eax, dword [ebp - 8]
mov edx, dword [0x401120]
call fcn.00405c48
xor eax, eax
push ebp
push 0x5ada3a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.005aac04
test al, al
jne 0x5ada0a
lea edx, [ebp - 0x44]
mov eax, dword [ebx + 0x60]
call fcn.0040a514
mov eax, dword [ebp - 0x44]
lea edx, [ebp - 0x40]
call fcn.004098f4
mov eax, dword [ebp - 0x40]
mov edx, 0x5ada58
call fcn.004051a8
jne 0x5ada0a
mov byte [ebx + 0x50], 1
mov eax, ebx
call fcn.005ada78
mov eax, dword [0x61c590]
mov eax, dword [eax]
mov dx, 0xfff5
call fcn.0046b538
mov eax, dword [ebx + 0x54]
call fcn.00405064
mov edx, eax
lea eax, [ebx + 0x70]
call fcn.004053e8
lea eax, [ebx + 0x70]
mov edx, dword [ebx + 0x54]
call fcn.00404e00
mov dl, 1
mov eax, dword [0x417d04]
call fcn.00403f8c
mov dword [ebp - 0x10], eax
mov edx, dword [ebx + 0x54]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov ecx, ebx
mov dl, 1
mov eax, dword [0x5571ac]
call fcn.00557e68
mov dword [ebp - 0x24], eax
mov edx, dword [0x61bda8]
mov edx, dword [edx]
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
call dword [ecx + 0x68]
mov edx, 0x64
mov eax, dword [ebp - 0x24]
call fcn.0044c6f8
mov edx, 0x64
mov eax, dword [ebp - 0x24]
call fcn.0044c6d4
xor edx, edx
mov eax, dword [ebp - 0x24]
call fcn.0044ce60
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x24]
call fcn.00558da8
xor edx, edx
push ebp
push 0x5ad9eb
push dword fs:[edx]
mov dword fs:[edx], esp
xor edi, edi
mov byte [ebp - 0x34], 0
xor eax, eax
mov dword [ebp - 0x30], eax
mov eax, dword [0x61bc44]
mov eax, dword [eax]
mov dword [ebp - 0x3c], eax
mov eax, dword [0x61c348]
mov eax, dword [eax]
mov dword [ebp - 0x38], eax
push 0
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x5ad0c4]
call fcn.004067e8
add esp, 4
cmp edi, dword [ebp - 0xc]
jg 0x5ad7e3
xor edx, edx
mov eax, dword [ebp - 0x24]
call fcn.0055d054
jmp 0x5ad7bc
cmp byte [ebx + 0x51], 0
je 0x5ad6da
mov eax, ebx
call fcn.005ada78
mov eax, dword [ebp - 0x24]
call fcn.00403fbc
call fcn.00404834
jmp 0x5ada0a
mov eax, dword [ebp - 0x24]
call fcn.0055cffc
mov esi, eax
test esi, esi
jl 0x5ad6fe
mov eax, dword [ebp - 0x24]
mov edx, dword [eax + 0x330]
mov eax, dword [ebp - 0x24]
call fcn.0055d228
mov dword [ebp - 0x14], eax
jmp 0x5ad714
mov eax, dword [ebp - 0x24]
mov edx, dword [eax + 0x330]
add edx, esi
mov eax, dword [ebp - 0x24]
call fcn.0055d228
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jl 0x5ad765
mov eax, dword [ebp - 0x14]
mov dword [ebx + 0x68], eax
test esi, esi
jne 0x5ad72b
xor eax, eax
mov dword [ebx + 0x6c], eax
jmp 0x5ad765
test esi, esi
jle 0x5ad74c
mov eax, dword [ebp - 0x24]
mov edx, dword [eax + 0x330]
add edx, esi
dec edx
mov eax, dword [ebp - 0x24]
call fcn.0055d228
inc eax
sub eax, dword [ebp - 0x14]
mov dword [ebx + 0x6c], eax
jmp 0x5ad765
mov eax, dword [ebp - 0x24]
mov edx, dword [eax + 0x330]
dec edx
mov eax, dword [ebp - 0x24]
call fcn.0055d228
inc eax
sub eax, dword [ebp - 0x14]
mov dword [ebx + 0x6c], eax
mov eax, dword [ebp - 4]
call fcn.0040662c
inc eax
push eax
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x5ad0c4]
call fcn.004067e8
add esp, 4
mov eax, dword [ebp - 4]
call fcn.00406634
mov edx, dword [ebp - 4]
mov ecx, dword [ebx + 0x68]
mov dword [edx + eax*8], ecx
mov eax, dword [ebp - 4]
call fcn.00406634
mov edx, dword [ebp - 4]
mov ecx, dword [ebx + 0x6c]
mov dword [edx + eax*8 + 4], ecx
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x330]
inc eax
mov edx, eax
mov eax, dword [ebp - 0x24]
call fcn.0055d21c
mov al, byte [ebp + 8]
push eax
mov eax, dword [ebp - 8]
mov edx, dword [eax + edi*4]
mov cl, byte [ebp + 0xc]
mov eax, dword [ebp - 0x24]
call fcn.0055ca70
test al, al
jne 0x5ad6bb
inc edi
cmp edi, dword [ebp - 0xc]
jle 0x5ad6ac
push ebp
call fcn.005ad12c
pop ecx
xor esi, esi
mov eax, dword [ebp - 4]
call fcn.00406634
test eax, eax
jl 0x5ad937
inc eax
mov dword [ebp - 0x2c], eax
xor edi, edi
mov eax, dword [ebp - 4]
mov eax, dword [eax + edi*8]
add eax, esi
mov dword [ebx + 0x68], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + edi*8 + 4]
mov dword [ebx + 0x6c], eax
mov eax, dword [ebx + 0x54]
call fcn.00405064
mov dword [ebp - 0x28], eax
mov eax, dword [ebx + 0x68]
add eax, dword [ebx + 0x6c]
mov edx, dword [ebx + 0x54]
cmp byte [edx + eax - 1], 0x3c
jne 0x5ad835
dec dword [ebx + 0x6c]
lea eax, [ebx + 0x58]
push eax
mov ecx, dword [ebx + 0x6c]
mov edx, dword [ebx + 0x68]
inc edx
mov eax, dword [ebx + 0x54]
call fcn.004052bc
mov edx, dword [ebx + 0x68]
inc edx
lea eax, [ebp - 0x1c]
call fcn.004053e8
mov eax, dword [ebx + 0x54]
call fcn.00405064
mov edx, eax
sub edx, dword [ebx + 0x68]
lea eax, [ebp - 0x20]
call fcn.004053e8
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebx + 0x68]
mov eax, dword [ebx + 0x54]
xor edx, edx
call fcn.004052bc
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebx + 0x54]
call fcn.00405064
mov ecx, eax
mov eax, dword [ebx + 0x68]
add eax, dword [ebx + 0x6c]
sub ecx, eax
mov edx, dword [ebx + 0x68]
add edx, dword [ebx + 0x6c]
inc edx
mov eax, dword [ebx + 0x54]
call fcn.004052bc
mov eax, dword [0x61c590]
mov eax, dword [eax]
mov dx, 0xfff5
call fcn.0046b538
lea eax, [ebx + 0x6c]
push eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [0x6263a4]
mov ecx, dword [eax + 0x2f8]
mov eax, dword [ebx + 0x58]
lea edx, [ebp - 0x3c]
call fcn.00594f90
cmp dword [ebp - 0x18], 0
je 0x5ad937
mov eax, dword [ebp - 0x1c]
call fcn.00405064
push eax
mov eax, dword [ebp - 0x20]
call fcn.00405064
pop edx
add edx, eax
push edx
mov eax, dword [ebp - 0x18]
call fcn.00405064
pop edx
add edx, eax
lea eax, [ebx + 0x54]
call fcn.004053e8
push dword [ebp - 0x1c]
push dword [ebp - 0x18]
push dword [ebp - 0x20]
lea eax, [ebx + 0x54]
mov edx, 3
call fcn.00405124
mov ecx, dword [ebx + 0x68]
inc ecx
lea edx, [ebx + 0x58]
mov eax, dword [ebx + 0x54]
call fcn.00405344
mov eax, dword [ebx + 0x54]
call fcn.00405064
add esi, eax
sub esi, dword [ebp - 0x28]
inc edi
dec dword [ebp - 0x2c]
jne 0x5ad802
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx + 0x44]
mov edx, dword [ebx + 0x54]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebx + 0x30]
mov edx, dword [eax]
call dword [edx + 0xdc]
mov edx, dword [ebp - 0x10]
call fcn.00558da8
mov eax, ebx
call fcn.005ab264
xor edi, edi
mov eax, dword [ebx + 0x30]
mov edx, dword [eax]
call dword [edx + 0xdc]
xor edx, edx
call fcn.0055d054
mov eax, dword [ebp - 4]
call fcn.0040662c
test eax, eax
jle 0x5ad9ad
jmp 0x5ad987
inc edi
cmp edi, dword [ebp - 0xc]
jg 0x5ad9ad
mov al, byte [ebp + 8]
push eax
mov eax, dword [ebx + 0x30]
mov edx, dword [eax]
call dword [edx + 0xdc]
mov edx, dword [ebp - 8]
mov edx, dword [edx + edi*4]
mov cl, byte [ebp + 0xc]
call fcn.0055ca70
test al, al
je 0x5ad986
push 0
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x5ad0c4]
call fcn.004067e8
add esp, 4
mov eax, dword [ebx + 0x30]
mov edx, dword [eax]
call dword [edx + 0xdc]
xor edx, edx
call fcn.0055d01c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5ad9f2
mov eax, dword [ebp - 0x10]
call fcn.00403fbc
mov eax, dword [ebp - 0x24]
call fcn.00403fbc
mov eax, dword [0x61c590]
mov eax, dword [eax]
xor edx, edx
call fcn.0046b538
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5ada41
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.00404dd0
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.00404dd0
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
inc ecx
mov edx, dword [0x401120]
call fcn.00405b20
lea eax, [ebp - 4]
mov edx, dword [0x5ad0c4]
call fcn.00406908
ret