Function at 0xbeb5c0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0xd457c8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [str._Sk]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [str._Sk]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [edi + 0x64]
mov ebx, edx
xor ebp, ebp
mov dword [esp + 0x24], ebp
push eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push ebx
lea eax, [edi + 4]
mov dword [esp + 0x4c], ebp
call fcn.00cd4740
mov dword [esp + 0x18], eax
cmp eax, dword [edi + 8]
je 0xbeb64e
mov ecx, dword [eax + 0x1c]
add eax, 0xc
cmp dword [eax + 0x14], 0x10
jb 0xbeb636
mov eax, dword [eax]
push ecx
push eax
mov eax, dword [ebx + 0x10]
push eax
push ebp
mov ecx, ebx
call fcn.00b9bb10
test eax, eax
js 0xbeb64e
lea eax, [esp + 0x18]
jmp 0xbeb659
mov ecx, dword [edi + 8]
mov dword [esp + 0x1c], ecx
lea eax, [esp + 0x1c]
mov ebp, dword [eax]
cmp ebp, dword [edi + 8]
jne 0xbeb672
mov edx, dword [esp + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
jmp 0xbeb784
mov eax, dword [ebp + 0x28]
mov eax, dword [eax + 0x14]
mov dword [esp + 0x18], 0
test eax, eax
jle 0xbeb756
lea esi, [edi + 0x14]
mov eax, dword [ebp + 0x28]
mov ecx, dword [eax + 0x10]
mov edx, dword [esp + 0x18]
mov eax, dword [ecx + edx*4]
mov edi, dword [eax + 8]
push edi
mov eax, esi
call fcn.00bec5a0
mov dword [esp + 0x1c], eax
cmp eax, dword [esi + 4]
je 0xbeb6d3
mov ecx, dword [eax + 0x1c]
add eax, 0xc
cmp dword [eax + 0x14], 0x10
jb 0xbeb6ba
mov eax, dword [eax]
push ecx
push eax
mov eax, dword [edi + 0x10]
push eax
push 0
mov ecx, edi
call fcn.00b9bb10
test eax, eax
js 0xbeb6d3
lea eax, [esp + 0x1c]
jmp 0xbeb6de
mov ecx, dword [esi + 4]
mov dword [esp + 0x24], ecx
lea eax, [esp + 0x24]
mov eax, dword [eax]
mov edx, dword [esp + 0x20]
cmp eax, dword [edx + 0x18]
je 0xbeb73d
cmp dword [ebx + 0x14], 0x10
mov eax, dword [eax + 0x28]
mov ecx, dword [eax + 8]
mov edx, dword [ebx + 0x10]
jb 0xbeb6fc
mov eax, dword [ebx]
jmp 0xbeb6fe
mov eax, ebx
push edx
mov edx, dword [ecx + 0x10]
push eax
push edx
push 0
call fcn.00b9bb10
test eax, eax
jne 0xbeb73d
mov ebx, dword [esp + 0x20]
mov eax, edi
call fcn.00bebd60
push edi
lea eax, [esp + 0x38]
push eax
push esi
call fcn.00bec3f0
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
push ecx
push edx
lea edi, [esp + 0x38]
call fcn.00bebfe0
mov ebx, dword [esp + 0x2c]
mov eax, dword [esp + 0x18]
mov ecx, dword [ebp + 0x28]
inc eax
mov dword [esp + 0x18], eax
cmp eax, dword [ecx + 0x14]
jl 0xbeb68b
mov edi, dword [esp + 0x20]
push ebp
lea edx, [esp + 0x34]
push edx
lea eax, [edi + 4]
push eax
call fcn.00c0c400
mov dword [esp + 0x48], 0xffffffff
mov eax, dword [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [edi + 0x7c]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.00cd8a41
add esp, 0x38
ret