Function at 0x4c8750
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push edi
push str..Morrowind.ini
xor ebp, ebp
push ebp
push str.Show_Travel_Lines
push 0x7a771c
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
call esi
test eax, eax
je 0x4c8a52
mov eax, dword [esp + 0x34]
sub eax, ebp
je 0x4c8888
dec eax
je 0x4c881b
dec eax
jne 0x4c88f7
push str..Morrowind.ini
push 0xee
push str.Travel_Boat_Red
push 0x7a771c
call esi
push str..Morrowind.ini
mov dword [esp + 0x14], eax
push 0xe6
mov dword [esp + 0x1c], ebp
fild qword [esp + 0x18]
push str.Travel_Boat_Green
push 0x7a771c
fstp dword [esp + 0x2c]
call esi
push str..Morrowind.ini
mov dword [esp + 0x14], eax
push 0x1e
mov dword [esp + 0x1c], ebp
fild qword [esp + 0x18]
push str.Travel_Boat_Blue
push 0x7a771c
fstp dword [esp + 0x30]
call esi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebp
fild qword [esp + 0x10]
jmp 0x4c88f3
push str..Morrowind.ini
push 0xee
push str.Travel_Magic_Red
push 0x7a771c
call esi
push str..Morrowind.ini
mov dword [esp + 0x14], eax
push 0xe6
mov dword [esp + 0x1c], ebp
fild qword [esp + 0x18]
push str.Travel_Magic_Green
push 0x7a771c
fstp dword [esp + 0x2c]
call esi
push str..Morrowind.ini
mov dword [esp + 0x14], eax
push 0x1e
mov dword [esp + 0x1c], ebp
fild qword [esp + 0x18]
push str.Travel_Magic_Blue
push 0x7a771c
fstp dword [esp + 0x30]
call esi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebp
fild qword [esp + 0x10]
jmp 0x4c88f3
push str..Morrowind.ini
push 0xee
push str.Travel_Siltstrider_Red
push 0x7a771c
call esi
push str..Morrowind.ini
mov dword [esp + 0x14], eax
push 0xe6
mov dword [esp + 0x1c], ebp
fild qword [esp + 0x18]
push str.Travel_Siltstrider_Green
push 0x7a771c
fstp dword [esp + 0x2c]
call esi
push str..Morrowind.ini
mov dword [esp + 0x14], eax
push 0x1e
mov dword [esp + 0x1c], ebp
fild qword [esp + 0x18]
push str.Travel_Siltstrider_Blue
push 0x7a771c
fstp dword [esp + 0x30]
call esi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebp
fild qword [esp + 0x10]
fstp dword [esp + 0x24]
mov edi, dword [esp + 0x2c]
mov ecx, edi
call fcn.004db9d0
lea eax, [eax + eax*4]
mov dword [esp + 0x34], eax
fild dword [esp + 0x34]
fadd dword [0x746ab0]
call sub.MSVCRT.dll__ftol
mov esi, eax
add esi, 4
mov ecx, edi
mov dword [esp + 0x2c], esi
call fcn.004db9f0
lea ecx, [eax + eax*4]
mov dword [esp + 0x34], ecx
fild dword [esp + 0x34]
fsub dword [0x7469c8]
call sub.MSVCRT.dll__ftol
mov ebx, dword [esp + 0x30]
mov edi, 4
sub edi, eax
mov ecx, ebx
mov dword [esp + 0x10], edi
call fcn.004db9d0
lea edx, [eax + eax*4]
mov dword [esp + 0x34], edx
fild dword [esp + 0x34]
fadd dword [0x746ab0]
call sub.MSVCRT.dll__ftol
fild dword [esp + 0x2c]
add eax, 4
sub eax, esi
fstp dword [esp + 0x2c]
mov dword [esp + 0x34], eax
fild dword [esp + 0x10]
mov ecx, ebx
fstp dword [esp + 0x30]
fild dword [esp + 0x34]
fstp dword [esp + 0x34]
call fcn.004db9f0
mov ecx, eax
neg ecx
shl ecx, 2
sub ecx, eax
mov dword [esp + 0x10], ecx
fild dword [esp + 0x10]
fadd dword [0x7469c8]
call sub.MSVCRT.dll__ftol
sub eax, edi
add eax, 4
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fld dword [esp + 0x34]
call sub.MSVCRT.dll__ftol
cdq
fld st(0)
mov esi, eax
xor esi, edx
sub esi, edx
mov dword [esp + 0x10], esi
call sub.MSVCRT.dll__ftol
cdq
xor eax, edx
sub eax, edx
cmp esi, eax
jge 0x4c89e5
mov esi, eax
mov dword [esp + 0x10], esi
cmp esi, ebp
fild dword [esp + 0x10]
fld dword [esp + 0x34]
fdiv st(1)
fstp dword [esp + 0x34]
fxch st(1)
fdiv st(1)
fstp dword [esp + 0x10]
fstp st(0)
jle 0x4c8a52
mov edx, dword [esp + 0x1c]
fld dword [esp + 0x30]
mov ecx, dword [esp + 0x20]
sub esp, 0xc
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0x30]
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
call sub.MSVCRT.dll__ftol
fld dword [esp + 0x38]
push eax
call sub.MSVCRT.dll__ftol
mov ecx, dword [esp + 0x28]
push eax
call fcn.004c8a80
fld dword [esp + 0x34]
dec esi
fadd dword [esp + 0x2c]
fstp dword [esp + 0x2c]
fld dword [esp + 0x10]
fadd dword [esp + 0x30]
fstp dword [esp + 0x30]
jne 0x4c8a01
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0xc