Function at 0x4c81c0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
mov esi, dword [esp + 0x38]
push edi
mov edi, ecx
mov ecx, esi
mov dword [esp + 0x14], edi
call fcn.004e22f0
test al, al
jne 0x4c8414
mov ecx, esi
call fcn.004db9d0
lea eax, [eax + eax*8]
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fadd dword [0x746ab0]
call sub.MSVCRT.dll__ftol
mov ebx, eax
mov ecx, esi
mov dword [esp + 0x18], ebx
call fcn.004db9f0
lea ecx, [eax + eax*8]
mov dword [esp + 0x10], ecx
fild dword [esp + 0x10]
fsubr dword [0x746ab0]
call sub.MSVCRT.dll__ftol
test ebx, ebx
mov dword [esp + 0x1c], eax
jl 0x4c83c9
cmp ebx, 0x200
jge 0x4c83c9
test eax, eax
jl 0x4c83c9
cmp eax, 0x200
jge 0x4c83c9
mov edx, dword [edi + 0xb380]
mov ecx, dword [edx + 0x34]
mov eax, dword [ecx + 0x38]
mov edi, dword [eax]
mov edx, dword [ecx + 0x2c]
mov esi, dword [esi + 0x84]
add edi, edx
test esi, esi
je 0x4c8414
mov esi, dword [esi + 0x14]
test esi, esi
je 0x4c8414
mov eax, dword [esi + 0x34]
mov esi, dword [eax + 0x38]
mov ebp, dword [esi]
mov eax, dword [eax + 0x2c]
add eax, ebp
mov dword [esp + 0x34], eax
je 0x4c83c5
mov edx, dword [0x7c67dc]
mov edx, dword [edx + 0x270]
mov eax, 0x38e38e39
imul edx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, dword [ecx + 0x38]
mov ecx, dword [eax + 4]
mov dword [esp + 0x10], edx
mov edx, dword [eax]
mov eax, dword [esi + 4]
fild dword [esp + 0x10]
sub ecx, edx
sub eax, ebp
mov dword [esp + 0x2c], ecx
xor ecx, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x10], ecx
jmp 0x4c82d5
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
fild dword [esp + 0x10]
shl eax, 9
add eax, ecx
add eax, ebx
mov ebx, 2
xor ebp, ebp
sub ebx, edi
lea esi, [eax + eax*2]
mov dword [esp + 0x20], ebx
jmp 0x4c82fa
mov ebx, dword [esp + 0x20]
mov ecx, dword [0x7c67dc]
mov eax, dword [ecx + 0x270]
mov dword [esp + 0x28], eax
imul eax, ebp
mov dword [esp + 0x24], eax
fild dword [esp + 0x24]
fild dword [esp + 0x28]
fadd dword [0x746470]
fmul dword [0x746498]
faddp st(1)
fadd st(1)
fmul st(2)
fmul dword [0x74648c]
call sub.MSVCRT.dll__ftol
mov edx, dword [esp + 0x2c]
lea ecx, [esi + edi]
add ebx, ecx
cmp ebx, edx
jge 0x4c838f
mov ebx, dword [esp + 0x30]
lea edx, [eax + 2]
cmp edx, ebx
jge 0x4c838f
mov dl, byte [ecx]
cmp dl, 0x18
jb 0x4c8376
cmp dl, 0x26
ja 0x4c8376
mov dl, byte [esi + edi + 1]
cmp dl, 0x24
jb 0x4c8376
cmp dl, 0x38
ja 0x4c8376
mov dl, byte [esi + edi + 2]
cmp dl, 0x21
jb 0x4c8376
cmp dl, 0x33
jbe 0x4c838f
mov edx, dword [esp + 0x34]
mov bl, byte [eax + edx]
mov byte [ecx], bl
mov cl, byte [eax + edx + 1]
mov byte [esi + edi + 1], cl
mov dl, byte [eax + edx + 2]
mov byte [esi + edi + 2], dl
inc ebp
add esi, 0x600
cmp ebp, 9
jl 0x4c82f6
mov ecx, dword [esp + 0x10]
fstp st(0)
inc ecx
cmp ecx, 9
mov dword [esp + 0x10], ecx
jl 0x4c82d1
mov eax, dword [esp + 0x14]
fstp st(0)
mov ecx, dword [eax + 0xb380]
mov eax, dword [ecx + 0x34]
inc dword [eax + 0x44]
mov esi, dword [esp + 0x3c]
push str..Morrowind.ini
push 0
push str.Create_Maps_Enable
push str.General
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
je 0x4c83f4
mov edx, dword [0x7c67e0]
mov al, byte [edx + 0xb4dd]
test al, al
jne 0x4c8414
mov ecx, esi
call fcn.004b3120
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4c8414
mov ecx, dword [esp + 0x14]
push eax
push esi
call fcn.004c8540
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4