Function at 0x492e50
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x598d9f
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.004b7550
mov dword [ebp - 4], 0
mov dword [esi], 0x5c0f10
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 [0x64bec8]
push ecx
mov edx, dword [0x64bec4]
push edx
mov ecx, esi
call fcn.004c09e0
push 0x28
call fcn.005719e2
add esp, 4
mov dword [ebp - 0x68], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x492ece
mov ecx, eax
call fcn.0042d690
jmp 0x492ed0
xor eax, eax
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 1
mov dword [esi + 0x34], eax
push 0x4c
call fcn.005719e2
add esp, 4
mov dword [ebp - 0x70], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x492f3e
mov ecx, dword [str.Select_graphics_engine:]
push ecx
sub esp, 0x14
mov edx, esp
mov ecx, dword [0x64b614]
mov dword [edx], ecx
mov ecx, dword [0x64b618]
mov dword [edx + 4], ecx
mov ecx, dword [0x64b61c]
mov dword [edx + 8], ecx
mov ecx, dword [0x64b620]
mov dword [edx + 0xc], ecx
mov ecx, dword [0x64b624]
mov dword [edx + 0x10], ecx
mov edx, dword [0x64bed0]
push edx
mov ecx, dword [0x64becc]
push ecx
mov ecx, eax
call fcn.0047b0b0
jmp 0x492f40
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.004c0c60
push 0x7c
call fcn.005719e2
add esp, 4
mov edi, eax
mov dword [ebp - 0x38], edi
mov byte [ebp - 4], 4
test edi, edi
je 0x492fa7
push 0x320
push ebx
lea ecx, [ebp - 0xa0]
call fcn.004b76c0
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 [0x64bed8]
push eax
mov ecx, dword [0x64bed4]
push ecx
mov ecx, edi
call fcn.0047c650
jmp 0x492fa9
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.0046d480
mov eax, dword [esi + 0x38]
push eax
mov ecx, esi
call fcn.004c0c60
push 0x7c
call fcn.005719e2
add esp, 4
mov edi, eax
mov dword [ebp - 0x40], edi
mov byte [ebp - 4], 5
test edi, edi
je 0x49301f
push 0x321
push ebx
lea ecx, [ebp - 0xb0]
call fcn.004b76c0
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 [0x64bee0]
push ecx
mov edx, dword [0x64bedc]
push edx
mov ecx, edi
call fcn.0047c650
jmp 0x493021
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.0046d480
mov ecx, dword [esi + 0x3c]
push ecx
mov ecx, esi
call fcn.004c0c60
push 0x7c
call fcn.005719e2
add esp, 4
mov edi, eax
mov dword [ebp - 0x48], edi
mov byte [ebp - 4], 6
test edi, edi
je 0x493099
push 0x322
push ebx
lea ecx, [ebp - 0xd0]
call fcn.004b76c0
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 [0x64bee8]
push eax
mov ecx, dword [0x64bee4]
push ecx
mov ecx, edi
call fcn.0047c650
jmp 0x49309b
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.0046d480
mov eax, dword [esi + 0x40]
push eax
mov ecx, esi
call fcn.004c0c60
call fcn.0050c840
cmp eax, 2
jne 0x4930e8
push 0
mov ecx, dword [esi + 0x38]
call fcn.00464fb0
push 0
mov ecx, dword [esi + 0x3c]
call fcn.00464fb0
push 0
mov ecx, dword [esi + 0x40]
call fcn.00464fb0
jmp 0x49315c
call fcn.00522a90
mov ecx, eax
call fcn.00522a30
test al, 2
jne 0x493102
push 0
mov ecx, dword [esi + 0x3c]
call fcn.00464fb0
call fcn.00522a90
mov ecx, eax
call fcn.00522a30
test al, 1
jne 0x49311c
push 0
mov ecx, dword [esi + 0x40]
call fcn.00464fb0
mov eax, dword [0x79da6c]
sub eax, 0
je 0x49314e
dec eax
je 0x49313d
dec eax
jne 0x49315c
mov eax, dword [esi + 0x3c]
mov dword [ebp - 0x50], eax
mov ecx, dword [esi + 0x34]
mov dword [ebp - 0x98], ecx
jmp 0x49315a
mov eax, dword [esi + 0x40]
mov dword [ebp - 0x94], eax
mov ecx, dword [esi + 0x34]
mov dword [ebp - 0x5c], ecx
jmp 0x49315a
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.005719e2
add esp, 4
mov edi, eax
mov dword [ebp - 0x8c], edi
mov byte [ebp - 4], 7
test edi, edi
je 0x4931a5
push 0x15
push esi
lea ecx, [ebp - 0xc0]
call fcn.004b76c0
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [eax]
push edx
push 1
push 8
call fcn.0050c790
push eax
push 0x80
push 0
mov ecx, edi
call fcn.0047f0c0
jmp 0x4931a7
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.004c0c60
sub esp, 0x10
mov eax, esp
mov ecx, dword [0x64bef4]
mov dword [eax], ecx
mov edx, dword [0x64bef8]
mov dword [eax + 4], edx
mov ecx, dword [0x64befc]
mov dword [eax + 8], ecx
mov edx, dword [0x64bf00]
mov dword [eax + 0xc], edx
mov eax, dword [esi + 0x44]
push eax
mov ecx, esi
call fcn.004c4110
push 0x3c
call fcn.005719e2
add esp, 4
mov edi, eax
mov dword [ebp - 0x84], edi
mov byte [ebp - 4], 8
test edi, edi
je 0x49322a
push 0
push 0
lea ecx, [ebp - 0xa8]
call fcn.004b76c0
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [eax]
push edx
push str.Show_Light_Effects
mov ecx, edi
call fcn.0047cff0
jmp 0x49322c
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.004c0c60
sub esp, 0x10
mov eax, esp
mov ecx, dword [0x64bf04]
mov dword [eax], ecx
mov edx, dword [0x64bf08]
mov dword [eax + 4], edx
mov ecx, dword [0x64bf0c]
mov dword [eax + 8], ecx
mov edx, dword [0x64bf10]
mov dword [eax + 0xc], edx
mov eax, dword [esi + 0x48]
push eax
mov ecx, esi
call fcn.004c4110
mov ecx, dword [esi + 0x48]
mov edi, dword [ecx]
call fcn.0050c870
push eax
mov ecx, dword [esi + 0x48]
call dword [edi + 0xa0]
call fcn.00522a90
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xa4]
test al, al
jne 0x4932a2
push 0
mov ecx, dword [esi + 0x48]
call fcn.0047d510
push 0x3c
call fcn.005719e2
add esp, 4
mov edi, eax
mov dword [ebp - 0x54], edi
mov byte [ebp - 4], 9
test edi, edi
je 0x4932dd
push 0
push 0
lea ecx, [ebp - 0xb8]
call fcn.004b76c0
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.0047cff0
jmp 0x4932df
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.004c0c60
sub esp, 0x10
mov eax, esp
mov ecx, dword [0x64bf14]
mov dword [eax], ecx
mov edx, dword [0x64bf18]
mov dword [eax + 4], edx
mov ecx, dword [0x64bf1c]
mov dword [eax + 8], ecx
mov edx, dword [0x64bf20]
mov dword [eax + 0xc], edx
mov eax, dword [esi + 0x4c]
push eax
mov ecx, esi
call fcn.004c4110
mov ecx, dword [esi + 0x4c]
mov edi, dword [ecx]
call fcn.0050c8a0
push eax
mov ecx, dword [esi + 0x4c]
call dword [edi + 0xa0]
push 0x3c
call fcn.005719e2
add esp, 4
mov edi, eax
mov dword [ebp - 0x1c], edi
mov byte [ebp - 4], 0xa
test edi, edi
je 0x493373
push 0
push 0
lea ecx, [ebp - 0xc8]
call fcn.004b76c0
mov edx, dword [eax + 4]
push edx
mov eax, dword [eax]
push eax
push str.Windows_Mouse_Pointer
mov ecx, edi
call fcn.0047cff0
jmp 0x493375
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.004c0c60
sub esp, 0x10
mov ecx, esp
mov edx, dword [0x64bf24]
mov dword [ecx], edx
mov eax, dword [0x64bf28]
mov dword [ecx + 4], eax
mov edx, dword [0x64bf2c]
mov dword [ecx + 8], edx
mov eax, dword [0x64bf30]
mov dword [ecx + 0xc], eax
mov ecx, dword [esi + 0x50]
push ecx
mov ecx, esi
call fcn.004c4110
mov edx, dword [esi + 0x50]
mov edi, dword [edx]
call fcn.0050c860
push eax
mov ecx, dword [esi + 0x50]
call dword [edi + 0xa0]
push 0x38
call fcn.005719e2
add esp, 4
mov edi, eax
mov dword [ebp - 0x24], edi
mov byte [ebp - 4], 0xb
test edi, edi
je 0x49340e
push 0x15
push esi
lea ecx, [ebp - 0xd8]
call fcn.004b76c0
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.0047f0c0
jmp 0x493410
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.004c0c60
sub esp, 0x10
mov eax, esp
mov ecx, dword [0x64bf34]
mov dword [eax], ecx
mov edx, dword [0x64bf38]
mov dword [eax + 4], edx
mov ecx, dword [0x64bf3c]
mov dword [eax + 8], ecx
mov edx, dword [0x64bf40]
mov dword [eax + 0xc], edx
mov eax, dword [esi + 0x54]
push eax
mov ecx, esi
call fcn.004c4110
call fcn.0050c8b0
mov dword [ebp - 0x14], eax
cmp eax, 0xa
jge 0x49346a
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.00473c80
mov ecx, esi
call fcn.004c27b0
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