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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46c900
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x48948c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x64], ecx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x64]
add ecx, 0x30
call fcn.004232c0
mov ecx, dword [eax]
mov dword [ebp - 0x4c], ecx
mov edx, dword [eax + 4]
mov dword [ebp - 0x48], edx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x44], ecx
mov edx, dword [eax + 0xc]
mov dword [ebp - 0x40], edx
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x3c], ecx
mov edx, dword [eax + 0x14]
mov dword [ebp - 0x38], edx
mov byte [ebp - 4], 1
push ecx
fld dword [ebp + 0x14]
fstp dword [esp]
push ecx
fld dword [ebp + 0x10]
fstp dword [esp]
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x64]
add ecx, 4
call fcn.00421ed0
lea edx, [ebp - 0x60]
push edx
lea ecx, [ebp - 0x4c]
call fcn.00421f90
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x68]
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [eax]
push edx
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x64]
add ecx, 0xc
call fcn.00421c50
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x60]
call fcn.00418fb0
lea ecx, [ebp - 0x34]
call fcn.00421d30
mov dword [ebp - 0x6c], eax
fild dword [ebp - 0x6c]
fdiv qword [0x47eab0]
fstp dword [ebp - 0x54]
lea ecx, [ebp - 0x4c]
call fcn.00418fc0
mov ecx, dword [ebp - 0x64]
fsubr dword [ecx + 4]
fstp dword [ebp - 0x58]
lea ecx, [ebp - 0x4c]
call fcn.00418fd0
mov edx, dword [ebp - 0x64]
fsubr dword [edx + 8]
fstp dword [ebp - 0x28]
fld dword [ebp - 0x58]
fmul dword [ebp - 0x58]
fld dword [ebp - 0x28]
fmul dword [ebp - 0x28]
faddp st(1)
fstp dword [ebp - 0x70]
fld dword [ebp - 0x70]
push ecx
fstp dword [esp]
call fcn.00421c00
add esp, 4
fstp dword [ebp - 0x50]
mov eax, dword [ebp - 0x64]
fld dword [eax + 0x28]
fstp dword [ebp - 0x2c]
fld dword [ebp - 0x58]
fdiv dword [ebp - 0x54]
mov ecx, dword [ebp - 0x64]
fstp dword [ecx + 0x20]
fld dword [ebp - 0x28]
fdiv dword [ebp - 0x54]
mov edx, dword [ebp - 0x64]
fstp dword [edx + 0x24]
fld dword [ebp - 0x50]
fdiv dword [ebp - 0x54]
mov eax, dword [ebp - 0x64]
fstp dword [eax + 0x28]
mov ecx, dword [ebp - 0x64]
fld dword [ecx + 0x28]
fsub dword [ebp - 0x2c]
fdiv dword [ebp - 0x54]
mov edx, dword [ebp - 0x64]
fstp dword [edx + 0x2c]
mov eax, dword [ebp - 0x64]
push ecx
fld dword [eax + 8]
fstp dword [esp]
mov ecx, dword [ebp - 0x64]
push ecx
fld dword [ecx + 4]
fstp dword [esp]
mov edx, dword [ebp - 0x64]
mov eax, dword [edx + 0x10]
push eax
mov ecx, dword [edx + 0xc]
push ecx
lea ecx, [ebp - 0x24]
call fcn.00421de0
mov byte [ebp - 4], 3
lea edx, [ebp - 0x24]
push edx
mov ecx, dword [ebp - 0x64]
add ecx, 0x30
call fcn.004232f0
mov eax, dword [ebp - 0x64]
fld dword [eax + 0x2c]
fcomp qword [0x47ea70]
fnstsw ax
test ah, 0x41
jne 0x4223aa
mov ecx, dword [ebp - 0x64]
mov dword [ecx + 0x4c], 1
jmp 0x4223d3
mov edx, dword [ebp - 0x64]
fld dword [edx + 0x2c]
fcomp qword [0x47ea70]
fnstsw ax
test ah, 5
jp 0x4223c9
mov eax, dword [ebp - 0x64]
mov dword [eax + 0x4c], 2
jmp 0x4223d3
mov ecx, dword [ebp - 0x64]
mov dword [ecx + 0x4c], 3
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24]
call fcn.00421e50
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
call fcn.00418fb0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4c]
call fcn.00421e50
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00418fb0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0x10