Function at 0x436cb0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4a8af8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5564a4]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [esp + 0x3c]
push 0
push edi
mov dword [esp + 0x3c], 0
call fcn.004768f0
add esp, 8
test eax, eax
je 0x436d3d
push ecx
add edi, 0xfffffff0
mov dword [esp + 0x2c], esp
mov ebx, esp
push edi
call fcn.00402280
add eax, 0x10
add esp, 4
mov ecx, esi
mov dword [ebx], eax
call fcn.00436a50
mov dword [esp + 0x34], 0xffffffff
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x437243
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
jmp 0x437243
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push edi
push 0xffffffffffffffff
push str.ScreenXSize
push str.RenderState
call ebp
cmp eax, 0xffffffff
mov dword [esi + 4], eax
jne 0x436da6
lea ecx, [esp + 0x28]
push 0x30
push ecx
call fcn.00427880
mov ecx, eax
call fcn.004276a0
mov eax, dword [eax]
push 0
push 0
push eax
mov byte [esp + 0x40], 1
call fcn.00406520
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
add esp, 0xc
mov byte [esp + 0x34], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x436da6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push edi
push 0xffffffffffffffff
push str.ScreenYSize
push str.RenderState
call ebp
cmp eax, 0xffffffff
mov dword [esi + 8], eax
jne 0x436e09
lea ecx, [esp + 0x28]
push 0x31
push ecx
call fcn.00427880
mov ecx, eax
call fcn.004276a0
mov eax, dword [eax]
push 0
push 0
push eax
mov byte [esp + 0x40], 2
call fcn.00406520
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
add esp, 0xc
mov byte [esp + 0x34], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x436e09
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push edi
push 0xffffffffffffffff
push str.RenderBits
push str.RenderState
call ebp
cmp eax, 0xffffffff
mov dword [esi + 0xc], eax
jne 0x436e6c
lea ecx, [esp + 0x28]
push 0x32
push ecx
call fcn.00427880
mov ecx, eax
call fcn.004276a0
mov eax, dword [eax]
push 0
push 0
push eax
mov byte [esp + 0x40], 3
call fcn.00406520
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
add esp, 0xc
mov byte [esp + 0x34], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x436e6c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.NULL
push str.Adapter
push str.RenderState
lea ecx, [esp + 0x34]
push edi
push ecx
call fcn.004053e0
add esp, 0x14
lea ebx, [esi + 0x10]
push eax
mov ecx, ebx
mov byte [esp + 0x38], 4
call fcn.00402cc0
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0x34], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x436ebe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x4fd458
push 0x503384
mov ecx, ebx
call fcn.00409970
push edi
push 2
push str.SeeDistance
push str.RenderState
call ebp
push edi
push 2
push str.TextureDetail
push str.RenderState
mov dword [esi + 0x14], eax
call ebp
push edi
push 2
push str.ShadowDetail
push str.RenderState
mov dword [esi + 0x18], eax
call ebp
test eax, eax
mov dword [esi + 0x1c], eax
jl 0x436f0e
cmp eax, 4
jl 0x436f5a
lea ecx, [esp + 0x28]
push 0x3f
push ecx
call fcn.00427880
mov ecx, eax
call fcn.004276a0
mov eax, dword [eax]
push 0
push 0
push eax
mov byte [esp + 0x40], 5
call fcn.00406520
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
add esp, 0xc
mov byte [esp + 0x34], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x436f5a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push edi
push 2
push str.DynamicLight
push str.RenderState
call ebp
mov dword [esi + 0x20], eax
mov ecx, dword [0x55865c]
push 0
call fcn.0043f4a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x20]
call eax
test eax, eax
je 0x436f8f
mov dword [esi + 0x24], 0
jmp 0x436f9e
push edi
push 0
push str.BboShasi
push str.RenderState
call ebp
push 0x4fc110
push str.Gamma
push str.RenderState
lea ecx, [esp + 0x20]
push edi
push ecx
call fcn.004053e0
add esp, 0x14
mov ecx, dword [0x569340]
xor eax, eax
test ecx, ecx
setne al
mov byte [esp + 0x34], 6
test eax, eax
jne 0x436fdb
push 0x80004005
call fcn.00401090
mov edx, dword [esp + 0x14]
push ecx
push edx
call fcn.004760c1
add esp, 8
test eax, eax
sete al
test al, al
je 0x437040
lea eax, [esp + 0x28]
push 0x34
push eax
call fcn.00427880
mov ecx, eax
call fcn.004276a0
mov eax, dword [eax]
push 0
push 0
push eax
mov byte [esp + 0x40], 7
call fcn.00406520
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
add esp, 0xc
mov byte [esp + 0x34], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43707e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x43707e
mov eax, dword [esp + 0x14]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x2c], esp
mov ebp, esp
push eax
call fcn.00402280
add eax, 0x10
add esp, 4
mov ecx, esi
mov dword [ebp], eax
call fcn.00435fb0
fld dword [esi + 0x28]
push edi
push ecx
fstp dword [esp]
push str.Gamma
push str.RenderState
call fcn.00436290
add esp, 0x10
push str.NULL
push str.bMouseAccelation
push str.RenderState
lea ecx, [esp + 0x30]
push edi
push ecx
call fcn.004053e0
mov edx, dword [esp + 0x38]
push str.TRUE
push edx
mov byte [esp + 0x50], 8
call fcn.004760c1
push str.NULL
test eax, eax
push str.bDetailTexture
sete al
push str.RenderState
test al, al
lea ecx, [esp + 0x48]
setne al
push edi
push ecx
mov byte [esi + 0x2c], al
call fcn.004053e0
mov edx, dword [esp + 0x50]
push str.TRUE
mov bl, 9
push edx
mov byte [esp + 0x6c], bl
call fcn.004760c1
push str.NULL
test eax, eax
push str.Sound
sete al
push str.Sound
test al, al
lea ecx, [esp + 0x60]
setne al
push edi
push ecx
mov byte [esi + 0x2d], al
call fcn.004053e0
add esp, 0x4c
mov edx, dword [esp + 0x1c]
push str.TRUE
push edx
mov byte [esp + 0x3c], 0xa
call fcn.004760c1
push str.NULL
test eax, eax
push str.Music
sete al
push str.Sound
test al, al
lea ecx, [esp + 0x2c]
setne al
push edi
push ecx
mov byte [esi + 0x2e], al
call fcn.004053e0
mov edx, dword [esp + 0x34]
push str.TRUE
push edx
call fcn.004760c1
add esp, 0x24
test eax, eax
sete al
test al, al
setne al
mov byte [esi + 0x2f], al
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43718c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x34], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4371b0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x34], 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4371d5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x34], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4371fa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x34], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43721f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add edi, 0xfffffff0
mov dword [esp + 0x34], 0xffffffff
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x437243
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 4