Function at 0x4cd678
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
test esi, esi
jge 0x4cd7bf
push 0
mov ecx, dword [ebx + 0x4c]
mov dl, 1
mov eax, dword [0x4bb85c]
call fcn.004c5374
mov dword [ebp - 8], eax
fild dword [ebx + 0x38]
fdiv dword [ebx + 0x1c]
fmul dword [0x4cd96c]
call fcn.00403460
push eax
fild dword [ebx + 0x34]
fdiv dword [ebx + 0x18]
fmul dword [0x4cd96c]
call fcn.00403460
lea ecx, [ebp - 0x38]
pop edx
call fcn.0040a914
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 8]
call fcn.004bd1ec
imul eax, dword [ebx + 0x34], 0x64
mov dword [ebp - 0x3c], eax
fild dword [ebp - 0x3c]
mov eax, dword [ebp - 8]
fild dword [eax + 0xc8]
fdivp st(1)
add esp, 0xfffffffc
fstp dword [esp]
wait
imul eax, dword [ebx + 0x38], 0x64
mov dword [ebp - 0x40], eax
fild dword [ebp - 0x40]
mov eax, dword [ebp - 8]
fild dword [eax + 0xcc]
fdivp st(1)
add esp, 0xfffffffc
fstp dword [esp]
wait
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
call fcn.004840ec
mov eax, dword [ebp - 8]
mov edx, dword [ebx + 0x2c]
mov dword [eax + 0x210], edx
mov edx, dword [ebx + 0x30]
mov dword [eax + 0x214], edx
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.004c55c4
mov eax, dword [ebp - 8]
mov dword [eax + 0x218], 0xff800000
mov dword [eax + 0x21c], 0xc1cfffff
mov eax, dword [ebp - 8]
xor edx, edx
mov dword [eax + 0x228], edx
mov dword [eax + 0x22c], edx
mov eax, dword [ebp - 8]
mov edx, dword [ebx + 8]
mov edx, dword [edx + 0x1c]
mov ecx, dword [edx + 0x10]
mov dword [eax + 0x230], ecx
mov ecx, dword [edx + 0x14]
mov dword [eax + 0x234], ecx
mov eax, dword [ebp - 8]
xor edx, edx
mov dword [eax + 0x220], edx
mov dword [eax + 0x224], edx
mov eax, dword [ebx + 8]
mov eax, dword [eax + 8]
xor edx, edx
call fcn.004ca59c
mov edi, eax
test edi, edi
je 0x4cd960
mov eax, dword [ebx + 8]
mov edx, dword [eax + 0x18]
mov ecx, edi
mov eax, dword [ebp - 8]
call fcn.004c5964
jmp 0x4cd960
mov eax, dword [ebx + 8]
cmp dword [eax + 0x20], 0
jg 0x4cd7dc
mov ecx, 0x15b
mov edx, 0x4cd978
mov eax, 0x4cd9c4
call fcn.00404ccc
mov edi, dword [ebx + 8]
cmp esi, dword [edi + 0x20]
jl 0x4cd7f1
mov eax, dword [ebx + 8]
mov ecx, dword [eax + 0x20]
mov eax, esi
cdq
idiv ecx
mov esi, edx
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [edi + 8]
mov edx, esi
call fcn.004ca59c
mov edi, eax
test edi, edi
je 0x4cd960
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebx + 0x4c]
mov dl, 1
mov eax, dword [0x4bb85c]
call fcn.004c5374
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4cd949
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov dword [eax + 0x20c], esi
fild dword [ebx + 0x38]
fdiv dword [ebx + 0x1c]
fmul dword [0x4cd96c]
call fcn.00403460
push eax
fild dword [ebx + 0x34]
fdiv dword [ebx + 0x18]
fmul dword [0x4cd96c]
call fcn.00403460
lea ecx, [ebp - 0x38]
pop edx
call fcn.0040a914
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 8]
call fcn.004bd1ec
imul eax, dword [ebx + 0x34], 0x64
mov dword [ebp - 0x3c], eax
fild dword [ebp - 0x3c]
mov eax, dword [ebp - 8]
fild dword [eax + 0xc8]
fdivp st(1)
add esp, 0xfffffffc
fstp dword [esp]
wait
imul eax, dword [ebx + 0x38], 0x64
mov dword [ebp - 0x40], eax
fild dword [ebp - 0x40]
mov eax, dword [ebp - 8]
fild dword [eax + 0xcc]
fdivp st(1)
add esp, 0xfffffffc
fstp dword [esp]
wait
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
call fcn.004840ec
mov eax, dword [ebp - 8]
mov edx, dword [ebx + 0x2c]
mov dword [eax + 0x210], edx
mov edx, dword [ebx + 0x30]
mov dword [eax + 0x214], edx
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.004c55c4
mov eax, esi
add eax, eax
lea eax, [eax + eax*2]
mov edx, dword [ebx + 8]
mov edx, dword [edx + 0x1c]
push esi
push edi
lea esi, [edx + eax*8]
lea edi, [ebp - 0x30]
mov ecx, 0xa
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
push esi
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push 0
mov eax, dword [ebx + 8]
mov edx, dword [eax + 0x18]
mov ecx, edi
mov eax, dword [ebp - 8]
call fcn.004c5b14
mov dl, 1
mov eax, dword [0x481a64]
call fcn.00403f60
mov edi, eax
mov eax, dword [ebp - 8]
mov dword [eax + 0x238], edi
lea eax, [edi + 0xc]
push eax
lea eax, [edi + 0x20]
push eax
lea eax, [edi + 0x10]
push eax
lea ecx, [edi + 8]
mov eax, dword [ebx + 8]
mov edx, esi
call fcn.004cbb64
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4cd960
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret