Function at 0x40d43d
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4fc90e
mov eax, dword fs:[0]
push eax
sub esp, 0x78
push ebx
push esi
push edi
mov eax, dword [0x5475b0]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x20], esi
xor ebx, ebx
mov edi, ebx
mov dword [esp + 0x24], ebx
push esi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x1c]
sub eax, dword [esi + 0x18]
push 0x70
cdq
pop ecx
idiv ecx
mov dword [esp + 0x14], eax
test eax, eax
jle 0x40d62c
mov ecx, dword [esi + 0x18]
mov eax, dword [ebx + ecx + 0x18]
dec eax
je 0x40d4cc
dec eax
je 0x40d4c3
dec eax
jne 0x40d61f
inc edi
mov dword [esp + 0x2c], edi
jmp 0x40d61f
inc dword [esp + 0x28]
jmp 0x40d61f
mov ecx, dword [ebx + ecx + 0x14]
call fcn.00404c46
test eax, eax
je 0x40d5a5
mov eax, dword [esi + 0x18]
mov dword [ebx + eax + 0x18], 3
mov ecx, dword [esi + 0x18]
mov ecx, dword [ecx + ebx + 0x14]
call fcn.0040d3cf
mov ecx, edx
mov dword [esp + 0x18], eax
push ecx
mov dword [esp + 0x20], ecx
mov ecx, dword [esi + 0x18]
push eax
push 0x64
pop edx
mov ecx, dword [ebx + ecx]
call fcn.0040ca75
pop ecx
pop ecx
mov ecx, dword [esi + 0x18]
mov eax, dword [ebx + ecx + 0x28]
or eax, dword [ebx + ecx + 0x2c]
jne 0x40d52d
mov eax, dword [esp + 0x18]
mov dword [ebx + ecx + 0x28], eax
mov eax, dword [esp + 0x1c]
mov dword [ebx + ecx + 0x2c], eax
mov ecx, dword [esi + 0x18]
inc edi
add ecx, 0x14
mov dword [esp + 0x2c], edi
push 0x512f5c
add ecx, ebx
call fcn.0040e832
cmp eax, 0xffffffff
je 0x40d591
mov edx, dword [esi + 0x18]
cmp dword [ebx + edx + 4], 0
jne 0x40d591
mov edx, dword [ebx + edx + 0x10]
lea ecx, [esp + 0x10]
call fcn.0046ac54
and dword [esp + 0x90], 0
mov edx, dword [esp + 0x10]
mov eax, dword [esi + 0x18]
cmp dword [edx - 8], 0
mov ecx, dword [ebx + eax + 0x14]
jne 0x40d57b
xor edx, edx
call fcn.00466468
or dword [esp + 0x90], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.00403080
call fcn.0040eac6
push 1
push 0
push dword [eax + 0xc]
call dword [sym.imp.WINMM.dll_PlaySoundW]
jmp 0x40d61f
inc dword [esp + 0x24]
lea eax, [esp + 0x34]
push 0x50
push 0
push eax
call fcn.004deff0
mov eax, dword [esi + 0x18]
add esp, 0xc
and dword [esp + 0x38], 0
and dword [esp + 0x4c], 0
mov dword [esp + 0x34], 2
mov eax, dword [ebx + eax]
mov dword [esp + 0x1c], eax
call fcn.0040eac6
cmp dword [eax + 0x2c], 0
je 0x40d61f
lea ecx, [esp + 0x34]
push ecx
push dword [esp + 0x20]
mov ecx, eax
push 0x405
call fcn.0040f0e8
test eax, eax
jne 0x40d61f
mov edi, dword [esi + 0x18]
lea esi, [esp + 0x34]
mov eax, dword [esp + 0x30]
add edi, 0x20
add edi, ebx
push 0x14
pop ecx
rep movsd dword es:[edi], dword [esi]
add eax, dword [esp + 0x74]
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x30], eax
add ebx, 0x70
dec dword [esp + 0x14]
jne 0x40d4a5
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea edi, [esi + 0x2c]
lea esi, [esp + 0x24]
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 ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret