Function at 0x4857d0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57617f
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.004a5dc0
mov dword [ebp - 4], 0
mov dword [esi], 0x59b198
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 [0x6162ec]
push ecx
mov edx, dword [0x6162e8]
push edx
mov ecx, esi
call fcn.004aea00
push 0x28
call fcn.005512e8
add esp, 4
mov dword [ebp - 0x68], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x48584e
mov ecx, eax
call fcn.004291b0
jmp 0x485850
xor eax, eax
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 1
mov dword [esi + 0x34], eax
push 0x4c
call fcn.005512e8
add esp, 4
mov dword [ebp - 0x70], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x4858be
mov ecx, dword [str.Selecione_o_grafico:]
push ecx
sub esp, 0x14
mov edx, esp
mov ecx, dword [0x615a58]
mov dword [edx], ecx
mov ecx, dword [0x615a5c]
mov dword [edx + 4], ecx
mov ecx, dword [0x615a60]
mov dword [edx + 8], ecx
mov ecx, dword [0x615a64]
mov dword [edx + 0xc], ecx
mov ecx, dword [0x615a68]
mov dword [edx + 0x10], ecx
mov edx, dword [0x6162f4]
push edx
mov ecx, dword [0x6162f0]
push ecx
mov ecx, eax
call fcn.0046db10
jmp 0x4858c0
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.004aec80
push 0x78
call fcn.005512e8
add esp, 4
mov edi, eax
mov dword [ebp - 0x38], edi
mov byte [ebp - 4], 4
test edi, edi
je 0x485927
push 0x320
push ebx
lea ecx, [ebp - 0xa0]
call fcn.004a5f30
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 [0x6162fc]
push eax
mov ecx, dword [0x6162f8]
push ecx
mov ecx, edi
call fcn.0046f100
jmp 0x485929
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.0045fda0
mov eax, dword [esi + 0x38]
push eax
mov ecx, esi
call fcn.004aec80
push 0x78
call fcn.005512e8
add esp, 4
mov edi, eax
mov dword [ebp - 0x40], edi
mov byte [ebp - 4], 5
test edi, edi
je 0x48599f
push 0x321
push ebx
lea ecx, [ebp - 0xb0]
call fcn.004a5f30
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 [0x616304]
push ecx
mov edx, dword [0x616300]
push edx
mov ecx, edi
call fcn.0046f100
jmp 0x4859a1
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.0045fda0
mov ecx, dword [esi + 0x3c]
push ecx
mov ecx, esi
call fcn.004aec80
push 0x78
call fcn.005512e8
add esp, 4
mov edi, eax
mov dword [ebp - 0x48], edi
mov byte [ebp - 4], 6
test edi, edi
je 0x485a19
push 0x322
push ebx
lea ecx, [ebp - 0xd0]
call fcn.004a5f30
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 [0x61630c]
push eax
mov ecx, dword [0x616308]
push ecx
mov ecx, edi
call fcn.0046f100
jmp 0x485a1b
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.0045fda0
mov eax, dword [esi + 0x40]
push eax
mov ecx, esi
call fcn.004aec80
call fcn.004f6dc0
cmp eax, 2
jne 0x485a68
push 0
mov ecx, dword [esi + 0x38]
call fcn.00458180
push 0
mov ecx, dword [esi + 0x3c]
call fcn.00458180
push 0
mov ecx, dword [esi + 0x40]
call fcn.00458180
jmp 0x485adc
call fcn.0050a500
mov ecx, eax
call fcn.0050a4a0
test al, 2
jne 0x485a82
push 0
mov ecx, dword [esi + 0x3c]
call fcn.00458180
call fcn.0050a500
mov ecx, eax
call fcn.0050a4a0
test al, 1
jne 0x485a9c
push 0
mov ecx, dword [esi + 0x40]
call fcn.00458180
mov eax, dword [0x767934]
sub eax, 0
je 0x485ace
dec eax
je 0x485abd
dec eax
jne 0x485adc
mov eax, dword [esi + 0x3c]
mov dword [ebp - 0x50], eax
mov ecx, dword [esi + 0x34]
mov dword [ebp - 0x98], ecx
jmp 0x485ada
mov eax, dword [esi + 0x40]
mov dword [ebp - 0x94], eax
mov ecx, dword [esi + 0x34]
mov dword [ebp - 0x5c], ecx
jmp 0x485ada
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.005512e8
add esp, 4
mov edi, eax
mov dword [ebp - 0x8c], edi
mov byte [ebp - 4], 7
test edi, edi
je 0x485b25
push 0x1e
push esi
lea ecx, [ebp - 0xc0]
call fcn.004a5f30
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [eax]
push edx
push 1
push 8
call fcn.004f6d10
push eax
push 0x80
push 0
mov ecx, edi
call fcn.00471aa0
jmp 0x485b27
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.004aec80
sub esp, 0x10
mov eax, esp
mov ecx, dword [0x616318]
mov dword [eax], ecx
mov edx, dword [0x61631c]
mov dword [eax + 4], edx
mov ecx, dword [0x616320]
mov dword [eax + 8], ecx
mov edx, dword [0x616324]
mov dword [eax + 0xc], edx
mov eax, dword [esi + 0x44]
push eax
mov ecx, esi
call fcn.004b2130
push 0x3c
call fcn.005512e8
add esp, 4
mov edi, eax
mov dword [ebp - 0x84], edi
mov byte [ebp - 4], 8
test edi, edi
je 0x485baa
push 0
push 0
lea ecx, [ebp - 0xa8]
call fcn.004a5f30
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [eax]
push edx
push str.Efeitos_De_Luz
mov ecx, edi
call fcn.0046fa30
jmp 0x485bac
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.004aec80
sub esp, 0x10
mov eax, esp
mov ecx, dword [0x616328]
mov dword [eax], ecx
mov edx, dword [0x61632c]
mov dword [eax + 4], edx
mov ecx, dword [0x616330]
mov dword [eax + 8], ecx
mov edx, dword [0x616334]
mov dword [eax + 0xc], edx
mov eax, dword [esi + 0x48]
push eax
mov ecx, esi
call fcn.004b2130
mov ecx, dword [esi + 0x48]
mov edi, dword [ecx]
call fcn.004f6df0
push eax
mov ecx, dword [esi + 0x48]
call dword [edi + 0xa0]
call fcn.0050a500
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xa4]
test al, al
jne 0x485c22
push 0
mov ecx, dword [esi + 0x48]
call fcn.0046ff50
push 0x3c
call fcn.005512e8
add esp, 4
mov edi, eax
mov dword [ebp - 0x54], edi
mov byte [ebp - 4], 9
test edi, edi
je 0x485c5d
push 0
push 0
lea ecx, [ebp - 0xb8]
call fcn.004a5f30
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [eax]
push edx
push str.Nao_Estica_Seleciona_Janela_Do_Jogo
mov ecx, edi
call fcn.0046fa30
jmp 0x485c5f
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.004aec80
sub esp, 0x10
mov eax, esp
mov ecx, dword [0x616338]
mov dword [eax], ecx
mov edx, dword [0x61633c]
mov dword [eax + 4], edx
mov ecx, dword [0x616340]
mov dword [eax + 8], ecx
mov edx, dword [0x616344]
mov dword [eax + 0xc], edx
mov eax, dword [esi + 0x4c]
push eax
mov ecx, esi
call fcn.004b2130
mov ecx, dword [esi + 0x4c]
mov edi, dword [ecx]
call fcn.004f6e20
push eax
mov ecx, dword [esi + 0x4c]
call dword [edi + 0xa0]
push 0x3c
call fcn.005512e8
add esp, 4
mov edi, eax
mov dword [ebp - 0x1c], edi
mov byte [ebp - 4], 0xa
test edi, edi
je 0x485cf3
push 0
push 0
lea ecx, [ebp - 0xc8]
call fcn.004a5f30
mov edx, dword [eax + 4]
push edx
mov eax, dword [eax]
push eax
push str.Ponteiro_Do_Mause
mov ecx, edi
call fcn.0046fa30
jmp 0x485cf5
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.004aec80
sub esp, 0x10
mov ecx, esp
mov edx, dword [0x616348]
mov dword [ecx], edx
mov eax, dword [0x61634c]
mov dword [ecx + 4], eax
mov edx, dword [0x616350]
mov dword [ecx + 8], edx
mov eax, dword [0x616354]
mov dword [ecx + 0xc], eax
mov ecx, dword [esi + 0x50]
push ecx
mov ecx, esi
call fcn.004b2130
mov edx, dword [esi + 0x50]
mov edi, dword [edx]
call fcn.004f6de0
push eax
mov ecx, dword [esi + 0x50]
call dword [edi + 0xa0]
push 0x38
call fcn.005512e8
add esp, 4
mov edi, eax
mov dword [ebp - 0x24], edi
mov byte [ebp - 4], 0xb
test edi, edi
je 0x485d8e
push 0x1e
push esi
lea ecx, [ebp - 0xd8]
call fcn.004a5f30
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.00471aa0
jmp 0x485d90
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.004aec80
sub esp, 0x10
mov eax, esp
mov ecx, dword [0x616358]
mov dword [eax], ecx
mov edx, dword [0x61635c]
mov dword [eax + 4], edx
mov ecx, dword [0x616360]
mov dword [eax + 8], ecx
mov edx, dword [0x616364]
mov dword [eax + 0xc], edx
mov eax, dword [esi + 0x54]
push eax
mov ecx, esi
call fcn.004b2130
call fcn.004f6e30
mov dword [ebp - 0x14], eax
cmp eax, 0xa
jge 0x485dea
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.00466560
mov ecx, esi
call fcn.004b07d0
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