Function at 0x5be990
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x668df0
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push ebx
push ebp
push esi
push edi
mov eax, dword [0x704e7c]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov ebp, ecx
push 0xc
xor esi, esi
push str.meshfilename
lea ecx, [esp + 0x2c]
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], esi
mov byte [esp + 0x30], 0
call fcn.00416f50
mov edi, dword [esp + 0x88]
mov dword [esp + 0x80], esi
lea esi, [ebp + 0x44]
push esi
lea eax, [esp + 0x28]
push eax
mov ecx, edi
call fcn.00564460
mov ebx, 0x10
mov dword [esp + 0x88], eax
mov dword [esp + 0x80], 0xffffffff
cmp dword [esp + 0x3c], ebx
jb 0x5bea24
mov ecx, dword [esp + 0x28]
push ecx
call fcn.00610458
add esp, 4
cmp dword [esp + 0x88], 0
je 0x5bf066
cmp dword [esi + 0x18], ebx
jb 0x5bea3c
mov eax, dword [esi + 4]
jmp 0x5bea3f
lea eax, [esi + 4]
push eax
call fcn.00584770
add esp, 4
test al, al
jne 0x5beaa0
push esi
mov ecx, edi
call fcn.00563dc0
push eax
call fcn.00584b50
add esp, 4
push eax
lea edx, [esp + 0x48]
push edx
call fcn.004169f0
add esp, 0xc
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
mov dword [esp + 0x8c], 1
call fcn.00417450
mov dword [esp + 0x80], 0xffffffff
cmp dword [esp + 0x58], ebx
jb 0x5beaa0
mov eax, dword [esp + 0x44]
push eax
call fcn.00610458
add esp, 4
push 0x17
mov esi, 0xf
push str.meshanimationloopenable
lea ecx, [esp + 0x2c]
mov dword [esp + 0x44], esi
mov dword [esp + 0x40], 0
mov byte [esp + 0x30], 0
call fcn.00416f50
lea ecx, [ebp + 0x20]
push ecx
lea edx, [esp + 0x28]
push edx
mov ecx, edi
mov dword [esp + 0x88], 2
call fcn.00564040
test eax, eax
sete byte [esp + 0x88]
mov dword [esp + 0x80], 0xffffffff
cmp dword [esp + 0x3c], ebx
jb 0x5beb09
mov eax, dword [esp + 0x28]
push eax
call fcn.00610458
add esp, 4
cmp byte [esp + 0x88], 0
jne 0x5bf066
push 0x16
push str.meshanimationloopcount
lea ecx, [esp + 0x2c]
mov dword [esp + 0x44], esi
mov dword [esp + 0x40], 0
mov byte [esp + 0x30], 0
call fcn.00416f50
lea esi, [ebp + 0x24]
push esi
lea ecx, [esp + 0x28]
push ecx
mov ecx, edi
mov dword [esp + 0x88], 3
call fcn.00564040
test eax, eax
sete byte [esp + 0x88]
mov dword [esp + 0x80], 0xffffffff
cmp dword [esp + 0x3c], ebx
jb 0x5beb7b
mov edx, dword [esp + 0x28]
push edx
call fcn.00610458
add esp, 4
cmp byte [esp + 0x88], 0
je 0x5beb8b
mov dword [esi], 0
push 0x17
push str.meshanimationframedelay
lea ecx, [esp + 0x2c]
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], 0
mov byte [esp + 0x30], 0
call fcn.00416f50
lea eax, [ebp + 0x28]
push eax
lea ecx, [esp + 0x28]
push ecx
mov ecx, edi
mov dword [esp + 0x88], 4
call fcn.005641a0
test eax, eax
sete byte [esp + 0x88]
or esi, 0xffffffff
mov dword [esp + 0x80], esi
cmp dword [esp + 0x3c], ebx
jb 0x5bebf2
mov edx, dword [esp + 0x28]
push edx
call fcn.00610458
add esp, 4
cmp byte [esp + 0x88], 0
jne 0x5bf066
push str.meshelementcount
lea ecx, [esp + 0x44]
call fcn.00417080
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x44]
push ecx
mov ecx, edi
mov dword [esp + 0x88], 5
call fcn.00564190
test eax, eax
sete byte [esp + 0x88]
mov dword [esp + 0x80], esi
cmp dword [esp + 0x58], ebx
jb 0x5bec4e
mov edx, dword [esp + 0x44]
push edx
call fcn.00610458
add esp, 4
cmp byte [esp + 0x88], 0
jne 0x5bf066
add ebp, 0x2c
mov ecx, ebp
call fcn.005bc520
mov eax, dword [esp + 0x1c]
push eax
mov ecx, ebp
call fcn.005bd050
mov ecx, dword [ebp + 0x10]
sub ecx, dword [ebp + 0xc]
mov eax, 0x38e38e39
imul ecx
sar edx, 4
mov ecx, edx
xor esi, esi
shr ecx, 0x1f
add ecx, edx
mov dword [esp + 0x14], esi
je 0x5bf04d
mov dword [esp + 0x20], edi
mov dword [esp + 0x18], esi
lea ebx, [esi + 6]
jmp 0x5beca6
mov esi, dword [esp + 0x14]
push esi
mov ecx, edi
call fcn.00563d00
mov ecx, dword [ebp + 0x10]
sub ecx, dword [ebp + 0xc]
mov eax, 0x38e38e39
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x80], ebx
cmp esi, eax
jb 0x5becd5
call fcn.006111cc
mov esi, dword [ebp + 0xc]
add esi, dword [esp + 0x18]
push 0xd
push str.billboardtype
lea ecx, [esp + 0x48]
mov dword [esp + 0x60], 0xf
mov dword [esp + 0x5c], 0
mov byte [esp + 0x4c], 0
call fcn.00416f50
push esi
lea ecx, [esp + 0x44]
push ecx
mov ecx, edi
mov byte [esp + 0x88], 7
call fcn.005640b0
test eax, eax
sete byte [esp + 0x88]
cmp dword [esp + 0x58], 0x10
mov byte [esp + 0x80], bl
jb 0x5bed3b
mov edx, dword [esp + 0x44]
push edx
call fcn.00610458
add esp, 4
cmp byte [esp + 0x88], 0
jne 0x5bf054
push str.blendingenable
lea ecx, [esp + 0x44]
call fcn.00417080
lea eax, [esi + 4]
push eax
lea ecx, [esp + 0x44]
push ecx
mov ecx, edi
mov byte [esp + 0x88], 8
call fcn.00564040
test eax, eax
sete byte [esp + 0x88]
cmp dword [esp + 0x58], 0x10
mov byte [esp + 0x80], bl
jb 0x5bed94
mov edx, dword [esp + 0x44]
push edx
call fcn.00610458
add esp, 4
cmp byte [esp + 0x88], 0
jne 0x5bf054
push str.blendingsrctype
lea ecx, [esp + 0x44]
call fcn.00417080
lea eax, [esi + 8]
push eax
lea ecx, [esp + 0x44]
push ecx
mov ecx, edi
mov byte [esp + 0x88], 9
call fcn.005640b0
test eax, eax
lea ecx, [esp + 0x40]
sete byte [esp + 0x88]
mov byte [esp + 0x80], bl
call fcn.0050f430
cmp byte [esp + 0x88], 0
jne 0x5bf054
push str.blendingdesttype
lea ecx, [esp + 0x44]
call fcn.00417080
lea edx, [esi + 9]
push edx
lea eax, [esp + 0x44]
push eax
mov ecx, edi
mov byte [esp + 0x88], 0xa
call fcn.005640b0
test eax, eax
lea ecx, [esp + 0x40]
sete byte [esp + 0x88]
mov byte [esp + 0x80], bl
call fcn.0050f430
cmp byte [esp + 0x88], 0
jne 0x5bf054
push str.textureanimationloopenable
lea ecx, [esp + 0x44]
call fcn.00417080
lea ecx, [esi + 0x24]
push ecx
lea edx, [esp + 0x44]
push edx
mov ecx, edi
mov byte [esp + 0x88], 0xb
call fcn.00564040
test eax, eax
lea ecx, [esp + 0x40]
sete byte [esp + 0x88]
mov byte [esp + 0x80], bl
call fcn.0050f430
cmp byte [esp + 0x88], 0
jne 0x5bf054
push str.textureanimationframedelay
lea ecx, [esp + 0x44]
call fcn.00417080
lea eax, [esi + 0x28]
push eax
lea ecx, [esp + 0x44]
push ecx
mov ecx, edi
mov byte [esp + 0x88], 0xc
call fcn.005641a0
test eax, eax
lea ecx, [esp + 0x40]
sete byte [esp + 0x88]
mov byte [esp + 0x80], bl
call fcn.0050f430
cmp byte [esp + 0x88], 0
jne 0x5bf054
push str.textureanimationstartframe
lea ecx, [esp + 0x44]
call fcn.00417080
lea eax, [esi + 0x2c]
push eax
lea edx, [esp + 0x44]
push edx
mov ecx, edi
mov byte [esp + 0x88], 0xd
call fcn.00564190
test eax, eax
lea ecx, [esp + 0x40]
sete byte [esp + 0x88]
mov byte [esp + 0x80], bl
call fcn.0050f430
cmp byte [esp + 0x88], 0
je 0x5bef2b
mov dword [esi + 0x2c], 0
push str.coloroperationtype
lea ecx, [esp + 0x44]
call fcn.00417080
lea eax, [esi + 0x10]
push eax
lea eax, [esp + 0x44]
push eax
mov ecx, edi
mov byte [esp + 0x88], 0xe
call fcn.005640b0
test eax, eax
lea ecx, [esp + 0x40]
sete byte [esp + 0x88]
mov byte [esp + 0x80], bl
call fcn.0050f430
cmp byte [esp + 0x88], 0
je 0x5bef79
mov byte [esi + 0x10], 4
push str.colorfactor
lea ecx, [esp + 0x60]
call fcn.00417080
lea eax, [esi + 0x14]
push eax
lea ecx, [esp + 0x60]
push ecx
mov ecx, edi
mov byte [esp + 0x88], 0xf
call fcn.00564380
test eax, eax
lea ecx, [esp + 0x5c]
sete byte [esp + 0x88]
mov byte [esp + 0x80], bl
call fcn.0050f430
cmp byte [esp + 0x88], 0
je 0x5beff1
fld1
fst dword [esp + 0x24]
mov edx, dword [esp + 0x24]
fst dword [esp + 0x28]
mov eax, dword [esp + 0x28]
fst dword [esp + 0x2c]
mov ecx, dword [esp + 0x2c]
fstp dword [esp + 0x30]
mov dword [esi + 0x14], edx
mov edx, dword [esp + 0x30]
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x20], edx
add esi, 0x30
push esi
push str.timeeventalpha
push edi
call fcn.005cca80
add esp, 0xc
test eax, eax
jne 0x5bf00e
mov ecx, esi
call fcn.005baa40
mov ecx, edi
mov dword [esp + 0x80], 0xffffffff
call fcn.00563c00
mov ecx, dword [ebp + 0x10]
sub ecx, dword [ebp + 0xc]
mov esi, dword [esp + 0x14]
add dword [esp + 0x18], 0x48
mov eax, 0x38e38e39
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
inc esi
add eax, edx
mov dword [esp + 0x14], esi
cmp esi, eax
jb 0x5beca2
mov eax, 1
jmp 0x5bf068
mov ecx, edi
mov dword [esp + 0x80], 0xffffffff
call fcn.00563c00
xor eax, eax
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x70
ret 4