Function at 0x41bd10
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x5c4cc1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x94
mov eax, dword [esp + 0xa4]
push ebx
mov ebx, eax
push ebp
mov ebp, ecx
push esi
shl ebx, 5
add ebx, eax
mov eax, dword [ebp + 0x494]
xor esi, esi
push edi
mov dword [ebp + 0x4bc], esi
mov dword [ebp + 0x49c], esi
mov dword [ebp + 0x4a0], esi
mov dword [ebp + 0x4a4], esi
mov edx, dword [eax + 0x98]
shl ebx, 4
add ebx, edx
mov ecx, ebx
mov dword [esp + 0x18], ebx
call fcn.00501d40
lea ecx, [esp + 0x1c]
mov edi, eax
call fcn.005c0f92
mov dword [esp + 0x1c], 0x5e4670
mov dword [esp + 0xac], esi
mov dword [esp + 0x30], 0x5e27fc
mov dword [esp + 0x34], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], esi
mov ecx, dword [ebp + 0x494]
xor eax, eax
mov byte [esp + 0xac], 1
mov esi, dword [ecx + 0x74]
cmp esi, eax
jne 0x41bdc8
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], eax
jmp 0x41bdeb
lea edx, [esi*4]
push edx
call sub.mfc42u.dll_operatornew
add esp, 4
mov dword [esp + 0x34], eax
push esi
push eax
call fcn.005463a0
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], esi
test edi, edi
jne 0x41be65
mov eax, dword [ebp + 0x494]
xor esi, esi
mov ecx, dword [eax + 0x74]
test ecx, ecx
jle 0x41bf39
mov edx, dword [eax + 0x88]
xor ecx, ecx
test edx, edx
jle 0x41be54
mov eax, dword [eax + 0x84]
add eax, 4
movsx edi, word [eax]
cmp edi, esi
je 0x41be28
inc ecx
add eax, 8
cmp ecx, edx
jl 0x41be17
jmp 0x41be54
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x24]
lea ecx, [esi*4]
mov dword [edx + ecx], eax
mov eax, dword [ebp + 0x494]
mov eax, dword [eax + 0x70]
add eax, ecx
mov ecx, dword [esp + 0x24]
push eax
push ecx
lea ecx, [esp + 0x24]
call sub.mfc42u.dll_CStringArray::SetAtGrow
mov eax, dword [ebp + 0x494]
inc esi
cmp esi, dword [eax + 0x74]
jl 0x41be02
jmp 0x41bf39
mov eax, dword [ebp + 0x494]
mov edx, dword [eax + 0xec]
mov ecx, dword [eax + 0x74]
mov ebx, dword [edx + edi*4]
xor edi, edi
test ecx, ecx
jle 0x41bf35
mov edx, dword [eax + 0x88]
xor ecx, ecx
test edx, edx
jle 0x41bf25
mov eax, dword [eax + 0x84]
add eax, 4
movsx esi, word [eax]
cmp esi, edi
je 0x41beab
inc ecx
add eax, 8
cmp ecx, edx
jl 0x41be9a
jmp 0x41bf25
mov eax, dword [ebx + 0x6c]
lea ecx, [esp + 0x14]
mov eax, dword [eax + edi*4]
push eax
push ecx
lea ecx, [ebx + 0x54]
call fcn.0041c4a0
mov edx, dword [esp + 0x24]
mov byte [esp + 0xac], 2
lea esi, [edx - 1]
test esi, esi
jl 0x41bef6
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
push eax
mov edx, dword [ecx + esi*4]
push edx
call dword [sym.imp.msvcrt.dll_wcscmp]
add esp, 8
test eax, eax
je 0x41bef1
dec esi
jns 0x41bed2
jmp 0x41bef6
cmp esi, 0xffffffff
jne 0x41bf14
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x14]
mov dword [eax + edi*4], ecx
mov eax, dword [esp + 0x24]
push edx
push eax
lea ecx, [esp + 0x24]
call sub.mfc42u.dll_CStringArray::SetAtGrow
lea ecx, [esp + 0x14]
mov byte [esp + 0xac], 1
call sub.mfc42u.dll_CString::CString
mov eax, dword [ebp + 0x494]
inc edi
cmp edi, dword [eax + 0x74]
jl 0x41be81
mov ebx, dword [esp + 0x18]
push sub.mfc42u.dll_CString::CString
push sub.mfc42u.dll_CString::CString_3
push 0x10
lea ecx, [esp + 0x70]
push 4
push ecx
call fcn.005c1f9f
lea edx, [esp + 0x64]
mov ecx, ebx
push edx
mov byte [esp + 0xb0], 3
call fcn.00501d60
mov edi, eax
mov eax, dword [ebp + 0x2d4]
dec eax
mov dword [esp + 0x14], edi
cmp edi, eax
je 0x41bfc6
mov eax, dword [esp + 0x24]
lea esi, [ebp + 0x220]
lea ecx, [eax + edi + 1]
push ecx
mov ecx, esi
call fcn.004bf700
lea ebx, [edi + 1]
mov ecx, esi
push ebx
call fcn.004bf4b0
push ebx
mov ecx, esi
call fcn.004bf150
push 1
mov ecx, esi
call fcn.004bf340
push 0x618d94
push 0x618d88
call sub.etinfo.dll_unsigned_short_int_const____cdecl_mgLoadLocateString_unsigned_short_int_const__
add esp, 4
mov ecx, esi
push eax
push 0
push 0
call fcn.004c0670
test edi, edi
jle 0x41c032
lea edx, [esp + 0x64]
mov esi, 1
mov dword [esp + 0x10], edx
xor eax, eax
lea ebx, [eax + 1]
push 0
push 0x626560
push ebx
push esi
lea ecx, [ebp + 0x220]
call fcn.004c0670
mov eax, ebx
cmp eax, edi
jl 0x41bfd9
push 0
push 0x626560
lea ebx, [ebp + 0x220]
push esi
push 0
mov ecx, ebx
call fcn.004c0670
mov eax, dword [esp + 0x10]
push 0
mov ecx, ebx
mov eax, dword [eax]
push eax
push esi
push esi
call fcn.004c0670
mov edx, dword [esp + 0x10]
add edx, 4
inc esi
mov dword [esp + 0x10], edx
lea ecx, [esi - 1]
cmp ecx, edi
jl 0x41bfd7
mov edx, dword [ebp + 0x240]
push edx
call dword [sym.imp.user32.dll_GetDC]
push eax
call sub.mfc42u.dll_CDC::FromHandle
mov esi, eax
xor eax, eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov eax, 0x64
push 0x618d78
lea ecx, [esp + 0x48]
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
call fcn.005c0fb0
mov eax, dword [esp + 0x44]
mov edx, dword [esi]
lea ebx, [esp + 0x54]
push 0x420
mov ecx, dword [eax - 8]
push ebx
push ecx
push eax
mov ecx, esi
mov byte [esp + 0xbc], 4
call dword [edx + 0x70]
lea ecx, [esp + 0x44]
mov byte [esp + 0xac], 3
call sub.mfc42u.dll_CString::CString
mov eax, dword [esi + 4]
mov ecx, dword [ebp + 0x240]
push eax
push ecx
call dword [sym.imp.user32.dll_ReleaseDC]
lea ebx, [ebp + 0x220]
push 0
push 0
mov ecx, ebx
call fcn.004c0f50
mov eax, dword [ebp + 0x2d8]
mov esi, 1
cmp eax, esi
jle 0x41c0ee
mov edx, dword [esp + 0x5c]
mov ecx, dword [esp + 0x54]
sub edx, ecx
mov ecx, ebx
push edx
push esi
call fcn.004c0eb0
mov eax, dword [ebp + 0x2d8]
inc esi
cmp esi, eax
jl 0x41c0d0
lea ebx, [ebp + 0x4a8]
push 0xffffffffffffffff
push 0
mov ecx, ebx
call fcn.0046d900
mov esi, dword [esp + 0x24]
imul esi, edi
test esi, esi
mov dword [esp + 0x48], esi
jne 0x41c12e
mov eax, dword [ebx + 4]
test eax, eax
je 0x41c121
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov dword [ebx + 4], esi
xor eax, eax
mov dword [ebx + 0xc], eax
mov dword [ebx + 8], eax
jmp 0x41c229
mov ecx, dword [ebx + 4]
test ecx, ecx
jne 0x41c169
lea edi, [esi*4]
push edi
call sub.mfc42u.dll_operatornew
mov edx, eax
mov ecx, edi
mov dword [ebx + 4], edx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov dword [ebx + 0xc], esi
mov dword [ebx + 8], esi
jmp 0x41c229
mov edi, dword [ebx + 0xc]
cmp esi, edi
jg 0x41c18d
mov eax, dword [ebx + 8]
cmp esi, eax
jle 0x41c185
mov edx, esi
sub edx, eax
lea eax, [ecx + eax*4]
push edx
push eax
call fcn.005463a0
mov dword [ebx + 8], esi
jmp 0x41c229
mov eax, dword [ebx + 0x10]
test eax, eax
jne 0x41c1b8
mov eax, dword [ebx + 8]
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x41c1ac
mov eax, 4
jmp 0x41c1b8
cmp eax, 0x400
jle 0x41c1b8
mov eax, 0x400
add eax, edi
cmp esi, eax
mov dword [esp + 0x10], eax
jl 0x41c1c6
mov dword [esp + 0x10], esi
mov ecx, dword [esp + 0x10]
lea edx, [ecx*4]
push edx
call sub.mfc42u.dll_operatornew
mov ecx, dword [ebx + 8]
mov esi, dword [ebx + 4]
shl ecx, 2
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
add esp, 4
and ecx, 3
mov dword [esp + 0x4c], eax
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x48]
mov ecx, dword [ebx + 8]
mov edx, esi
sub edx, ecx
lea eax, [eax + ecx*4]
push edx
push eax
call fcn.005463a0
mov eax, dword [ebx + 4]
push eax
call sub.mfc42u.dll_operatordelete
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x14]
add esp, 4
mov dword [ebx + 4], ecx
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], edx
mov ecx, dword [ebp + 0x4b0]
mov edi, dword [ebp + 0x4ac]
xor eax, eax
xor edx, edx
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x494]
mov dword [esp + 0x10], edx
mov ecx, dword [eax + 0x88]
test ecx, ecx
jle 0x41c301
mov edi, dword [esp + 0xb8]
mov eax, dword [eax + 0x84]
test edi, edi
lea ecx, [eax + edx*8]
je 0x41c2c1
movsx eax, word [ecx + 6]
fild dword [ecx]
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x34]
movsx edx, word [ecx + 4]
fstp qword [esp + 0x4c]
mov esi, dword [esi + eax*4 + 0x7c]
imul eax, dword [esp + 0xbc]
imul esi, dword [esp + 0x24]
add esi, dword [ebx + edx*4]
mov ebx, dword [ebp + 0x4ac]
add eax, edx
mov ecx, dword [edi + eax*8 + 4]
mov edx, dword [edi + eax*8]
push ecx
push edx
lea esi, [ebx + esi*4]
call dword [sym.imp.msvcrt.dll_floor]
fsubr qword [esp + 0x54]
add esp, 8
fiadd dword [esi]
call sub.msvcrt.dll__ftol
mov edx, dword [esp + 0x10]
mov dword [esi], eax
jmp 0x41c2ea
movsx eax, word [ecx + 6]
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x34]
mov eax, dword [esi + eax*4 + 0x7c]
imul eax, dword [esp + 0x24]
movsx esi, word [ecx + 4]
mov ecx, dword [ecx]
add eax, dword [ebx + esi*4]
mov esi, dword [ebp + 0x4ac]
lea eax, [esi + eax*4]
add dword [eax], ecx
mov eax, dword [ebp + 0x494]
inc edx
mov dword [esp + 0x10], edx
cmp edx, dword [eax + 0x88]
jl 0x41c25a
mov eax, dword [esp + 0x24]
xor esi, esi
test eax, eax
jle 0x41c334
mov edx, dword [esp + 0x14]
lea edi, [edx + 1]
mov eax, dword [esp + 0x20]
push 0
lea ecx, [ebp + 0x220]
mov eax, dword [eax + esi*4]
push eax
push edi
push 0
call fcn.004c0670
mov eax, dword [esp + 0x24]
inc esi
inc edi
cmp esi, eax
jl 0x41c312
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x10], 0
test ecx, ecx
jle 0x41c3ee
jmp 0x41c34e
mov eax, dword [esp + 0x24]
xor edi, edi
mov dword [esp + 0x18], 0
test eax, eax
jle 0x41c3b9
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
lea ebx, [ecx + 1]
lea esi, [edx + 1]
imul eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x4ac]
mov edx, dword [esp + 0x18]
add eax, edi
mov eax, dword [ecx + eax*4]
push eax
push 0
add edx, eax
push 0x617dbc
push esi
lea eax, [ebp + 0x220]
push ebx
push eax
mov dword [esp + 0x30], edx
call fcn.004c06e0
add esp, 0x18
lea ecx, [ebp + 0x220]
push 0xff
push esi
push ebx
call fcn.004c0ce0
mov eax, dword [esp + 0x24]
inc edi
inc esi
cmp edi, eax
jl 0x41c36a
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
push eax
push 0
lea esi, [edx + 1]
push 0x617dbc
push 0
lea eax, [ebp + 0x220]
push esi
push eax
call fcn.004c06e0
mov eax, dword [esp + 0x2c]
add esp, 0x18
cmp esi, eax
mov dword [esp + 0x10], esi
jl 0x41c34a
push sub.mfc42u.dll_CString::CString
push 0x10
lea ecx, [esp + 0x6c]
push 4
push ecx
mov byte [esp + 0xbc], 1
call fcn.005c2021
mov dword [esp + 0x30], 0x5e27fc
mov eax, dword [esp + 0x34]
pop edi
pop esi
pop ebp
test eax, eax
mov byte [esp + 0xa0], 5
pop ebx
je 0x41c42e
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
lea ecx, [esp + 0xc]
mov dword [esp + 0x9c], 0xffffffff
mov dword [esp + 0xc], 0x5e4670
call sub.mfc42u.dll_CStringArray::CStringArray
mov ecx, dword [esp + 0x94]
mov dword fs:[0], ecx
add esp, 0xa0
ret 0xc