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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x697f21
push eax
mov eax, dword [esp + 0x30]
mov dword fs:[0], esp
sub esp, 0x73c
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [eax], ebx
mov ecx, dword [esi + 0x3c]
cmp ecx, ebx
je 0x40ae26
mov edx, dword [ecx]
push 0x64
call dword [edx + 0x2c4]
mov ecx, dword [esi + 0x3c]
push ebx
mov eax, dword [ecx]
call dword [eax + 0x2cc]
mov eax, dword [0x8b0a50]
mov dword [esp + 0x10], eax
mov dword [esp + 0x754], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x34]
mov dword [esp + 0x30], ebx
rep stosd dword es:[edi], eax
xor ecx, ecx
mov ebp, dword [esp + 0x770]
mov dword [esp + 0x20], ecx
lea edi, [esp + 0x78]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x28], ecx
mov ecx, 0x1b5
rep stosd dword es:[edi], eax
lea edx, [esp + 0x2c]
push ebp
push edx
mov ecx, esi
mov byte [esp + 0x75c], 2
mov dword [esp + 0x24], ebx
call fcn.0040aad0
mov eax, dword [eax]
mov ecx, dword [esp + 0x2c]
mov edi, dword [eax - 8]
lea eax, [ecx - 0xc]
cmp edi, ebx
mov ecx, dword [eax]
sete bl
cmp ecx, 0xffffffff
je 0x40aeb9
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x40aeb9
mov edi, dword [0x6c74ac]
push eax
call edi
add esp, 4
jmp 0x40aebf
mov edi, dword [0x6c74ac]
test bl, bl
je 0x40af32
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x77c]
add eax, 0xfffffff4
mov dword [edx], 3
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x40aeeb
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x40aeeb
push eax
call edi
add esp, 4
mov ecx, dword [esp + 0x14]
lea eax, [ecx - 0xc]
mov ecx, dword [ecx - 0xc]
cmp ecx, 0xffffffff
je 0x40af07
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x40af07
push eax
call edi
add esp, 4
mov edx, dword [esp + 0x10]
mov ecx, dword [edx - 0xc]
lea eax, [edx - 0xc]
cmp ecx, 0xffffffff
je 0x40b0ce
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x40b0ce
push eax
call edi
add esp, 4
xor al, al
jmp 0x40b2d6
mov ebx, dword [esp + 0x768]
lea ecx, [esp + 0x10]
push ebx
call fcn.00571160
push 1
push 0x766ed4
push 0x766ed0
lea ecx, [esp + 0x1c]
call fcn.00572460
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
call fcn.00571160
mov ecx, 0x766ed0
test ecx, ecx
je 0x40af83
mov edi, ecx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edi, dword [0x6c74ac]
not ecx
dec ecx
jmp 0x40af85
xor ecx, ecx
push ecx
push 0x766ed0
push ecx
lea ecx, [esp + 0x20]
call fcn.005712b0
mov edx, dword [esp + 0x76c]
lea ecx, [esp + 0x10]
push edx
call fcn.00571160
push 1
push 0x766ed4
push 0x766ed0
lea ecx, [esp + 0x1c]
call fcn.00572460
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 8]
push eax
push ecx
push eax
lea ecx, [esp + 0x20]
call fcn.005712b0
mov eax, 0x766ed0
test eax, eax
je 0x40afeb
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edi, dword [0x6c74ac]
not ecx
dec ecx
jmp 0x40afed
xor ecx, ecx
push ecx
push 0x766ed0
push ecx
lea ecx, [esp + 0x20]
call fcn.005712b0
push ebp
lea ecx, [esp + 0x14]
call fcn.00571160
push 1
push 0x766ed4
push 0x766ed0
lea ecx, [esp + 0x1c]
call fcn.00572460
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 8]
push eax
push ecx
push eax
lea ecx, [esp + 0x20]
call fcn.005712b0
lea ecx, [esp + 0x1c]
mov eax, dword [ebx]
lea edx, [esp + 0x30]
xor ebp, ebp
push ecx
mov ecx, dword [esp + 0x18]
push edx
push ebp
push ebp
push ebp
push ebp
push ebp
push ebp
push ecx
push eax
mov dword [esp + 0x58], 0x44
mov dword [esp + 0x84], 1
mov word [esp + 0x88], bp
call dword [0x6c73a8]
test eax, eax
jne 0x40b0d5
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x77c]
add eax, 0xfffffff4
mov dword [edx], 2
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x40b096
dec ecx
cmp ecx, ebp
mov dword [eax], ecx
jne 0x40b096
push eax
call edi
add esp, 4
mov ecx, dword [esp + 0x14]
lea eax, [ecx - 0xc]
mov ecx, dword [ecx - 0xc]
cmp ecx, 0xffffffff
je 0x40b0b2
dec ecx
cmp ecx, ebp
mov dword [eax], ecx
jne 0x40b0b2
push eax
call edi
add esp, 4
mov edx, dword [esp + 0x10]
mov ecx, dword [edx - 0xc]
lea eax, [edx - 0xc]
cmp ecx, 0xffffffff
je 0x40b0ce
dec ecx
cmp ecx, ebp
mov dword [eax], ecx
jne 0x40b0ce
push eax
call edi
add esp, 4
xor al, al
jmp 0x40b2d6
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x38c]
push 0xa
push eax
mov dword [esi + 0x30], ebp
mov dword [esi + 0x34], 0x7f7fffff
xor edi, edi
call dword [0x6c73b0]
cmp eax, 0x102
jne 0x40b213
mov ebp, dword [esp + 0x75c]
mov ecx, dword [esi + 0x10]
cmp byte [ecx], 0
jne 0x40b1e1
mov eax, dword [esp + 0x770]
lea edx, [esp + 0x74]
push edx
push eax
mov ecx, esi
call fcn.0040ac10
test al, al
jne 0x40b14a
mov ecx, dword [esi + 0x3c]
test ecx, ecx
je 0x40b13b
mov edx, dword [ecx]
push edi
call dword [edx + 0x2cc]
mov eax, dword [esp + 0x77c]
mov dword [eax], 3
jmp 0x40b1c2
mov al, byte [esp + 0x80]
cmp al, 0x64
jge 0x40b158
movsx edi, al
mov eax, dword [esp + 0x38c]
cmp eax, ebx
je 0x40b1b2
mov ebx, eax
mov al, byte [esp + 0x28c]
test al, al
je 0x40b1b2
lea ecx, [esp + 0x28c]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00571200
mov eax, dword [esp + 0x764]
mov ecx, dword [esp + 0x760]
lea edx, [esp + 0x18]
push edx
push eax
push ecx
mov ecx, esi
call fcn.0040b300
mov ecx, ebp
call fcn.004307c0
mov ecx, eax
call fcn.004288c0
mov ecx, ebp
call fcn.004145f0
mov ecx, dword [esi + 0x3c]
test ecx, ecx
je 0x40b1c2
mov edx, dword [ecx]
push edi
call dword [edx + 0x2cc]
call fcn.005753e0
mov eax, dword [esp + 0x1c]
push 0xa
push eax
call dword [0x6c73b0]
cmp eax, 0x102
je 0x40b107
jmp 0x40b213
mov edx, dword [esp + 0x770]
lea ecx, [esp + 0x74]
push ecx
push edx
mov ecx, esi
call fcn.0040ad00
mov eax, dword [esp + 0x28]
push 0
push 0
push 0x12
push eax
call dword [0x6c7870]
push 0x1f4
call fcn.00580d20
add esp, 4
mov ecx, dword [esp + 0x1c]
push 0
push ecx
call dword [0x6c7378]
mov edx, dword [esp + 0x1c]
push edx
call dword [0x6c73b4]
mov eax, dword [esi + 0x10]
cmp byte [eax], 0
je 0x40b273
mov ecx, dword [esp + 0x77c]
mov edx, dword [esp + 0x18]
mov dword [ecx], 1
mov eax, dword [edx - 8]
test eax, eax
je 0x40b273
lea eax, [esp + 0x18]
push eax
call fcn.00576130
add esp, 4
test al, al
je 0x40b273
mov ecx, dword [esp + 0x774]
push 1
lea edx, [esp + 0x1c]
push ecx
push edx
call fcn.00576490
add esp, 0xc
mov eax, dword [esp + 0x18]
add eax, 0xfffffff4
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x40b296
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x40b296
mov esi, dword [0x6c74ac]
push eax
call esi
add esp, 4
jmp 0x40b29c
mov esi, dword [0x6c74ac]
mov ecx, dword [esp + 0x14]
lea eax, [ecx - 0xc]
mov ecx, dword [ecx - 0xc]
cmp ecx, 0xffffffff
je 0x40b2b8
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x40b2b8
push eax
call esi
add esp, 4
mov edx, dword [esp + 0x10]
mov ecx, dword [edx - 0xc]
lea eax, [edx - 0xc]
cmp ecx, 0xffffffff
je 0x40b2d4
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x40b2d4
push eax
call esi
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x74c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x748
ret 0x24