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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x5e4358
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
push ebx
push esi
push edi
mov eax, dword [0x62fda0]
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 0x565265
sub eax, edx
mov ebx, eax
add edx, ecx
jmp 0x56526b
sub ecx, edx
mov ebx, ecx
add edx, eax
mov edi, dword [ebp + 0xc]
cmp edi, ebx
jl 0x565386
cmp edx, edi
jl 0x565386
lea eax, [esp + 0x54]
push eax
mov ecx, esi
call fcn.004efe90
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 0x5652b1
cwde
and eax, 0xfffffffb
cmp ax, 2
jne 0x565315
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.004ff3b0
add esp, 0x10
test eax, eax
je 0x565386
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 0x565334
or eax, 2
test eax, eax
jne 0x5655a9
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.004ff3b0
add esp, 0x10
test eax, eax
jne 0x5653a0
fldz
fld qword [esp + 0x6c]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 1
je 0x56580e
fsub qword [0x5ecc78]
call fcn.005bd3f0
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.00454440
test eax, eax
je 0x565443
mov eax, dword [ebx]
cmp dword [esp + 0x34], eax
jne 0x5653df
mov eax, dword [ebx + 4]
push eax
push edi
call fcn.004fa020
add esp, 8
test eax, eax
je 0x5653df
mov dword [esp + 0x28], 1
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x34]
cmp ecx, dword [eax]
jne 0x565406
mov eax, dword [eax + 4]
push eax
push edi
call fcn.004fa020
add esp, 8
test eax, eax
je 0x565406
mov dword [esp + 0x28], 1
jmp 0x56540d
cmp dword [esp + 0x28], 1
jne 0x565443
mov edx, dword [esp + 0x2c]
mov eax, dword [edx + 4]
mov ecx, dword [ebx + 4]
cmp ecx, eax
mov edx, dword [esp + 0x38]
jle 0x565431
cmp edx, ecx
jg 0x565427
cmp edx, eax
jge 0x56542f
mov dword [esp + 0x28], 0
cmp ecx, eax
jge 0x565443
cmp edx, eax
jg 0x56543b
cmp edx, ecx
jge 0x565443
mov dword [esp + 0x28], 0
mov eax, dword [esp + 0x28]
test eax, eax
jle 0x56558d
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.00506600
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.00506c50
mov eax, dword [edi]
cmp eax, dword [esi + 4]
jne 0x565521
mov ecx, dword [edi + 4]
cmp ecx, dword [esi + 8]
je 0x565550
cmp eax, dword [esi + 0xc]
jne 0x56552e
mov edx, dword [edi + 4]
cmp edx, dword [esi + 0x10]
je 0x565550
fld qword [esp + 0x5c]
sub esp, 0x10
fstp qword [esp + 8]
lea ecx, [esp + 0x94]
fld qword [esp + 0x64]
fstp qword [esp]
call fcn.0050ea50
cmp eax, ebx
jne 0x565569
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.00506660
add edi, 8
sub dword [esp + 0x28], ebx
jne 0x56545e
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 0x565794
push 0x64
lea eax, [esp + 0x78]
push eax
call fcn.004f0250
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 0x565605
fild dword [esp + 0x44]
fld qword [esp + 0x6c]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 0x41
jne 0x565609
jmp 0x56561a
fld qword [esp + 0x6c]
cmp ecx, edx
jge 0x565622
fild dword [esp + 0x44]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x565622
mov dword [esp + 0x2c], 1
cmp ebx, edi
jne 0x565695
cmp edx, ebx
jne 0x565695
cmp dword [esp + 0x2c], 0
je 0x565695
push 0x64
fstp st(1)
lea eax, [esp + 0x78]
fstp st(0)
push eax
mov ecx, esi
call fcn.004f02f0
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 [0x5ecc50]
fnstsw ax
test ah, 5
jp 0x565386
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 0x5656c9
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 0x565760
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.004ff3b0
add esp, 0x10
test eax, eax
je 0x565762
mov edi, dword [esp + 0x28]
lea ecx, [esp + 0x34]
push ecx
push edi
call fcn.004fca60
fstp qword [esp + 0x54]
lea edx, [esp + 0x44]
push edx
push edi
call fcn.004fca60
fcomp qword [esp + 0x5c]
add esp, 0x10
fnstsw ax
test ah, 5
jp 0x565746
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 0x565762
fstp st(0)
push 0x64
lea edx, [esp + 0x78]
push edx
mov ecx, esi
call fcn.004f02f0
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 0x56593f
push 0x64
lea edx, [esp + 0x78]
push edx
call fcn.004f02f0
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 0x5657d5
fild dword [esp + 0x44]
fld qword [esp + 0x6c]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 0x41
jne 0x5657d9
jmp 0x5657ea
fld qword [esp + 0x6c]
cmp ecx, edx
jge 0x5657ef
fild dword [esp + 0x44]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x5657ef
mov ebx, 1
mov eax, dword [esp + 0x24]
cmp eax, edi
jne 0x565819
cmp edx, eax
jne 0x565819
test ebx, ebx
je 0x565819
fldz
fcomp st(1)
fnstsw ax
test ah, 0x41
jp 0x565376
fadd qword [0x5ecc78]
jmp 0x56537c
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 [0x5ecc50]
fnstsw ax
test ah, 5
jp 0x565918
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.004ff3b0
add esp, 0x10
test eax, eax
je 0x56591a
mov esi, dword [esp + 0x2c]
lea ecx, [esp + 0x34]
push ecx
push esi
call fcn.004fca60
fstp qword [esp + 0x54]
lea edx, [esp + 0x44]
push edx
push esi
call fcn.004fca60
fcomp qword [esp + 0x5c]
add esp, 0x10
fnstsw ax
test ah, 5
jp 0x5658db
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.004f24d0
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 [0x5ecc50]
fnstsw ax
test ah, 5
jp 0x56598d
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