Function at 0x4655e0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4a8a30
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov eax, dword [esp + 0x3c]
push 0
push eax
mov dword [esp + 0x3c], 0
call fcn.004888ab
add esp, 8
test eax, eax
je 0x465636
push ecx
lea edx, [esp + 0x40]
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
call fcn.0049d78b
mov ecx, esi
call fcn.004663f0
jmp 0x465aa7
mov eax, dword [esp + 0x3c]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push eax
push 0xffffffffffffffff
push str.ScreenXSize
push str.RenderState
call edi
mov ebx, dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
jne 0x4656ab
lea ecx, [esp + 0x28]
push 0x30
push ecx
call fcn.0044c950
mov ecx, eax
call fcn.0044c9a0
mov ebp, dword [eax]
lea edx, [esp + 0x10]
push 0
push edx
mov byte [esp + 0x3c], 1
call fcn.0044c950
mov ecx, eax
call fcn.0044c9a0
mov eax, dword [eax]
push 0
push eax
push ebp
push 0
call ebx
lea ecx, [esp + 0x10]
call fcn.0049da16
lea ecx, [esp + 0x28]
mov byte [esp + 0x34], 0
call fcn.0049da16
mov eax, dword [esp + 0x3c]
push eax
push 0xffffffffffffffff
push str.ScreenYSize
push str.RenderState
call edi
cmp eax, 0xffffffff
mov dword [esi + 8], eax
jne 0x465714
lea ecx, [esp + 0x10]
push 0x31
push ecx
call fcn.0044c950
mov ecx, eax
call fcn.0044c9a0
mov ebp, dword [eax]
lea edx, [esp + 0x28]
push 0
push edx
mov byte [esp + 0x3c], 2
call fcn.0044c950
mov ecx, eax
call fcn.0044c9a0
mov eax, dword [eax]
push 0
push eax
push ebp
push 0
call ebx
lea ecx, [esp + 0x28]
call fcn.0049da16
lea ecx, [esp + 0x10]
mov byte [esp + 0x34], 0
call fcn.0049da16
mov eax, dword [esp + 0x3c]
push eax
push 0xffffffffffffffff
push str.RenderBits
push str.RenderState
call edi
cmp eax, 0xffffffff
mov dword [esi + 0xc], eax
jne 0x46577d
lea ecx, [esp + 0x10]
push 0x32
push ecx
call fcn.0044c950
mov ecx, eax
call fcn.0044c9a0
mov ebp, dword [eax]
lea edx, [esp + 0x28]
push 0
push edx
mov byte [esp + 0x3c], 3
call fcn.0044c950
mov ecx, eax
call fcn.0044c9a0
mov eax, dword [eax]
push 0
push eax
push ebp
push 0
call ebx
lea ecx, [esp + 0x28]
call fcn.0049da16
lea ecx, [esp + 0x10]
mov byte [esp + 0x34], 0
call fcn.0049da16
mov eax, dword [esp + 0x3c]
push str.NULL
push str.Adapter
push str.RenderState
lea ecx, [esp + 0x34]
push eax
push ecx
call fcn.0041c3b0
add esp, 0x14
lea ebp, [esi + 0x10]
push eax
mov ecx, ebp
mov byte [esp + 0x38], 4
call fcn.0049db4f
lea ecx, [esp + 0x28]
mov byte [esp + 0x34], 0
call fcn.0049da16
push 0x4c56a0
push 0x4cab10
mov ecx, ebp
call fcn.00498394
mov edx, dword [esp + 0x3c]
push edx
push 2
push str.SeeDistance
push str.RenderState
call edi
mov dword [esi + 0x14], eax
mov eax, dword [esp + 0x3c]
push eax
push 2
push str.TextureDetail
push str.RenderState
call edi
mov ecx, dword [esp + 0x3c]
mov dword [esi + 0x18], eax
push ecx
push 2
push str.ShadowDetail
push str.RenderState
call edi
test eax, eax
mov dword [esi + 0x1c], eax
jl 0x465818
cmp eax, 4
jl 0x465866
lea edx, [esp + 0x10]
push 0x3f
push edx
call fcn.0044c950
mov ecx, eax
call fcn.0044c9a0
mov ebp, dword [eax]
lea eax, [esp + 0x28]
push 0
push eax
mov byte [esp + 0x3c], 5
call fcn.0044c950
mov ecx, eax
call fcn.0044c9a0
mov eax, dword [eax]
push 0
push eax
push ebp
push 0
call ebx
lea ecx, [esp + 0x28]
call fcn.0049da16
lea ecx, [esp + 0x10]
mov byte [esp + 0x34], 0
call fcn.0049da16
mov ecx, dword [esp + 0x3c]
push ecx
push 2
push str.DynamicLight
push str.RenderState
call edi
mov edx, dword [esp + 0x3c]
mov dword [esi + 0x20], eax
push edx
push 0
push str.BboShasi
push str.RenderState
call edi
mov eax, dword [esp + 0x3c]
push 0x4c468c
push str.Gamma
push str.RenderState
lea ecx, [esp + 0x20]
push eax
push ecx
call fcn.0041c3b0
mov eax, dword [0x4e2b80]
mov edx, dword [esp + 0x28]
push eax
push edx
mov byte [esp + 0x50], 6
call fcn.004886d4
add esp, 0x1c
test eax, eax
jne 0x465914
lea eax, [esp + 0x10]
push 0x34
push eax
call fcn.0044c950
mov ecx, eax
call fcn.0044c9a0
mov edi, dword [eax]
lea ecx, [esp + 0x28]
push 0
push ecx
mov byte [esp + 0x3c], 7
call fcn.0044c950
mov ecx, eax
call fcn.0044c9a0
mov eax, dword [eax]
push 0
push eax
push edi
push 0
call ebx
lea ecx, [esp + 0x28]
call fcn.0049da16
mov byte [esp + 0x34], 6
lea ecx, [esp + 0x10]
jmp 0x465978
push ecx
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
call fcn.0049d78b
mov ecx, esi
call fcn.004665d0
mov eax, dword [0x4cd448]
mov edi, dword [esp + 0x3c]
fld dword [esi + 0x28]
mov dword [esp + 0x10], eax
sub esp, 8
lea ecx, [esp + 0x18]
mov byte [esp + 0x3c], 8
fstp qword [esp]
push str._.1f
push ecx
call fcn.004989ae
mov edx, dword [esp + 0x20]
add esp, 0x10
push edi
push edx
push str.Gamma
push str.RenderState
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov byte [esp + 0x34], 6
lea ecx, [esp + 0x10]
call fcn.0049da16
mov eax, dword [esp + 0x3c]
push str.NULL
push str.bMouseAccelation
push str.RenderState
lea ecx, [esp + 0x30]
push eax
push ecx
call fcn.0041c3b0
mov edx, dword [esp + 0x38]
push str.TRUE
push edx
mov byte [esp + 0x50], 9
call fcn.004886d4
mov ecx, dword [esp + 0x58]
push str.NULL
test eax, eax
push str.bDetailTexture
push str.RenderState
lea edx, [esp + 0x48]
push ecx
sete al
push edx
mov byte [esi + 0x2c], al
call fcn.0041c3b0
mov eax, dword [esp + 0x50]
mov bl, 0xa
push str.TRUE
push eax
mov byte [esp + 0x6c], bl
call fcn.004886d4
mov edx, dword [esp + 0x74]
push str.NULL
test eax, eax
push str.Sound
push str.Sound
lea eax, [esp + 0x60]
push edx
sete cl
push eax
mov byte [esi + 0x2d], cl
call fcn.0041c3b0
add esp, 0x4c
mov ecx, dword [esp + 0x1c]
push str.TRUE
push ecx
mov byte [esp + 0x3c], 0xb
call fcn.004886d4
test eax, eax
mov eax, dword [esp + 0x44]
push str.NULL
push str.Music
push str.Sound
lea ecx, [esp + 0x2c]
push eax
sete dl
push ecx
mov byte [esi + 0x2e], dl
call fcn.0041c3b0
mov edx, dword [esp + 0x34]
push str.TRUE
push edx
call fcn.004886d4
add esp, 0x24
lea ecx, [esp + 0x18]
test eax, eax
sete al
mov byte [esi + 0x2f], al
call fcn.0049da16
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], bl
call fcn.0049da16
lea ecx, [esp + 0x20]
mov byte [esp + 0x34], 9
call fcn.0049da16
lea ecx, [esp + 0x24]
mov byte [esp + 0x34], 6
call fcn.0049da16
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], 0
call fcn.0049da16
lea ecx, [esp + 0x3c]
mov dword [esp + 0x34], 0xffffffff
call fcn.0049da16
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x28
ret 4