Function at 0x408f90
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x204
push ebx
push esi
mov eax, dword [ecx]
push edi
push ebp
mov esi, ecx
mov ecx, dword [eax + 0x184]
test ecx, ecx
je 0x408ffa
lea edi, [esi + 0x60]
lea eax, [esp + 0x10]
push edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x100
push eax
push 0x4df418
push 0
push str.Environment
call ebx
test eax, eax
jne 0x409000
lea eax, [esp + 0x10]
push edi
push str.Environment
push str._nCannot_find_data_for___s__in__s._n_n
push eax
call fcn.004bd200
lea eax, [esp + 0x20]
add esp, 0x10
mov ecx, esi
nop
push eax
call fcn.00408140
xor eax, eax
jmp 0x4092f3
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x350
call fcn.004bd170
mov ebp, dword [esp + 0x21c]
add esp, 4
mov dword [esi + 0x44], eax
mov eax, dword [esi]
add eax, 0x124
mov ecx, dword [esi + 0x44]
push eax
push ebp
push 0x4df954
push ecx
call fcn.004bd200
add esp, 0x10
mov eax, dword [esi]
add eax, 0x144
push eax
push ebp
push 0x4df954
mov eax, dword [esi + 0x44]
add eax, 0x104
push eax
call fcn.004bd200
add esp, 0x10
mov eax, dword [esi]
add eax, 0x164
push eax
push ebp
push 0x4df954
mov eax, dword [esi + 0x44]
add eax, 0x208
push eax
call fcn.004bd200
add esp, 0x10
mov eax, dword [esi + 0x44]
add eax, 0x30c
nop
push 0x3f
push str.particlesdirtpart.tga
push eax
lea edi, [esi + 0x60]
call fcn.004bd6d0
lea eax, [esp + 0x1c]
add esp, 0xc
mov ecx, dword [esi + 0x44]
nop
push edi
push 0x100
mov dword [ecx + 0x34c], 0x40000000
push eax
push 0x4df418
push str.TerrainFile
push str.Environment
call ebx
test eax, eax
je 0x409230
lea eax, [esp + 0x10]
mov ecx, dword [esi + 0x44]
push eax
push ebp
push 0x4df954
push ecx
call fcn.004bd200
lea ecx, [esp + 0x20]
add esp, 0x10
mov eax, dword [esi]
add eax, 0x124
push 0x1f
push ecx
push eax
call fcn.004bd6d0
add esp, 0xc
mov ecx, dword [esi + 0x44]
push ecx
push str.TerrainFile
push str.Environment
mov ecx, esi
call fcn.00408160
lea eax, [esp + 0x10]
push edi
push 0x104
push eax
push 0x4df418
push str.CubeFile
push str.Environment
call ebx
test eax, eax
je 0x40916f
lea eax, [esp + 0x10]
mov ecx, dword [esi]
push eax
push ecx
push 0x4df954
mov eax, dword [esi + 0x44]
add eax, 0x104
push eax
call fcn.004bd200
lea ecx, [esp + 0x20]
add esp, 0x10
mov eax, dword [esi]
add eax, 0x144
push 0x1f
push ecx
push eax
call fcn.004bd6d0
add esp, 0xc
mov eax, dword [esi + 0x44]
add eax, 0x104
mov ecx, esi
push eax
push str.CubeFile
push str.Environment
call fcn.00408160
lea eax, [esp + 0x10]
push edi
push 0x104
push eax
push 0x4df418
push str.WaypointFile
push str.Environment
call ebx
test eax, eax
je 0x4091dc
lea eax, [esp + 0x10]
push eax
push ebp
push 0x4df954
mov eax, dword [esi + 0x44]
add eax, 0x208
push eax
call fcn.004bd200
lea ecx, [esp + 0x20]
add esp, 0x10
mov eax, dword [esi]
add eax, 0x164
push 0x1f
push ecx
push eax
call fcn.004bd6d0
add esp, 0xc
mov eax, dword [esi + 0x44]
add eax, 0x208
mov ecx, esi
push eax
push str.WaypointFile
push str.Environment
call fcn.00408160
lea eax, [esp + 0x10]
push edi
push 0x100
push eax
push 0x4df418
push str.ParticleTextureMapName
push str.Environment
call ebx
test eax, eax
je 0x40925c
lea eax, [esp + 0x10]
push 0x3f
push eax
mov eax, dword [esi + 0x44]
add eax, 0x30c
push eax
call fcn.004bd6d0
add esp, 0xc
mov eax, dword [esi + 0x44]
add eax, 0x30c
mov ecx, esi
push eax
push str.ParticleTextureMapName
push str.Environment
call fcn.00408160
jmp 0x40927e
mov eax, dword [esi + 0x44]
mov ecx, esi
push eax
push str.TerrainFile_Default_
push str.Environment
call fcn.00408160
mov eax, dword [esi]
mov ecx, dword [eax + 0x184]
test ecx, ecx
je 0x409100
xor eax, eax
jmp 0x4092f3
mov eax, dword [esi]
mov ecx, dword [eax + 0x184]
test ecx, ecx
je 0x40927e
push str.particlesdirtpart.tga
mov ecx, esi
push str.ParticleTextureMapName
push str.Environment
call fcn.00408130
push edi
push 0xbff00000
push 0
push str.StartGateScale
push str.Environment
call fcn.00470310
add esp, 0x14
mov eax, dword [esi + 0x44]
fstp dword [eax + 0x34c]
mov eax, dword [esi + 0x44]
mov ecx, dword [eax + 0x34c]
add eax, 0x34c
cmp ecx, 0xbf800000
jne 0x4092ce
mov dword [eax], 0x40000000
mov eax, dword [esi + 0x44]
mov ecx, dword [eax + 0x34c]
push ecx
push str.StartGateScale_Default_
jmp 0x4092d6
mov eax, dword [eax]
push eax
push str.StartGateScale
push str.Environment
mov ecx, esi
call fcn.00408170
push 0x4df418
mov ecx, esi
call fcn.00408140
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x204
ret 4