Function at 0x54b390
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x72eab8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
push edi
push fcn.0040a880
push 0x40b080
mov esi, ecx
push 8
push 4
lea eax, [esi + 0x30]
push eax
mov dword [esp + 0x38], esi
call fcn.007276b0
push fcn.0040a880
push 0x40b080
push 8
lea eax, [esi + 0x50]
push 4
xor ebx, ebx
push eax
mov dword [esp + 0x44], ebx
call fcn.007276b0
push 0x14
mov byte [esp + 0x34], 1
mov dword [esi], ebx
mov dword [esi + 4], ebx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x20], eax
cmp eax, ebx
mov byte [esp + 0x30], 2
je 0x54b410
mov ecx, eax
call fcn.0047e1e0
jmp 0x54b412
xor eax, eax
mov ecx, 0x7cb478
mov byte [esp + 0x30], 1
mov dword [esi + 0x70], eax
call fcn.004d51b0
mov ecx, 0x7cb478
mov ebp, eax
call fcn.004d51e0
mov edi, eax
mov dword [esp + 0x20], edi
mov dword [esp + 0x10], ebx
mov ecx, dword [esp + 0x10]
mov ebx, dword [sym.imp.MSVCRT.dll_sprintf]
push ecx
push str.Model__d
push ebp
call ebx
add esp, 0xc
push str..Morrowind.ini
push 0x200
push edi
push 0x7c6180
push ebp
push str.Blood
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x54b4c3
push edi
push str.Meshes
push 0x775a78
push ebp
call ebx
mov edx, dword [0x7c67e0]
mov eax, dword [edx]
mov eax, dword [eax + 0x14]
add esp, 0x10
push ebp
mov ecx, eax
call fcn.004ee0a0
mov ecx, dword [esi]
mov dword [esi + ecx*4 + 8], eax
mov edx, dword [esi]
mov eax, dword [esi + edx*4 + 8]
push 0
push 0
push eax
call fcn.0046c410
mov ecx, dword [esi]
fstp dword [esi + ecx*4 + 0x1c]
mov edx, dword [esi]
mov ecx, dword [esi + edx*4 + 8]
add esp, 0xc
push ebp
call fcn.006ea1a0
inc dword [esi]
jmp 0x54b4d8
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x54b4d8
push str.Add_the___Blood____stuff_to_your_Morrowind.ini_file._r_n
call fcn.00477400
add esp, 4
mov eax, dword [esp + 0x10]
inc eax
cmp eax, 5
mov dword [esp + 0x10], eax
jl 0x54b43a
lea eax, [esi + 0x50]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
test ecx, ecx
je 0x54b51c
dec dword [ecx + 4]
jne 0x54b512
test ecx, ecx
je 0x54b512
mov edx, dword [ecx]
push 1
call dword [edx]
mov eax, dword [esp + 0x14]
mov dword [eax], 0
mov ecx, dword [esp + 0x10]
push ecx
push str.Texture__d
push ebp
call ebx
add esp, 0xc
push str..Morrowind.ini
push 0x200
push edi
push 0x7c6180
push ebp
push str.Blood
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x54b711
push edi
push str.Textures
push 0x775a78
push ebp
call ebx
mov ecx, dword [0x7c67e0]
add esp, 0x10
push ebp
call fcn.0048db60
mov edx, dword [esi + 4]
mov ecx, dword [esi + edx*4 + 0x30]
lea edi, [esi + edx*4 + 0x30]
mov ebx, eax
cmp ecx, ebx
je 0x54b59a
test ecx, ecx
je 0x54b591
dec dword [ecx + 4]
jne 0x54b591
test ecx, ecx
je 0x54b591
mov eax, dword [ecx]
push 1
call dword [eax]
test ebx, ebx
mov dword [edi], ebx
je 0x54b59a
inc dword [ebx + 4]
push 0x38
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x30], 3
je 0x54b5bc
mov ecx, eax
call fcn.006e16c0
mov edi, eax
jmp 0x54b5be
xor edi, edi
mov ecx, dword [esi + 4]
lea ebx, [esi + ecx*4 + 0x50]
mov ecx, dword [ebx]
cmp ecx, edi
mov byte [esp + 0x30], 1
je 0x54b5ec
test ecx, ecx
je 0x54b5e3
dec dword [ecx + 4]
jne 0x54b5e3
test ecx, ecx
je 0x54b5e3
mov edx, dword [ecx]
push 1
call dword [edx]
test edi, edi
mov dword [ebx], edi
je 0x54b5ec
inc dword [edi + 4]
mov eax, dword [esi + 4]
mov edi, dword [esi + eax*4 + 0x30]
mov ebx, dword [esi + eax*4 + 0x50]
mov eax, dword [ebx + 0x20]
mov eax, dword [eax]
test eax, eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], eax
jne 0x54b6d4
push 0x14
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
add esp, 4
mov dword [esp + 0x18], edi
xor eax, eax
cmp edi, eax
je 0x54b682
mov dword [edi + 4], eax
mov dword [edi], 0x7465e8
mov ecx, dword [edi + 4]
cmp ecx, eax
mov byte [esp + 0x30], 5
je 0x54b645
call fcn.00404630
mov dword [edi + 4], 0
xor eax, eax
mov dword [edi + 8], 3
mov dword [edi + 0xc], 1
mov dword [edi + 0x10], eax
mov ecx, dword [0x7de46c]
inc ecx
mov word [0x7de468], ax
mov word [0x7c4e3c], 0xffb5
mov byte [0x7de46a], 0
mov byte [0x7de46b], 0
mov dword [0x7de46c], ecx
jmp 0x54b684
xor edi, edi
cmp dword [ebx + 0x24], eax
mov byte [esp + 0x30], 1
mov dword [esp + 0x18], edi
jbe 0x54b6d0
mov eax, dword [ebx + 0x28]
test eax, eax
ja 0x54b6aa
test edi, edi
mov dword [ebx + 0x28], 1
je 0x54b6cb
mov eax, dword [ebx + 0x2c]
inc eax
jmp 0x54b6c8
test edi, edi
je 0x54b6bc
mov ecx, dword [ebx + 0x20]
cmp dword [ecx], 0
jne 0x54b6cb
mov eax, dword [ebx + 0x2c]
inc eax
jmp 0x54b6c8
mov edx, dword [ebx + 0x20]
cmp dword [edx], 0
je 0x54b6cb
mov eax, dword [ebx + 0x2c]
dec eax
mov dword [ebx + 0x2c], eax
mov eax, dword [ebx + 0x20]
mov dword [eax], edi
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx + 4]
cmp ecx, edi
je 0x54b700
test ecx, ecx
je 0x54b6f2
dec dword [ecx + 4]
jne 0x54b6f2
test ecx, ecx
je 0x54b6f2
mov edx, dword [ecx]
push 1
call dword [edx]
test edi, edi
mov eax, dword [esp + 0x18]
mov dword [eax + 4], edi
je 0x54b700
inc dword [edi + 4]
mov eax, dword [esi + 4]
mov edi, dword [esp + 0x20]
mov ebx, dword [sym.imp.MSVCRT.dll_sprintf]
inc eax
mov dword [esi + 4], eax
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
inc eax
add edx, 4
cmp eax, 8
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
jl 0x54b4f9
mov ecx, dword [esp + 0x28]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret