Function at 0x516710
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cbd9e
mov eax, dword fs:[0]
push eax
sub esp, 0x418
mov eax, dword [0x62b768]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x41c], ebx
mov ecx, dword [0x62e488]
lea edx, [ebp - 0x424]
push 0
push 0
mov byte [ebp - 0x424], 0x40
mov eax, dword [ecx]
push edx
push 5
call dword [eax + 4]
push str.OptionMode::Activate__n
mov ecx, 0x62e16c
call fcn.004482e0
mov dword [0x610af8], 0x64
mov ecx, ebx
mov eax, dword [ebx]
call dword [eax + 0x20]
lea eax, [ebx + 0x110]
push eax
mov eax, dword [0x62e368]
push 0
push 0
push 0xffff00ff
push 0xffffffffffffffff
push 0xffffffffffffffff
push 1
push 0x15
push 0
push 0
push 0
push 0
push str.datmouseart.png
push dword [eax + 0x2a3d8]
call fcn.00408a02
mov ecx, dword [0x62e368]
lea eax, [ebx + 0x114]
push 0
push eax
push str.datUIPopUp.png
call fcn.0045e7a0
mov ecx, dword [0x62e368]
lea eax, [ebx + 0x118]
push 0
push eax
push str.datUIPopUpLong.png
call fcn.0045e7a0
mov ecx, dword [0x62e368]
call fcn.0045f3d0
mov ecx, dword [0x62e368]
cdq
sub eax, edx
mov esi, eax
sar esi, 1
call fcn.0045f3c0
cdq
sub eax, edx
mov edi, eax
push 0x170
sar edi, 1
call fcn.00559eaa
add esp, 4
mov dword [ebp - 0x418], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x516860
mov ecx, dword [0x62e368]
push 0
push str.WINDOW
call fcn.0045f3c0
mov ecx, dword [0x62e368]
push eax
call fcn.0045f3d0
mov ecx, dword [ebp - 0x418]
push eax
push 0
push 0
push 0xffffffffffffffff
call fcn.0046bdb0
jmp 0x516862
xor eax, eax
mov dword [ebx + 0x11c], eax
mov byte [eax + 0x168], 0
mov eax, dword [ebx + 0x11c]
push 0x17c
mov dword [ebp - 4], 0xffffffff
mov byte [eax + 0x139], 1
call fcn.00559eaa
mov edx, eax
add esp, 4
mov dword [ebp - 0x418], edx
mov dword [ebp - 4], 1
test edx, edx
je 0x5168ce
push 0
lea ecx, [edi + 0xd2]
push ecx
lea eax, [esi + 0x136]
mov ecx, edx
push eax
lea eax, [edi - 0xd2]
push eax
lea eax, [esi - 0x136]
push eax
push 0xfffffffffffffffe
call fcn.00468670
mov esi, eax
jmp 0x5168d0
xor esi, esi
mov ecx, dword [ebx + 0x11c]
push esi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ecx]
call dword [eax + 0x14]
mov eax, dword [esi + 0x110]
sub eax, dword [esi + 0x108]
cdq
sub eax, edx
mov ebx, eax
mov eax, dword [esi + 0x114]
sub eax, dword [esi + 0x10c]
cdq
sub eax, edx
sar ebx, 1
sar eax, 1
push 0x17c
mov dword [ebp - 0x418], eax
call fcn.00559eaa
mov ecx, eax
add esp, 4
mov dword [ebp - 0x414], ecx
mov dword [ebp - 4], 2
test ecx, ecx
je 0x516955
mov eax, dword [esi + 0x110]
sub eax, dword [esi + 0x108]
push 0
push str.TEXTBOX
push 0x2d
sub eax, 0x14
push eax
push 0xa
push 0xa
push 0x14
call fcn.0046b620
mov edi, eax
jmp 0x516957
xor edi, edi
mov dword [edi + 0x150], 0x517eb0
lea eax, [ebp - 0x410]
push dword [0x62fda8]
mov dword [ebp - 4], 0xffffffff
push dword [0x62fda4]
push dword [0x62fda0]
push str.Level__ld______Health__ld__ld
push eax
call fcn.0043d370
lea edx, [ebp - 0x410]
add esp, 0x14
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x516997
movsx eax, byte [0x61f0f9]
sub edx, ecx
mov ecx, eax
shl ecx, 4
sub ecx, eax
lea eax, [ebp - 0x410]
add ecx, str.Young
add eax, edx
push ecx
push 0x5dfcfc
push eax
call fcn.0043d370
push dword [0x62fda0]
movsx eax, byte [0x61f0f9]
push eax
call fcn.004a25d0
add esp, 0x14
test eax, eax
je 0x516a0f
lea ecx, [ebp - 0x410]
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5169f0
sub ecx, edx
lea eax, [ebp - 0x410]
add eax, ecx
push str.READY
push eax
call fcn.0043d370
add esp, 8
mov eax, dword [edi]
lea ecx, [ebp - 0x410]
push ecx
mov ecx, edi
call dword [eax + 0x30]
mov dword [edi + 0x16c], 9
mov ecx, esi
mov byte [edi + 0x168], 0
mov dword [edi + 0x164], 0
mov dword [edi + 0x178], 2
mov eax, dword [esi]
push edi
call dword [eax + 0x14]
push 0x194
call fcn.00559eaa
mov edx, eax
add esp, 4
mov dword [ebp - 0x414], edx
mov dword [ebp - 4], 3
test edx, edx
je 0x516a9a
mov edi, dword [ebp - 0x418]
lea eax, [ebx + 2]
push 0
push str.TEXTBUTTON
lea ecx, [edi - 0x7c]
push ecx
push eax
lea eax, [edi - 0x96]
mov ecx, edx
push eax
lea eax, [ebx - 0xc8]
push eax
push 0
call fcn.0046b830
mov edi, eax
jmp 0x516a9c
xor edi, edi
mov eax, dword [edi]
mov ecx, edi
push str.Return_to_Game
mov dword [ebp - 4], 0xffffffff
call dword [eax + 0x30]
mov dword [edi + 0x150], 0x517eb0
mov ecx, esi
mov dword [edi + 0x16c], 9
mov byte [edi + 0x168], 1
mov eax, dword [esi]
push edi
call dword [eax + 0x14]
push 2
push 0
call fcn.0046cfa0
push 0x194
call fcn.00559eaa
add esp, 0xc
mov dword [ebp - 0x414], eax
mov dword [ebp - 4], 4
test eax, eax
je 0x516b15
push 0
push str.TEXTBUTTON
push 0xfffffffffffffffe
push 0xfffffffffffffffe
push 0xfffffffffffffffe
push 0xfffffffffffffffe
push 1
mov ecx, eax
call fcn.0046b830
mov edi, eax
jmp 0x516b17
xor edi, edi
mov eax, dword [edi]
mov ecx, edi
push str.View_Instructions
mov dword [ebp - 4], 0xffffffff
call dword [eax + 0x30]
mov dword [edi + 0x150], 0x517eb0
mov ecx, esi
mov dword [edi + 0x16c], 9
mov byte [edi + 0x168], 1
mov eax, dword [esi]
push edi
call dword [eax + 0x14]
push 1
push 0
call fcn.0046cfa0
push 0x194
call fcn.00559eaa
add esp, 0xc
mov dword [ebp - 0x414], eax
mov dword [ebp - 4], 5
test eax, eax
je 0x516b90
push 0
push str.TEXTBUTTON
push 0xfffffffffffffffe
push 0xfffffffffffffffe
push 0xfffffffffffffffe
push 0xfffffffffffffffe
push 2
mov ecx, eax
call fcn.0046b830
mov edi, eax
jmp 0x516b92
xor edi, edi
mov eax, dword [edi]
mov ecx, edi
push str.Community_Info
mov dword [ebp - 4], 0xffffffff
call dword [eax + 0x30]
mov dword [edi + 0x150], 0x517eb0
mov ecx, esi
mov dword [edi + 0x16c], 9
mov byte [edi + 0x168], 1
mov eax, dword [esi]
push edi
call dword [eax + 0x14]
push 1
push 0
call fcn.0046cfa0
push 0x194
call fcn.00559eaa
add esp, 0xc
mov dword [ebp - 0x414], eax
mov dword [ebp - 4], 6
test eax, eax
je 0x516c0b
push 0
push str.TEXTBUTTON
push 0xfffffffffffffffe
push 0xfffffffffffffffe
push 0xfffffffffffffffe
push 0xfffffffffffffffe
push 3
mov ecx, eax
call fcn.0046b830
mov edi, eax
jmp 0x516c0d
xor edi, edi
mov eax, dword [edi]
mov ecx, edi
push str.View_Credits
mov dword [ebp - 4], 0xffffffff
call dword [eax + 0x30]
mov dword [edi + 0x150], 0x517eb0
mov ecx, esi
mov dword [edi + 0x16c], 9
mov byte [edi + 0x168], 1
mov eax, dword [esi]
push edi
call dword [eax + 0x14]
push 1
push 0
call fcn.0046cfa0
push 0x194
call fcn.00559eaa
add esp, 0xc
mov dword [ebp - 0x414], eax
mov dword [ebp - 4], 7
test eax, eax
je 0x516c86
push 0
push str.TEXTBUTTON
push 0xfffffffffffffffe
push 0xfffffffffffffffe
push 0xfffffffffffffffe
push 0xfffffffffffffffe
push 5
mov ecx, eax
call fcn.0046b830
mov edi, eax
jmp 0x516c88
xor edi, edi
mov eax, dword [edi]
mov ecx, edi
push str.Grass
mov dword [ebp - 4], 0xffffffff
call dword [eax + 0x30]
mov dword [edi + 0x150], 0x517eb0
mov ecx, esi
mov dword [edi + 0x16c], 9
mov byte [edi + 0x168], 1
mov eax, dword [esi]
push edi
call dword [eax + 0x14]
push 1
push 0
call fcn.0046cfa0
push 0x194
call fcn.00559eaa
add esp, 0xc
mov dword [ebp - 0x414], eax
mov dword [ebp - 4], 8
test eax, eax
je 0x516d01
push 0
push str.TEXTBUTTON
push 0xfffffffffffffffe
push 0xfffffffffffffffe
push 0xfffffffffffffffe
push 0xfffffffffffffffe
push 6
mov ecx, eax
call fcn.0046b830
mov edi, eax
jmp 0x516d03
xor edi, edi
mov eax, dword [edi]
mov ecx, edi
push str.Terrain_Detail
mov dword [ebp - 4], 0xffffffff
call dword [eax + 0x30]
mov dword [edi + 0x150], 0x517eb0
mov ecx, esi
mov dword [edi + 0x16c], 9
mov byte [edi + 0x168], 1
mov eax, dword [esi]
push edi
call dword [eax + 0x14]
push 2
push 0
call fcn.0046cfa0
push 0x194
call fcn.00559eaa
add esp, 0xc
mov dword [ebp - 0x414], eax
mov dword [ebp - 4], 9
test eax, eax
je 0x516d7c
push 0
push str.TEXTBUTTON
push 0xfffffffffffffffe
push 0xfffffffffffffffe
push 0xfffffffffffffffe
push 0xfffffffffffffffe
push 7
mov ecx, eax
call fcn.0046b830
mov edi, eax
jmp 0x516d7e
xor edi, edi
mov eax, dword [edi]
mov ecx, edi
push str.WASD_moving_enabled
mov dword [ebp - 4], 0xffffffff
call dword [eax + 0x30]
mov dword [edi + 0x150], 0x517eb0
mov ecx, esi
mov dword [edi + 0x16c], 9
mov byte [edi + 0x168], 1
mov eax, dword [esi]
push edi
call dword [eax + 0x14]
push 4
push 0
call fcn.0046cfa0
push 0x194
call fcn.00559eaa
add esp, 0xc
mov dword [ebp - 0x414], eax
mov dword [ebp - 4], 0xa
test eax, eax
je 0x516df7
push 0
push str.TEXTBUTTON
push 0xfffffffffffffffe
push 0xfffffffffffffffe
push 0xfffffffffffffffe
push 0xfffffffffffffffe
push 4
mov ecx, eax
call fcn.0046b830
mov edi, eax
jmp 0x516df9
xor edi, edi
mov eax, dword [edi]
mov ecx, edi
push str.Quit_Game
mov dword [ebp - 4], 0xffffffff
call dword [eax + 0x30]
mov dword [edi + 0x150], 0x517eb0
mov ecx, esi
mov dword [edi + 0x16c], 9
mov byte [edi + 0x168], 1
mov eax, dword [esi]
push edi
call dword [eax + 0x14]
push 0x194
call fcn.00559eaa
mov edx, eax
add esp, 4
mov dword [ebp - 0x414], edx
mov dword [ebp - 4], 0xb
test edx, edx
je 0x516e82
mov edi, dword [ebp - 0x418]
lea eax, [ebx + 0xcb]
push 0
push str.TEXTBUTTON
lea ecx, [edi - 0x86]
push ecx
push eax
lea eax, [edi - 0xa0]
mov ecx, edx
push eax
lea eax, [ebx + 0x32]
push eax
push 8
call fcn.0046b830
mov edi, eax
jmp 0x516e84
xor edi, edi
mov eax, dword [edi]
mov ecx, edi
push str.Show_hits
mov dword [ebp - 4], 0xffffffff
call dword [eax + 0x30]
mov dword [edi + 0x150], 0x517eb0
mov ecx, esi
mov dword [edi + 0x16c], 9
mov byte [edi + 0x168], 1
mov eax, dword [esi]
push edi
call dword [eax + 0x14]
push 1
push 0
call fcn.0046cfa0
push 0x194
call fcn.00559eaa
add esp, 0xc
mov dword [ebp - 0x414], eax
mov dword [ebp - 4], 0xc
test eax, eax
je 0x516efd
push 0
push str.TEXTBUTTON
push 0xfffffffffffffffe
push 0xfffffffffffffffe
push 0xfffffffffffffffe
push 0xfffffffffffffffe
push 9
mov ecx, eax
call fcn.0046b830
mov edi, eax
jmp 0x516eff
xor edi, edi
mov eax, dword [edi]
mov ecx, edi
push str.Show_Misses
mov dword [ebp - 4], 0xffffffff
call dword [eax + 0x30]
mov dword [edi + 0x150], 0x517eb0
mov ecx, esi
mov dword [edi + 0x16c], 9
mov byte [edi + 0x168], 1
mov eax, dword [esi]
push edi
call dword [eax + 0x14]
push 1
push 0
call fcn.0046cfa0
push 0x194
call fcn.00559eaa
add esp, 0xc
mov dword [ebp - 0x414], eax
mov dword [ebp - 4], 0xd
test eax, eax
je 0x516f78
push 0
push str.TEXTBUTTON
push 0xfffffffffffffffe
push 0xfffffffffffffffe
push 0xfffffffffffffffe
push 0xfffffffffffffffe
push 0xa
mov ecx, eax
call fcn.0046b830
mov edi, eax
jmp 0x516f7a
xor edi, edi
mov eax, dword [edi]
mov ecx, edi
push str.Show_loots
mov dword [ebp - 4], 0xffffffff
call dword [eax + 0x30]
mov dword [edi + 0x150], 0x517eb0
mov ecx, esi
mov dword [edi + 0x16c], 9
mov byte [edi + 0x168], 1
mov eax, dword [esi]
push edi
call dword [eax + 0x14]
push 1
push 0
call fcn.0046cfa0
push 0x194
call fcn.00559eaa
add esp, 0xc
mov dword [ebp - 0x414], eax
mov dword [ebp - 4], 0xe
test eax, eax
je 0x516ff3
push 0
push str.TEXTBUTTON
push 0xfffffffffffffffe
push 0xfffffffffffffffe
push 0xfffffffffffffffe
push 0xfffffffffffffffe
push 0xb
mov ecx, eax
call fcn.0046b830
mov edi, eax
jmp 0x516ff5
xor edi, edi
mov eax, dword [edi]
mov ecx, edi
push str.Show_fog
mov dword [ebp - 4], 0xffffffff
call dword [eax + 0x30]
mov dword [edi + 0x150], 0x517eb0
mov ecx, esi
mov dword [edi + 0x16c], 9
mov byte [edi + 0x168], 1
mov eax, dword [esi]
push edi
call dword [eax + 0x14]
push 1
push 0
call fcn.0046cfa0
push 0x194
call fcn.00559eaa
add esp, 0xc
mov dword [ebp - 0x414], eax
mov dword [ebp - 4], 0xf
test eax, eax
je 0x51706e
push 0
push str.TEXTBUTTON
push 0xfffffffffffffffe
push 0xfffffffffffffffe
push 0xfffffffffffffffe
push 0xfffffffffffffffe
push 0xc
mov ecx, eax
call fcn.0046b830
mov edi, eax
jmp 0x517070
xor edi, edi
mov eax, dword [edi]
mov ecx, edi
push str.Show_mist
mov dword [ebp - 4], 0xffffffff
call dword [eax + 0x30]
mov dword [edi + 0x150], 0x517eb0
mov ecx, esi
mov dword [edi + 0x16c], 9
mov byte [edi + 0x168], 1
mov eax, dword [esi]
push edi
call dword [eax + 0x14]
push 1
push 0
call fcn.0046cfa0
push 0x194
call fcn.00559eaa
add esp, 0xc
mov dword [ebp - 0x414], eax
mov dword [ebp - 4], 0x10
test eax, eax
je 0x5170e9
push 0
push str.TEXTBUTTON
push 0xfffffffffffffffe
push 0xfffffffffffffffe
push 0xfffffffffffffffe
push 0xfffffffffffffffe
push 0xd
mov ecx, eax
call fcn.0046b830
mov edi, eax
jmp 0x5170eb
xor edi, edi
mov eax, dword [edi]
mov ecx, edi
push str.Click_to_move_ON
mov dword [ebp - 4], 0xffffffff
call dword [eax + 0x30]
mov dword [edi + 0x150], 0x517eb0
mov ecx, esi
mov dword [edi + 0x16c], 9
mov byte [edi + 0x168], 1
mov eax, dword [esi]
push edi
call dword [eax + 0x14]
push 1
push 0
call fcn.0046cfa0
push 0x194
call fcn.00559eaa
add esp, 0xc
mov dword [ebp - 0x414], eax
mov dword [ebp - 4], 0x11
test eax, eax
je 0x517164
push 0
push str.TEXTBUTTON
push 0xfffffffffffffffe
push 0xfffffffffffffffe
push 0xfffffffffffffffe
push 0xfffffffffffffffe
push 0xe
mov ecx, eax
call fcn.0046b830
mov edi, eax
jmp 0x517166
xor edi, edi
mov eax, dword [edi]
mov ecx, edi
push str.3D_sound
mov dword [ebp - 4], 0xffffffff
call dword [eax + 0x30]
mov dword [edi + 0x150], 0x517eb0
mov ecx, esi
mov dword [edi + 0x16c], 9
mov byte [edi + 0x168], 1
mov eax, dword [esi]
push edi
call dword [eax + 0x14]
push 1
push 0
call fcn.0046cfa0
push 0x194
call fcn.00559eaa
add esp, 0xc
mov dword [ebp - 0x414], eax
mov dword [ebp - 4], 0x12
test eax, eax
je 0x5171df
push 0
push str.TEXTBUTTON
push 0xfffffffffffffffe
push 0xfffffffffffffffe
push 0xfffffffffffffffe
push 0xfffffffffffffffe
push 0xf
mov ecx, eax
call fcn.0046b830
mov edi, eax
jmp 0x5171e1
xor edi, edi
mov eax, dword [edi]
mov ecx, edi
push str.UI_sound
mov dword [ebp - 4], 0xffffffff
call dword [eax + 0x30]
mov dword [edi + 0x150], 0x517eb0
mov ecx, esi
mov dword [edi + 0x16c], 9
mov byte [edi + 0x168], 1
mov eax, dword [esi]
push edi
call dword [eax + 0x14]
push 1
push 0
call fcn.0046cfa0
push 0x194
call fcn.00559eaa
add esp, 0xc
mov dword [ebp - 0x414], eax
mov dword [ebp - 4], 0x13
test eax, eax
je 0x51725a
push 0
push str.TEXTBUTTON
push 0xfffffffffffffffe
push 0xfffffffffffffffe
push 0xfffffffffffffffe
push 0xfffffffffffffffe
push 0x10
mov ecx, eax
call fcn.0046b830
mov edi, eax
jmp 0x51725c
xor edi, edi
mov eax, dword [edi]
mov ecx, edi
push str.Language_Filter
mov dword [ebp - 4], 0xffffffff
call dword [eax + 0x30]
mov dword [edi + 0x150], 0x517eb0
mov ecx, esi
mov dword [edi + 0x16c], 9
mov byte [edi + 0x168], 1
mov eax, dword [esi]
push edi
call dword [eax + 0x14]
push 1
push 0
call fcn.0046cfa0
push 0x194
call fcn.00559eaa
add esp, 0xc
mov dword [ebp - 0x414], eax
mov dword [ebp - 4], 0x14
test eax, eax
je 0x5172d5
push 0
push str.TEXTBUTTON
push 0xfffffffffffffffe
push 0xfffffffffffffffe
push 0xfffffffffffffffe
push 0xfffffffffffffffe
push 0x13
mov ecx, eax
call fcn.0046b830
mov edi, eax
jmp 0x5172d7
xor edi, edi
mov eax, dword [edi]
mov ecx, edi
push str.Weapon_Effects
mov dword [ebp - 4], 0xffffffff
call dword [eax + 0x30]
mov dword [edi + 0x150], 0x517eb0
mov ecx, esi
mov dword [edi + 0x16c], 9
mov byte [edi + 0x168], 1
mov eax, dword [esi]
push edi
call dword [eax + 0x14]
mov esi, dword [ebp - 0x41c]
mov ecx, esi
call fcn.00517600
mov ecx, dword [esi + 0x11c]
mov eax, dword [ecx]
call dword [eax + 0x2c]
mov dword [0x62fe04], 0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00559ee8
mov esp, ebp
pop ebp
ret