Function at 0x405020
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x408805
push eax
mov eax, 0x12d8
mov dword fs:[0], esp
call fcn.00407ea0
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x14], esi
lea ecx, [esp + 0x12f0]
mov dword [esp + 0x12e8], 1
call sub.MFC42.DLL_CString::MakeLower
add esi, 8
push 0x40b060
lea eax, [esp + 0x50]
push esi
push eax
call sub.MFC42.DLL_operator_1
lea ecx, [esp + 0x12f0]
lea edx, [esp + 0x44]
push ecx
push eax
push edx
mov byte [esp + 0x12f4], 2
call sub.MFC42.DLL_operator
push 0x40b060
push eax
lea eax, [esp + 0x48]
mov byte [esp + 0x12f0], 3
push eax
call sub.MFC42.DLL_operator_1
lea ecx, [esp + 0x12f4]
lea edx, [esp + 0x10]
push ecx
push eax
push edx
mov byte [esp + 0x12f4], 4
call sub.MFC42.DLL_operator
lea ecx, [esp + 0x40]
mov byte [esp + 0x12e8], 8
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x44]
mov byte [esp + 0x12e8], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x4c]
mov byte [esp + 0x12e8], 6
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x10]
push str.RoomTable.ini
lea ecx, [esp + 0xc]
push eax
push ecx
call sub.MFC42.DLL_operator_1
mov edx, dword [esp + 8]
lea eax, [esp + 0xe0]
push edx
push 0x100
push eax
mov byte [esp + 0x12f4], 9
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesA]
test eax, eax
je 0x405595
mov al, byte [esp + 0xe0]
lea ebx, [esp + 0xe0]
test al, al
mov dword [esp + 0xc], ebx
je 0x405595
push ebp
push edi
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x2e8]
push ecx
push 0x1000
push edx
push 0x40b538
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x405576
mov al, byte [esp + 0x2e8]
lea ebp, [esp + 0x2e8]
test al, al
mov dword [esp + 0x20], ebp
je 0x405576
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x68]
push eax
push 0x40
push ecx
push 0x40b538
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov edx, dword [esp + 0x12fc]
push 0x40b538
push edx
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
lea eax, [esp + 0x12f8]
push 0x40b3a4
push eax
je 0x405284
lea ecx, [esp + 0x58]
push ecx
call sub.MFC42.DLL_operator_1
mov eax, dword [eax]
or ecx, 0xffffffff
mov edi, eax
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0xa8]
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x12fc]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x40b3a4
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x50]
jmp 0x40532e
lea ecx, [esp + 0x44]
push ecx
call sub.MFC42.DLL_operator_1
mov eax, dword [eax]
or ecx, 0xffffffff
mov edi, eax
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0xa8]
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x40b3a4
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x68]
push 0x2e
push eax
call dword [sym.imp.MSVCRT.dll_strchr]
add esp, 8
test eax, eax
je 0x405495
mov edi, dword [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0x1e8]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x68]
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x40b060
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0xa8]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x40]
mov byte [esp + 0x12f0], 0xa
call sub.MFC42.DLL_CString::CString_3
mov esi, eax
lea ecx, [esp + 0x24]
mov bl, 0xb
push ecx
lea ecx, [esp + 0x38]
mov byte [esp + 0x12f4], bl
call fcn.00407c74
push esi
lea ecx, [esp + 0x3c]
mov byte [esp + 0x12f4], 0xc
call fcn.00407c74
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x34]
lea eax, [esp + 0x58]
push edx
push eax
add ecx, 0xc
mov byte [esp + 0x12f8], 0xd
call fcn.00405a60
mov esi, dword [esp + 0x58]
lea ecx, [esp + 0x38]
mov byte [esp + 0x12f0], 0xe
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x34]
mov byte [esp + 0x12f0], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x40]
mov byte [esp + 0x12f0], 0xa
call sub.MFC42.DLL_CString::CString
lea edx, [esp + 0x1e8]
lea ecx, [esi + 0x10]
push edx
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x24]
mov byte [esp + 0x12f0], 9
call sub.MFC42.DLL_CString::CString
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x20]
jmp 0x405558
lea eax, [esp + 0xa8]
lea ecx, [esp + 0x28]
push eax
call sub.MFC42.DLL_CString::CString_2
mov bl, 0xf
lea ecx, [esp + 0x44]
mov byte [esp + 0x12f0], bl
call sub.MFC42.DLL_CString::CString_3
mov esi, eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x12f0], 0x10
push ecx
lea ecx, [esp + 0x30]
call fcn.00407c74
push esi
lea ecx, [esp + 0x34]
mov byte [esp + 0x12f4], 0x11
call fcn.00407c74
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x2c]
lea eax, [esp + 0x60]
push edx
push eax
add ecx, 0xc
mov byte [esp + 0x12f8], 0x12
call fcn.00405a60
mov esi, dword [esp + 0x60]
lea ecx, [esp + 0x30]
mov byte [esp + 0x12f0], 0x13
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov byte [esp + 0x12f0], 0x10
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x44]
mov byte [esp + 0x12f0], bl
call sub.MFC42.DLL_CString::CString
lea edx, [esp + 0x68]
lea ecx, [esi + 0x10]
push edx
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x28]
mov byte [esp + 0x12f0], 9
call sub.MFC42.DLL_CString::CString
mov ebx, dword [esp + 0x14]
cmp byte [ebp], 0
je 0x405566
mov al, byte [ebp + 1]
inc ebp
test al, al
jne 0x40555e
mov al, byte [ebp + 1]
inc ebp
test al, al
mov dword [esp + 0x20], ebp
jne 0x40518c
cmp byte [ebx], 0
je 0x405583
mov al, byte [ebx + 1]
inc ebx
test al, al
jne 0x40557b
mov al, byte [ebx + 1]
inc ebx
test al, al
mov dword [esp + 0x14], ebx
jne 0x40514a
pop edi
pop ebp
lea ecx, [esp + 8]
mov byte [esp + 0x12e8], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x12e8], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x12f0]
mov byte [esp + 0x12e8], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x12f4]
mov dword [esp + 0x12e8], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x12e0]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x12e4
ret 8