Function at 0x414df1
Capabilities:
Get number of processors

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x64
mov eax, dword [0x420004]
xor eax, esp
mov dword [esp + 0x60], eax
mov eax, dword [ebp + 0x14]
and dword [esp], 0
push ebx
mov ebx, dword [ebp + 0x10]
and dword [eax], 0
mov dword [esp + 0x48], eax
xor eax, eax
push esi
push edi
lea edi, [esp + 0x5c]
mov dword [esp + 0x18], edx
stosd dword es:[edi], eax
mov edx, ecx
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x4c], edx
mov dword [esp + 0x24], ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], eax
mov byte [esp + 0x16], al
mov dword [esp + 0x48], eax
mov dword [esp + 0x38], eax
test edx, edx
je 0x415378
mov edi, dword [esp + 0x18]
test edi, edi
je 0x415378
test ecx, ecx
je 0x415378
mov ecx, dword [ebp + 8]
mov edx, eax
and ecx, 0x32
je 0x414e8f
lea eax, [ecx - 1]
inc edx
and ecx, eax
jne 0x414e7e
cmp edx, 1
ja 0x415378
test ebx, ebx
je 0x414e9d
test byte [ebp + 8], 1
jne 0x415378
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x4c]
cmp edx, ecx
jne 0x414eba
test ebx, ebx
jne 0x414eba
mov eax, dword [ebp + 8]
and al, 3
cmp al, 2
je 0x415378
mov al, cl
mov byte [esp + 0x17], 0
and al, dl
test al, 1
je 0x414ece
mov byte [esp + 0x17], 1
jmp 0x414edb
call fcn.004131c9
test eax, eax
js 0x41537d
lea edx, [esp + 0x54]
mov ecx, edi
call fcn.0041273a
mov esi, eax
test esi, esi
js 0x41530f
lea eax, [esp + 0x2c]
mov edx, 0x406488
push eax
lea eax, [esp + 0x4c]
mov ecx, edi
push eax
push 3
push 0x4062c0
call fcn.004164ed
test ebx, ebx
je 0x414f21
mov esi, ebx
lea edi, [esp + 0x5c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x18]
jmp 0x414f53
test byte [ebp + 8], 1
lea edx, [esp + 0x5c]
je 0x414f42
mov ebx, dword [esp + 0x24]
mov ecx, ebx
call fcn.004168f9
mov esi, eax
test esi, esi
js 0x41530f
jmp 0x414f57
mov ecx, edi
call fcn.004127dc
mov esi, eax
test esi, esi
js 0x41530f
mov ebx, dword [esp + 0x24]
test byte [ebp + 8], 0x22
je 0x41508e
lea eax, [esp + 0xc]
mov ecx, ebx
push eax
lea edx, [esp + 0x60]
call fcn.00412400
test eax, eax
js 0x415087
test byte [ebp + 8], 0x20
je 0x415079
lea eax, [esp + 0x1c]
mov ecx, edi
push eax
lea eax, [esp + 0x40]
push eax
call fcn.004154c1
test eax, eax
js 0x415079
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x415079
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
xor ecx, ecx
shr edi, 3
lea eax, [esp + 0x20]
mov dword [esp + 0x20], ecx
push eax
push ecx
push ecx
mov dword [esp + 0x20], ecx
call fcn.00414a55
cmp eax, 0xc0000023
jne 0x415010
push dword [esp + 0x1c]
mov eax, dword fs:[0x30]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
mov dword [esp + 0x40], esi
test esi, esi
je 0x415079
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x10]
and dword [esp + 0x10], 0
push eax
lea eax, [esp + 0x20]
push eax
push esi
push ecx
call fcn.00414a55
jmp 0x415014
mov esi, dword [esp + 0x40]
test eax, eax
js 0x415079
mov ebx, dword [esp + 0x10]
test ebx, ebx
je 0x415079
xor edx, edx
mov dword [esp + 0x28], edx
test ebx, ebx
je 0x415087
mov eax, dword [esi + 4]
xor ecx, ecx
mov dword [esp + 0x20], eax
test edi, edi
je 0x415055
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + ecx*8]
cmp eax, 0x46000007
je 0x41506b
mov ebx, dword [esi]
cmp eax, dword [ebx + 4]
mov ebx, dword [esp + 0x10]
je 0x41506b
inc ecx
cmp ecx, edi
jb 0x415037
mov eax, dword [esi]
mov ecx, dword [esp + 0xc]
mov edx, dword [eax + 4]
call fcn.00413a73
test eax, eax
js 0x415079
mov edx, dword [esp + 0x28]
inc edx
add esi, 8
mov dword [esp + 0x28], edx
cmp edx, ebx
jb 0x41502a
jmp 0x415087
mov ecx, dword [esp + 0xc]
call fcn.00412548
and dword [esp + 0xc], 0
cmp dword [esp + 0xc], 0
jne 0x4150da
mov ebx, dword [esp + 0x24]
lea eax, [esp + 0xc]
push eax
lea edx, [esp + 0x60]
mov ecx, ebx
call fcn.00412400
test eax, eax
jns 0x4150da
test byte [ebp + 8], 4
je 0x4150b1
xor eax, eax
inc eax
jmp 0x4150b5
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0xc]
push ecx
push eax
lea eax, [esp + 0x5c]
mov ecx, ebx
push eax
lea edx, [esp + 0x68]
call fcn.00412907
mov esi, eax
test esi, esi
js 0x4152d9
mov byte [esp + 0x16], 1
mov eax, dword [esp + 0x48]
test eax, eax
je 0x4150fb
push dword [esp + 0x2c]
mov ecx, dword [esp + 0x10]
mov edx, eax
call fcn.00416fa7
mov esi, eax
test esi, esi
js 0x4152d9
mov edi, dword [esp + 0x18]
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x20]
xor ebx, ebx
push eax
push ebx
push ecx
mov edx, edi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x20], ebx
call fcn.00414a55
mov esi, eax
cmp esi, 0xc0000023
jne 0x415166
push dword [esp + 0x1c]
mov eax, dword fs:[0x30]
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ebx, eax
mov dword [esp + 0x44], ebx
test ebx, ebx
jne 0x41514c
add esi, 0xfffffff4
jmp 0x4152d9
and dword [esp + 0x10], 0
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x20]
mov edx, edi
push eax
push ebx
push ecx
call fcn.00414a55
mov esi, eax
test esi, esi
js 0x4152bf
xor esi, esi
mov dword [esp + 0x18], esi
cmp dword [esp + 0x10], esi
jbe 0x4152b3
mov ecx, dword [ebp + 8]
mov eax, ebx
and ecx, 8
mov dword [esp + 0x38], ebx
mov dword [esp + 0x28], ecx
mov ebx, dword [eax + 4]
mov edi, dword [eax]
mov dword [esp + 0x2c], ebx
test ecx, ecx
je 0x4151ae
mov eax, dword [edi + 4]
and eax, 0xf0000000
cmp eax, 0x40000000
je 0x415299
test byte [ebp + 8], 0x10
je 0x4151bd
cmp dword [edi + 4], 0x16000020
jne 0x4151c3
test byte [ebp + 8], 0x20
je 0x4151e3
mov edx, dword [edi + 4]
lea eax, [esp + 0x1c]
and dword [esp + 0x1c], 0
push eax
push 0
push ecx
mov ecx, dword [esp + 0x18]
call fcn.00413776
cmp eax, 0xc0000023
je 0x415203
push dword [edi + 8]
mov edx, dword [edi + 4]
mov ecx, dword [esp + 0x10]
push ebx
push 0
call fcn.004138d7
mov esi, eax
test esi, esi
js 0x4152bf
mov esi, dword [esp + 0x18]
cmp dword [edi + 4], 0x14000006
jne 0x415295
mov ebx, dword [edi + 8]
xor esi, esi
shr ebx, 4
mov dword [esp + 0x1c], esi
test ebx, ebx
je 0x415291
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x30]
mov edx, eax
push ecx
mov ecx, dword [esp + 0x50]
call fcn.00412400
test eax, eax
js 0x41527d
mov edi, dword [esp + 0x30]
lea eax, [esp + 0x34]
mov ecx, dword [esp + 0x4c]
mov edx, edi
push eax
mov eax, dword [ebp + 8]
push 0
push dword [esp + 0x2c]
and eax, 0xfffffffe
push eax
call fcn.00414df1
mov esi, eax
test esi, esi
js 0x4152bf
mov ecx, dword [esp + 0x34]
call fcn.004125da
and dword [esp + 0x34], 0
mov ecx, edi
call fcn.004125da
and dword [esp + 0x30], 0
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x2c]
inc esi
add eax, 0x10
mov dword [esp + 0x1c], esi
mov dword [esp + 0x2c], eax
cmp esi, ebx
jb 0x415224
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x38]
inc esi
add eax, 8
mov dword [esp + 0x18], esi
mov dword [esp + 0x38], eax
cmp esi, dword [esp + 0x10]
jb 0x41518e
mov ecx, dword [esp + 0x50]
xor esi, esi
mov eax, dword [esp + 0xc]
mov dword [ecx], eax
mov eax, dword [esp + 0x44]
test eax, eax
je 0x4152d9
push eax
mov eax, dword fs:[0x30]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, dword [esp + 0x40]
test eax, eax
je 0x4152f3
push eax
mov eax, dword fs:[0x30]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp dword [esp + 0x3c], 0
je 0x41530f
push dword [esp + 0x3c]
mov eax, dword fs:[0x30]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x41531c
call fcn.004125da
mov edi, dword [esp + 0x30]
test edi, edi
je 0x41532b
mov ecx, edi
call fcn.004125da
mov eax, dword [esp + 0x48]
test eax, eax
je 0x415345
push eax
mov eax, dword fs:[0x30]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
test esi, esi
jns 0x415368
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x415368
cmp byte [esp + 0x16], 0
je 0x41535f
call fcn.00412548
jmp 0x415368
mov ecx, dword [esp + 0xc]
call fcn.004125da
cmp byte [esp + 0x17], 0
jne 0x415374
call fcn.00413219
mov eax, esi
jmp 0x41537d
mov eax, 0xc000000d
mov ecx, dword [esp + 0x6c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041ef80
mov esp, ebp
pop ebp
ret 0x10