Function at 0x100e2470
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1018d1e8
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x101cd7b4]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x14], edi
lea eax, [edi + 4]
mov dword [esp + 0x2c], eax
add eax, 4
push eax
mov dword [esp + 0x2c], 0x10199614
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
movzx eax, byte [0x101cc03c]
mov esi, dword [edi + 0x50]
mov ecx, 0x64
sub ecx, eax
imul ecx, esi
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
xor ebx, ebx
add eax, edx
cmp eax, esi
mov dword [esp + 0x98], ebx
jne 0x100e2502
cmp esi, 1
jle 0x100e2502
cmp dword [edi + 0x40], ebx
jbe 0x100e2502
sub eax, 1
mov edx, dword [edi + 0x40]
cmp edx, ebx
jne 0x100e250b
mov eax, esi
cmp eax, ebx
jne 0x100e2519
cmp dword [edi + 0x4c], ebx
jbe 0x100e2519
mov eax, 1
mov ecx, dword [edi + 0x4c]
cmp eax, ecx
jb 0x100e2522
mov eax, ecx
mov ecx, eax
sub esi, ecx
mov eax, esi
cmp eax, edx
mov dword [esp + 0x1c], ecx
jb 0x100e2532
mov eax, edx
cmp ecx, ebx
mov dword [esp + 0x18], eax
jbe 0x100e2727
cmp dword [edi + 0x4c], ebx
jbe 0x100e2727
mov eax, dword [edi + 0x48]
mov esi, dword [eax]
cmp esi, eax
lea ebp, [edi + 0x44]
jne 0x100e2558
call fcn.1015988d
cmp dword [esi + 8], 0xffffffff
je 0x100e2709
mov eax, dword [esi + 0x38]
cmp eax, ebx
je 0x100e2709
mov ecx, dword [esi + 0x3c]
sub ecx, eax
je 0x100e2709
push ebx
mov edi, 0xf
push 0x101997b5
lea ecx, [esp + 0x78]
mov dword [esp + 0x90], edi
mov dword [esp + 0x8c], ebx
mov byte [esp + 0x7c], bl
call fcn.10005610
push ebx
push 0x101997b5
lea ecx, [esp + 0x5c]
mov byte [esp + 0xa0], 1
mov dword [esp + 0x74], edi
mov dword [esp + 0x70], ebx
mov byte [esp + 0x60], bl
call fcn.10005610
push ebx
push 0x101997b5
lea ecx, [esp + 0x40]
mov byte [esp + 0xa0], 2
mov dword [esp + 0x58], edi
mov dword [esp + 0x54], ebx
mov byte [esp + 0x44], bl
call fcn.10005610
mov eax, dword [esi + 0x38]
cmp eax, ebx
mov byte [esp + 0x98], 3
jne 0x100e25f7
xor edi, edi
jmp 0x100e25fc
mov edi, dword [esi + 0x3c]
sub edi, eax
cmp eax, ebx
je 0x100e2607
mov edx, dword [esi + 0x3c]
sub edx, eax
jne 0x100e260c
call fcn.1015988d
mov eax, dword [esi + 0x38]
movzx ecx, word [esi + 0x1c]
mov edx, dword [esi + 0x18]
push edi
push eax
mov eax, dword [esi + 0x20]
push eax
mov eax, dword [esi + 0x24]
push ecx
push edx
push eax
lea ecx, [esp + 0x88]
push ecx
lea edx, [esp + 0x70]
push edx
push ebx
lea eax, [esp + 0x5c]
push eax
push ebx
push 0xea60
push 0xa
call fcn.10028700
add esp, 0x1c
mov ecx, eax
call fcn.10023060
mov edi, 0x10
cmp dword [esp + 0x50], edi
jb 0x100e2664
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.10159534
add esp, 4
cmp dword [esp + 0x6c], edi
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
jb 0x100e2687
mov edx, dword [esp + 0x58]
push edx
call fcn.10159534
add esp, 4
cmp dword [esp + 0x88], edi
mov dword [esp + 0x6c], 0xf
mov dword [esp + 0x68], ebx
mov byte [esp + 0x58], bl
mov byte [esp + 0x98], bl
jb 0x100e26b4
mov eax, dword [esp + 0x74]
push eax
call fcn.10159534
add esp, 4
mov ecx, dword [esi + 0x38]
cmp ecx, ebx
jne 0x100e26bf
xor eax, eax
jmp 0x100e26c4
mov eax, dword [esi + 0x3c]
sub eax, ecx
push eax
push 4
push ebx
call fcn.1010c850
add esp, 8
mov ecx, eax
call fcn.1010be65
cmp dword [esi + 0x30], ebx
je 0x100e26f8
mov ecx, dword [esi + 0x38]
cmp ecx, ebx
jne 0x100e26e7
xor eax, eax
jmp 0x100e26ec
mov eax, dword [esi + 0x3c]
sub eax, ecx
mov esi, dword [esi + 0x30]
mov edx, dword [esi]
push eax
mov eax, dword [edx]
mov ecx, esi
call eax
mov eax, dword [esp + 0x14]
mov ecx, 1
add dword [eax + 0x58], ecx
add dword [eax + 0x64], ecx
mov edi, eax
mov eax, dword [ebp + 4]
mov eax, dword [eax]
push eax
push ebp
lea ecx, [esp + 0x38]
push ecx
mov ecx, ebp
call fcn.100e1a10
sub dword [esp + 0x1c], 1
jne 0x100e253e
cmp dword [esp + 0x18], ebx
jbe 0x100e291a
cmp dword [edi + 0x40], ebx
jbe 0x100e291a
mov eax, dword [edi + 0x3c]
mov esi, dword [eax]
cmp esi, eax
lea ebp, [edi + 0x38]
mov dword [esp + 0x1c], ebp
jne 0x100e274f
call fcn.1015988d
cmp dword [esi + 8], 0xffffffff
je 0x100e28fc
mov eax, dword [esi + 0x38]
cmp eax, ebx
je 0x100e28fc
mov edx, dword [esi + 0x3c]
sub edx, eax
je 0x100e28fc
push ebx
mov ebp, 0xf
push 0x101997b5
lea ecx, [esp + 0x78]
mov dword [esp + 0x90], ebp
mov dword [esp + 0x8c], ebx
mov byte [esp + 0x7c], bl
call fcn.10005610
push ebx
push 0x101997b5
lea ecx, [esp + 0x40]
mov byte [esp + 0xa0], 4
mov dword [esp + 0x58], ebp
mov dword [esp + 0x54], ebx
mov byte [esp + 0x44], bl
call fcn.10005610
push ebx
push 0x101997b5
lea ecx, [esp + 0x5c]
mov byte [esp + 0xa0], 5
mov dword [esp + 0x74], ebp
mov dword [esp + 0x70], ebx
mov byte [esp + 0x60], bl
call fcn.10005610
mov eax, dword [esi + 0x38]
cmp eax, ebx
mov byte [esp + 0x98], 6
jne 0x100e27ee
xor edi, edi
jmp 0x100e27f3
mov edi, dword [esi + 0x3c]
sub edi, eax
cmp eax, ebx
je 0x100e27fe
mov ecx, dword [esi + 0x3c]
sub ecx, eax
jne 0x100e2803
call fcn.1015988d
mov eax, dword [esi + 0x38]
mov edx, dword [esi + 0x20]
mov ecx, dword [esi + 0x18]
push edi
push eax
movzx eax, word [esi + 0x1c]
push edx
mov edx, dword [esi + 0x24]
push eax
push ecx
push edx
lea eax, [esp + 0x88]
push eax
lea ecx, [esp + 0x54]
push ecx
push ebx
lea edx, [esp + 0x78]
push edx
push ebx
push 0xea60
push 0xa
call fcn.10028700
add esp, 0x1c
mov ecx, eax
call fcn.10023060
mov edi, 0x10
cmp dword [esp + 0x6c], edi
jb 0x100e285b
mov eax, dword [esp + 0x58]
push eax
call fcn.10159534
add esp, 4
cmp dword [esp + 0x50], edi
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x68], ebx
mov byte [esp + 0x58], bl
jb 0x100e287a
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.10159534
add esp, 4
cmp dword [esp + 0x88], edi
mov dword [esp + 0x50], ebp
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
mov byte [esp + 0x98], bl
jb 0x100e28a3
mov edx, dword [esp + 0x74]
push edx
call fcn.10159534
add esp, 4
mov ecx, dword [esi + 0x38]
cmp ecx, ebx
jne 0x100e28ae
xor eax, eax
jmp 0x100e28b3
mov eax, dword [esi + 0x3c]
sub eax, ecx
push eax
push 4
push ebx
call fcn.1010c850
add esp, 8
mov ecx, eax
call fcn.1010be65
cmp dword [esi + 0x30], ebx
je 0x100e28e7
mov ecx, dword [esi + 0x38]
cmp ecx, ebx
jne 0x100e28d6
xor eax, eax
jmp 0x100e28db
mov eax, dword [esi + 0x3c]
sub eax, ecx
mov esi, dword [esi + 0x30]
mov edx, dword [esi]
push eax
mov eax, dword [edx]
mov ecx, esi
call eax
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0x1c]
mov ecx, 1
add dword [eax + 0x58], ecx
add dword [eax + 0x60], ecx
mov edi, eax
mov ecx, dword [ebp + 4]
mov eax, dword [ecx]
push eax
push ebp
lea edx, [esp + 0x38]
push edx
mov ecx, ebp
call fcn.100e1a10
sub dword [esp + 0x18], 1
jne 0x100e2731
mov eax, dword [edi + 0x54]
mov ecx, dword [edi + 0x30]
add eax, 1
cdq
idiv ecx
mov eax, dword [edi + 0x2c]
mov esi, edx
cdq
idiv ecx
xor ecx, ecx
mov dword [edi + 0x54], esi
cmp edx, esi
mov edx, dword [esp + 0x20]
setg cl
push edx
add ecx, eax
mov dword [edi + 0x50], ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret