Function at 0x6049c0
Capabilities:
Read .ini file

Disassembly:
push ecx
push ebx
xor eax, eax
mov ax, word [0x7d5570]
push ebp
push esi
push edi
push eax
call fcn.00595370
mov ebp, eax
xor esi, esi
add esp, 4
cmp ebp, esi
jne 0x604a10
xor ecx, ecx
mov cx, word [0x7d5570]
push ecx
call fcn.00595400
mov ebp, eax
push ebp
call fcn.00604570
add esp, 8
mov dword [0x7d53b8], esi
mov dword [0x7d53d8], esi
mov dword [0x7d5580], esi
mov dword [0x7d5574], esi
mov ecx, ebp
call fcn.00583b60
xor edx, edx
mov dx, word [0x7d5504]
mov ecx, ebp
push edx
call fcn.00582de0
mov ecx, 0x7cb478
mov esi, eax
call fcn.004d51b0
mov ecx, 0x7cb478
mov edi, eax
call fcn.004d51e0
mov ebx, eax
mov eax, dword [esp + 0x18]
push eax
push str.Question
push 0x7759a8
push ebx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
push str..Morrowind.ini
push 0x200
push edi
push 0x7c6180
push str.Question
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x604a83
push edi
mov ecx, esi
call fcn.0058ad30
mov ecx, 0x7cb478
call fcn.004d5220
push 0
mov esi, eax
call fcn.0047b3b0
cdq
mov ecx, 6
idiv ecx
add esp, 4
lea eax, [edx - 1]
cmp eax, 4
ja case.default.0x604aad
jmp dword [eax*4 + 0x605204]
xor edx, edx
mov dx, word [0x7d5544]
mov ecx, ebp
push edx
call fcn.00582de0
push str..Morrowind.ini
push 0x1000
push esi
push 0x7b9cb8
push str.AnswerOne
push ebx
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x604b1c
push esi
push 0x775998
push edi
call dword [sym.imp.MSVCRT.dll_sprintf]
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push edi
call fcn.0058ad30
mov ecx, dword [esp + 0x10]
mov eax, 1
push eax
push eax
xor eax, eax
mov ax, word [0x7d5504]
push eax
call fcn.00581f30
xor ecx, ecx
mov cx, word [0x7d537c]
push ecx
mov ecx, ebp
call fcn.00582de0
push str..Morrowind.ini
push 0x1000
push esi
push 0x7b9ca8
push str.AnswerTwo
push ebx
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x604c4c
push esi
push 0x775998
push edi
call dword [sym.imp.MSVCRT.dll_sprintf]
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push edi
call fcn.0058ad30
mov eax, 2
jmp 0x604c36
xor edx, edx
mov dx, word [0x7d5544]
mov ecx, ebp
push edx
call fcn.00582de0
push str..Morrowind.ini
push 0x1000
push esi
push 0x7b9cb8
push str.AnswerTwo
push ebx
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x604be2
push esi
push 0x775998
push edi
call dword [sym.imp.MSVCRT.dll_sprintf]
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push edi
call fcn.0058ad30
mov ecx, dword [esp + 0x10]
push 1
mov eax, 2
push eax
xor eax, eax
mov ax, word [0x7d5504]
push eax
call fcn.00581f30
xor ecx, ecx
mov cx, word [0x7d537c]
push ecx
mov ecx, ebp
call fcn.00582de0
push str..Morrowind.ini
push 0x1000
push esi
push 0x7b9ca8
push str.AnswerOne
push ebx
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x604c4c
push esi
push 0x775998
push edi
call dword [sym.imp.MSVCRT.dll_sprintf]
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push edi
call fcn.0058ad30
mov eax, 1
mov ecx, dword [esp + 0x10]
xor edx, edx
mov dx, word [0x7d5504]
push 1
push eax
push edx
call fcn.00581f30
xor eax, eax
mov ax, word [0x7d554c]
mov ecx, ebp
push eax
call fcn.00582de0
push str..Morrowind.ini
push 0x1000
push esi
push 0x7b9c98
push str.AnswerThree
push ebx
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x605156
push esi
push 0x775998
push edi
call dword [sym.imp.MSVCRT.dll_sprintf]
mov esi, dword [esp + 0x1c]
add esp, 0xc
push edi
mov ecx, esi
call fcn.0058ad30
mov eax, 3
jmp 0x605142
xor edx, edx
mov dx, word [0x7d5544]
mov ecx, ebp
push edx
call fcn.00582de0
push str..Morrowind.ini
push 0x1000
push esi
push 0x7b9cb8
push str.AnswerOne
push ebx
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x604d12
push esi
push 0x775998
push edi
call dword [sym.imp.MSVCRT.dll_sprintf]
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push edi
call fcn.0058ad30
mov ecx, dword [esp + 0x10]
mov eax, 1
push eax
push eax
xor eax, eax
mov ax, word [0x7d5504]
push eax
call fcn.00581f30
xor ecx, ecx
mov cx, word [0x7d537c]
push ecx
mov ecx, ebp
call fcn.00582de0
push str..Morrowind.ini
push 0x1000
push esi
push 0x7b9ca8
push str.AnswerThree
push ebx
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x604d7c
push esi
push 0x775998
push edi
call dword [sym.imp.MSVCRT.dll_sprintf]
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push edi
call fcn.0058ad30
mov ecx, dword [esp + 0x10]
xor edx, edx
mov dx, word [0x7d5504]
push 1
mov eax, 3
push eax
push edx
call fcn.00581f30
xor eax, eax
mov ax, word [0x7d554c]
mov ecx, ebp
push eax
call fcn.00582de0
push str..Morrowind.ini
push 0x1000
push esi
push 0x7b9c98
push str.AnswerTwo
push ebx
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x605156
push esi
push 0x775998
push edi
call dword [sym.imp.MSVCRT.dll_sprintf]
mov esi, dword [esp + 0x1c]
add esp, 0xc
push edi
mov ecx, esi
call fcn.0058ad30
mov eax, 2
jmp 0x605142
xor edx, edx
mov dx, word [0x7d5544]
mov ecx, ebp
push edx
call fcn.00582de0
push str..Morrowind.ini
push 0x1000
push esi
push 0x7b9cb8
push str.AnswerTwo
push ebx
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x604e43
push esi
push 0x775998
push edi
call dword [sym.imp.MSVCRT.dll_sprintf]
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push edi
call fcn.0058ad30
mov ecx, dword [esp + 0x10]
push 1
mov eax, 2
push eax
xor eax, eax
mov ax, word [0x7d5504]
push eax
call fcn.00581f30
xor ecx, ecx
mov cx, word [0x7d537c]
push ecx
mov ecx, ebp
call fcn.00582de0
push str..Morrowind.ini
push 0x1000
push esi
push 0x7b9ca8
push str.AnswerThree
push ebx
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x604ead
push esi
push 0x775998
push edi
call dword [sym.imp.MSVCRT.dll_sprintf]
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push edi
call fcn.0058ad30
mov ecx, dword [esp + 0x10]
xor edx, edx
mov dx, word [0x7d5504]
push 1
mov eax, 3
push eax
push edx
call fcn.00581f30
xor eax, eax
mov ax, word [0x7d554c]
mov ecx, ebp
push eax
call fcn.00582de0
push str..Morrowind.ini
push 0x1000
push esi
push 0x7b9c98
push str.AnswerOne
push ebx
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x605156
jmp 0x605121
xor edx, edx
mov dx, word [0x7d5544]
mov ecx, ebp
push edx
call fcn.00582de0
push str..Morrowind.ini
push 0x1000
push esi
push 0x7b9cb8
push str.AnswerThree
push ebx
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x604f53
push esi
push 0x775998
push edi
call dword [sym.imp.MSVCRT.dll_sprintf]
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push edi
call fcn.0058ad30
mov ecx, dword [esp + 0x10]
push 1
mov eax, 3
push eax
xor eax, eax
mov ax, word [0x7d5504]
push eax
call fcn.00581f30
xor ecx, ecx
mov cx, word [0x7d537c]
push ecx
mov ecx, ebp
call fcn.00582de0
push str..Morrowind.ini
push 0x1000
push esi
push 0x786234
push str.AnswerOne
push ebx
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x604fbc
push esi
push 0x775998
push edi
call dword [sym.imp.MSVCRT.dll_sprintf]
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push edi
call fcn.0058ad30
mov ecx, dword [esp + 0x10]
xor edx, edx
mov dx, word [0x7d5504]
mov eax, 1
push eax
push eax
push edx
call fcn.00581f30
xor eax, eax
mov ax, word [0x7d554c]
mov ecx, ebp
push eax
call fcn.00582de0
push str..Morrowind.ini
push 0x1000
push esi
push 0x7a52e4
push str.AnswerTwo
push ebx
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x605156
push esi
push 0x775998
push edi
call dword [sym.imp.MSVCRT.dll_sprintf]
mov esi, dword [esp + 0x1c]
add esp, 0xc
push edi
mov ecx, esi
call fcn.0058ad30
mov eax, 2
jmp 0x605142
xor edx, edx
mov dx, word [0x7d5544]
mov ecx, ebp
push edx
call fcn.00582de0
push str..Morrowind.ini
push 0x1000
push esi
push 0x7b9cb8
push str.AnswerThree
push ebx
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x605083
push esi
push 0x775998
push edi
call dword [sym.imp.MSVCRT.dll_sprintf]
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push edi
call fcn.0058ad30
mov ecx, dword [esp + 0x10]
push 1
mov eax, 3
push eax
xor eax, eax
mov ax, word [0x7d5504]
push eax
call fcn.00581f30
xor ecx, ecx
mov cx, word [0x7d537c]
push ecx
mov ecx, ebp
call fcn.00582de0
push str..Morrowind.ini
push 0x1000
push esi
push 0x7b9ca8
push str.AnswerTwo
push ebx
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x6050ed
push esi
push 0x775998
push edi
call dword [sym.imp.MSVCRT.dll_sprintf]
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push edi
call fcn.0058ad30
mov ecx, dword [esp + 0x10]
xor edx, edx
mov dx, word [0x7d5504]
push 1
mov eax, 2
push eax
push edx
call fcn.00581f30
xor eax, eax
mov ax, word [0x7d554c]
mov ecx, ebp
push eax
call fcn.00582de0
push str..Morrowind.ini
push 0x1000
push esi
push 0x7b9c98
push str.AnswerOne
push ebx
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x605156
push esi
push 0x775998
push edi
call dword [sym.imp.MSVCRT.dll_sprintf]
mov esi, dword [esp + 0x1c]
add esp, 0xc
push edi
mov ecx, esi
call fcn.0058ad30
mov eax, 1
xor ecx, ecx
mov cx, word [0x7d5504]
push 1
push eax
push ecx
mov ecx, esi
call fcn.00581f30
push str..Morrowind.ini
push 0x200
push edi
push 0x7c6180
push str.Sound
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x6051c6
mov ecx, dword [0x7c67dc]
mov esi, dword [ecx + 0x34]
call fcn.0040ff20
xor edx, edx
mov dl, byte [esi + 0x290]
xor ecx, ecx
mov cl, byte [esi + 0x299]
mov ebx, eax
mov eax, 0x10624dd3
push 0
push 0
push 0x3f800000
imul ecx, edx
imul ecx
mov ecx, dword [ebx + 0x14]
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
push edx
push 0
push ecx
mov ecx, dword [0x7c67e0]
push edi
call fcn.0048c2b0
mov edx, dword [esp + 0x18]
push 0x20
push fcn.00727b50
push 0xffff80ae
mov ecx, ebp
mov dword [0x7d5574], edx
call fcn.00581f30
push 1
mov ecx, ebp
call fcn.00583b70
mov ecx, ebp
call fcn.00583b60
push 1
mov ecx, ebp
call fcn.00583b70
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret