Function at 0x457890
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x49c267
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
push ebp
mov dword [esp + 4], ecx
push 0xa
lea ecx, [esp + 0x2c]
call fcn.00496750
mov ecx, dword [esp + 0x5c]
push 0x2c
push 0xffffffffffffffff
lea eax, [esp + 0x30]
push eax
xor ebp, ebp
push ecx
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x18], ebp
call fcn.0048f630
mov eax, dword [esp + 0x44]
add esp, 0x10
cmp eax, 6
lea ecx, [esp + 0x28]
jge 0x457904
mov dword [esp + 0x4c], 0xffffffff
call sub.MFC71.DLL_CPtrList::CPtrList
pop ebp
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
add esp, 0x4c
ret 0xc
push ebp
call sub.MFC71.DLL_CPtrList::FindIndex
cmp eax, ebp
jne 0x457913
call fcn.0049641a
mov edx, dword [eax + 8]
push esi
mov esi, dword [sym.imp.MSVCR71.dll_atoi]
push edi
push edx
call esi
add esp, 4
mov edi, eax
push 1
lea ecx, [esp + 0x34]
mov dword [esp + 0x1c], edi
call sub.MFC71.DLL_CPtrList::FindIndex
cmp eax, ebp
jne 0x45793e
call fcn.0049641a
mov eax, dword [eax + 8]
push ebx
push eax
call esi
add esp, 4
mov ebx, eax
push 2
lea ecx, [esp + 0x38]
mov dword [esp + 0x6c], ebx
call sub.MFC71.DLL_CPtrList::FindIndex
cmp eax, ebp
jne 0x457962
call fcn.0049641a
mov ecx, dword [eax + 8]
push ecx
call esi
add esp, 4
push 3
lea ecx, [esp + 0x38]
mov dword [esp + 0x28], eax
call sub.MFC71.DLL_CPtrList::FindIndex
cmp eax, ebp
jne 0x457983
call fcn.0049641a
mov edx, dword [eax + 8]
push edx
call esi
add esp, 4
push 4
lea ecx, [esp + 0x38]
mov dword [esp + 0x2c], eax
call sub.MFC71.DLL_CPtrList::FindIndex
cmp eax, ebp
jne 0x4579a4
call fcn.0049641a
mov eax, dword [eax + 8]
push eax
call esi
add esp, 4
push 5
lea ecx, [esp + 0x38]
mov dword [esp + 0x24], eax
call sub.MFC71.DLL_CPtrList::FindIndex
cmp eax, ebp
jne 0x4579c5
call fcn.0049641a
mov ebp, dword [eax + 8]
mov eax, dword [esp + 0x40]
cmp eax, 8
jl 0x457a1a
push 6
lea ecx, [esp + 0x38]
mov ebx, 5
call sub.MFC71.DLL_CPtrList::FindIndex
test eax, eax
jne 0x4579ea
call fcn.0049641a
mov ecx, dword [eax + 8]
push ecx
call esi
add esp, 4
push 7
lea ecx, [esp + 0x38]
mov dword [esp + 0x30], eax
call sub.MFC71.DLL_CPtrList::FindIndex
test eax, eax
jne 0x457a0b
call fcn.0049641a
mov edx, dword [eax + 8]
push edx
call esi
add esp, 4
mov dword [esp + 0x30], eax
jmp 0x457a66
cmp edi, 2
jle 0x457a61
mov ecx, dword [0x4bd2c0]
cmp dword [ecx + 0x480], ebx
je 0x457a61
cmp eax, 7
jne 0x457a5a
push 6
lea ecx, [esp + 0x38]
call sub.MFC71.DLL_CPtrList::FindIndex
test eax, eax
jne 0x457a46
call fcn.0049641a
mov edx, dword [eax + 8]
push edx
call esi
add esp, 4
mov dword [esp + 0x14], eax
mov ebx, 3
jmp 0x457a66
mov ebx, 5
jmp 0x457a66
mov ebx, 4
mov esi, dword [esp + 0x60]
mov ecx, dword [esp + 0x10]
push ebp
push esi
call fcn.004569f0
test eax, eax
jne 0x457cfa
push 0x319c
call sub.MFC71.DLL_operator_new_1
add esp, 4
mov dword [esp + 0x60], eax
test eax, eax
mov byte [esp + 0x58], 1
je 0x457aab
mov ecx, dword [esp + 0x64]
push 1
push ecx
push esi
push ebx
mov ecx, eax
call fcn.0046faf0
mov esi, eax
jmp 0x457aad
xor esi, esi
test esi, esi
mov byte [esp + 0x58], 0
je 0x457cfa
push 0x24
call sub.MFC71.DLL_operator_new_1
add esp, 4
mov dword [esp + 0x60], eax
test eax, eax
mov byte [esp + 0x58], 2
je 0x457add
push esi
mov ecx, eax
call fcn.00475300
mov edi, eax
jmp 0x457adf
xor edi, edi
test edi, edi
mov byte [esp + 0x58], 0
jne 0x457af8
mov edx, dword [esi + 4]
lea ecx, [esi + 4]
push 1
call dword [edx + 0x10]
jmp 0x457cfa
push edi
mov ecx, esi
call fcn.0046ea50
lea ecx, [esp + 0x18]
call dword [0x49f754]
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx]
lea edx, [esp + 0x18]
push edx
push ebp
mov byte [esp + 0x60], 3
call dword [eax + 0x64]
lea eax, [esp + 0x18]
push eax
lea ecx, [edi + 8]
call dword [0x49f214]
mov ecx, dword [esp + 0x1c]
mov ax, word [esp + 0x24]
mov edx, dword [esp + 0x68]
mov dword [esi + 0x6c], ecx
mov ecx, dword [esp + 0x28]
mov word [esi + 0x78], ax
mov ax, word [esp + 0x14]
mov dword [esi + 0x74], ecx
mov dword [esi + 0x70], edx
mov dx, word [esp + 0x20]
lea ecx, [esi + 0x18]
mov word [esi + 0x80], ax
mov byte [esi + 0x4a], 1
mov word [esi + 0x7a], dx
mov word [esi + 8], bx
mov eax, ebp
sub ecx, ebp
mov edi, edi
mov dl, byte [eax]
mov byte [ecx + eax], dl
inc eax
test dl, dl
jne 0x457b70
cmp bx, 4
jne 0x457bbb
cmp dword [esp + 0x1c], 2
push 0
jne 0x457ba2
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x6c]
push ecx
mov ecx, dword [esp + 0x18]
push edx
push esi
call fcn.004566f0
jmp 0x457cf0
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x6c]
push eax
push ecx
mov ecx, dword [esp + 0x1c]
push esi
call fcn.004566f0
jmp 0x457cf0
cmp bx, 3
jne 0x457cb0
cmp word [esp + 0x14], 0
jbe 0x457cb0
mov edx, dword [0x4bd2c0]
mov eax, dword [edx + 0x47c]
cmp eax, 3
jne 0x457be6
push 0
jmp 0x457bf2
cmp eax, 6
jl 0x457bf9
cmp eax, 9
jg 0x457bf9
push 1
mov ecx, esi
call fcn.0046f190
mov eax, dword [esi + 0x6c]
cmp eax, 3
je 0x457c59
cmp eax, 6
jg 0x457c59
mov eax, dword [0x4bd938]
mov edi, dword [sym.imp.USER32.dll_PostThreadMessageA]
push 0
push esi
push 0x70e
push eax
mov ebp, 0x64
call edi
test eax, eax
jne 0x457cf0
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
nop
mov ecx, ebp
dec ebp
test ecx, ecx
jle 0x457cf0
push 0xa
call ebx
mov edx, dword [0x4bd938]
push 0
push esi
push 0x70e
push edx
call edi
test eax, eax
je 0x457c30
jmp 0x457cf0
mov eax, dword [0x4bd2c0]
mov eax, dword [eax + 0x47c]
cmp eax, 3
je 0x457c73
cmp eax, 7
je 0x457c73
cmp eax, 8
jne 0x457c92
mov eax, dword [esi + 0x70]
xor ecx, ecx
mov cx, word [esi + 0x7c]
xor edx, edx
mov dx, word [esi + 0x80]
push ecx
mov ecx, 0x4bd860
push edx
push eax
call fcn.0046cd70
mov edx, dword [esi + 0x14]
xor ecx, ecx
mov cx, word [esi + 0x7e]
lea eax, [esi + 0x18]
push ecx
mov ecx, dword [esp + 0x14]
push eax
mov eax, dword [esi + 0xc]
push edx
push eax
call fcn.004546a0
jmp 0x457cf0
mov ecx, dword [esp + 0x2c]
mov dx, word [esp + 0x30]
mov dword [esi + 0x8c], ecx
mov word [esi + 0x90], dx
mov byte [edi + 0x21], 0
mov ecx, dword [esi + 0x8c]
xor eax, eax
mov ax, word [esi + 0x90]
push 0
push eax
push ecx
mov ecx, dword [esp + 0x1c]
push esi
call fcn.004566f0
mov word [esi + 0x82], 1
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x34]
mov dword [esp + 0x58], 0xffffffff
call sub.MFC71.DLL_CPtrList::CPtrList
mov ecx, dword [esp + 0x50]
pop ebx
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x4c
ret 0xc