Function at 0x413450
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x38
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x537db0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x44], ecx
mov edx, dword fs:[0]
mov dword [ebp - 0x18], edx
mov dword fs:[0], eax
mov eax, dword [ecx]
mov edi, dword [eax + 0x3c]
mov ecx, dword [eax + 0x30]
mov dword [ebp - 0x20], eax
test edi, edi
mov dword [ebp - 0x30], ecx
je 0x413534
mov eax, dword [ebp - 0x20]
xor ebx, ebx
mov dword [ebp - 0x40], edi
mov edx, dword [eax + 0x38]
mov eax, dword [ebp - 0x30]
cmp edx, eax
mov ecx, eax
mov esi, eax
cmovb ecx, ebx
sub edx, ecx
mov ecx, eax
sub esi, edx
lea eax, [edx + edi]
cmp esi, edi
mov dword [ebp - 0x3c], esi
cmovb eax, ecx
mov ecx, edi
sub ecx, esi
cmovb ecx, ebx
sub eax, edx
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x34], eax
mov ecx, dword [ecx + 0x34]
mov dword [ebp - 0x28], ecx
jne 0x4136f7
mov eax, dword [ebp - 0x3c]
cmp eax, dword [ebp - 0x40]
jae 0x413534
xor ecx, ecx
jmp 0x4134f8
mov ecx, dword [ebp - 0x2c]
cmp ecx, dword [ebp - 0x24]
je 0x413534
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + ecx*8]
inc ecx
mov dword [ebp - 0x2c], ecx
mov ecx, 0xffffff80
lock xadd dword [eax], ecx
cmp ecx, 0x7f
jbe 0x413774
and ecx, 0xffffffc0
cmp ecx, 0x80
jne 0x4134f0
mov ecx, dword [eax + 8]
mov ecx, dword [ecx + 8]
mov dword [ebp - 0x10], 6
push eax
call ecx
add esp, 4
jmp 0x4134f0
cmp dword [ebp - 0x30], 0
mov esi, dword [ebp - 0x20]
je 0x41354e
push dword [esi + 0x34]
push 0
push dword [0x5b93c8]
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [esi + 0x64]
test eax, eax
je 0x41356c
lock dec dword [eax]
jne 0x41356c
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], 4
lea ecx, [eax + 0x64]
call fcn.00414690
mov eax, dword [ebp - 0x20]
cmp dword [eax + 0x68], 0
je 0x413587
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], 3
lea ecx, [eax + 0x68]
call fcn.004106d0
mov esi, dword [ebp - 0x20]
mov eax, dword [esi + 0x44]
test eax, eax
mov dword [ebp - 0x38], eax
je 0x413653
mov ecx, dword [esi + 0x4c]
mov eax, dword [esi + 0x40]
test ecx, ecx
mov dword [ebp - 0x30], eax
je 0x41362b
mov eax, dword [ebp - 0x30]
movdqa xmm0, xmmword [eax]
lea edx, [eax + 0x10]
mov esi, eax
pmovmskb edi, xmm0
not edi
nop dword [eax + eax]
test di, di
mov dword [ebp - 0x2c], ecx
jne 0x4135f2
nop dword [eax + eax]
movdqa xmm0, xmmword [edx]
add esi, 0xffffff00
add edx, 0x10
pmovmskb edi, xmm0
cmp edi, 0xffff
je 0x4135d0
not edi
mov dword [ebp - 0x10], 2
tzcnt eax, edi
mov ecx, esi
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x10], 2
shl eax, 4
sub ecx, eax
add ecx, 0xfffffff4
call fcn.004106d0
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x24]
lea eax, [ecx - 1]
and eax, ecx
mov ecx, dword [ebp - 0x2c]
mov edi, eax
dec ecx
jne 0x4135c0
mov ecx, dword [ebp - 0x38]
mov esi, dword [ebp - 0x20]
mov eax, ecx
shl eax, 4
add ecx, eax
cmp ecx, 0xffffffdf
je 0x413653
mov ecx, dword [ebp - 0x30]
sub ecx, eax
push dword [ecx - 0x14]
push 0
push dword [0x5b93c8]
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [esi + 0x20]
lock dec dword [eax]
jne 0x413670
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x20]
mov edx, dword [eax + 0x24]
mov dword [ebp - 0x10], 1
call fcn.00462250
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x80]
test eax, eax
je 0x41369d
lock dec dword [eax]
jne 0x41369d
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x80]
mov edx, dword [eax + 0x84]
mov dword [ebp - 0x10], 0
call fcn.00462250
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x88]
test eax, eax
je 0x4136c7
lock dec dword [eax]
jne 0x4136c7
mov ecx, dword [edx + 0x88]
mov edx, dword [edx + 0x8c]
mov dword [ebp - 0x10], 0xffffffff
call fcn.00462250
mov eax, dword [ebp - 0x44]
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x4136e6
lock dec dword [eax + 4]
jne 0x4136e6
push eax
push 0
push dword [0x5b93c8]
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x38
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [ebp - 0x28]
lea eax, [ecx + edx*8]
mov dword [ebp - 0x38], eax
jmp 0x41371c
mov ebx, dword [ebp - 0x2c]
cmp ebx, dword [ebp - 0x34]
je 0x4134dc
mov eax, dword [ebp - 0x38]
mov ecx, 0xffffff80
mov eax, dword [eax + ebx*8]
inc ebx
mov dword [ebp - 0x2c], ebx
lock xadd dword [eax], ecx
cmp ecx, 0x7f
jbe 0x413754
and ecx, 0xffffffc0
cmp ecx, 0x80
jne 0x413710
mov ecx, dword [eax + 8]
mov ecx, dword [ecx + 8]
mov dword [ebp - 0x10], 8
push eax
call ecx
add esp, 4
jmp 0x413710
mov dword [ebp - 0x10], 8
mov ecx, str.assertion_failed:_prev.ref_count_____2
mov edx, 0x27
push 0x5a8230
call fcn.0053bbd0
add esp, 4
jmp 0x413792
mov dword [ebp - 0x10], 6
mov ecx, str.assertion_failed:_prev.ref_count_____2
mov edx, 0x27
push 0x5a8230
call fcn.0053bbd0
add esp, 4
ud2