Function at 0x40770e
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x660
push ebx
push esi
push edi
push 5
pop ecx
mov esi, 0x100110c
lea edi, [ebp - 0x48]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 8]
push 2
mov dword [ebp - 4], esi
pop ebx
push 0x20
pop edi
cmp word [esi], di
jne 0x407742
add esi, ebx
cmp word [esi], di
je 0x407738
mov dword [ebp - 4], esi
cmp word [esi], 0x2f
jne 0x407777
add esi, ebx
movzx eax, word [esi]
test eax, eax
mov dword [ebp - 4], esi
je 0x407730
cmp eax, edi
je 0x407730
cmp eax, 0x44
je 0x407762
cmp eax, 0x64
jne 0x407769
and dword [0x1002004], 0
add esi, ebx
movzx eax, word [esi]
test eax, eax
mov dword [ebp - 4], esi
jne 0x407754
jmp 0x407730
cmp word [esi], 0x22
mov eax, esi
jne 0x4077aa
add esi, ebx
mov dword [ebp - 4], esi
add eax, ebx
mov cx, word [eax]
xor edi, edi
cmp cx, di
je 0x407a73
cmp cx, 0x22
jne 0x407784
cmp cx, di
je 0x407a73
mov word [eax], di
add eax, ebx
jmp 0x4077d6
xor edx, edx
cmp word [esi], dx
je 0x4077c6
mov cx, word [eax]
cmp cx, di
je 0x4077c6
cmp cx, 0x2c
je 0x4077c6
add eax, ebx
cmp word [eax], dx
jne 0x4077b1
cmp word [eax], dx
je 0x407a73
mov word [eax], dx
add eax, ebx
xor edi, edi
mov cx, word [eax]
cmp cx, di
je 0x407a73
cmp cx, 0x20
je 0x4077ee
cmp cx, 0x2c
jne 0x4077f8
add eax, ebx
mov cx, word [eax]
cmp cx, di
jne 0x4077e2
cmp word [eax], di
je 0x407a73
push 0x20
push eax
mov dword [ebp - 0xc], eax
call fcn.0040754c
cmp eax, edi
mov dword [ebp - 0x10], eax
je 0x40781b
mov word [eax], di
add eax, ebx
mov dword [ebp - 0x10], eax
mov ebx, dword [0x100104c]
push esi
mov dword [ebp - 8], esi
call ebx
cmp eax, 0xffffffff
mov esi, 0x104
jne 0x407855
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x458]
push eax
push esi
push edi
push dword [ebp - 4]
push edi
call dword [0x1001048]
test eax, eax
jbe 0x407855
lea eax, [ebp - 0x458]
mov dword [ebp - 8], eax
push dword [ebp - 8]
mov dword [ebp - 0x34], 0x20
mov dword [ebp - 0x30], edi
call dword [0x1001044]
add eax, 0xa
cmp eax, esi
jae 0x4078a6
push dword [ebp - 8]
lea eax, [ebp - 0x250]
push eax
call dword [0x1001040]
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x250]
push eax
call dword [0x100103c]
lea eax, [ebp - 0x250]
push eax
call ebx
cmp eax, 0xffffffff
je 0x4078a6
lea eax, [ebp - 0x250]
jmp 0x4078b7
mov eax, dword [ebp - 8]
mov dword [ebp - 0x30], 8
mov dword [ebp - 0x20], 0x7b
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x34]
push eax
call dword [0x1001038]
cmp eax, 0xffffffff
mov dword [0x1002000], eax
je 0x4078da
push 0x1002008
push eax
call dword [0x1001034]
push dword [ebp - 4]
call dword [0x1001030]
cmp eax, edi
mov dword [0x100201c], eax
jne 0x407930
push edi
push esi
lea eax, [ebp - 0x660]
push eax
push edi
call dword [0x100102c]
push eax
push edi
push 0x1000
call dword [0x1001028]
test eax, eax
je 0x407a73
lea eax, [ebp - 0x660]
push eax
push dword [ebp - 4]
push 0x10010fc
push 0x401
push edi
call fcn.004076b0
jmp 0x407a73
mov eax, dword fs:[0x18]
mov ecx, dword [0x100201c]
mov esi, dword [eax + 0x30]
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp word [eax + 0x14], di
je 0x407988
mov ecx, dword [eax + 0x4c]
cmp ecx, edi
je 0x407988
and ecx, 0xff
mov dword [esi + 0xa4], ecx
movzx ecx, byte [eax + 0x4d]
mov dword [esi + 0xa8], ecx
mov cx, word [eax + 0x4e]
and cx, 0x3fff
mov word [esi + 0xac], cx
mov eax, dword [eax + 0x4c]
xor eax, 0xbfffffff
shr eax, 0x1e
mov dword [esi + 0xb0], eax
lea eax, [ebp - 8]
push eax
push 0xa
push 1
push dword [esi + 8]
call dword [0x1001008]
cmp eax, edi
je 0x4079ad
mov ax, word [eax + 0x34]
cmp ax, di
je 0x4079ad
mov word [esi + 0xae], ax
push dword [ebp - 0xc]
call dword [0x1001044]
mov esi, eax
inc esi
lea eax, [esi + esi + 2]
push eax
push edi
mov dword [0x1002010], edi
call dword [0x1001024]
mov ebx, eax
cmp ebx, edi
je 0x407a49
push edi
push edi
lea eax, [esi + esi]
push eax
push ebx
push esi
push dword [ebp - 0xc]
push edi
push edi
call dword [0x1001020]
test eax, eax
je 0x407a42
push ebx
call dword [0x100101c]
mov edi, dword [0x1001018]
lea esi, [ebx + eax]
and byte [esi + 1], 0
push ebx
mov byte [esi], 0x57
push dword [0x100201c]
call edi
test eax, eax
mov dword [0x1002014], eax
jne 0x407a40
mov byte [esi], 0x41
push ebx
push dword [0x100201c]
mov dword [0x1002010], 1
call edi
test eax, eax
mov dword [0x1002014], eax
jne 0x407a40
and byte [esi], al
push ebx
push dword [0x100201c]
call edi
mov dword [0x1002014], eax
xor edi, edi
push ebx
call dword [0x1001014]
cmp dword [0x1002014], edi
jne 0x407a77
push dword [ebp - 0xc]
push dword [ebp - 4]
push 0x10010fc
push 0x400
push edi
call fcn.004076b0
push dword [0x100201c]
call dword [0x1001010]
xor eax, eax
jmp 0x407a93
cmp dword [ebp - 0x10], edi
je 0x407a8a
push dword [ebp - 0x10]
push dword [ebp + 8]
call dword [0x1001040]
jmp 0x407a90
mov eax, dword [ebp + 8]
mov word [eax], di
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 8