Function at 0x46c050
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4b1d50
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.004911a3
add esp, 8
test eax, eax
je 0x46c0a6
push ecx
lea edx, [esp + 0x40]
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
call fcn.004a688e
mov ecx, esi
call fcn.0046ce50
jmp 0x46c517
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 0x46c11b
lea ecx, [esp + 0x28]
push 0x30
push ecx
call fcn.00451a60
mov ecx, eax
call fcn.00451ab0
mov ebp, dword [eax]
lea edx, [esp + 0x10]
push 0
push edx
mov byte [esp + 0x3c], 1
call fcn.00451a60
mov ecx, eax
call fcn.00451ab0
mov eax, dword [eax]
push 0
push eax
push ebp
push 0
call ebx
lea ecx, [esp + 0x10]
call fcn.004a6b19
lea ecx, [esp + 0x28]
mov byte [esp + 0x34], 0
call fcn.004a6b19
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 0x46c184
lea ecx, [esp + 0x10]
push 0x31
push ecx
call fcn.00451a60
mov ecx, eax
call fcn.00451ab0
mov ebp, dword [eax]
lea edx, [esp + 0x28]
push 0
push edx
mov byte [esp + 0x3c], 2
call fcn.00451a60
mov ecx, eax
call fcn.00451ab0
mov eax, dword [eax]
push 0
push eax
push ebp
push 0
call ebx
lea ecx, [esp + 0x28]
call fcn.004a6b19
lea ecx, [esp + 0x10]
mov byte [esp + 0x34], 0
call fcn.004a6b19
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 0x46c1ed
lea ecx, [esp + 0x10]
push 0x32
push ecx
call fcn.00451a60
mov ecx, eax
call fcn.00451ab0
mov ebp, dword [eax]
lea edx, [esp + 0x28]
push 0
push edx
mov byte [esp + 0x3c], 3
call fcn.00451a60
mov ecx, eax
call fcn.00451ab0
mov eax, dword [eax]
push 0
push eax
push ebp
push 0
call ebx
lea ecx, [esp + 0x28]
call fcn.004a6b19
lea ecx, [esp + 0x10]
mov byte [esp + 0x34], 0
call fcn.004a6b19
mov eax, dword [esp + 0x3c]
push str.NULL
push str.Adapter
push str.RenderState
lea ecx, [esp + 0x34]
push eax
push ecx
call fcn.0041f5a0
add esp, 0x14
lea ebp, [esi + 0x10]
push eax
mov ecx, ebp
mov byte [esp + 0x38], 4
call fcn.004a6c52
lea ecx, [esp + 0x28]
mov byte [esp + 0x34], 0
call fcn.004a6b19
push 0x4d0b44
push 0x4d65a8
mov ecx, ebp
call fcn.004a1494
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 0x46c288
cmp eax, 4
jl 0x46c2d6
lea edx, [esp + 0x10]
push 0x3f
push edx
call fcn.00451a60
mov ecx, eax
call fcn.00451ab0
mov ebp, dword [eax]
lea eax, [esp + 0x28]
push 0
push eax
mov byte [esp + 0x3c], 5
call fcn.00451a60
mov ecx, eax
call fcn.00451ab0
mov eax, dword [eax]
push 0
push eax
push ebp
push 0
call ebx
lea ecx, [esp + 0x28]
call fcn.004a6b19
lea ecx, [esp + 0x10]
mov byte [esp + 0x34], 0
call fcn.004a6b19
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 0x4cfe44
push str.Gamma
push str.RenderState
lea ecx, [esp + 0x20]
push eax
push ecx
call fcn.0041f5a0
mov eax, dword [0x4ef708]
mov edx, dword [esp + 0x28]
push eax
push edx
mov byte [esp + 0x50], 6
call fcn.00490fca
add esp, 0x1c
test eax, eax
jne 0x46c384
lea eax, [esp + 0x10]
push 0x34
push eax
call fcn.00451a60
mov ecx, eax
call fcn.00451ab0
mov edi, dword [eax]
lea ecx, [esp + 0x28]
push 0
push ecx
mov byte [esp + 0x3c], 7
call fcn.00451a60
mov ecx, eax
call fcn.00451ab0
mov eax, dword [eax]
push 0
push eax
push edi
push 0
call ebx
lea ecx, [esp + 0x28]
call fcn.004a6b19
mov byte [esp + 0x34], 6
lea ecx, [esp + 0x10]
jmp 0x46c3e8
push ecx
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
call fcn.004a688e
mov ecx, esi
call fcn.0046d030
mov eax, dword [0x4d8cb8]
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.004a1aae
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.004a6b19
mov eax, dword [esp + 0x3c]
push str.NULL
push str.bMouseAccelation
push str.RenderState
lea ecx, [esp + 0x30]
push eax
push ecx
call fcn.0041f5a0
mov edx, dword [esp + 0x38]
push str.TRUE
push edx
mov byte [esp + 0x50], 9
call fcn.00490fca
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.0041f5a0
mov eax, dword [esp + 0x50]
mov bl, 0xa
push str.TRUE
push eax
mov byte [esp + 0x6c], bl
call fcn.00490fca
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.0041f5a0
add esp, 0x4c
mov ecx, dword [esp + 0x1c]
push str.TRUE
push ecx
mov byte [esp + 0x3c], 0xb
call fcn.00490fca
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.0041f5a0
mov edx, dword [esp + 0x34]
push str.TRUE
push edx
call fcn.00490fca
add esp, 0x24
lea ecx, [esp + 0x18]
test eax, eax
sete al
mov byte [esi + 0x2f], al
call fcn.004a6b19
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], bl
call fcn.004a6b19
lea ecx, [esp + 0x20]
mov byte [esp + 0x34], 9
call fcn.004a6b19
lea ecx, [esp + 0x24]
mov byte [esp + 0x34], 6
call fcn.004a6b19
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], 0
call fcn.004a6b19
lea ecx, [esp + 0x3c]
mov dword [esp + 0x34], 0xffffffff
call fcn.004a6b19
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x28
ret 4