Function at 0x4d67f0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x539ec8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xd0
push ebx
mov ebx, ecx
mov ecx, dword [ebx + 0x3a0]
push ebp
push esi
lea esi, [ebx + 0x3a0]
push edi
xor edi, edi
cmp ecx, edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], edi
mov dword [esp + 0x90], edi
mov dword [esp + 0x94], edi
mov dword [esp + 0x98], edi
mov word [esp + 0x9c], di
mov word [esp + 0x9e], di
mov word [esp + 0xa0], di
mov dword [esp + 0x20], esi
je 0x4d6898
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi], edi
cmp word [ebx + 0x38], 0x130
je 0x4d68b4
mov ecx, dword [esp + 0xf0]
push ecx
mov ecx, ebx
call fcn.004d6330
jmp 0x4d6b9f
push 1
lea edx, [esp + 0x28]
push ebx
push edx
call fcn.00453d60
push edi
lea eax, [esp + 0x40]
push ebx
push eax
call fcn.00453d60
lea ecx, [esp + 0x3c]
lea edx, [esp + 0x48]
push ecx
lea eax, [esp + 0xe4]
push edx
push eax
call fcn.004e7760
mov ecx, dword [eax]
add esp, 0x24
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x14]
mov edx, dword [eax + 4]
push ecx
mov dword [esp + 0x1c], edx
lea ecx, [esp + 0x28]
mov eax, dword [eax + 8]
mov dword [esp + 0x20], eax
call fcn.004e7590
lea edx, [esp + 0x10]
lea ecx, [esp + 0x14]
push edx
mov dword [esp + 0x14], 6
call fcn.004e7680
lea eax, [esp + 0x14]
lea ecx, [esp + 0x30]
push eax
call fcn.004e7590
mov ebp, dword [esp + 0xf0]
cmp ebp, edi
je 0x4d6944
lea ecx, [esp + 0x24]
push ecx
mov ecx, ebx
call fcn.004d6bc0
cmp word [ebx + 0x12a], 7
jne 0x4d6b9d
mov esi, dword [ebx + 0x218]
shr esi, 0xc
and esi, 7
cmp esi, 4
jge 0x4d6b9d
movsx eax, word [ebx + 0x128]
xor edx, edx
mov dx, word [esi*2 + 0x552168]
cmp eax, edx
jl 0x4d6b9d
cmp dword [ebx + 0x338], edi
jne 0x4d6992
mov dword [ebx + 0x344], 0x42
lea ecx, [ebx + 8]
push 0x1f4
push ecx
push 2
call fcn.004e5da0
add eax, 2
add esp, 4
or ah, 0x80
push eax
call fcn.00471ea0
mov edx, dword [ebx + 0x218]
add esp, 0xc
inc esi
and dh, 0x8f
shl esi, 0xc
or edx, esi
mov esi, dword [esp + 0xf4]
cmp ebp, edi
mov dword [ebx + 0x218], edx
je 0x4d69f3
mov eax, dword [ebx + 0x380]
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x34]
push ecx
lea eax, [esp + 0x2c]
push edx
push eax
mov ecx, ebx
call fcn.004d5e40
jmp 0x4d6a40
cmp esi, edi
je 0x4d6a40
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 8]
mov eax, dword [esi + 0x10]
sub ecx, 0x28000
mov dword [esp + 0x34], ecx
mov dword [esp + 0x30], edx
lea ecx, [esp + 0x24]
mov dword [esp + 0x38], eax
lea edx, [esp + 0x30]
push ecx
lea eax, [esp + 0xd8]
push edx
push eax
call fcn.004e7760
mov ecx, dword [eax]
add esp, 0xc
mov dword [esp + 0x14], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x18], edx
mov eax, dword [eax + 8]
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x14]
push ebp
lea edx, [esp + 0x28]
push ecx
push edx
mov ecx, ebx
call fcn.004d5fa0
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x4d6a74
mov esi, dword [esp + 0x20]
mov ecx, dword [esi]
cmp ecx, edi
je 0x4d6a69
mov eax, dword [ecx]
push 1
call dword [eax]
xor ebp, ebp
mov dword [esi], edi
mov eax, ebp
jmp 0x4d6b9f
cmp esi, edi
je 0x4d6aa2
push 0x48
call fcn.004088a0
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, edi
mov dword [esp + 0xe8], edi
je 0x4d6b1b
push 0xff
push 0x64
push 0x64
push edi
push esi
jmp 0x4d6b0a
cmp ebp, edi
push 0x48
je 0x4d6ae0
call fcn.004088a0
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, edi
mov dword [esp + 0xe8], 1
je 0x4d6b1b
mov ecx, dword [0x6a9038]
push 0xff
push 0x64
push 0x64
push edi
push ecx
lea edx, [esp + 0x44]
lea ecx, [esp + 0x38]
push edx
push ecx
jmp 0x4d6b14
call fcn.004088a0
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, edi
mov dword [esp + 0xe8], 2
je 0x4d6b1b
push 0xff
push 0x64
lea edx, [esp + 0x2c]
push 0x64
push edx
push edi
lea ecx, [esp + 0x44]
lea edx, [esp + 0x38]
push ecx
push edx
mov ecx, eax
call fcn.004d2710
test byte [ebx + 5], 0x80
mov dword [esp + 0xe8], 0xffffffff
jne 0x4d6b99
push 0x70
call fcn.004088a0
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, edi
mov dword [esp + 0xe8], 3
je 0x4d6b78
push 1
push 0xa
push 0x14
push 0x28
push 0xa
push 0x14
push 1
push 0x14
push 0x32
push edi
push edi
push edi
push edi
push 0x20
push 0xff
push 0x64
push 0x64
lea ecx, [esp + 0x68]
push 5
push ecx
mov ecx, eax
call fcn.0043bee0
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x30]
lea eax, [esp + 0x24]
push edx
push eax
push ecx
mov ecx, ebx
mov dword [esp + 0xf4], 0xffffffff
call fcn.004d6260
mov eax, ebp
jmp 0x4d6b9f
xor eax, eax
mov ecx, dword [esp + 0xe0]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xdc
ret 8