Function at 0x56c0b0
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x5ebca8
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
push ebx
push esi
push edi
mov eax, dword [0x638190]
xor eax, esp
push eax
lea eax, [esp + 0xf8]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x1c]
lea ecx, [esi + 4]
lea edx, [eax + eax + 2]
mov eax, dword [ecx + 4]
mov dword [esp + 0x28], ecx
mov ecx, dword [esi + 0x10]
cmp eax, ecx
jge 0x56c105
sub eax, edx
mov ebx, eax
add edx, ecx
jmp 0x56c10b
sub ecx, edx
mov ebx, ecx
add edx, eax
mov edi, dword [ebp + 0xc]
cmp edi, ebx
jl 0x56c226
cmp edx, edi
jl 0x56c226
lea eax, [esp + 0x54]
push eax
mov ecx, esi
call fcn.004f2ea0
fld qword [eax]
fst qword [esp + 0x64]
mov dword [esp + 0x30], 0
fld qword [eax + 8]
movzx eax, word [esi + 0x20]
fst qword [esp + 0x6c]
test al, 2
jne 0x56c151
cwde
and eax, 0xfffffffb
cmp ax, 2
jne 0x56c1b5
mov esi, dword [esi + 0x1c]
fxch st(1)
lea ecx, [esp + 0x34]
fstp qword [esp + 0x54]
push ecx
push edi
fstp qword [esp + 0x64]
lea edx, [esp + 0x5c]
push esi
push edx
call fcn.00503990
add esp, 0x10
test eax, eax
je 0x56c226
mov eax, dword [ebp + 0x14]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov dword [eax], ecx
mov ecx, dword [esp + 0x3c]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x40]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov eax, 2
mov ecx, dword [esp + 0xf8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ebx, dword [esp + 0x28]
mov eax, dword [ebx + 4]
xor ecx, ecx
cmp eax, edi
sete cl
mov eax, ecx
lea ecx, [esi + 0xc]
mov dword [esp + 0x2c], ecx
cmp dword [ecx + 4], edi
jne 0x56c1d4
or eax, 2
test eax, eax
jne 0x56c44b
mov eax, dword [esi + 0x1c]
fxch st(1)
lea edx, [esp + 0x34]
fstp qword [esp + 0x54]
push edx
push edi
fstp qword [esp + 0x64]
push eax
lea eax, [esp + 0x60]
push eax
call fcn.00503990
add esp, 0x10
test eax, eax
jne 0x56c240
fldz
fld qword [esp + 0x6c]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 1
je 0x56c6b0
fsub qword [0x5f3df0]
call fcn.005c3ce0
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
xor eax, eax
mov ecx, dword [esp + 0xf8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lea edx, [esp + 0x3c]
push edx
lea ecx, [esp + 0x38]
mov dword [esp + 0x2c], 2
call fcn.00456a80
test eax, eax
je 0x56c2e3
mov eax, dword [ebx]
cmp dword [esp + 0x34], eax
jne 0x56c27f
mov eax, dword [ebx + 4]
push eax
push edi
call fcn.004fa800
add esp, 8
test eax, eax
je 0x56c27f
mov dword [esp + 0x28], 1
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x34]
cmp ecx, dword [eax]
jne 0x56c2a6
mov eax, dword [eax + 4]
push eax
push edi
call fcn.004fa800
add esp, 8
test eax, eax
je 0x56c2a6
mov dword [esp + 0x28], 1
jmp 0x56c2ad
cmp dword [esp + 0x28], 1
jne 0x56c2e3
mov edx, dword [esp + 0x2c]
mov eax, dword [edx + 4]
mov ecx, dword [ebx + 4]
cmp ecx, eax
mov edx, dword [esp + 0x38]
jle 0x56c2d1
cmp edx, ecx
jg 0x56c2c7
cmp edx, eax
jge 0x56c2cf
mov dword [esp + 0x28], 0
cmp ecx, eax
jge 0x56c2e3
cmp edx, eax
jg 0x56c2db
cmp edx, ecx
jge 0x56c2e3
mov dword [esp + 0x28], 0
mov eax, dword [esp + 0x28]
test eax, eax
jle 0x56c42f
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x2c], ecx
lea edi, [esp + 0x34]
mov dword [esp + 0x28], eax
mov edx, dword [edi]
mov eax, dword [edi + 4]
mov dword [esp + 0x24], edx
fild dword [esp + 0x24]
mov dword [esp + 0x24], eax
lea ecx, [esp + 0x84]
fstp qword [esp + 0x54]
fild dword [esp + 0x24]
fstp qword [esp + 0x5c]
call fcn.0050ad30
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
mov edx, dword [esi]
mov edx, dword [edx + 0x28]
mov dword [esp + 0x50], eax
lea eax, [esp + 0x64]
mov dword [esp + 0x4c], ecx
push eax
mov ecx, esi
mov dword [esp + 0x104], 0
call edx
mov ebx, dword [eax + 4]
mov eax, dword [esi]
mov edx, dword [eax + 0x28]
lea ecx, [esp + 0x74]
push ecx
mov ecx, esi
call edx
mov eax, dword [eax]
mov dx, word [esi + 0x20]
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x7c], eax
mov eax, dword [esi + 0x10]
mov dword [esp + 0x48], eax
xor eax, eax
mov dword [esp + 0x80], ebx
and dx, 0xfff9
mov ebx, 1
cmp dx, bx
setne al
mov dword [esp + 0x44], ecx
mov ecx, dword [esi + 0x1c]
lea edx, [esp + 0x4c]
push eax
push ecx
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x88]
push ecx
push edx
lea ecx, [esp + 0x98]
call fcn.0050b390
mov eax, dword [edi]
cmp eax, dword [esi + 4]
jne 0x56c3c1
mov ecx, dword [edi + 4]
cmp ecx, dword [esi + 8]
je 0x56c3f2
cmp eax, dword [esi + 0xc]
jne 0x56c3ce
mov edx, dword [edi + 4]
cmp edx, dword [esi + 0x10]
je 0x56c3f2
fld qword [esp + 0x5c]
push 0
sub esp, 0x10
fstp qword [esp + 8]
lea ecx, [esp + 0x98]
fld qword [esp + 0x68]
fstp qword [esp]
call fcn.005142c0
cmp eax, ebx
jne 0x56c40b
mov eax, dword [esp + 0x2c]
mov ecx, dword [edi]
mov edx, dword [edi + 4]
add dword [esp + 0x30], ebx
mov dword [eax], ecx
mov dword [eax + 4], edx
add eax, 8
mov dword [esp + 0x2c], eax
lea ecx, [esp + 0x84]
mov dword [esp + 0x100], 0xffffffff
call fcn.0050ad90
add edi, 8
sub dword [esp + 0x28], ebx
jne 0x56c2fe
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0xf8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
fstp st(0)
mov ecx, esi
fstp st(0)
cmp eax, 1
jne 0x56c636
push 0x64
lea eax, [esp + 0x78]
push eax
call fcn.004f3350
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
mov ecx, dword [esi + 0x10]
mov ebx, dword [eax + 4]
sub edx, edi
mov dword [esp + 0x24], edx
fild dword [esp + 0x24]
mov edx, dword [esi + 8]
cmp ecx, edx
mov dword [esp + 0x2c], 0
fst qword [esp + 0x4c]
mov dword [esp + 0x44], edx
jle 0x56c4a7
fild dword [esp + 0x44]
fld qword [esp + 0x6c]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 0x41
jne 0x56c4ab
jmp 0x56c4bc
fld qword [esp + 0x6c]
cmp ecx, edx
jge 0x56c4c4
fild dword [esp + 0x44]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x56c4c4
mov dword [esp + 0x2c], 1
cmp ebx, edi
jne 0x56c537
cmp edx, ebx
jne 0x56c537
cmp dword [esp + 0x2c], 0
je 0x56c537
push 0x64
fstp st(1)
lea eax, [esp + 0x78]
fstp st(0)
push eax
mov ecx, esi
call fcn.004f33f0
fild dword [ebp + 0xc]
mov ecx, dword [eax + 4]
mov edx, dword [ebp + 0x10]
fsubr qword [esp + 0x6c]
mov dword [edx], ecx
fmul qword [esp + 0x4c]
fcomp qword [0x5f3dc8]
fnstsw ax
test ah, 5
jp 0x56c226
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx]
mov eax, dword [ebp + 0x14]
mov dword [eax], edx
mov ecx, dword [ecx + 4]
mov dword [eax + 4], ecx
mov eax, 1
mov ecx, dword [esp + 0xf8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
sub ebx, edi
mov dword [esp + 0x24], ebx
fild dword [esp + 0x24]
mov ebx, dword [ebp + 0x14]
fld st(0)
fmulp st(3)
fldz
fcom st(3)
fnstsw ax
fstp st(3)
test ah, 0x41
jne 0x56c56b
mov eax, dword [esp + 0x28]
mov edx, dword [eax]
mov dword [ebx], edx
mov eax, dword [eax + 4]
mov dword [ebx + 4], eax
mov dword [esp + 0x30], 1
mov ecx, dword [esi + 0x10]
sub ecx, edi
mov dword [esp + 0x24], ecx
fild dword [esp + 0x24]
fmulp st(1)
fcomp st(2)
fnstsw ax
fstp st(1)
test ah, 5
jp 0x56c602
mov eax, dword [esi + 0x1c]
fld qword [esp + 0x64]
lea edx, [esp + 0x34]
fstp qword [esp + 0x54]
push edx
push edi
fstp qword [esp + 0x64]
push eax
lea eax, [esp + 0x60]
push eax
call fcn.00503990
add esp, 0x10
test eax, eax
je 0x56c604
mov edi, dword [esp + 0x28]
lea ecx, [esp + 0x34]
push ecx
push edi
call fcn.00501010
fstp qword [esp + 0x54]
lea edx, [esp + 0x44]
push edx
push edi
call fcn.00501010
fcomp qword [esp + 0x5c]
add esp, 0x10
fnstsw ax
test ah, 5
jp 0x56c5e8
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ecx
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov dword [ebx + eax*8], edx
mov dword [ebx + eax*8 + 4], ecx
inc eax
mov dword [esp + 0x30], eax
jmp 0x56c604
fstp st(0)
push 0x64
lea edx, [esp + 0x78]
push edx
mov ecx, esi
call fcn.004f33f0
mov eax, dword [eax + 4]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0xf8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp eax, 2
jne 0x56c7e1
push 0x64
lea edx, [esp + 0x78]
push edx
call fcn.004f33f0
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 8]
mov eax, dword [eax + 4]
xor ebx, ebx
cmp ecx, edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x44], edx
jle 0x56c677
fild dword [esp + 0x44]
fld qword [esp + 0x6c]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 0x41
jne 0x56c67b
jmp 0x56c68c
fld qword [esp + 0x6c]
cmp ecx, edx
jge 0x56c691
fild dword [esp + 0x44]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x56c691
mov ebx, 1
mov eax, dword [esp + 0x24]
cmp eax, edi
jne 0x56c6bb
cmp edx, eax
jne 0x56c6bb
test ebx, ebx
je 0x56c6bb
fldz
fcomp st(1)
fnstsw ax
test ah, 0x41
jp 0x56c216
fadd qword [0x5f3df0]
jmp 0x56c21c
mov edx, dword [esp + 0x28]
mov ecx, dword [edx + 4]
sub ecx, edi
sub eax, edi
mov dword [esp + 0x44], ecx
fild dword [esp + 0x44]
mov dword [esp + 0x44], eax
fild dword [esp + 0x44]
fmulp st(1)
fcomp qword [0x5f3dc8]
fnstsw ax
test ah, 5
jp 0x56c7ba
mov esi, dword [esi + 0x1c]
fld qword [esp + 0x64]
lea edx, [esp + 0x34]
fstp qword [esp + 0x54]
push edx
push edi
fstp qword [esp + 0x64]
lea eax, [esp + 0x5c]
push esi
push eax
call fcn.00503990
add esp, 0x10
test eax, eax
je 0x56c7bc
mov esi, dword [esp + 0x2c]
lea ecx, [esp + 0x34]
push ecx
push esi
call fcn.00501010
fstp qword [esp + 0x54]
lea edx, [esp + 0x44]
push edx
push esi
call fcn.00501010
fcomp qword [esp + 0x5c]
add esp, 0x10
fnstsw ax
test ah, 5
jp 0x56c77d
mov eax, dword [ebp + 0x14]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x24]
mov dword [eax], edx
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x30], 1
mov dword [eax], ecx
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0xf8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp + 0x14]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x24]
mov dword [eax], edx
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x30], 1
mov dword [eax], ecx
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0xf8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
fstp st(0)
mov eax, dword [ebp + 0x10]
mov ecx, dword [esp + 0x24]
mov dword [eax], ecx
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0xf8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lea edx, [esp + 0x64]
push edx
call fcn.004f55d0
mov ecx, dword [eax + 4]
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
sub eax, edi
mov dword [esp + 0x24], eax
fild dword [esp + 0x24]
mov eax, ecx
sub eax, edi
mov dword [esp + 0x24], eax
fild dword [esp + 0x24]
fmulp st(1)
fcomp qword [0x5f3dc8]
fnstsw ax
test ah, 5
jp 0x56c82f
mov esi, dword [ebx]
mov eax, dword [ebp + 0x14]
mov dword [eax], esi
mov esi, dword [ebx + 4]
mov dword [eax + 4], esi
mov dword [esp + 0x30], 1
mov dword [edx], ecx
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0xf8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10