Function at 0x419670
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x728bcc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
push edi
push 0xdc
mov ebp, ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x18], eax
xor esi, esi
cmp eax, esi
mov dword [esp + 0x2c], esi
je 0x4196b8
mov ecx, eax
call fcn.006d73f0
mov edi, eax
mov dword [esp + 0x10], edi
jmp 0x4196be
mov dword [esp + 0x10], esi
mov edi, esi
cmp edi, esi
mov dword [esp + 0x1c], edi
je 0x4196c9
inc dword [edi + 4]
push str.Inv_Light
mov ecx, edi
mov dword [esp + 0x30], 1
call fcn.006ea1a0
push edi
call fcn.004308e0
mov eax, dword [0x7c67dc]
mov eax, dword [eax + 0x1b0]
add esp, 4
push eax
mov ecx, edi
call fcn.006f3790
mov ecx, dword [0x7c67dc]
mov ecx, dword [ecx + 0x1b0]
mov edx, dword [ecx]
push 1
push edi
call dword [edx + 0x94]
push 0xd0
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x18], eax
cmp eax, esi
mov byte [esp + 0x2c], 2
je 0x419735
mov ecx, eax
call fcn.006d0520
mov edi, eax
jmp 0x419737
xor edi, edi
cmp edi, esi
mov dword [esp + 0x20], edi
je 0x419742
inc dword [edi + 4]
mov bl, 3
push str.Map_Menu_Light
mov ecx, edi
mov byte [esp + 0x30], bl
call fcn.006ea1a0
mov eax, dword [0x7c67dc]
mov eax, dword [eax + 0x234]
push eax
mov ecx, edi
call fcn.006f3790
mov ecx, dword [0x7c67dc]
mov ecx, dword [ecx + 0x234]
mov edx, dword [ecx]
push 1
push edi
call dword [edx + 0x94]
mov ecx, dword [0x7c67dc]
mov ecx, dword [ecx + 0x2e4]
lea eax, [esp + 0x18]
push eax
call fcn.00412820
mov eax, dword [eax]
mov edx, dword [0x7c67dc]
mov ecx, dword [edx + 0x188]
mov edx, dword [ecx]
push eax
lea eax, [esp + 0x18]
push eax
mov byte [esp + 0x34], 4
call dword [edx + 0x98]
mov ecx, dword [esp + 0x14]
cmp ecx, esi
je 0x4197c2
call fcn.00404630
mov ecx, dword [esp + 0x18]
cmp ecx, esi
mov byte [esp + 0x2c], bl
je 0x4197d3
call fcn.00404630
mov edx, dword [0x7c67dc]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [edx + 0x2e4]
call fcn.00439790
mov eax, dword [eax]
mov ecx, dword [0x7c67dc]
mov ecx, dword [ecx + 0x188]
mov edx, dword [ecx]
push eax
lea eax, [esp + 0x1c]
push eax
mov byte [esp + 0x34], 5
call dword [edx + 0x98]
mov eax, dword [esp + 0x18]
cmp eax, esi
je 0x41982b
mov edx, dword [eax + 4]
mov ecx, eax
add eax, 4
dec edx
cmp edx, esi
mov dword [eax], edx
jne 0x41982b
cmp ecx, esi
je 0x41982b
mov edx, dword [ecx]
push 1
call dword [edx]
mov ecx, dword [esp + 0x14]
cmp ecx, esi
mov byte [esp + 0x2c], bl
je 0x41983c
call fcn.00404630
mov ecx, dword [0x7c67dc]
mov ecx, dword [ecx + 0x2e4]
lea eax, [esp + 0x18]
push eax
call fcn.00412820
mov edx, dword [0x7c67dc]
mov eax, dword [eax]
mov ecx, dword [edx + 0x188]
mov edx, dword [ecx]
push 1
push eax
mov byte [esp + 0x34], 6
call dword [edx + 0x94]
mov eax, dword [esp + 0x18]
cmp eax, esi
mov byte [esp + 0x2c], bl
je 0x419895
mov edx, dword [eax + 4]
mov ecx, eax
add eax, 4
dec edx
cmp edx, esi
mov dword [eax], edx
jne 0x419895
cmp ecx, esi
je 0x419895
mov eax, dword [ecx]
push 1
call dword [eax]
mov edx, dword [0x7c67dc]
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [edx + 0x2e4]
call fcn.00439790
mov ecx, dword [0x7c67dc]
mov eax, dword [eax]
mov ecx, dword [ecx + 0x188]
mov edx, dword [ecx]
push 1
push eax
mov byte [esp + 0x34], 7
call dword [edx + 0x94]
mov eax, dword [esp + 0x18]
cmp eax, esi
mov byte [esp + 0x2c], bl
je 0x4198ee
mov edx, dword [eax + 4]
mov ecx, eax
add eax, 4
dec edx
cmp edx, esi
mov dword [eax], edx
jne 0x4198ee
cmp ecx, esi
je 0x4198ee
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [0x7c67e0]
push 1
push esi
call fcn.0048ed20
mov ecx, dword [0x7c67e0]
push 0xb0
mov byte [ecx + 0xb4f8], 0
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, esi
mov byte [esp + 0x2c], 8
je 0x41992c
mov ecx, eax
call fcn.006c81e0
mov esi, eax
mov ecx, dword [ebp + 0xac]
cmp ecx, esi
mov byte [esp + 0x2c], bl
je 0x41995a
test ecx, ecx
je 0x41994d
dec dword [ecx + 4]
jne 0x41994d
test ecx, ecx
je 0x41994d
mov edx, dword [ecx]
push 1
call dword [edx]
test esi, esi
mov dword [ebp + 0xac], esi
je 0x41995a
inc dword [esi + 4]
mov ecx, dword [ebp + 0xac]
push str.debugRoot
call fcn.006ea1a0
mov ecx, dword [ebp + 0xac]
mov eax, dword [ecx]
push 1
call dword [eax + 0x50]
mov ecx, dword [0x7c67dc]
mov eax, dword [ebp + 0xac]
mov ecx, dword [ecx + 0x188]
mov edx, dword [ecx]
push 1
push eax
call dword [edx + 0x94]
push 0xb0
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
mov byte [esp + 0x2c], 9
je 0x4199b9
mov ecx, eax
call fcn.006c81e0
mov esi, eax
jmp 0x4199bb
xor esi, esi
mov ecx, dword [0x7c6cb0]
cmp ecx, esi
mov byte [esp + 0x2c], bl
je 0x4199f1
test ecx, ecx
je 0x4199dc
dec dword [ecx + 4]
jne 0x4199dc
test ecx, ecx
je 0x4199dc
mov eax, dword [ecx]
push 1
call dword [eax]
test esi, esi
mov ecx, esi
mov dword [0x7c6cb0], ecx
je 0x4199f1
inc dword [esi + 4]
mov ecx, dword [0x7c6cb0]
push str.fpsRoot
call fcn.006ea1a0
push str..Morrowind.ini
push 0
push str.Show_FPS
push str.General
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
jne 0x419a23
mov ecx, dword [0x7c6cb0]
mov edx, dword [ecx]
push 1
call dword [edx + 0x50]
mov eax, dword [0x7c67dc]
mov ecx, dword [eax + 0x188]
mov eax, dword [0x7c6cb0]
mov edx, dword [ecx]
push 1
push eax
call dword [edx + 0x94]
test edi, edi
mov byte [esp + 0x2c], 1
je 0x419a54
dec dword [edi + 4]
jne 0x419a54
mov edx, dword [edi]
push 1
mov ecx, edi
call dword [edx]
mov ecx, dword [esp + 0x10]
test ecx, ecx
pop edi
pop esi
pop ebp
mov dword [esp + 0x20], 0xffffffff
pop ebx
je 0x419a73
dec dword [ecx + 4]
jne 0x419a73
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret