Function at 0x4c5610
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4f8778
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x54d000]
xor eax, esp
mov dword [esp + 0x80], eax
push ebx
push esi
push edi
mov eax, dword [0x54d000]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [esp + 0x18], ebx
call fcn.00496a60
inc dword [0x57d8c4]
xorps xmm0, xmm0
movq qword [esp + 0x88], xmm0
mov dword [esp + 0x8c], 0
mov eax, dword [eax + 4]
add eax, 0x30
mov dword [esp + 0x88], vtable.CDirect3DDevice.0
mov dword [esp + 0x14], eax
mov dword [esp + 0xa0], 0
mov ecx, dword [esi + 0x3c]
test ecx, ecx
je 0x4c56b2
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi + 0x3c], 0
mov eax, dword [esi + 0x38]
mov dword [esp + 0x54], eax
test eax, eax
je 0x4c56eb
mov ecx, dword [eax + 4]
mov dword [eax], vtable.CDirect3DTexture.0
test ecx, ecx
je 0x4c56db
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [esp + 0x54]
mov dword [eax + 4], 0
push eax
call fcn.004d9d65
add esp, 4
mov dword [esi + 0x38], 0
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 4]
test byte [eax + 0x44], 2
je 0x4c574c
mov edx, 2
mov dword [esp + 0x54], edx
cmp ebx, edx
jle 0x4c570f
add edx, edx
cmp ebx, edx
jg 0x4c5705
mov dword [esp + 0x54], edx
add eax, 0x60
lea ecx, [esp + 0x54]
cmp dword [eax], edx
mov edx, 2
cmovb ecx, eax
mov eax, dword [ecx]
mov dword [esi + 0x40], eax
mov dword [esp + 0x54], edx
cmp edi, edx
jle 0x4c573a
lea ecx, [ecx]
add edx, edx
cmp edi, edx
jg 0x4c5730
mov dword [esp + 0x54], edx
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 4]
add eax, 0x64
cmp dword [eax], edx
mov edx, dword [esp + 0x14]
jmp 0x4c576d
add eax, 0x60
mov dword [esp + 0x54], ebx
lea ecx, [esp + 0x54]
cmp dword [eax], ebx
cmovb ecx, eax
mov eax, dword [ecx]
mov dword [esi + 0x40], eax
mov eax, dword [edx + 4]
add eax, 0x64
mov dword [esp + 0x54], edi
cmp dword [eax], edi
lea ecx, [esp + 0x54]
cmovb ecx, eax
mov eax, dword [ecx]
mov dword [esi + 0x44], eax
mov eax, dword [edx + 4]
test byte [eax + 0x44], 0x20
je 0x4c57ad
mov edx, dword [esi + 0x44]
lea ecx, [esp + 0x54]
mov eax, dword [esi + 0x40]
cmp eax, edx
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x50], eax
lea eax, [esp + 0x50]
cmovge ecx, eax
mov dword [esp + 0x54], edx
mov edx, dword [esp + 0x14]
mov eax, dword [ecx]
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], eax
mov ecx, dword [esi + 0x40]
cmp ecx, ebx
jl 0x4c59d8
cmp dword [esi + 0x44], edi
jl 0x4c59d8
push 0x57c8f0
push 0x34
call fcn.004da558
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4c57ec
mov dword [ebx + 4], 0
mov dword [ebx], vtable.CDirect3DTexture.0
mov dword [ebx + 0x30], 0
jmp 0x4c57ee
xor ebx, ebx
mov dword [esi + 0x38], ebx
test ebx, ebx
jne 0x4c58cb
mov dword [esp + 0x84], 0xf
mov dword [esp + 0x80], ebx
mov byte [esp + 0x70], bl
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x58]
push edi
push ecx
push 0x532fc8
push eax
lea eax, [esp + 0x80]
mov byte [esp + 0xb0], 3
push eax
call fcn.004c6540
add esp, 0x14
mov dword [esp + 0x68], ebx
cmp dword [esp + 0x6c], 0x10
lea eax, [esp + 0x58]
cmovae eax, dword [esp + 0x58]
mov byte [eax], bl
cmp dword [esp + 0x6c], 0x10
jb 0x4c585e
push dword [esp + 0x58]
call fcn.004d9d65
add esp, 4
cmp dword [esp + 0x84], 0x10
lea edx, [esp + 0x70]
mov dword [esp + 0x6c], 0xf
cmovae edx, dword [esp + 0x70]
mov dword [esp + 0x68], 0
mov byte [esp + 0x58], 0
mov byte [esp + 0xa0], 4
cmp byte [edx], 0
jne 0x4c5895
xor ecx, ecx
jmp 0x4c58a9
mov ecx, edx
lea esi, [ecx + 1]
lea ebx, [ebx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4c58a0
sub ecx, esi
push ecx
push edx
lea ecx, [esp + 0x60]
call fcn.004270f0
push 0x549be0
lea eax, [esp + 0x5c]
mov byte [esp + 0xa4], 3
push eax
call fcn.004dd2ec
mov ecx, dword [0x57d8c8]
test ecx, ecx
jne 0x4c58dc
mov eax, 0x80004005
jmp 0x4c590e
mov eax, dword [ecx]
lea edx, [esp + 0x50]
push 0
push edx
push 1
push 0x15
push 0
push 1
push dword [esi + 0x44]
push dword [esi + 0x40]
push ecx
call dword [eax + 0x5c]
mov edx, dword [ebx]
mov ecx, ebx
push dword [esp + 0x50]
mov dword [esp + 0x58], eax
call dword [edx + 4]
mov eax, dword [esp + 0x54]
test eax, eax
jns 0x4c5927
push eax
lea ecx, [esp + 0x20]
call fcn.0049ca90
push 0x549ce8
lea eax, [esp + 0x20]
push eax
call fcn.004dd2ec
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x24]
mov ecx, dword [esp + 0x18]
mov dword [eax + 8], edi
imul edi, ecx
mov dword [eax], 0x28
mov dword [eax + 4], ecx
mov dword [eax + 0xc], 0x200001
mov dword [eax + 0x10], 0
shl edi, 2
mov dword [eax + 0x14], edi
mov dword [eax + 0x18], 0
mov dword [eax + 0x1c], 0
mov dword [eax + 0x20], 0
mov dword [eax + 0x24], 0
mov ecx, dword [esi + 0x38]
mov eax, dword [ecx]
call dword [eax + 8]
lea edx, [esi + 0x3c]
push edx
push 0
mov ecx, dword [eax]
push eax
call dword [ecx + 0x48]
mov dword [esp + 0xa0], 0xffffffff
dec dword [0x57d8c4]
jne 0x4c59b2
mov ecx, dword [0x57d8c8]
test ecx, ecx
je 0x4c59b2
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [0x57d8c8], 0
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.004d9d6a
mov esp, ebp
pop ebp
ret 8
mov dword [esp + 0x6c], 0xf
mov dword [esp + 0x68], 0
mov byte [esp + 0x58], 0
mov byte [esp + 0xa0], 1
mov eax, dword [edx + 4]
push dword [eax + 0x64]
push dword [eax + 0x60]
lea eax, [esp + 0x78]
push dword [esi + 0x44]
push ecx
push edi
push ebx
push 0x532f80
push eax
lea eax, [esp + 0x78]
push eax
call fcn.004c6540
add esp, 0x24
mov dword [esp + 0x80], 0
cmp dword [esp + 0x84], 0x10
lea eax, [esp + 0x70]
cmovae eax, dword [esp + 0x70]
mov byte [eax], 0
cmp dword [esp + 0x84], 0x10
jb 0x4c5a50
push dword [esp + 0x70]
call fcn.004d9d65
add esp, 4
cmp dword [esp + 0x6c], 0x10
lea edx, [esp + 0x58]
mov dword [esp + 0x84], 0xf
cmovae edx, dword [esp + 0x58]
mov dword [esp + 0x80], 0
mov byte [esp + 0x70], 0
mov byte [esp + 0xa0], 2
cmp byte [edx], 0
jne 0x4c5a8a
xor ecx, ecx
jmp 0x4c5a99
mov ecx, edx
lea esi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4c5a90
sub ecx, esi
push ecx
push edx
lea ecx, [esp + 0x78]
call fcn.004270f0
push 0x549be0
lea eax, [esp + 0x74]
mov byte [esp + 0xa4], 1
push eax
call fcn.004dd2ec
int3