Function at 0x45b380
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x556b18
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x58829c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
movss dword [ebp - 0x60], xmm1
mov edi, ecx
movss xmm1, dword [edi + 0xc4]
call fcn.005395c0
movss xmm1, dword [ebp - 0x60]
mov ecx, dword [edi + 0xe8]
call fcn.0045a450
xor esi, esi
cmp dword [edi + 0x30], esi
jle 0x45b46c
lea ebx, [ebx]
mov eax, dword [edi + 0x38]
mov ecx, dword [eax + esi*4]
mov eax, dword [ecx + 0x50]
test eax, eax
je 0x45b462
cmp byte [ecx + 0x91], 0
jne 0x45b462
movss xmm2, dword [ebp - 0x60]
add eax, 4
mulss xmm2, dword [0x577b8c]
add ecx, 0x54
push eax
call fcn.00457150
test al, al
je 0x45b462
mov eax, dword [edi + 0x38]
mov eax, dword [eax + esi*4]
cmp byte [eax + 0x4c], 0
je 0x45b458
mov eax, dword [0x58d464]
push str.sm_MinigameTilePut
mov ecx, dword [eax + 0x14b90]
call fcn.00535e30
test eax, eax
je 0x45b458
mov ecx, dword [eax + 0x14]
test ecx, ecx
jg 0x45b458
inc ecx
cmp byte [0x58d45c], 0
mov dword [eax + 0x14], ecx
je 0x45b458
push 0
push ecx
mov ecx, dword [eax + 0xc]
push eax
call fcn.00533230
mov eax, dword [edi + 0x38]
mov eax, dword [eax + esi*4]
mov byte [eax + 0x4c], 0
inc esi
cmp esi, dword [edi + 0x30]
jl 0x45b3e0
mov ecx, edi
call fcn.0045d2b0
call fcn.005396e0
mov ecx, dword [edi + 0xec]
test ecx, ecx
je 0x45ba65
call fcn.0045a8f0
mov eax, dword [0x58d464]
push 0x11
mov eax, dword [eax + 0x154]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x178]
mov ebx, dword [sym.imp.msvcr120.dll_void___cdecl_operator_delete_void__]
test al, al
je 0x45b556
mov eax, dword [0x58d464]
push 0x53
mov eax, dword [eax + 0x154]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x170]
test al, al
je 0x45b556
mov eax, dword [edi + 0xec]
test eax, eax
je 0x45b4de
mov dword [eax + 0x10], 0
push ecx
mov ecx, dword [0x58d464]
lea eax, [ebp - 0x40]
push eax
mov ecx, dword [ecx + 0x1e4]
call fcn.00491920
push 0
push 0x5643b2
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x40]
push dword [ebp - 0x30]
push 0
call fcn.00405ba0
test eax, eax
jne 0x45b52e
cmp dword [ebp - 0x2c], 0x10
jb 0x45ba65
push dword [ebp - 0x40]
call dword [sym.imp.msvcr120.dll_void___cdecl_operator_delete_void__]
add esp, 4
jmp 0x45ba65
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
mov ecx, edi
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.0045ba90
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x2c], 0x10
jb 0x45b556
push dword [ebp - 0x40]
call ebx
add esp, 4
mov eax, dword [0x58d464]
push 0x11
mov eax, dword [eax + 0x154]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x178]
test al, al
je 0x45b9c0
mov eax, dword [0x58d464]
push 0x4c
mov eax, dword [eax + 0x154]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x170]
test al, al
je 0x45b9c0
mov eax, dword [edi + 0xec]
test eax, eax
je 0x45b5a3
mov dword [eax + 0x10], 0
push ecx
mov ecx, dword [0x58d464]
lea eax, [ebp - 0x58]
push eax
mov ecx, dword [ecx + 0x1e4]
call fcn.004917c0
push 0
push 0x5643b2
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x58]
push dword [ebp - 0x48]
push 0
call fcn.00405ba0
test eax, eax
jne 0x45b5ef
cmp dword [ebp - 0x44], 0x10
jb 0x45ba65
push dword [ebp - 0x58]
call ebx
add esp, 4
jmp 0x45ba65
lea esi, [edi + 0xc8]
lea eax, [ebp - 0x58]
cmp esi, eax
je 0x45b608
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00402280
sub esp, 8
mov byte [ebp - 0x5c], 0x5c
lea eax, [ebp - 0x5c]
mov ecx, esi
push eax
call fcn.0045e090
cmp eax, 0xffffffff
je 0x45b62a
inc eax
mov ecx, esi
push eax
push 0
call fcn.00401fa0
mov eax, dword [edi + 0xe8]
lea ecx, [edi + 4]
mov dword [eax + 4], 0
call fcn.0045dea0
lea ecx, [edi + 0x20]
call fcn.0045df60
cmp dword [ebp - 0x44], 0x10
lea eax, [ebp - 0x58]
push 0xffffffffffffffff
cmovae eax, dword [ebp - 0x58]
mov ecx, edi
push 0xffffffffffffffff
push eax
call fcn.0045c250
mov ecx, edi
call fcn.0045cf30
lea ebx, [edi + 0x48]
mov dword [ebp - 0x20], vtable.phVector2d.0
push ebx
lea eax, [ebp - 0x34]
mov dword [ebp - 0x1c], 0x44480000
push eax
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x18], 0x43e10000
call fcn.00457080
movss xmm1, dword [ebp - 0x2c]
xor ecx, ecx
movss xmm2, dword [ebp - 0x30]
cmp dword [edi + 0x14], ecx
jle 0x45b6c6
jmp 0x45b6a0
mov eax, dword [edi + 0x1c]
movaps xmm0, xmm2
mov eax, dword [eax + ecx*4]
inc ecx
addss xmm0, dword [eax + 8]
movss dword [eax + 8], xmm0
movaps xmm0, xmm1
addss xmm0, dword [eax + 0xc]
movss dword [eax + 0xc], xmm0
cmp ecx, dword [edi + 0x14]
jl 0x45b6a0
xor ecx, ecx
cmp dword [edi + 0x30], ecx
jle 0x45b6f6
lea ecx, [ecx]
mov eax, dword [edi + 0x38]
movaps xmm0, xmm2
mov eax, dword [eax + ecx*4]
inc ecx
addss xmm0, dword [eax + 0x58]
movss dword [eax + 0x58], xmm0
movaps xmm0, xmm1
addss xmm0, dword [eax + 0x5c]
movss dword [eax + 0x5c], xmm0
cmp ecx, dword [edi + 0x30]
jl 0x45b6d0
movaps xmm0, xmm2
lea eax, [ebp - 0x34]
addss xmm0, dword [ebx + 4]
push eax
lea eax, [ebp - 0x20]
push eax
lea ecx, [edi + 0x70]
movss dword [ebx + 4], xmm0
movaps xmm0, xmm1
addss xmm0, dword [ebx + 8]
movss dword [ebx + 8], xmm0
movss xmm0, dword [edi + 0x58]
addss xmm0, xmm2
movss dword [edi + 0x58], xmm0
movss xmm0, dword [edi + 0x5c]
addss xmm0, xmm1
movss dword [edi + 0x5c], xmm0
call fcn.00441d60
movss xmm5, dword [ebp - 0x1c]
movss xmm4, dword [ebp - 0x18]
movaps xmm2, xmm5
movss xmm3, dword [0x577514]
movaps xmm1, xmm4
movss dword [edi + 0x74], xmm5
movss dword [edi + 0x78], xmm4
movss xmm0, dword [edi + 0x64]
mulss xmm0, xmm3
subss xmm2, xmm0
movss xmm0, dword [edi + 0x68]
mulss xmm0, xmm3
subss xmm1, xmm0
movss dword [edi + 0x80], xmm2
movss dword [edi + 0x84], xmm1
movaps xmm1, xmm4
movss xmm0, dword [edi + 0x68]
movss xmm2, dword [edi + 0x64]
mulss xmm0, xmm3
mulss xmm2, xmm3
subss xmm1, xmm0
addss xmm2, xmm5
movss dword [edi + 0x90], xmm1
movss dword [edi + 0x8c], xmm2
movss xmm0, dword [edi + 0x68]
movss xmm1, dword [edi + 0x64]
mulss xmm0, xmm3
mulss xmm1, xmm3
addss xmm0, xmm4
addss xmm1, xmm5
movss dword [edi + 0x9c], xmm0
movss dword [edi + 0x98], xmm1
movss xmm0, dword [edi + 0x64]
mulss xmm0, xmm3
subss xmm5, xmm0
movss xmm0, dword [edi + 0x68]
mulss xmm0, xmm3
addss xmm0, xmm4
movss dword [edi + 0xa4], xmm5
movss dword [edi + 0xa8], xmm0
mov ecx, dword [edi + 0xec]
mov ecx, dword [ecx + 8]
call fcn.0045a6b0
mov ecx, edi
call fcn.0045c780
movss xmm1, dword [edi + 0xc4]
call fcn.005395c0
mov dword [ebp - 0x70], vtable.phVector2d.0
mov dword [ebp - 0x6c], 0x44908000
mov dword [ebp - 0x68], 0x42ca0000
mov byte [ebp - 4], 2
lea edx, [ebp - 0x68]
mov eax, dword [0x58d464]
push edx
lea edx, [ebp - 0x6c]
push edx
mov eax, dword [eax + 0x154]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1d0]
call fcn.005396e0
xorps xmm0, xmm0
xor edx, edx
xor ecx, ecx
movdqu xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], edx
cmp dword [edi + 0x30], ecx
jle 0x45b8da
mov ebx, dword [edi + 0x38]
lea esp, [esp]
mov edx, dword [ebx + ecx*4]
cmp dword [edx + 8], 0
jle 0x45b890
mov eax, dword [edx + 8]
inc dword [ebp + eax*4 - 0x2c]
cmp dword [edx + 0xc], 0
jle 0x45b89d
mov eax, dword [edx + 0xc]
inc dword [ebp + eax*4 - 0x2c]
cmp dword [edx + 0x10], 0
jle 0x45b8aa
mov eax, dword [edx + 0x10]
inc dword [ebp + eax*4 - 0x2c]
cmp dword [edx + 0x14], 0
jle 0x45b8b7
mov eax, dword [edx + 0x14]
inc dword [ebp + eax*4 - 0x2c]
cmp dword [edx + 0x18], 0
jle 0x45b8c4
mov eax, dword [edx + 0x18]
inc dword [ebp + eax*4 - 0x2c]
cmp dword [edx + 0x1c], 0
jle 0x45b8d1
mov eax, dword [edx + 0x1c]
inc dword [ebp + eax*4 - 0x2c]
inc ecx
cmp ecx, dword [edi + 0x30]
jl 0x45b880
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x34], vtable.phVector2d.0
mov dword [ebp - 0x30], 0x42480000
mov dword [ebp - 0x2c], 0x42a00000
mov byte [ebp - 4], 3
mov eax, dword [0x58d464]
mov ecx, dword [ebp - 0x1c]
add ecx, edx
add ecx, dword [ebp - 0x20]
add ecx, dword [ebp - 0x24]
mov eax, dword [eax + 0x54]
add ecx, dword [ebp - 0x28]
mov dword [eax + 0x328], ecx
xor ecx, ecx
mov dword [ebp - 0x60], ecx
cmp dword [edi + 0x30], ecx
jle 0x45b9a0
lea ecx, [ecx]
xor ebx, ebx
mov esi, 8
mov eax, dword [edi + 0x38]
mov edx, dword [eax + ecx*4]
mov eax, dword [edx + esi]
test eax, eax
jle 0x45b98e
push ebx
push eax
push dword [edx + 0x84]
push dword [edx + 0x80]
sub esp, 0xc
mov ecx, esp
sub esp, 0xc
mov dword [ecx], vtable.phVector2d.0
mov eax, dword [edx + 0x58]
mov dword [ecx + 4], eax
mov eax, dword [edx + 0x5c]
mov dword [ecx + 8], eax
mov eax, esp
movss xmm1, dword [ebp - 0x68]
movss xmm0, dword [ebp - 0x6c]
mov dword [eax], vtable.phVector2d.0
movss dword [eax + 4], xmm0
movss dword [eax + 8], xmm1
mov eax, dword [0x58d464]
mov ecx, dword [eax + 0x14240]
mov ecx, dword [ecx + 0xc]
call fcn.0048da00
mov ecx, dword [ebp - 0x60]
add esi, 4
inc ebx
cmp esi, 0x20
jl 0x45b927
inc ecx
mov dword [ebp - 0x60], ecx
cmp ecx, dword [edi + 0x30]
jl 0x45b920
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x44], 0x10
mov dword [ebp - 0x70], vtable.phVector2d.0
jb 0x45b9c0
push dword [ebp - 0x58]
call dword [sym.imp.msvcr120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, dword [0x58d464]
push 0x4d
mov eax, dword [eax + 0x154]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x170]
test al, al
je 0x45b9e1
mov ecx, edi
call fcn.0045c540
mov eax, dword [0x58d464]
push 1
mov eax, dword [eax + 0x154]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x170]
test al, al
je 0x45ba65
mov eax, dword [0x58d464]
push 0x11
mov eax, dword [eax + 0x154]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x178]
test al, al
je 0x45ba65
mov dword [ebp - 0x20], vtable.phVector2d.0
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x18]
mov eax, dword [0x58d464]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
mov eax, dword [eax + 0x154]
push eax
mov edx, dword [eax]
call dword [edx + 0x158]
sub esp, 0xc
mov ecx, edi
mov eax, esp
mov dword [eax], vtable.phVector2d.0
movss xmm0, dword [ebp - 0x1c]
movss dword [eax + 4], xmm0
movss xmm0, dword [ebp - 0x18]
movss dword [eax + 8], xmm0
call fcn.0045c7c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00551c1f
mov esp, ebp
pop ebp
ret