Function at 0x4137a2
Capabilities:
Get number of processors

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x64
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x60], eax
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0x18]
and dword [esp + 4], 0
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 0x1c]
and dword [eax], 0
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [esp + 0x48], eax
xor eax, eax
push esi
push edi
lea edi, [esp + 0x5c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [esp + 0x48], edx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x38], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x30], eax
mov byte [esp + 0x17], al
mov dword [esp + 0x40], eax
mov dword [esp + 0x34], eax
test edx, edx
je 0x413b7d
test ebx, ebx
je 0x413b7d
mov edi, dword [esp + 0x3c]
test edi, edi
je 0x413b7d
mov eax, dword [ebp + 0x10]
and eax, 0x10
mov dword [esp + 0x4c], eax
je 0x41383c
test byte [ebp + 0x10], 2
jne 0x413b7d
test ecx, ecx
je 0x41384a
test byte [ebp + 0x10], 1
jne 0x413b7d
lea eax, [esp + 0x54]
push eax
push ebx
call fcn.0040fe1a
mov esi, eax
test esi, esi
js 0x413b24
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x44]
push eax
push 3
push 0x4209c8
push 0x420bcc
push ebx
call fcn.00414c08
mov esi, dword [esp + 0x2c]
test esi, esi
je 0x413891
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 + 0x3c]
jmp 0x4138b9
test byte [ebp + 0x10], 1
je 0x4138a4
lea edx, [esp + 0x5c]
mov ecx, edi
call fcn.00415144
jmp 0x4138af
lea eax, [esp + 0x5c]
push eax
push ebx
call fcn.0040febc
mov esi, eax
test esi, esi
js 0x413b24
test byte [ebp + 0x10], 2
je 0x4138e1
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x60]
push eax
push edi
call fcn.0040fbf0
test eax, eax
js 0x4138e1
push dword [esp + 0x10]
call fcn.004144da
and dword [esp + 0x10], 0
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x60]
push eax
push edi
call fcn.0040fbf0
test eax, eax
jns 0x41392b
test byte [ebp + 0x10], 4
je 0x413900
xor eax, eax
inc eax
jmp 0x413904
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x58]
push ecx
lea ecx, [esp + 0x64]
push ecx
mov edx, eax
mov ecx, edi
call fcn.0040ffdc
mov esi, eax
test esi, esi
js 0x413b24
mov byte [esp + 0x17], 1
mov eax, dword [esp + 0x40]
mov edi, dword [esp + 0x10]
test eax, eax
je 0x41394c
push dword [esp + 0x24]
push eax
push edi
call fcn.00415778
mov esi, eax
test esi, esi
js 0x413b28
xor ecx, ecx
lea eax, [esp + 0x18]
push eax
push ecx
push ebx
lea ebx, [esp + 0x34]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x34], ecx
call fcn.00412a4c
mov esi, eax
cmp esi, 0xc0000023
jne 0x4139b3
push dword [esp + 0x18]
mov eax, dword fs:[0x30]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [esp + 0x38], eax
test eax, eax
jne 0x413995
add esi, 0xfffffff4
jmp 0x413b24
and dword [esp + 0x28], 0
lea ecx, [esp + 0x18]
push ecx
push eax
push dword [esp + 0x24]
lea ebx, [esp + 0x34]
call fcn.00412a4c
mov edi, dword [esp + 0x10]
mov esi, eax
test esi, esi
js 0x413b0a
and dword [esp + 0x34], 0
cmp dword [esp + 0x28], 0
jbe 0x413b02
mov ecx, dword [ebp + 0x10]
mov eax, dword [esp + 0x38]
and ecx, 8
mov dword [esp + 0x24], ecx
mov dword [esp + 0x2c], eax
mov esi, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x44], esi
mov dword [esp + 0x1c], eax
test ecx, ecx
je 0x413a01
mov eax, dword [esi + 4]
and eax, 0xf0000000
cmp eax, 0x40000000
je 0x413ae4
cmp dword [esp + 0x4c], 0
je 0x413a2d
cmp dword [esi + 4], 0x16000020
je 0x413a2d
and dword [esp + 0x18], 0
push 0
push dword [esi + 4]
lea ebx, [esp + 0x20]
mov ecx, edi
call fcn.00410c3e
cmp eax, 0xc0000023
je 0x413a4d
mov edx, dword [esi + 8]
mov ecx, dword [esp + 0x1c]
push 0
push dword [esi + 4]
push edi
call fcn.00410d6c
mov esi, eax
test esi, esi
js 0x413b0a
mov esi, dword [esp + 0x44]
cmp dword [esi + 4], 0x14000006
jne 0x413ae0
mov eax, dword [esi + 8]
shr eax, 4
xor ebx, ebx
mov dword [esp + 0x44], eax
mov dword [esp + 0x18], ebx
test eax, eax
je 0x413ae0
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x48]
lea ecx, [esp + 0x30]
push ecx
push eax
push esi
call fcn.0040fbf0
test eax, eax
js 0x413aca
mov ebx, dword [esp + 0x30]
lea eax, [esp + 0x20]
push eax
mov eax, dword [ebp + 0x10]
push 0
push dword [esp + 0x44]
and eax, 0xfffffffe
push eax
push ebx
push esi
call fcn.004137a2
mov esi, eax
test esi, esi
js 0x413b0a
push dword [esp + 0x20]
call fcn.00414312
and dword [esp + 0x20], 0
push ebx
call fcn.00414312
and dword [esp + 0x30], 0
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x48]
mov eax, dword [esp + 0x1c]
inc ebx
add eax, 0x10
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], eax
cmp ebx, dword [esp + 0x44]
jb 0x413a76
mov ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x2c]
inc esi
add eax, 8
mov dword [esp + 0x34], esi
mov dword [esp + 0x2c], eax
cmp esi, dword [esp + 0x28]
jb 0x4139dd
mov eax, dword [esp + 0x50]
mov dword [eax], edi
xor esi, esi
mov eax, dword [esp + 0x38]
test eax, eax
je 0x413b28
push eax
mov eax, dword fs:[0x30]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov edi, dword [esp + 0x10]
cmp dword [esp + 0x20], 0
je 0x413b38
push dword [esp + 0x20]
call fcn.00414312
mov ebx, dword [esp + 0x30]
test ebx, ebx
je 0x413b46
push ebx
call fcn.00414312
mov eax, dword [esp + 0x40]
test eax, eax
je 0x413b64
push eax
mov eax, dword fs:[0x30]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov edi, dword [esp + 0x10]
test esi, esi
jns 0x413b79
test edi, edi
je 0x413b79
cmp byte [esp + 0x17], 0
je 0x413b79
push edi
call fcn.004144da
mov eax, esi
jmp 0x413b82
mov eax, 0xc000000d
mov ecx, dword [esp + 0x6c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041b8aa
mov esp, ebp
pop ebp
ret 0x18