Function at 0x492460
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59369f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x240
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x60], esi
call fcn.004b2cf0
mov dword [ebp - 4], 0
mov dword [esi], 0x5bac00
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
mov dword [esi + 0x2c], eax
mov ebx, dword [ebp + 0xc]
mov dword [esi + 0x30], ebx
mov ecx, dword [0x641f40]
push ecx
mov edx, dword [0x641f3c]
push edx
mov ecx, esi
call fcn.004bbc90
push 0x28
call fcn.0056c38c
add esp, 4
mov dword [ebp - 0x68], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x4924de
mov ecx, eax
call fcn.0042d070
jmp 0x4924e0
xor eax, eax
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 1
mov dword [esi + 0x34], eax
push 0x4c
call fcn.0056c38c
add esp, 4
mov dword [ebp - 0x70], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x49254e
mov ecx, dword [str.Select_graphics_engine:]
push ecx
sub esp, 0x14
mov edx, esp
mov ecx, dword [0x64168c]
mov dword [edx], ecx
mov ecx, dword [0x641690]
mov dword [edx + 4], ecx
mov ecx, dword [0x641694]
mov dword [edx + 8], ecx
mov ecx, dword [0x641698]
mov dword [edx + 0xc], ecx
mov ecx, dword [0x64169c]
mov dword [edx + 0x10], ecx
mov edx, dword [0x641f48]
push edx
mov ecx, dword [0x641f44]
push ecx
mov ecx, eax
call fcn.0047a8b0
jmp 0x492550
xor eax, eax
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x78], eax
push eax
mov ecx, esi
call fcn.004bbf10
push 0x7c
call fcn.0056c38c
add esp, 4
mov edi, eax
mov dword [ebp - 0x38], edi
mov byte [ebp - 4], 4
test edi, edi
je 0x4925b7
push 0x320
push ebx
lea ecx, [ebp - 0xa0]
call fcn.004b2e60
mov edx, dword [str.Switch_to_DirectX_5_Engine]
push edx
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [eax]
push edx
push 0x11
push 0x10
push str.DirectX5
mov eax, dword [0x641f50]
push eax
mov ecx, dword [0x641f4c]
push ecx
mov ecx, edi
call fcn.0047be30
jmp 0x4925b9
xor eax, eax
mov ecx, eax
mov dword [ebp - 0x80], ecx
mov byte [ebp - 4], 1
mov dword [esi + 0x38], ecx
mov edx, dword [esi + 0x34]
push edx
call fcn.0046cc40
mov eax, dword [esi + 0x38]
push eax
mov ecx, esi
call fcn.004bbf10
push 0x7c
call fcn.0056c38c
add esp, 4
mov edi, eax
mov dword [ebp - 0x40], edi
mov byte [ebp - 4], 5
test edi, edi
je 0x49262f
push 0x321
push ebx
lea ecx, [ebp - 0xb0]
call fcn.004b2e60
mov ecx, dword [str.Switch_to_DirectX_9_Engine]
push ecx
mov edx, dword [eax + 4]
push edx
mov eax, dword [eax]
push eax
push 0x11
push 0x10
push str.DirectX9
mov ecx, dword [0x641f58]
push ecx
mov edx, dword [0x641f54]
push edx
mov ecx, edi
call fcn.0047be30
jmp 0x492631
xor eax, eax
mov ecx, eax
mov dword [ebp - 0x88], ecx
mov byte [ebp - 4], 1
mov dword [esi + 0x3c], ecx
mov eax, dword [esi + 0x34]
push eax
call fcn.0046cc40
mov ecx, dword [esi + 0x3c]
push ecx
mov ecx, esi
call fcn.004bbf10
push 0x7c
call fcn.0056c38c
add esp, 4
mov edi, eax
mov dword [ebp - 0x48], edi
mov byte [ebp - 4], 6
test edi, edi
je 0x4926a9
push 0x322
push ebx
lea ecx, [ebp - 0xd0]
call fcn.004b2e60
mov edx, dword [str.Switch_to_OpenGL_Engine]
push edx
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [eax]
push edx
push 0x11
push 0x10
push str.OpenGL
mov eax, dword [0x641f60]
push eax
mov ecx, dword [0x641f5c]
push ecx
mov ecx, edi
call fcn.0047be30
jmp 0x4926ab
xor eax, eax
mov ecx, eax
mov dword [ebp - 0x90], ecx
mov byte [ebp - 4], 1
mov dword [esi + 0x40], ecx
mov edx, dword [esi + 0x34]
push edx
call fcn.0046cc40
mov eax, dword [esi + 0x40]
push eax
mov ecx, esi
call fcn.004bbf10
call fcn.00507c50
cmp eax, 2
jne 0x4926f8
push 0
mov ecx, dword [esi + 0x38]
call fcn.00464810
push 0
mov ecx, dword [esi + 0x3c]
call fcn.00464810
push 0
mov ecx, dword [esi + 0x40]
call fcn.00464810
jmp 0x49276c
call fcn.0051d6b0
mov ecx, eax
call fcn.0051d660
test al, 2
jne 0x492712
push 0
mov ecx, dword [esi + 0x3c]
call fcn.00464810
call fcn.0051d6b0
mov ecx, eax
call fcn.0051d660
test al, 1
jne 0x49272c
push 0
mov ecx, dword [esi + 0x40]
call fcn.00464810
mov eax, dword [0x793994]
sub eax, 0
je 0x49275e
dec eax
je 0x49274d
dec eax
jne 0x49276c
mov eax, dword [esi + 0x3c]
mov dword [ebp - 0x50], eax
mov ecx, dword [esi + 0x34]
mov dword [ebp - 0x98], ecx
jmp 0x49276a
mov eax, dword [esi + 0x40]
mov dword [ebp - 0x94], eax
mov ecx, dword [esi + 0x34]
mov dword [ebp - 0x5c], ecx
jmp 0x49276a
mov eax, dword [esi + 0x38]
mov dword [ebp - 0x7c], eax
mov ecx, dword [esi + 0x34]
mov dword [ebp - 0x64], ecx
mov dword [ecx], eax
push 0x38
call fcn.0056c38c
add esp, 4
mov edi, eax
mov dword [ebp - 0x8c], edi
mov byte [ebp - 4], 7
test edi, edi
je 0x4927b5
push 0x15
push esi
lea ecx, [ebp - 0xc0]
call fcn.004b2e60
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [eax]
push edx
push 1
push 8
call fcn.00507ba0
push eax
push 0x80
push 0
mov ecx, edi
call fcn.0047e870
jmp 0x4927b7
xor eax, eax
mov dword [ebp - 0x6c], eax
mov byte [ebp - 4], 1
mov dword [esi + 0x44], eax
push eax
mov ecx, esi
call fcn.004bbf10
sub esp, 0x10
mov eax, esp
mov ecx, dword [0x641f6c]
mov dword [eax], ecx
mov edx, dword [0x641f70]
mov dword [eax + 4], edx
mov ecx, dword [0x641f74]
mov dword [eax + 8], ecx
mov edx, dword [0x641f78]
mov dword [eax + 0xc], edx
mov eax, dword [esi + 0x44]
push eax
mov ecx, esi
call fcn.004bf3c0
push 0x3c
call fcn.0056c38c
add esp, 4
mov edi, eax
mov dword [ebp - 0x84], edi
mov byte [ebp - 4], 8
test edi, edi
je 0x49283a
push 0
push 0
lea ecx, [ebp - 0xa8]
call fcn.004b2e60
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [eax]
push edx
push str.Show_Light_Effects
mov ecx, edi
call fcn.0047c7c0
jmp 0x49283c
xor eax, eax
mov dword [ebp - 0x74], eax
mov byte [ebp - 4], 1
mov dword [esi + 0x48], eax
push eax
mov ecx, esi
call fcn.004bbf10
sub esp, 0x10
mov eax, esp
mov ecx, dword [0x641f7c]
mov dword [eax], ecx
mov edx, dword [0x641f80]
mov dword [eax + 4], edx
mov ecx, dword [0x641f84]
mov dword [eax + 8], ecx
mov edx, dword [0x641f88]
mov dword [eax + 0xc], edx
mov eax, dword [esi + 0x48]
push eax
mov ecx, esi
call fcn.004bf3c0
mov ecx, dword [esi + 0x48]
mov edi, dword [ecx]
call fcn.00507c80
push eax
mov ecx, dword [esi + 0x48]
call dword [edi + 0xa0]
call fcn.0051d6b0
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xa4]
test al, al
jne 0x4928b2
push 0
mov ecx, dword [esi + 0x48]
call fcn.0047cce0
push 0x3c
call fcn.0056c38c
add esp, 4
mov edi, eax
mov dword [ebp - 0x54], edi
mov byte [ebp - 4], 9
test edi, edi
je 0x4928ed
push 0
push 0
lea ecx, [ebp - 0xb8]
call fcn.004b2e60
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [eax]
push edx
push str.Dont_Stretch_Shrink_Game_Window
mov ecx, edi
call fcn.0047c7c0
jmp 0x4928ef
xor eax, eax
mov dword [ebp - 0x58], eax
mov byte [ebp - 4], 1
mov dword [esi + 0x4c], eax
push eax
mov ecx, esi
call fcn.004bbf10
sub esp, 0x10
mov eax, esp
mov ecx, dword [0x641f8c]
mov dword [eax], ecx
mov edx, dword [0x641f90]
mov dword [eax + 4], edx
mov ecx, dword [0x641f94]
mov dword [eax + 8], ecx
mov edx, dword [0x641f98]
mov dword [eax + 0xc], edx
mov eax, dword [esi + 0x4c]
push eax
mov ecx, esi
call fcn.004bf3c0
mov ecx, dword [esi + 0x4c]
mov edi, dword [ecx]
call fcn.00507cb0
push eax
mov ecx, dword [esi + 0x4c]
call dword [edi + 0xa0]
push 0x3c
call fcn.0056c38c
add esp, 4
mov edi, eax
mov dword [ebp - 0x1c], edi
mov byte [ebp - 4], 0xa
test edi, edi
je 0x492983
push 0
push 0
lea ecx, [ebp - 0xc8]
call fcn.004b2e60
mov edx, dword [eax + 4]
push edx
mov eax, dword [eax]
push eax
push str.Windows_Mouse_Pointer
mov ecx, edi
call fcn.0047c7c0
jmp 0x492985
xor eax, eax
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 1
mov dword [esi + 0x50], eax
push eax
mov ecx, esi
call fcn.004bbf10
sub esp, 0x10
mov ecx, esp
mov edx, dword [0x641f9c]
mov dword [ecx], edx
mov eax, dword [0x641fa0]
mov dword [ecx + 4], eax
mov edx, dword [0x641fa4]
mov dword [ecx + 8], edx
mov eax, dword [0x641fa8]
mov dword [ecx + 0xc], eax
mov ecx, dword [esi + 0x50]
push ecx
mov ecx, esi
call fcn.004bf3c0
mov edx, dword [esi + 0x50]
mov edi, dword [edx]
call fcn.00507c70
push eax
mov ecx, dword [esi + 0x50]
call dword [edi + 0xa0]
push 0x38
call fcn.0056c38c
add esp, 4
mov edi, eax
mov dword [ebp - 0x24], edi
mov byte [ebp - 4], 0xb
test edi, edi
je 0x492a1e
push 0x15
push esi
lea ecx, [ebp - 0xd8]
call fcn.004b2e60
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [eax]
push edx
push 1
push 0xb
push 0xa
push 0xc9
push 0xa
mov ecx, edi
call fcn.0047e870
jmp 0x492a20
xor eax, eax
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 1
mov dword [esi + 0x54], eax
push eax
mov ecx, esi
call fcn.004bbf10
sub esp, 0x10
mov eax, esp
mov ecx, dword [0x641fac]
mov dword [eax], ecx
mov edx, dword [0x641fb0]
mov dword [eax + 4], edx
mov ecx, dword [0x641fb4]
mov dword [eax + 8], ecx
mov edx, dword [0x641fb8]
mov dword [eax + 0xc], edx
mov eax, dword [esi + 0x54]
push eax
mov ecx, esi
call fcn.004bf3c0
call fcn.00507cc0
mov dword [ebp - 0x14], eax
cmp eax, 0xa
jge 0x492a7a
mov eax, 0xc9
mov dword [ebp - 0x14], eax
mov ecx, dword [esi + 0x54]
mov dword [ebp - 0x34], ecx
push eax
mov ecx, dword [ecx + 0x2c]
call fcn.00473440
mov ecx, esi
call fcn.004bda60
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8