Function at 0x4ba530
Capabilities:
Check for peb ntglobalflag flag
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4f6e6a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x64
mov eax, dword [0x500560]
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov ecx, dword [eax]
push ebx
push esi
cmp ecx, 1
push edi
jg 0x4ba59f
mov dword [esp + 0x1c], 0x66666666
mov dword [esp + 0x20], 0x3fd66666
jmp 0x4ba5af
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0x3fd00000
mov edi, dword [ebp + 0x2c]
mov ecx, dword [ebp + 0x28]
mov edx, dword [ebp + 0x24]
mov eax, dword [ebp + 0x20]
mov esi, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x10]
push edi
push ecx
mov ecx, dword [ebp + 0xc]
push edx
mov edx, dword [ebp + 8]
push eax
push esi
push ebx
push ecx
push edx
call fcn.0041ae70
fstp qword [esp + 0x34]
mov eax, dword [0x5006f4]
add esp, 0x20
fld qword [esp + 0x1c]
fmul qword [eax]
cmp dword [ebp + 0x38], 2
fld st(0)
fmul qword [0x504e20]
fadd qword [esp + 0x14]
fstp qword [esp + 0x24]
fmul qword [0x507458]
fild dword [ebp + 0x38]
fdivr qword [esp + 0x24]
fsub st(1)
fstp qword [esp + 0x34]
jl 0x4ba621
fstp st(0)
fld qword [esp + 0x34]
fmul qword [0x502630]
fstp qword [esp + 0x2c]
jmp 0x4ba633
fld qword [esp + 0x24]
fsub st(1)
fmul qword [0x502630]
fstp qword [esp + 0x2c]
fstp st(0)
mov ecx, dword [ebp + 0x28]
mov edx, dword [ebp + 0x24]
mov eax, dword [ebp + 0x20]
push edi
push ecx
mov ecx, dword [ebp + 0xc]
push edx
mov edx, dword [ebp + 8]
push eax
push esi
push ebx
push ecx
push edx
call fcn.0041ab80
fstp qword [esp + 0x44]
mov edx, dword [0x5006f4]
add esp, 0x20
fld qword [esp + 0x1c]
fmul qword [edx]
mov edi, dword [esp + 0x28]
lea eax, [esp + 0x48]
lea ecx, [esp + 0x40]
push eax
fmul qword [0x507450]
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
sub esp, 8
fstp qword [esp]
push edi
push eax
push esi
push ebx
push ecx
push edx
call fcn.0041c3b0
mov eax, dword [0x5006f4]
add esp, 0x28
fld qword [esp + 0x1c]
fmul qword [eax]
fmul qword [0x504e20]
fcomp qword [esp + 0x14]
fnstsw ax
test ah, 1
jne 0x4ba6ba
mov dword [esp + 0xc], 4
jmp 0x4ba6c8
mov ecx, dword [ebp + 0x38]
lea edx, [ecx*4 + 3]
mov dword [esp + 0xc], edx
push 0x70
call fcn.004a021c
mov esi, eax
add esp, 4
mov dword [esp + 0x10], esi
xor ebx, ebx
cmp esi, ebx
mov dword [esp + 0x78], ebx
je 0x4ba6f2
mov ecx, esi
call dword [0x5000d8]
mov dword [esi], 0x505230
jmp 0x4ba6f4
xor esi, esi
mov eax, dword [esp + 0xc]
mov dword [esp + 0x78], 0xffffffff
lea eax, [eax + eax*2 + 3]
shl eax, 3
push eax
call fcn.004a021c
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x6c], eax
mov dword [esi + 0x68], ecx
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
mov dword [eax], edx
mov dword [eax + 4], ecx
mov edx, dword [esi + 0x6c]
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x50]
mov dword [edx + 8], eax
add esp, 4
fld qword [esp + 0x1c]
mov dword [edx + 0xc], ecx
mov edx, dword [esi + 0x6c]
mov ecx, dword [ebp + 8]
mov dword [edx + 0x10], ebx
mov dword [edx + 0x14], ebx
mov eax, dword [esi + 0x6c]
mov edx, dword [ebp + 0xc]
mov dword [eax + 0x18], ecx
mov ecx, dword [ebp + 0x10]
mov dword [eax + 0x1c], edx
mov eax, dword [esi + 0x6c]
mov edx, dword [ebp + 0x14]
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], edx
mov eax, dword [esi + 0x6c]
mov dword [eax + 0x28], ebx
mov dword [eax + 0x2c], ebx
mov ecx, dword [0x5006f4]
fmul qword [ecx]
fld st(0)
fmul qword [0x504e20]
fcomp qword [esp + 0x14]
fnstsw ax
test ah, 1
jne 0x4baa2b
fstp st(0)
fld qword [esp + 0x1c]
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
fmul qword [ecx]
lea edx, [esp + 0x60]
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x58]
push edx
fmul qword [0x505088]
mov edx, dword [ebp + 0x2c]
push eax
mov eax, dword [ebp + 0x28]
sub esp, 8
fstp qword [esp]
push edi
push ecx
mov ecx, dword [ebp + 0x24]
push edx
mov edx, dword [ebp + 0x20]
push eax
push ecx
push edx
call fcn.0041c3b0
mov eax, dword [esi + 0x6c]
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x84]
mov dword [eax + 0x18], ecx
fld qword [esp + 0x44]
mov dword [eax + 0x1c], edx
mov eax, dword [esi + 0x6c]
mov ecx, dword [esp + 0x88]
mov edx, dword [esp + 0x8c]
mov dword [eax + 0x20], ecx
lea ecx, [esp + 0x70]
push ecx
mov dword [eax + 0x24], edx
mov eax, dword [esi + 0x6c]
lea edx, [esp + 0x6c]
mov dword [eax + 0x28], ebx
push edx
mov dword [eax + 0x2c], ebx
mov eax, dword [0x5006f4]
fmul qword [eax]
fmul qword [0x507448]
fst qword [esp + 0x44]
fstp qword [esp + 0x70]
fld qword [esp + 0x4c]
fmul qword [eax]
mov edx, dword [esp + 0x48]
fmul qword [0x507440]
fstp qword [esp + 0x78]
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x78]
push eax
mov eax, dword [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x5c]
push edx
mov edx, dword [esp + 0xa0]
push eax
mov eax, dword [esp + 0xa0]
push edi
push ecx
mov ecx, dword [esp + 0xa4]
push edx
mov edx, dword [esp + 0xa4]
push eax
push ecx
push edx
call dword [0x4ff380]
mov eax, dword [esi + 0x6c]
mov ecx, dword [esp + 0x98]
mov edx, dword [esp + 0x9c]
add esp, 0x58
mov dword [eax + 0x30], ecx
mov dword [eax + 0x34], edx
mov eax, dword [esi + 0x6c]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
mov dword [eax + 0x38], ecx
lea ecx, [esp + 0x48]
fld qword [esp + 0x1c]
mov dword [eax + 0x3c], edx
mov eax, dword [esi + 0x6c]
lea edx, [esp + 0x40]
push ecx
mov dword [eax + 0x40], ebx
push edx
mov dword [eax + 0x44], ebx
mov eax, dword [0x5006f4]
fmul qword [eax]
fmul qword [0x507438]
fadd qword [esp + 0x1c]
fst qword [esp + 0x1c]
fstp qword [esp + 0x48]
fld qword [esp + 0x24]
fmul qword [eax]
mov edx, dword [esp + 0x20]
fmul qword [0x507430]
fstp qword [esp + 0x50]
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x50]
push eax
mov eax, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x34]
push edx
mov edx, dword [esp + 0x78]
push eax
mov eax, dword [esp + 0x78]
push edi
push ecx
mov ecx, dword [esp + 0x7c]
push edx
mov edx, dword [esp + 0x7c]
push eax
push ecx
push edx
call dword [0x4ff380]
mov eax, dword [esi + 0x6c]
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x74]
mov dword [eax + 0x48], ecx
fld qword [esp + 0x4c]
mov dword [eax + 0x4c], edx
mov eax, dword [esi + 0x6c]
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x7c]
mov dword [eax + 0x50], ecx
mov dword [eax + 0x54], edx
mov eax, dword [esi + 0x6c]
lea edx, [esp + 0x78]
mov dword [eax + 0x58], ebx
push edx
mov dword [eax + 0x5c], ebx
mov ecx, dword [0x5006f4]
lea eax, [esp + 0x74]
fmul qword [ecx]
push eax
mov eax, dword [esp + 0x5c]
push ebx
push ebx
fmul qword [0x507448]
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
fadd qword [esp + 0x54]
fstp qword [esp + 0x80]
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x80]
push ecx
mov ecx, dword [esp + 0xa8]
push edx
mov edx, dword [esp + 0xa8]
push edi
push eax
push ecx
mov eax, dword [esp + 0xb0]
mov ecx, dword [esp + 0xac]
push edx
push eax
push ecx
call dword [0x4ff380]
mov edx, dword [esi + 0x6c]
mov eax, dword [esp + 0xa0]
mov ecx, dword [esp + 0xa4]
add esp, 0x60
mov dword [edx + 0x60], eax
mov dword [edx + 0x64], ecx
mov edx, dword [esi + 0x6c]
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
mov dword [edx + 0x68], eax
mov eax, esi
mov dword [edx + 0x6c], ecx
mov edx, dword [esi + 0x6c]
mov dword [edx + 0x70], ebx
mov dword [edx + 0x74], ebx
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
fmul qword [0x505088]
mov ecx, dword [ebp + 0x38]
mov eax, 1
cmp ecx, ebx
mov dword [esp + 0xc], eax
fsubr qword [esp + 0x2c]
fstp qword [esp + 0x14]
jle 0x4bacea
mov eax, ecx
mov edi, 0x18
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x40], ecx
lea eax, [esp + 0x48]
lea ecx, [esp + 0x40]
push eax
mov eax, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x30]
push ebx
push ebx
mov dword [esp + 0x54], edx
push edx
mov edx, dword [esp + 0x38]
push eax
mov eax, dword [ebp + 0x14]
push ecx
mov ecx, dword [ebp + 0x10]
push edx
mov edx, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push ecx
push edx
push eax
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
call dword [0x4ff380]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esi + 0x6c]
mov eax, dword [esp + 0x74]
inc ecx
add edi, 0x18
mov dword [esp + 0x3c], ecx
mov ecx, edi
add ecx, edx
mov edx, dword [esp + 0x70]
mov dword [ecx], edx
mov dword [ecx + 4], eax
mov ecx, dword [esi + 0x6c]
fld qword [esp + 0x78]
fstp qword [edi + ecx + 8]
mov edx, dword [esi + 0x6c]
lea ecx, [esp + 0x70]
fld qword [esp + 0x4c]
mov dword [edi + edx + 0x10], ebx
mov dword [edi + edx + 0x14], ebx
mov eax, dword [0x5006f4]
fmul qword [eax]
fmul qword [0x507448]
fadd qword [esp + 0x44]
fst qword [esp + 0x44]
fstp qword [esp + 0x70]
fld qword [esp + 0x4c]
fmul qword [eax]
lea eax, [esp + 0x78]
push eax
push ecx
fmul qword [0x507440]
mov ecx, dword [esp + 0x50]
fstp qword [esp + 0x80]
mov edx, dword [esp + 0x84]
mov eax, dword [esp + 0x80]
push edx
mov edx, dword [esp + 0x50]
push eax
mov eax, dword [esp + 0x68]
push ecx
mov ecx, dword [esp + 0x68]
push edx
mov edx, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 0xc]
push edx
mov edx, dword [ebp + 8]
push eax
push ecx
push edx
call dword [0x4ff380]
mov eax, dword [esp + 0x6c]
mov ecx, dword [esi + 0x6c]
add esp, 0x60
mov edx, dword [esp + 0x44]
inc eax
add edi, 0x18
mov dword [esp + 0xc], eax
mov eax, edi
add eax, ecx
mov ecx, dword [esp + 0x40]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov eax, dword [esi + 0x6c]
fld qword [esp + 0x48]
lea edx, [esp + 0x48]
fstp qword [edi + eax + 8]
mov ecx, dword [esi + 0x6c]
push edx
fld qword [esp + 0x20]
mov dword [edi + ecx + 0x10], ebx
mov dword [edi + ecx + 0x14], ebx
mov eax, dword [0x5006f4]
fmul qword [eax]
fmul qword [0x507438]
fadd qword [esp + 0x18]
fst qword [esp + 0x18]
fstp qword [esp + 0x44]
fld qword [esp + 0x20]
fmul qword [eax]
lea eax, [esp + 0x44]
push eax
mov eax, dword [esp + 0x20]
fmul qword [0x507430]
fstp qword [esp + 0x50]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
push ecx
mov ecx, dword [esp + 0x20]
push edx
mov edx, dword [esp + 0x38]
push eax
mov eax, dword [esp + 0x38]
push ecx
mov ecx, dword [ebp + 0x14]
push edx
mov edx, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
push edx
push eax
push ecx
call dword [0x4ff380]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esi + 0x6c]
add edi, 0x18
inc eax
mov edx, edi
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x70]
add edx, ecx
mov ecx, dword [esp + 0x74]
mov dword [edx], eax
mov dword [edx + 4], ecx
mov edx, dword [esi + 0x6c]
fld qword [esp + 0x78]
fstp qword [edi + edx + 8]
mov eax, dword [esi + 0x6c]
lea edx, [esp + 0x78]
fld qword [esp + 0x4c]
mov dword [edi + eax + 0x10], ebx
mov dword [edi + eax + 0x14], ebx
mov ecx, dword [0x5006f4]
fmul qword [ecx]
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
fmul qword [0x507448]
fadd qword [esp + 0x44]
fst qword [esp + 0x44]
fstp qword [esp + 0x70]
mov ecx, dword [esp + 0x48]
lea eax, [esp + 0x70]
push edx
mov edx, dword [esp + 0x48]
push eax
mov eax, dword [esp + 0x60]
push ebx
push ebx
push ecx
mov ecx, dword [esp + 0x68]
push edx
mov edx, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 0xc]
push edx
mov edx, dword [ebp + 8]
push eax
push ecx
push edx
call dword [0x4ff380]
mov eax, dword [esp + 0x6c]
mov ecx, dword [esi + 0x6c]
add esp, 0x60
mov edx, dword [esp + 0x44]
inc eax
add edi, 0x18
mov dword [esp + 0xc], eax
mov eax, edi
add eax, ecx
mov ecx, dword [esp + 0x40]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov eax, dword [esi + 0x6c]
fld qword [esp + 0x48]
fstp qword [edi + eax + 8]
fld qword [esp + 0x14]
mov ecx, dword [esi + 0x6c]
mov eax, dword [esp + 0x10]
fadd qword [esp + 0x34]
mov dword [edi + ecx + 0x10], ebx
dec eax
mov dword [esp + 0x10], eax
mov dword [edi + ecx + 0x14], ebx
fstp qword [esp + 0x14]
jne 0x4baa58
mov eax, dword [esp + 0xc]
mov ecx, dword [esi + 0x6c]
inc eax
mov dword [esp + 0xc], eax
mov edi, dword [ebp + 0x24]
lea eax, [eax + eax*2]
shl eax, 3
mov edx, eax
fld qword [ebp + 0x28]
add edx, ecx
mov ecx, dword [ebp + 0x20]
mov dword [edx], ecx
mov dword [edx + 4], edi
mov edx, dword [esi + 0x6c]
fstp qword [eax + edx + 8]
mov ecx, dword [esi + 0x6c]
lea edx, [esp + 0x48]
fld qword [esp + 0x1c]
mov dword [eax + ecx + 0x10], ebx
push edx
mov edx, dword [esp + 0x2c]
mov dword [eax + ecx + 0x14], ebx
mov ecx, dword [0x5006f4]
lea eax, [esp + 0x44]
fmul qword [ecx]
mov ecx, dword [ebp + 0x2c]
push eax
mov eax, dword [esp + 0x2c]
sub esp, 8
fmul qword [0x505088]
fstp qword [esp]
push edx
mov edx, dword [ebp + 0x28]
push eax
push ecx
mov ecx, dword [ebp + 0x20]
mov eax, edi
push edx
push eax
push ecx
call fcn.0041c3b0
mov eax, dword [esp + 0x34]
mov ecx, dword [esi + 0x6c]
mov edi, dword [esp + 0x6c]
add esp, 0x28
lea eax, [eax + eax*2 + 3]
shl eax, 3
mov edx, eax
add edx, ecx
mov ecx, dword [esp + 0x40]
mov dword [edx], ecx
mov dword [edx + 4], edi
mov edx, dword [esi + 0x6c]
fld qword [esp + 0x48]
pop edi
fstp qword [eax + edx + 8]
mov ecx, dword [esi + 0x6c]
mov dword [eax + ecx + 0x10], ebx
mov dword [eax + ecx + 0x14], ebx
mov ecx, dword [esp + 0x6c]
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret