Function at 0x40ebe0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x454f98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x64
mov eax, dword [esp + 0x7c]
push ebx
push ebp
mov ebp, dword [esp + 0x8c]
push esi
push edi
lea edi, [esp + 0x2c]
call fcn.00411700
mov edi, eax
mov dword [esp + 0x7c], 0
call fcn.00410390
mov edi, eax
mov dword [esp + 0x7c], 0xffffffff
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x30], edi
test eax, eax
je 0x40ec7a
push 0
lea ecx, [esp + 0x98]
mov ebx, eax
call fcn.00442f67
mov eax, dword [ebx + 4]
test eax, eax
jbe 0x40ec55
cmp eax, 0xffffffff
jae 0x40ec55
dec eax
mov dword [ebx + 4], eax
mov esi, dword [ebx + 4]
neg esi
sbb esi, esi
not esi
lea ecx, [esp + 0x94]
and esi, ebx
call fcn.00442f8f
test esi, esi
je 0x40ec7a
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
lea esi, [esp + 0x54]
mov ecx, edi
call fcn.0040fc60
mov ebx, 1
mov dword [esp + 0x7c], ebx
mov eax, dword [edi]
mov edx, dword [eax + 8]
mov ecx, edi
call edx
movzx eax, ax
xor esi, esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], esi
mov byte [esp + 0x3c], 0
mov ecx, dword [esp + 0x84]
add ecx, 8
push ecx
lea edx, [esp + 0x1c]
push edx
push ebx
lea eax, [esp + 0xa0]
mov byte [esp + 0x88], 2
push eax
lea ecx, [esp + 0x34]
push ecx
mov byte [esp + 0xa8], 0x30
mov dword [esp + 0x38], esi
mov dword [esp + 0x2c], esi
call fcn.0044343b
mov al, byte [ebp]
add esp, 0x14
cmp al, 0x2b
je 0x40ecfe
mov dword [esp + 0x18], esi
cmp al, 0x2d
jne 0x40ed02
mov dword [esp + 0x18], ebx
call fcn.00431120
mov edx, dword [eax]
mov edi, dword [esp + 0xa4]
mov al, byte [edx]
push edi
push 0x65
push ebp
mov byte [esp + 0x20], al
mov byte [esp + 0x21], 0x65
mov byte [esp + 0x22], 0
call fcn.00431150
movsx ecx, byte [esp + 0x20]
add esp, 0xc
push edi
push ecx
mov ebx, eax
push ebp
mov dword [esp + 0xa0], ebx
call fcn.00431150
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x40ed52
mov dword [esp + 0xa0], eax
mov edx, dword [esp + 0x6c]
mov eax, dword [esp + 0x58]
mov ecx, eax
cmp edx, 0x10
jae 0x40ed65
lea ecx, [esp + 0x58]
cmp byte [ecx], 0x7f
je 0x40eebf
cmp edx, 0x10
jae 0x40ed77
lea eax, [esp + 0x58]
cmp byte [eax], 0
jle 0x40eebf
push edi
push ebp
lea eax, [esp + 0x40]
call fcn.0040f870
test ebx, ebx
jne 0x40edaa
mov eax, dword [esp + 0xa0]
push 0x30
lea edi, [esp + 0x3c]
call fcn.0040f980
mov ebx, dword [esp + 0x98]
jmp 0x40ede7
test esi, esi
jne 0x40edc4
mov eax, dword [esp + 0x98]
push 0x30
lea edi, [esp + 0x3c]
call fcn.0040f980
xor ebx, ebx
jmp 0x40edcb
mov ebx, dword [esp + 0x98]
mov edx, dword [esp + 0xa0]
mov eax, dword [esp + 0x94]
push 0x30
push edx
sub eax, ebp
lea edi, [esp + 0x40]
call fcn.00406e60
push 0x30
lea edi, [esp + 0x3c]
test esi, esi
jne 0x40edfa
mov eax, ebx
call fcn.0040f980
jmp 0x40ee25
mov eax, dword [esp + 0xa0]
sub esi, ebp
push eax
lea eax, [esi + 1]
call fcn.00406e60
push 0x30
push ebx
mov eax, esi
lea edi, [esp + 0x40]
call fcn.00406e60
mov dword [esp + 0x9c], 0
mov ebp, dword [esp + 0x58]
mov eax, 0x10
mov dword [esp + 0x98], 0
cmp dword [esp + 0x6c], eax
jae 0x40ee43
lea ebp, [esp + 0x58]
cmp dword [esp + 0x50], eax
mov eax, dword [esp + 0x3c]
jae 0x40ee51
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x14]
push ecx
push eax
call fcn.00431200
mov esi, eax
mov al, byte [ebp]
add esp, 8
cmp al, 0x7f
je 0x40ee98
test al, al
jle 0x40ee98
mov edx, esi
sub edx, dword [esp + 0x18]
movsx eax, al
cmp eax, edx
jae 0x40ee98
sub esi, eax
push 0
push 1
mov eax, esi
lea edi, [esp + 0x40]
call fcn.00406e60
cmp byte [ebp + 1], 0
jle 0x40ee91
inc ebp
mov al, byte [ebp]
cmp al, 0x7f
jne 0x40ee68
cmp dword [esp + 0x50], 0x10
mov ebp, dword [esp + 0x3c]
jae 0x40eea7
lea ebp, [esp + 0x3c]
mov eax, dword [esp + 0x4c]
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], eax
mov edi, eax
mov ecx, dword [esp + 0x98]
mov edx, dword [esp + 0x9c]
lea eax, [ecx + edx]
add eax, dword [esp + 0xa0]
mov edx, dword [esp + 0x8c]
mov ecx, dword [edx + 0x18]
add eax, edi
test ecx, ecx
jle 0x40eef8
cmp ecx, eax
jbe 0x40eef8
sub ecx, eax
mov esi, ecx
mov dword [esp + 0x94], esi
jmp 0x40ef0a
mov dword [esp + 0x94], 0
mov esi, dword [esp + 0x94]
mov eax, dword [edx + 0x10]
and eax, 0x1c0
cmp eax, 0x40
je 0x40efb2
cmp eax, 0x100
jne 0x40ef6e
cmp dword [esp + 0x18], 0
jbe 0x40ef6e
mov eax, dword [esp + 0xac]
mov ecx, dword [esp + 0xa8]
push 1
push eax
mov eax, dword [esp + 0x8c]
push ecx
lea edx, [esp + 0x24]
push edx
push eax
mov eax, ebp
call fcn.0040fad0
mov ecx, dword [eax]
add esp, 0x14
mov dword [esp + 0xa8], ecx
mov edx, dword [eax + 4]
inc ebp
dec edi
mov dword [esp + 0xac], edx
mov dword [esp + 0xa4], edi
mov eax, dword [esp + 0xac]
mov ecx, dword [esp + 0xa8]
push eax
push ecx
lea edx, [esp + 0x20]
mov eax, esi
mov esi, dword [esp + 0x98]
push edx
call fcn.0040f660
mov ecx, dword [eax]
mov dword [esp + 0xb4], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0xa0], 0
mov dword [esp + 0xb8], edx
add esp, 0xc
movsx eax, byte [esp + 0x14]
push edi
push eax
push ebp
call fcn.00431150
mov ebx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
je 0x40f0c8
mov ecx, dword [esp + 0xac]
mov edx, dword [esp + 0xa8]
sub eax, ebp
push ecx
inc eax
mov edi, eax
push edx
mov edx, dword [esp + 0x8c]
lea eax, [edi - 1]
push eax
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x30]
push ecx
push edx
mov ecx, ebp
call fcn.0040fbb0
mov ecx, dword [eax]
mov dword [esp + 0xbc], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0xc0], edx
mov ecx, dword [eax + 4]
mov edx, dword [eax]
add esp, 0x14
push ecx
push edx
lea eax, [esp + 0x2c]
push eax
mov eax, dword [esp + 0xa4]
mov esi, ebx
call fcn.0040f660
mov ecx, dword [eax]
mov dword [esp + 0xb4], ecx
mov edx, dword [eax + 4]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0xb8], edx
mov eax, dword [ecx]
mov edx, dword [eax + 4]
add esp, 0xc
call edx
mov ecx, dword [esp + 0xa8]
movzx esi, ax
mov eax, dword [esp + 0xac]
push eax
push ecx
lea edx, [esp + 0x38]
push edx
mov eax, 1
call fcn.0040f660
mov ecx, dword [eax]
mov dword [esp + 0xb4], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0xb8], edx
mov ecx, dword [eax + 4]
mov edx, dword [eax]
add esp, 0xc
push ecx
push edx
lea eax, [esp + 0x38]
push eax
mov eax, dword [esp + 0xa8]
mov esi, ebx
call fcn.0040f660
mov ecx, dword [eax]
add ebp, edi
add esp, 0xc
sub dword [esp + 0xa4], edi
mov edi, dword [esp + 0xa4]
mov dword [esp + 0xa8], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0xac], edx
push edi
push 0x65
push ebp
call fcn.00431150
add esp, 0xc
test eax, eax
je 0x40f1b8
mov ecx, dword [esp + 0xa8]
sub eax, ebp
inc eax
mov edi, eax
mov eax, dword [esp + 0xac]
push eax
push ecx
mov ecx, dword [esp + 0x8c]
lea edx, [edi - 1]
push edx
lea eax, [esp + 0x3c]
push eax
mov eax, dword [esp + 0x30]
push ecx
mov ecx, ebp
call fcn.0040fbb0
mov edx, dword [eax]
mov dword [esp + 0xbc], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0xc0], ecx
mov edx, dword [eax + 4]
mov eax, dword [eax]
add esp, 0x14
push edx
push eax
mov eax, dword [esp + 0xa8]
lea ecx, [esp + 0x38]
push ecx
mov esi, ebx
call fcn.0040f660
mov edx, dword [eax]
mov dword [esp + 0xb4], edx
mov ecx, dword [eax + 4]
mov edx, dword [esp + 0x98]
add esp, 0xc
test byte [edx + 0x10], 4
mov dword [esp + 0xac], ecx
mov dword [esp + 0xa0], 0
mov ecx, 0x45d904
jne 0x40f175
mov ecx, 0x45d908
mov edx, dword [eax + 4]
mov eax, dword [eax]
push 1
push edx
push eax
mov eax, dword [esp + 0x90]
lea edx, [esp + 0x3c]
push edx
push eax
mov eax, ecx
call fcn.0040fad0
mov ecx, dword [eax]
add ebp, edi
add esp, 0x14
sub dword [esp + 0xa4], edi
mov edi, dword [esp + 0xa4]
mov dword [esp + 0xa8], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0xac], edx
mov eax, dword [esp + 0xac]
mov ecx, dword [esp + 0xa8]
push eax
mov eax, dword [esp + 0x88]
push ecx
push edi
lea edx, [esp + 0x3c]
push edx
push eax
mov eax, dword [esp + 0x34]
mov ecx, ebp
call fcn.0040fbb0
mov ecx, dword [eax]
mov dword [esp + 0xbc], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0xc0], edx
mov ecx, dword [eax + 4]
mov edx, dword [eax]
add esp, 0x14
push ecx
push edx
lea eax, [esp + 0x38]
push eax
mov eax, dword [esp + 0xac]
mov esi, ebx
call fcn.0040f660
mov ecx, dword [eax]
mov edx, dword [esp + 0x98]
mov edi, dword [esp + 0x94]
mov esi, dword [esp + 0x9c]
add esp, 0xc
mov dword [esp + 0xa8], ecx
mov eax, dword [eax + 4]
push eax
push ecx
mov dword [esp + 0xb4], eax
mov eax, dword [esp + 0x9c]
xor ebx, ebx
push edi
mov dword [edx + 0x18], ebx
call fcn.0040f660
mov esi, 0x10
add esp, 0xc
cmp dword [esp + 0x50], esi
jb 0x40f26b
mov eax, dword [esp + 0x3c]
push eax
call fcn.00430981
add esp, 4
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
cmp dword [esp + 0x6c], esi
jb 0x40f28e
mov ecx, dword [esp + 0x58]
push ecx
call fcn.00430981
add esp, 4
mov ecx, dword [esp + 0x74]
mov eax, edi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x70
ret