Function at 0x41acd0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x51d428
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push ebp
push esi
push edi
xor edi, edi
mov ebp, ecx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
lea ebx, [ebp + 0x11c]
push ebx
mov dword [esp + 0x3c], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp + 0x114]
mov eax, dword [ecx]
cmp eax, ecx
mov dword [esp + 0x10], eax
je 0x41ad7c
mov esi, dword [eax + 0x14]
mov eax, dword [esi + 4]
cmp eax, edi
mov ecx, dword [esi + 8]
jne 0x41ad37
cmp ecx, 3
jb 0x41ad67
push 0x24
call fcn.004f5012
mov ecx, dword [esi + 0x38]
mov dword [eax], ecx
lea edi, [eax + 4]
add esp, 4
add esi, 0x14
mov ecx, 8
lea edx, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
push edx
lea ecx, [esp + 0x20]
mov dword [esp + 0x1c], eax
call fcn.00419c10
xor edi, edi
lea ecx, [esp + 0x10]
call fcn.00496ab0
mov eax, dword [esp + 0x10]
cmp eax, dword [ebp + 0x114]
jne 0x41ad25
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, dword [esp + 0x40]
mov ecx, edi
call fcn.0041e0c0
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jg 0x41ae06
mov esi, dword [esp + 0x2c]
cmp esi, ebx
je 0x41af4f
mov edx, dword [esp + 0x28]
mov eax, edx
shr eax, 2
lea ecx, [eax*4]
mov edi, ecx
mov ecx, edx
sub ecx, edi
mov edi, dword [esp + 0x24]
cmp edi, eax
ja 0x41adc2
sub eax, edi
cmp esi, ebx
mov ebp, dword [esp + 0x20]
mov eax, dword [ebp + eax*4]
mov ecx, dword [eax + ecx*4]
je 0x41adf0
inc edx
lea eax, [edi*4]
cmp eax, edx
mov dword [esp + 0x28], edx
ja 0x41ade5
mov dword [esp + 0x28], ebx
dec esi
mov dword [esp + 0x2c], esi
jne 0x41adf0
mov dword [esp + 0x28], ebx
push ecx
call fcn.004f503d
mov esi, dword [esp + 0x30]
add esp, 4
cmp esi, ebx
jne 0x41ada2
jmp 0x41af4f
push esi
call fcn.004f5042
add esp, 4
mov ebp, eax
push esi
push ebp
mov ecx, edi
call fcn.0041e010
mov ecx, dword [edi + 0x18]
push 0x80
mov dword [esp + 0x14], eax
call fcn.0041d420
test al, al
mov edx, dword [esp + 0x2c]
je 0x41aeba
cmp edx, ebx
je 0x41af3e
nop
mov edi, dword [esp + 0x28]
mov ebx, dword [esp + 0x24]
mov eax, edi
shr eax, 2
lea ecx, [eax*4]
mov esi, ecx
mov ecx, edi
sub ecx, esi
cmp ebx, eax
ja 0x41ae60
sub eax, ebx
mov esi, dword [esp + 0x20]
mov eax, dword [esi + eax*4]
mov esi, dword [eax + ecx*4]
xor eax, eax
cmp edx, eax
je 0x41ae8f
inc edi
lea ecx, [ebx*4]
cmp ecx, edi
mov dword [esp + 0x28], edi
ja 0x41ae84
mov dword [esp + 0x28], eax
dec edx
mov dword [esp + 0x2c], edx
jne 0x41ae8f
mov dword [esp + 0x28], eax
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push eax
mov eax, dword [esi]
push 0x64
push edx
push ebp
push eax
call fcn.00421f80
push esi
call fcn.004f503d
mov edx, dword [esp + 0x30]
add esp, 4
test edx, edx
jne 0x41ae40
jmp 0x41af3a
cmp edx, ebx
je 0x41af3e
mov edi, dword [esp + 0x28]
mov ebx, dword [esp + 0x24]
mov eax, edi
shr eax, 2
lea ecx, [eax*4]
mov esi, ecx
mov ecx, edi
sub ecx, esi
cmp ebx, eax
ja 0x41aee2
sub eax, ebx
mov esi, dword [esp + 0x20]
mov eax, dword [esi + eax*4]
mov esi, dword [eax + ecx*4]
xor eax, eax
cmp edx, eax
je 0x41af11
inc edi
lea ecx, [ebx*4]
cmp ecx, edi
mov dword [esp + 0x28], edi
ja 0x41af06
mov dword [esp + 0x28], eax
dec edx
mov dword [esp + 0x2c], edx
jne 0x41af11
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esi]
lea edx, [esi + 4]
push edx
push 0x65
push eax
push ebp
push ecx
mov ecx, dword [esp + 0x28]
call fcn.00421f80
push esi
call fcn.004f503d
mov edx, dword [esp + 0x30]
add esp, 4
test edx, edx
jne 0x41aec2
mov edi, dword [esp + 0x40]
push ebp
call fcn.004f503d
mov edx, dword [edi]
add esp, 4
push 1
mov ecx, edi
call dword [edx]
lea ecx, [esp + 0x1c]
call fcn.0041ddd0
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 4