Function at 0x431ef0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x499028
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push ebx
push esi
push edi
mov eax, dword [0x4c5280]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov edi, dword [ebp + 0x14]
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x18]
push edx
xor ebx, ebx
push edi
push esi
mov dword [eax], 1
mov dword [esp + 0x24], ebx
mov dword [esp + 0x34], ebx
call fcn.0043a540
mov eax, dword [esp + 0x24]
lea eax, [eax + eax*4]
add eax, eax
add eax, eax
push eax
call fcn.00475202
mov ecx, eax
mov eax, dword [esp + 0x28]
lea edx, [eax + eax*4]
add edx, edx
add esp, 0x14
add edx, edx
push edx
push ebx
push ecx
mov dword [esp + 0x40], ecx
call fcn.00479770
xor eax, eax
add esp, 0xc
cmp dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], eax
mov byte [esp + 0x28], al
mov dword [esp + 0x20], eax
jle 0x43218a
push edi
push esi
call fcn.0043ad80
push 0x20000
push edi
push esi
call fcn.0043a3a0
add esp, 0x14
test eax, eax
je 0x43215b
lea eax, [esp + 0x61]
push eax
lea ecx, [esp + 0x64]
push ecx
lea edx, [esp + 0x66]
push edx
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x68]
push ecx
lea edx, [esp + 0x68]
push edx
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x68]
push ecx
push edi
push esi
call fcn.0043a590
mov edx, dword [ebp + 0x18]
push edx
push esi
call fcn.0043b820
mov eax, dword [esp + 0x7c]
mov edi, dword [ebp + 0xc]
mov ecx, dword [esp + 0x80]
mov dword [edi + 4], eax
xor eax, eax
mov dword [esp + 0x4c], 0
mov dword [edi + 8], ecx
mov byte [esp + 0x70], 0
mov dword [esp + 0x6c], eax
mov edx, dword [ebp + 0x18]
mov dword [esp + 0xa0], eax
push edx
lea eax, [esp + 0x50]
push eax
mov ecx, edi
lea eax, [esp + 0x74]
call fcn.00437290
add esp, 0x38
test al, al
jne 0x43204f
lea edi, [esp + 0x3c]
mov dword [esp + 0x70], 0xffffffff
call fcn.0040f730
mov edi, dword [ebp + 0x14]
jmp 0x432168
test ebx, ebx
jne 0x4320c1
mov al, byte [esp + 0x60]
mov ecx, dword [edi + 4]
mov edx, dword [edi + 8]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x2c], edx
cmp al, 1
je 0x432092
cmp al, 2
je 0x432092
mov eax, dword [ebp + 0x18]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ecx, edi
lea eax, [esp + 0x44]
call fcn.00437290
add esp, 8
cmp word [edi + 0xe], 0x20
sete dl
mov byte [esp + 0x28], dl
jmp 0x4320d8
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x44]
push ecx
mov ecx, edi
mov dword [esp + 0x44], 0
call fcn.00436ff0
add esp, 0xc
cmp word [edi + 0xe], 0x20
sete dl
mov byte [esp + 0x28], dl
jmp 0x4320d8
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x4c]
push eax
push ecx
lea edx, [esp + 0x24]
push edx
call fcn.00431a10
add esp, 0xc
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x1c]
xor ecx, ecx
lea edx, [ebx + ebx*4]
lea esi, [esi + edx*4]
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x48]
mov dword [esi + 8], eax
mov eax, dword [esp + 0x44]
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], ecx
mov ax, word [esp + 0x5e]
test ax, ax
jne 0x432110
mov eax, 0x64
mov word [esp + 0x5e], ax
movzx edx, word [esp + 0x5c]
mov dword [esp + 0x38], edx
movzx eax, ax
fild dword [esp + 0x38]
mov dword [esp + 0x38], eax
fmul qword [0x4bc0d8]
fild dword [esp + 0x38]
fdivp st(1)
call fcn.00494670
cmp eax, 2
jge 0x43213f
mov eax, 2
lea edi, [esp + 0x3c]
mov dword [esi], eax
inc ebx
mov dword [esp + 0x70], 0xffffffff
call fcn.0040f730
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
jmp 0x432168
mov ecx, dword [ebp + 0x18]
push ecx
push esi
call fcn.0043b820
add esp, 8
mov eax, dword [esp + 0x20]
inc eax
cmp eax, dword [esp + 0x14]
mov dword [esp + 0x20], eax
jl 0x431f96
mov eax, dword [esp + 0x18]
test eax, eax
je 0x43218a
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov esi, dword [ebp + 8]
mov edi, dword [esp + 0x34]
push edx
mov edx, dword [esp + 0x34]
push eax
push ecx
push edx
push ebx
add esi, 4
call fcn.00435cf0
mov al, 1
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret