Function at 0x4086c0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4335a0
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push esi
push edi
mov eax, dword [0x4430a4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
lea eax, [eax + ecx*2]
mov dword [ebp + 0x10], eax
mov esi, eax
cmp edi, 0x64
jb 0x408899
mov eax, 0x51eb851f
add esi, 0xfffffffe
mul edi
shr edx, 5
imul eax, edx, 0x64
sub edi, eax
add edi, edi
mov eax, edi
mov edi, edx
mov dword [ebp - 0x18], eax
mov dword [ebp + 0xc], edi
mov edi, esi
movsx ax, byte [eax + 0x437c21]
movzx eax, ax
mov word [esi], ax
mov eax, dword [ebp + 0x20]
mov eax, dword [eax]
cmp byte [eax], 0
jle 0x4087d1
mov eax, dword [ebp + 0x24]
inc dword [eax]
mov eax, dword [ebp + 0x20]
mov edx, dword [ebp + 0x24]
mov dword [ebp - 0x14], edx
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
mov al, byte [eax]
mov byte [ebp + 0xb], al
movsx ecx, al
mov eax, dword [edx]
cdq
idiv ecx
test edx, edx
jne 0x4087d1
cmp byte [ebp + 0xb], 0x7f
je 0x4087d1
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x10]
inc eax
mov ecx, dword [ecx + 8]
mov edx, ecx
cmp dword [ecx + 0x14], 0x10
jb 0x40877b
mov edx, dword [ecx]
mov ecx, dword [ecx + 0x10]
mov edi, esi
add ecx, edx
cmp eax, ecx
je 0x408794
mov eax, dword [ebp - 0x14]
mov dword [eax], 0
mov eax, dword [ebp + 0x20]
inc dword [eax]
mov eax, dword [ebp + 0x1c]
lea ecx, [eax + eax]
sub edi, ecx
mov edx, dword [ebp + 0x18]
sub esp, 0xc
mov dword [ebp - 0x20], eax
add ecx, edx
mov eax, esp
mov dword [ebp - 0x24], edi
movq xmm0, qword [ebp - 0x24]
push ecx
push edx
movq qword [eax], xmm0
mov dword [eax + 8], 0
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 4], 0xffffffff
call fcn.004071c0
add esp, 0x18
mov eax, dword [ebp - 0x18]
add edi, 0xfffffffe
mov esi, edi
movsx ax, byte [eax + str.00010203040506070809101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899]
movzx eax, ax
mov word [edi], ax
mov eax, dword [ebp + 0x20]
mov eax, dword [eax]
cmp byte [eax], 0
jle 0x40888a
mov eax, dword [ebp + 0x24]
inc dword [eax]
mov eax, dword [ebp + 0x20]
mov edx, dword [ebp + 0x24]
mov dword [ebp - 0x14], edx
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
mov al, byte [eax]
mov byte [ebp + 0xb], al
movsx ecx, al
mov eax, dword [edx]
cdq
idiv ecx
test edx, edx
jne 0x40888a
cmp byte [ebp + 0xb], 0x7f
je 0x40888a
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x18]
inc eax
mov ecx, dword [ecx + 8]
mov edx, ecx
cmp dword [ecx + 0x14], 0x10
jb 0x408833
mov edx, dword [ecx]
mov ecx, dword [ecx + 0x10]
mov esi, edi
add ecx, edx
cmp eax, ecx
je 0x40884c
mov eax, dword [ebp - 0x14]
mov dword [eax], 0
mov eax, dword [ebp + 0x20]
inc dword [eax]
mov eax, dword [ebp + 0x1c]
lea edx, [eax + eax]
sub esi, edx
mov ecx, dword [ebp + 0x18]
sub esp, 0xc
mov dword [ebp - 0x2c], eax
mov eax, esp
mov dword [ebp - 0x30], esi
movq xmm0, qword [ebp - 0x30]
mov dword [ebp - 4], 0xffffffff
movq qword [eax], xmm0
mov dword [eax + 8], 0
lea eax, [edx + ecx]
push eax
push ecx
lea eax, [ebp - 0x48]
push eax
call fcn.004071c0
add esp, 0x18
mov edi, dword [ebp + 0xc]
cmp edi, 0x64
jae 0x408701
mov eax, dword [ebp + 0x10]
cmp edi, 0xa
jae 0x4088b6
lea ecx, [edi + 0x30]
mov word [esi - 2], cx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
movsx eax, byte [edi*2 + 0x437c21]
lea ecx, [esi - 2]
mov word [ecx], ax
lea eax, [ebp + 8]
mov dword [ebp + 8], ecx
lea ecx, [ebp + 0x14]
push eax
call fcn.0041cbc0
mov ecx, dword [ebp + 8]
movsx eax, byte [edi*2 + str.00010203040506070809101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899]
mov word [ecx - 2], ax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret