Function at 0x5bafa0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x722a80
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x50
push esi
mov esi, ecx
mov ecx, dword [esp + 0x64]
mov eax, dword [ecx]
push edi
mov dword [esp + 0x1c], esi
call dword [eax + 0x30]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x2c], eax
je 0x5bb3f3
cmp dword [esi + 0xa2c], edi
je 0x5bb3f3
mov ecx, dword [esi + 0x9c8]
movzx eax, byte [ecx + 0x96c]
push ebx
push eax
call fcn.004d2b50
movzx eax, byte [eax + 0x3a]
mov ecx, dword [esi + 0x9c8]
push eax
call fcn.004d4ff0
mov ebx, eax
cmp ebx, edi
mov dword [esp + 0x2c], ebx
je 0x5bb3f2
mov dword [esp + 0x14], edi
mov dword [esp + 0x24], edi
mov ecx, dword [ebx + 0x24c]
xor eax, eax
cmp ecx, edi
mov dword [esp + 0x34], eax
jle 0x5bb3f2
push ebp
push eax
mov ecx, ebx
call fcn.00553990
mov ebp, eax
test ebp, ebp
je case.default.0x5bb07d
mov cl, byte [ebp + 0x11]
cmp cl, 0xff
je 0x5bb061
mov eax, dword [ebx + 0x294]
mov edx, 1
shl edx, cl
test eax, edx
je case.default.0x5bb07d
cmp word [ebp], 0x20
jne case.default.0x5bb07d
movzx eax, word [ebp + 2]
xor edi, edi
xor esi, esi
cmp eax, 0xa
ja case.default.0x5bb07d
jmp dword [eax*4 + 0x5bb408]
mov edi, 1
mov esi, edi
mov byte [esp + 0x14], 3
mov byte [esp + 0x10], 0xa
mov dword [esp + 0x1c], 0x5b9980
jmp 0x5bb1a6
mov edi, 1
mov esi, edi
mov byte [esp + 0x14], 3
mov byte [esp + 0x10], 0xa
mov dword [esp + 0x1c], 0x5b9d40
jmp 0x5bb1a6
mov edi, 1
mov esi, edi
mov byte [esp + 0x14], 1
mov byte [esp + 0x10], 0x12
mov dword [esp + 0x1c], 0x5b9870
jmp 0x5bb1a6
mov edi, 1
mov esi, edi
mov byte [esp + 0x14], 3
mov byte [esp + 0x10], 0xa
mov dword [esp + 0x1c], 0x5b9670
jmp 0x5bb1a6
mov edi, 1
mov esi, edi
mov byte [esp + 0x14], 3
mov byte [esp + 0x10], 8
mov dword [esp + 0x1c], 0x5b9770
jmp 0x5bb1a6
mov edi, 1
mov esi, edi
mov byte [esp + 0x14], 3
mov byte [esp + 0x10], 0
mov dword [esp + 0x1c], 0x5b9b80
jmp 0x5bb1a6
mov esi, 1
mov byte [esp + 0x14], 2
mov byte [esp + 0x10], 0
mov dword [esp + 0x20], 0x5b9e40
jmp 0x5bb19e
xor esi, esi
mov byte [esp + 0x14], 1
mov byte [esp + 0x10], 0xc
mov dword [esp + 0x20], 0x5ba0d0
jmp 0x5bb19e
mov esi, 1
mov byte [esp + 0x14], 1
mov byte [esp + 0x10], 4
mov dword [esp + 0x20], 0x5ba170
jmp 0x5bb1a6
mov esi, 1
mov byte [esp + 0x14], 1
mov byte [esp + 0x10], 4
mov dword [esp + 0x20], fcn.005b5e90
jmp 0x5bb1a6
mov dword [esp + 0x20], 0x5ba300
mov dword [esp + 0x18], 0x64
push str.Param1ResRef
lea ecx, [esp + 0x44]
call fcn.005e5a90
mov ax, word [ebp + 2]
mov ecx, dword [0x7a3a28]
mov ecx, dword [ecx + 0xb8]
mov ecx, dword [ecx + 0xc8]
lea edx, [esp + 0x3c]
push edx
lea edx, [esp + 0x44]
movzx eax, ax
push edx
push eax
mov dword [esp + 0x74], 0
call fcn.00413660
lea ecx, [esp + 0x40]
mov ebx, eax
mov dword [esp + 0x68], 0xffffffff
call fcn.005e5c20
test ebx, ebx
je 0x5bb2a6
mov eax, dword [esp + 0x3c]
mov ebx, 1
cmp eax, ebx
jne 0x5bb2a6
push str.EffectChance
lea ecx, [esp + 0x4c]
call fcn.005e5a90
mov al, byte [ebp + 9]
mov ecx, dword [0x7a3a28]
mov ecx, dword [ecx + 0xb8]
mov ecx, dword [ecx + 0xcc]
lea edx, [esp + 0x18]
push edx
lea edx, [esp + 0x4c]
movzx eax, al
push edx
push eax
mov dword [esp + 0x74], ebx
call fcn.00413660
or ebx, 0xffffffff
lea ecx, [esp + 0x48]
mov dword [esp + 0x68], ebx
call fcn.005e5c20
push str.DurationRounds
lea ecx, [esp + 0x54]
call fcn.005e5a90
mov al, byte [ebp + 9]
mov ecx, dword [0x7a3a28]
mov ecx, dword [ecx + 0xb8]
mov ecx, dword [ecx + 0xcc]
lea edx, [esp + 0x28]
push edx
lea edx, [esp + 0x54]
movzx eax, al
push edx
push eax
mov dword [esp + 0x74], 2
call fcn.00413660
lea ecx, [esp + 0x50]
mov dword [esp + 0x68], ebx
call fcn.005e5c20
push str.Value
lea ecx, [esp + 0x5c]
call fcn.005e5a90
mov ax, word [ebp + 6]
mov ecx, dword [0x7a3a28]
mov ecx, dword [ecx + 0xb8]
lea edx, [esp + 0x2c]
push edx
lea edx, [esp + 0x5c]
movzx eax, ax
push edx
push eax
push 0x19
mov dword [esp + 0x78], 3
call fcn.005c49a0
mov ecx, eax
call fcn.00413660
mov ebx, eax
neg ebx
sbb bl, bl
lea ecx, [esp + 0x58]
inc bl
mov dword [esp + 0x68], 0xffffffff
call fcn.005e5c20
test bl, bl
je 0x5bb30d
mov dword [esp + 0x2c], 0x14
test edi, edi
mov eax, dword [esp + 0x18]
je 0x5bb382
test eax, eax
jle 0x5bb3d6
mov eax, dword [esp + 0x28]
test eax, eax
jle 0x5bb3d6
call fcn.006fc447
cdq
mov ecx, 0x64
idiv ecx
cmp edx, dword [esp + 0x18]
jge 0x5bb3d6
test esi, esi
je 0x5bb36e
mov edx, dword [esp + 0x24]
mov eax, dword [edx + 4]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x14]
push 1
push 0
push 1
push eax
mov eax, dword [esp + 0x20]
push eax
push ecx
mov ecx, dword [esp + 0x4c]
push edx
call fcn.005b92b0
test al, al
jne 0x5bb3d6
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x70]
push eax
push ecx
mov ecx, dword [esp + 0x2c]
call dword [esp + 0x24]
jmp 0x5bb3d6
cmp eax, 0x64
je 0x5bb39a
call fcn.006fc447
cdq
mov ecx, 0x64
idiv ecx
cmp edx, dword [esp + 0x18]
jge 0x5bb3d6
test esi, esi
je 0x5bb3c8
mov edx, dword [esp + 0x24]
mov eax, dword [edx + 4]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x14]
push 1
push 0
push 1
push eax
mov eax, dword [esp + 0x20]
push eax
push ecx
mov ecx, dword [esp + 0x4c]
push edx
call fcn.005b92b0
test al, al
jne 0x5bb3d6
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x24]
push ebp
push eax
call dword [esp + 0x28]
mov ebx, dword [esp + 0x30]
mov eax, dword [esp + 0x38]
mov ecx, dword [ebx + 0x24c]
inc eax
cmp eax, ecx
mov dword [esp + 0x38], eax
jl 0x5bb032
pop ebp
pop ebx
mov ecx, dword [esp + 0x58]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x5c
ret 0xc