Function at 0x484120
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x72b33b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push esi
push edi
push 0xc8
mov edi, ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x34], eax
test eax, eax
mov dword [ebp - 4], 0
je 0x484164
mov ecx, eax
call fcn.0051b700
jmp 0x484166
xor eax, eax
mov ecx, 0x7cb478
mov dword [ebp - 4], 0xffffffff
mov dword [edi + 0xb4ec], eax
call fcn.004d51b0
mov ecx, dword [edi + 0xb4ec]
push 0x46400000
mov esi, eax
call fcn.0051bb30
mov eax, dword [edi + 0xb4ec]
mov ecx, dword [eax]
test ecx, ecx
je 0x4841e0
mov edx, dword [0x7c67dc]
mov eax, dword [edx + 0xf0]
push eax
push 5
call fcn.0065e490
mov ecx, dword [0x7c67dc]
mov al, byte [ecx + 0xe7]
test al, al
mov dword [ebp - 0x20], 0x3f800000
jne 0x4841cd
mov dword [ebp - 0x20], 0
mov edx, dword [ebp - 0x20]
mov eax, dword [edi + 0xb4ec]
mov ecx, dword [eax]
push edx
push 0x11
call fcn.0065e490
mov ecx, dword [0x7c6cdc]
mov al, byte [ecx + 0x20]
test al, al
je 0x4846dd
mov dword [ebp - 0x24], 0
fld dword [ebp - 0x24]
fistp dword [ebp - 0x28]
mov dword [ebp - 0x24], 0
fld dword [ebp - 0x24]
fistp dword [ebp - 0x2c]
mov dword [ebp - 0x24], 0
fld dword [ebp - 0x24]
fistp dword [ebp - 0x30]
mov dword [ebp - 0x24], 0
fld dword [ebp - 0x24]
fistp dword [ebp - 0x34]
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x34]
shl edx, 8
push str..Morrowind.ini
or edx, ecx
push 0x200
shl edx, 8
push esi
or edx, ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push str.255_255_255_255
shl edx, 8
push str.EnvReduceColor
or edx, eax
push str.Weather
mov dword [ebp - 0x20], edx
call ebx
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x14]
push eax
push str._f__f__f__f
push esi
call dword [sym.imp.MSVCRT.dll_sscanf]
fld dword [ebp - 0x14]
fcomp dword [0x746568]
add esp, 0x18
fnstsw ax
test ah, 0x41
jne 0x48429d
mov dword [ebp - 0x14], 0x437f0000
jmp 0x4842b4
fld dword [ebp - 0x14]
fcomp dword [0x746468]
fnstsw ax
test ah, 1
je 0x4842b4
mov dword [ebp - 0x14], 0
fld dword [ebp - 0x14]
push ecx
fmul dword [0x746910]
lea ecx, [ebp - 0x20]
fstp dword [esp]
call fcn.006eced0
fld dword [ebp - 0x18]
fcomp dword [0x746568]
fnstsw ax
test ah, 0x41
jne 0x4842e2
mov dword [ebp - 0x18], 0x437f0000
jmp 0x4842f9
fld dword [ebp - 0x18]
fcomp dword [0x746468]
fnstsw ax
test ah, 1
je 0x4842f9
mov dword [ebp - 0x18], 0
fld dword [ebp - 0x18]
push ecx
fmul dword [0x746910]
lea ecx, [ebp - 0x20]
fstp dword [esp]
call fcn.006ecf20
fld dword [ebp - 0x1c]
fcomp dword [0x746568]
fnstsw ax
test ah, 0x41
jne 0x484327
mov dword [ebp - 0x1c], 0x437f0000
jmp 0x48433e
fld dword [ebp - 0x1c]
fcomp dword [0x746468]
fnstsw ax
test ah, 1
je 0x48433e
mov dword [ebp - 0x1c], 0
fld dword [ebp - 0x1c]
push ecx
fmul dword [0x746910]
lea ecx, [ebp - 0x20]
fstp dword [esp]
call fcn.006ecf60
fld dword [ebp - 0x10]
fcomp dword [0x746568]
fnstsw ax
test ah, 0x41
jne 0x48436c
mov dword [ebp - 0x10], 0x437f0000
jmp 0x484383
fld dword [ebp - 0x10]
fcomp dword [0x746468]
fnstsw ax
test ah, 1
je 0x484383
mov dword [ebp - 0x10], 0
fld dword [ebp - 0x10]
push ecx
fmul dword [0x746910]
lea ecx, [ebp - 0x20]
fstp dword [esp]
call fcn.006ecfa0
push ecx
mov ecx, dword [ebp - 0x20]
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [edi + 0xb4ec]
mov dword [ebp - 0x34], esp
call fcn.0051db10
push str..Morrowind.ini
push 0x200
push esi
push str.255_255_255_255
push str.LerpCloseColor
push str.Weather
call ebx
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x14]
push edx
push str._f__f__f__f
push esi
call dword [sym.imp.MSVCRT.dll_sscanf]
fld dword [ebp - 0x14]
fcomp dword [0x746568]
add esp, 0x18
fnstsw ax
test ah, 0x41
jne 0x484402
mov dword [ebp - 0x14], 0x437f0000
jmp 0x484419
fld dword [ebp - 0x14]
fcomp dword [0x746468]
fnstsw ax
test ah, 1
je 0x484419
mov dword [ebp - 0x14], 0
fld dword [ebp - 0x14]
push ecx
fmul dword [0x746910]
lea ecx, [ebp - 0x20]
fstp dword [esp]
call fcn.006eced0
fld dword [ebp - 0x18]
fcomp dword [0x746568]
fnstsw ax
test ah, 0x41
jne 0x484447
mov dword [ebp - 0x18], 0x437f0000
jmp 0x48445e
fld dword [ebp - 0x18]
fcomp dword [0x746468]
fnstsw ax
test ah, 1
je 0x48445e
mov dword [ebp - 0x18], 0
fld dword [ebp - 0x18]
push ecx
fmul dword [0x746910]
lea ecx, [ebp - 0x20]
fstp dword [esp]
call fcn.006ecf20
fld dword [ebp - 0x1c]
fcomp dword [0x746568]
fnstsw ax
test ah, 0x41
jne 0x48448c
mov dword [ebp - 0x1c], 0x437f0000
jmp 0x4844a3
fld dword [ebp - 0x1c]
fcomp dword [0x746468]
fnstsw ax
test ah, 1
je 0x4844a3
mov dword [ebp - 0x1c], 0
fld dword [ebp - 0x1c]
push ecx
fmul dword [0x746910]
lea ecx, [ebp - 0x20]
fstp dword [esp]
call fcn.006ecf60
fld dword [ebp - 0x10]
fcomp dword [0x746568]
fnstsw ax
test ah, 0x41
jne 0x4844d1
mov dword [ebp - 0x10], 0x437f0000
jmp 0x4844e8
fld dword [ebp - 0x10]
fcomp dword [0x746468]
fnstsw ax
test ah, 1
je 0x4844e8
mov dword [ebp - 0x10], 0
fld dword [ebp - 0x10]
push ecx
fmul dword [0x746910]
lea ecx, [ebp - 0x20]
fstp dword [esp]
call fcn.006ecfa0
push ecx
mov ecx, dword [ebp - 0x20]
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [edi + 0xb4ec]
mov dword [ebp - 0x34], esp
call fcn.0051db30
push str..Morrowind.ini
push 0x200
push esi
push str.255_255_255_255
push str.BumpFadeColor
push str.Weather
call ebx
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x14]
push edx
push str._f__f__f__f
push esi
call dword [sym.imp.MSVCRT.dll_sscanf]
fld dword [ebp - 0x14]
fcomp dword [0x746568]
add esp, 0x18
fnstsw ax
test ah, 0x41
jne 0x484567
mov dword [ebp - 0x14], 0x437f0000
jmp 0x48457e
fld dword [ebp - 0x14]
fcomp dword [0x746468]
fnstsw ax
test ah, 1
je 0x48457e
mov dword [ebp - 0x14], 0
fld dword [ebp - 0x14]
push ecx
fmul dword [0x746910]
lea ecx, [ebp - 0x20]
fstp dword [esp]
call fcn.006eced0
fld dword [ebp - 0x18]
fcomp dword [0x746568]
fnstsw ax
test ah, 0x41
jne 0x4845ac
mov dword [ebp - 0x18], 0x437f0000
jmp 0x4845c3
fld dword [ebp - 0x18]
fcomp dword [0x746468]
fnstsw ax
test ah, 1
je 0x4845c3
mov dword [ebp - 0x18], 0
fld dword [ebp - 0x18]
push ecx
fmul dword [0x746910]
lea ecx, [ebp - 0x20]
fstp dword [esp]
call fcn.006ecf20
fld dword [ebp - 0x1c]
fcomp dword [0x746568]
fnstsw ax
test ah, 0x41
jne 0x4845f1
mov dword [ebp - 0x1c], 0x437f0000
jmp 0x484608
fld dword [ebp - 0x1c]
fcomp dword [0x746468]
fnstsw ax
test ah, 1
je 0x484608
mov dword [ebp - 0x1c], 0
fld dword [ebp - 0x1c]
push ecx
fmul dword [0x746910]
lea ecx, [ebp - 0x20]
fstp dword [esp]
call fcn.006ecf60
fld dword [ebp - 0x10]
fcomp dword [0x746568]
fnstsw ax
test ah, 0x41
jne 0x484636
mov dword [ebp - 0x10], 0x437f0000
jmp 0x48464d
fld dword [ebp - 0x10]
fcomp dword [0x746468]
fnstsw ax
test ah, 1
je 0x48464d
mov dword [ebp - 0x10], 0
fld dword [ebp - 0x10]
push ecx
fmul dword [0x746910]
lea ecx, [ebp - 0x20]
fstp dword [esp]
call fcn.006ecfa0
push ecx
mov ecx, dword [ebp - 0x20]
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [edi + 0xb4ec]
mov dword [ebp - 0x34], esp
call fcn.0051db50
push str..Morrowind.ini
push 0x200
push esi
push 0x777760
push str.AlphaReduce
push str.Weather
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_atof]
fst dword [ebp - 0x10]
fcomp dword [0x746470]
add esp, 4
fnstsw ax
test ah, 0x41
jne 0x4846b7
mov dword [ebp - 0x10], 0x3f800000
jmp 0x4846ce
fld dword [ebp - 0x10]
fcomp dword [0x746468]
fnstsw ax
test ah, 1
je 0x4846ce
mov dword [ebp - 0x10], 0
mov edx, dword [ebp - 0x10]
mov ecx, dword [edi + 0xb4ec]
push edx
call fcn.0051db70
mov eax, dword [edi + 0x94]
mov ecx, dword [eax + 0x18]
push ecx
mov ecx, dword [edi + 0xb4ec]
call fcn.0051bb10
mov edx, dword [edi + 0xb4ec]
mov ecx, dword [edx + 0xb4]
call fcn.006eb0e0
mov eax, dword [edi + 0xb4ec]
mov ecx, dword [eax + 0xb4]
call fcn.006eb380
mov ecx, dword [edi + 0xb4ec]
mov ecx, dword [ecx + 0xb4]
push 1
push 0
push 0
call fcn.006eb000
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret