Function at 0x407262
Capabilities:
Get number of processors

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
mov edi, edx
xor eax, eax
inc eax
mov dword [ebp - 0x14], edi
mov esi, ecx
mov dword [ebp - 0x18], eax
xor ecx, ecx
push 4
pop ebx
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], ecx
cmp dword [edi + 0x14], eax
ja 0x407294
xor eax, eax
jmp 0x4074f2
lea edx, [ebp - 8]
call fcn.00406473
test eax, eax
je 0x4072ad
mov eax, dword [edi + 0x14]
add eax, eax
cmp dword [ebp - 8], eax
jbe 0x4072ad
mov dword [ebp - 8], eax
or dword [ebp - 0x10], 0xffffffff
lea ecx, [ebp - 0x10]
and dword [ebp - 0x20], 0
mov dl, 1
call fcn.004071e1
test eax, eax
je 0x4072cc
mov dword [ebp - 0x20], 1
jmp 0x4072d8
push 1
mov edx, 0x401bec
call fcn.00406538
push 0x401c1c
call dword [0x40d09c]
mov dword [ebp - 0x28], eax
test eax, eax
je 0x407385
push 0x401c38
push eax
call dword [0x40d08c]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x407391
imul eax, dword [edi + 0x14], 0x18
push eax
mov dword [ebp - 0x24], eax
mov eax, dword fs:[0x30]
push 0
push dword [eax + 0x18]
call dword [0x40d210]
mov edi, eax
test edi, edi
je 0x407391
push dword [ebp - 0x24]
mov ecx, dword [ebp - 0x1c]
push edi
push 0
push 0
push 0xb
call dword [0x40d220]
call dword [ebp - 0x1c]
test eax, eax
js 0x407371
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
imul eax, dword [eax + 0x14], 0x18
mov ecx, dword [eax + edi - 0x10]
mov eax, dword [eax + edi - 0x14]
mov dword [edx + 0x14], ecx
mov dword [edx + 0x18], eax
mov edx, 0x401c50
push ecx
call fcn.00406538
mov eax, dword [ebp + 8]
mov edx, 0x401c68
push dword [eax + 0x18]
call fcn.00406538
mov eax, dword fs:[0x30]
push edi
push 0
push dword [eax + 0x18]
call dword [0x40d1ec]
jmp 0x407391
push 1
mov edx, 0x401c78
call fcn.00406538
lea ecx, [ebp - 4]
xor edi, edi
call fcn.00406f51
cmp dword [ebp - 4], edi
je 0x4073b9
push dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
push dword [ebp - 8]
push dword [ebp - 4]
mov edx, dword [eax + 4]
mov ecx, dword [eax + 0x14]
call fcn.0040706a
mov edi, eax
cmp dword [ebp - 0xc], 0
jne 0x407461
mov ecx, dword [esi + 0x1c]
mov dword [ebp - 0x1c], edi
cmp edi, ecx
jae 0x4073f3
test ebx, ebx
je 0x4073d4
dec ebx
jmp 0x407391
or dword [esi + 4], 0x10
cmp dword [0x409408], 0
je 0x4073ed
push 1
mov edx, 0x401ca0
call fcn.00406538
and dword [ebp - 0x18], 0
jmp 0x407445
test byte [esi], 0x80
jne 0x407445
test ecx, ecx
je 0x407445
mov eax, edi
xor edx, edx
sub eax, ecx
imul eax, eax, 0x64
div ecx
mov dword [ebp - 0x24], eax
cmp eax, dword [esi + 0x24]
jae 0x407431
push 4
xor eax, eax
inc eax
pop ebx
push eax
push dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x14]
push dword [ebp - 4]
mov edx, dword [eax + 4]
mov ecx, dword [eax + 0x14]
call fcn.0040706a
mov edi, eax
jmp 0x407445
push eax
mov edx, 0x401cdc
call fcn.00406538
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x24]
mov dword [ecx + 0x10], eax
push dword [ebp - 0x1c]
mov edx, 0x401d04
call fcn.00406538
cmp dword [ebp - 0xc], 0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1c]
mov dword [eax + 0xc], ecx
je 0x4074a8
sub edi, dword [esi + 0x1c]
xor edx, edx
imul eax, edi, 0x64
div dword [esi + 0x1c]
mov edi, eax
cmp edi, dword [esi + 0x24]
jae 0x407497
test ebx, ebx
jne 0x4073d1
or dword [esi + 4], 0x20
cmp dword [0x409408], ebx
je 0x407493
push 1
mov edx, 0x401d30
call fcn.00406538
and dword [ebp - 0x18], 0
push edi
mov edx, 0x401d60
call fcn.00406538
mov eax, dword [ebp + 8]
mov dword [eax + 0x10], edi
cmp dword [ebp - 4], 0
je 0x4074c2
push dword [ebp - 4]
mov eax, dword fs:[0x30]
push 0
push dword [eax + 0x18]
call dword [0x40d1ec]
cmp dword [ebp - 0x20], 1
jne 0x4074d2
xor dl, dl
lea ecx, [ebp - 0x10]
call fcn.004071e1
cmp dword [ebp - 0x10], 0xffffffff
je 0x4074e1
push dword [ebp - 0x10]
call dword [0x40d068]
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x4074ef
push eax
call dword [0x40d090]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
leave
ret 4