Function at 0x402790
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x660883
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x8a0c44]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x24], esi
mov edi, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
mov edx, dword [edi]
push eax
mov eax, dword [edx + 0x28]
mov ecx, edi
call eax
push eax
mov ecx, esi
call fcn.004061c0
lea ebx, [esi + 0x6c]
mov ecx, ebx
mov dword [esp + 0x38], 0
mov dword [esi], vtable.Composition.0
call fcn.0043c210
mov dword [ebx], vtable.TList_class_Plugin_.0
mov ecx, dword [esp + 0x40]
xor eax, eax
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], eax
mov dword [esi + 0x50], eax
lea ebp, [esi + 0x50]
mov dword [ebp + 4], eax
lea ebx, [esi + 0x58]
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov ecx, dword [ecx + 0x28]
push eax
mov byte [esp + 0x3c], 1
call fcn.00407b30
mov edx, dword [esp + 0x40]
mov ecx, dword [edx + 0x28]
mov dword [esp + 0x18], eax
call fcn.00407b70
mov ecx, dword [esp + 0x18]
push ecx
mov ecx, eax
call fcn.0043c6f0
mov edx, dword [esp + 0x40]
mov ecx, dword [edx + 0x28]
mov dword [esp + 0x44], eax
xor eax, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
test ecx, ecx
je 0x4028c2
push eax
call fcn.00407af0
test al, al
je 0x4028c2
mov eax, dword [esp + 0x44]
test eax, eax
je 0x4028c2
mov ecx, dword [eax + 0x14]
mov dword [esi + 0x64], ecx
mov edx, dword [eax + 0x18]
mov dword [esi + 0x60], edx
fld qword [eax + 0x20]
sub esp, 8
fstp qword [esp]
call fcn.0043d640
mov dword [esp + 0x24], eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x4c]
fld qword [eax + 0x28]
mov dword [esp + 0x28], edx
fstp qword [esp]
mov dword [esp + 0x34], edx
call fcn.0043d550
mov ecx, dword [esp + 0x28]
mov dword [esi + 0x5c], edx
mov edx, dword [esp + 0x24]
push ecx
push edx
mov dword [ebx], eax
call fcn.00404480
add esp, 0x10
mov dword [ebp], eax
mov dword [ebp + 4], edx
jmp 0x40297d
mov eax, dword [edi + 0x80]
mov dword [ebx], eax
mov eax, dword [edi + 0x84]
mov dword [esi + 0x5c], eax
test eax, eax
jne 0x4028fd
mov edx, dword [esp + 0x40]
mov dword [ebx], 1
mov dword [esi + 0x5c], 1
mov ecx, dword [edi + 0x18]
mov eax, dword [edx + 0x40]
push ecx
push str.___Composition__d_:_forcing_aspect_ratio_n
push eax
call fcn.00437100
add esp, 0xc
push ebx
call fcn.004044f0
mov edx, dword [edi]
mov edx, dword [edx + 0x30]
add esp, 4
lea eax, [esp + 0x1c]
push eax
mov ecx, edi
call edx
mov ecx, dword [eax + 4]
mov edx, dword [eax]
push ecx
push edx
call fcn.00404480
mov dword [ebp], eax
mov dword [ebp + 4], edx
mov eax, dword [edi + 0x94]
mov dword [esi + 0x60], eax
mov ecx, dword [esi + 0x60]
mov eax, dword [edi + 0x90]
add esp, 8
mov dword [esi + 0x64], eax
test ecx, ecx
je 0x40294a
test eax, eax
jne 0x40297d
test ecx, ecx
jne 0x402951
mov dword [esi + 0x60], 0x1e6
test eax, eax
jne 0x40295c
mov dword [esi + 0x64], 0x2d0
mov ecx, dword [esi + 0x60]
mov edx, dword [esi + 0x64]
mov eax, dword [edi + 0x18]
push ecx
mov ecx, dword [esp + 0x44]
push edx
mov edx, dword [ecx + 0x40]
push eax
push str._Composition__d_:_forcing_sz_d__d_n
push edx
call fcn.00437100
add esp, 0x14
mov eax, dword [edi]
mov edx, dword [eax + 0x48]
mov ecx, edi
call edx
or eax, edx
jne 0x4029b0
mov eax, dword [edi + 0x18]
mov ecx, dword [esp + 0x40]
mov edx, dword [ecx + 0x40]
push eax
push str._composition___d__len__0__jamming_to_one__n
push edx
call fcn.00437100
mov eax, dword [edi]
mov edx, dword [eax + 0x4c]
add esp, 0xc
push 0
push 1
mov ecx, edi
call edx
mov dword [esi + 0x4c], 0x64
mov eax, dword [edi]
mov edx, dword [eax + 0x48]
mov ecx, edi
call edx
mov ecx, dword [esi + 0x4c]
push 0
push ecx
push edx
push eax
call fcn.0063f4b0
mov ecx, dword [esi + 0x54]
push 0
push ecx
push edx
push eax
call fcn.0063f4b0
mov ecx, eax
mov eax, dword [ebp]
mov ebx, edx
cdq
push edx
push eax
push ebx
push ecx
call fcn.0063f400
lea ebx, [esi + 0x48]
mov ecx, esi
mov dword [ebx], eax
mov dword [esi + 0x68], edi
call fcn.00401b80
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x1c], eax
test ecx, ecx
je 0x402a0d
mov edx, dword [ecx]
mov eax, dword [edx + 0x18]
jmp 0x402a19
mov ecx, dword [esp + 0x40]
mov ecx, dword [ecx + 0x38]
mov edx, dword [ecx]
mov eax, dword [edx + 0x5c]
call eax
mov ecx, dword [esi + 0x30]
mov edx, dword [ecx + 0x1c]
mov ecx, dword [edx + 0x24]
lea edx, [esp + 0x14]
push edx
push ebp
push ebx
lea edx, [esi + 0x58]
push edx
mov edx, dword [esi + 0x60]
push edx
mov edx, dword [esi + 0x64]
push edx
mov edx, dword [esp + 0x34]
push edx
push eax
mov eax, dword [ecx + 0x4c]
call eax
add esp, 0x20
mov dword [esi + 0x34], eax
test eax, eax
jne 0x402c48
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x402c48
mov edx, dword [esi + 0x30]
mov eax, dword [edx + 0x1c]
mov edx, dword [eax + 0x24]
lea eax, [esp + 0x48]
push eax
push ecx
mov ecx, dword [edx + 4]
call ecx
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x50]
mov dword [esi + 0x38], edx
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], eax
mov ebx, dword [edi + 0x18]
add esp, 8
mov ecx, esi
mov dword [edi + 0x54], esi
call fcn.00401b80
push eax
push ebx
mov ebx, dword [esp + 0x48]
mov eax, dword [ebx + 0x40]
push str.___Composition__d_:__s_created_n
push eax
call fcn.00437100
mov ecx, dword [ebx + 0x28]
add esp, 0x10
test ecx, ecx
je 0x402b38
push 0
call fcn.00407af0
test al, al
je 0x402b38
mov eax, dword [esp + 0x44]
test eax, eax
je 0x402acf
mov ecx, dword [eax + 4]
mov dword [esp + 0x44], ecx
jmp 0x402ad7
mov dword [esp + 0x44], 0x6fe608
mov edx, dword [esi + 0x5c]
mov eax, dword [esi + 0x58]
push edx
push eax
call fcn.0043ced0
mov ecx, dword [esi + 0x54]
mov edx, dword [ebp]
add esp, 8
push eax
push ecx
push edx
call fcn.0043ced0
mov ecx, dword [esp + 0x34]
add esp, 8
push eax
mov eax, dword [esp + 0x34]
push eax
push ecx
call fcn.0043cf30
mov edx, dword [esi + 0x60]
add esp, 8
push eax
mov eax, dword [esi + 0x64]
push edx
push eax
call fcn.0043cf50
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x2c]
add esp, 8
push eax
mov eax, dword [ebx + 0x40]
push ecx
push edx
push str.______preset_override__d___s___s__s__s__s_n
push eax
call fcn.00437100
add esp, 0x20
cmp dword [edi + 0xbc], 0
jge 0x402c71
mov ecx, dword [edi + 0x5c]
shr ecx, 0xb
test cl, 1
je 0x402c71
mov eax, dword [edi + 0x9c]
mov ebx, dword [edi + 0x98]
test eax, eax
jg 0x402b6e
jl 0x402b6a
test ebx, ebx
jae 0x402b6e
xor ebx, ebx
jmp 0x402b90
mov ecx, dword [edi + 0xa4]
cmp eax, ecx
mov edx, dword [edi + 0xa0]
jl 0x402b90
jg 0x402b84
cmp ebx, edx
jbe 0x402b90
test ecx, ecx
jl 0x402b90
jg 0x402b8e
test edx, edx
jbe 0x402b90
mov ebx, edx
cmp dword [edi + 0xa4], 0
jg 0x402bb3
jl 0x402ba4
cmp dword [edi + 0xa0], 0
jae 0x402bb3
mov edx, dword [edi]
mov eax, dword [edx + 0x48]
mov ecx, edi
call eax
mov dword [esp + 0x44], eax
jmp 0x402bbf
mov ecx, dword [edi + 0xa0]
mov dword [esp + 0x44], ecx
mov eax, ecx
cmp eax, ebx
je 0x402c71
mov edx, dword [edi]
sub eax, ebx
mov dword [esp + 0x1c], eax
mov eax, dword [edx + 0x48]
mov ecx, edi
call eax
mov edi, dword [esp + 0x1c]
cmp edi, eax
jge 0x402c71
mov ecx, dword [ebp + 4]
mov edx, dword [ebp]
push ecx
push edx
push ebx
call fcn.004043a0
mov ecx, dword [ebp]
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 4]
push eax
push ecx
push edi
mov dword [esp + 0x38], edx
call fcn.004043a0
mov dword [esp + 0x44], edx
mov edx, dword [esi + 0x30]
mov dword [esp + 0x40], eax
mov eax, dword [edx + 0x1c]
mov ecx, dword [eax + 0x24]
lea edx, [esp + 0x40]
push edx
mov edx, dword [esp + 0x30]
lea eax, [esp + 0x38]
push eax
mov eax, dword [ecx + 0x3c]
push edx
call eax
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x64]
mov eax, dword [edx + 0x40]
push ecx
push ebx
push str.___work_space_restricted___d__d__n
push eax
call fcn.00437100
add esp, 0x34
jmp 0x402c71
mov edi, dword [edi + 0x18]
push eax
mov ecx, esi
call fcn.00401b80
mov ecx, dword [esp + 0x44]
mov edx, dword [ecx + 0x40]
push eax
push edi
push str.___Composition__d_:__s_failed___d__n
push edx
call fcn.00437100
add esp, 0x14
mov dword [esi + 0x34], 0
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 0xc