Function at 0x471800
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4fe6d7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push esi
mov ebx, ecx
xor esi, esi
push edi
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], ebx
mov dword [ebx + 0x98], esi
call sub.MFC42.DLL_CString::CString_3
lea eax, [esp + 0x18]
mov ecx, 0x53a920
push eax
mov dword [esp + 0x48], esi
call fcn.004d39c0
push str.layout.ini
lea ecx, [esp + 0x1c]
call fcn.004f668e
mov ecx, dword [esp + 0x18]
push 0x52a5a0
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, eax
add esp, 8
cmp edi, esi
jne 0x4718fd
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_3
push 0x9d25
lea ecx, [esp + 0x14]
mov byte [esp + 0x48], 1
call sub.MFC42.DLL_CString::LoadStringA
lea edx, [esp + 0x10]
lea eax, [esp + 0x20]
push edx
push str.layout
push eax
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x48], 2
call fcn.004f6400
lea ecx, [esp + 0x20]
mov byte [esp + 0x44], 1
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
push esi
push 0x30
push ecx
call sub.MFC42.DLL_AfxMessageBox
lea ecx, [esp + 0x10]
mov byte [esp + 0x44], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov dword [esp + 0x44], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
add esp, 0x3c
ret
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll_fread]
push edi
push 1
lea edx, [esp + 0x20]
push 4
push edx
call ebp
mov eax, dword [0x533ea4]
add esp, 0x10
cmp eax, esi
je 0x47192b
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [0x533ea4], esi
mov eax, dword [esp + 0x18]
mov dword [0x533eac], esi
cmp eax, esi
mov dword [0x533ea8], esi
mov dword [esp + 0x14], esi
jle 0x471b05
push 0x74
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
mov dword [esp + 0x28], esi
test esi, esi
mov byte [esp + 0x48], 3
je 0x4719b4
mov ecx, esi
mov dword [esi], 0x50e358
call sub.MFC42.DLL_CRectTracker::Construct
lea ecx, [esi + 0x48]
mov byte [esp + 0x48], 4
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 0x4c]
mov byte [esp + 0x48], 5
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 0x54]
mov byte [esp + 0x48], 6
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 0x58]
mov byte [esp + 0x48], 7
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 0x60]
mov byte [esp + 0x48], 8
call fcn.004730c0
mov dword [esp + 0x20], esi
jmp 0x4719c0
mov dword [esp + 0x20], 0
mov esi, dword [esp + 0x20]
push edi
push 1
push 0x48
push esi
mov byte [esp + 0x58], 0
call ebp
push edi
push 1
lea eax, [esp + 0x28]
push 4
push eax
call ebp
mov eax, dword [esp + 0x30]
add esp, 0x20
test eax, eax
jne 0x4719ee
lea ecx, [esi + 0x48]
call sub.MFC42.DLL_CString::Empty
jmp 0x471a0f
push edi
lea ebx, [esi + 0x48]
push 1
push eax
push eax
mov ecx, ebx
call sub.MFC42.DLL_CString::GetBuffer
push eax
call ebp
mov ecx, dword [esp + 0x20]
add esp, 0x10
push ecx
mov ecx, ebx
call sub.MFC42.DLL_CString::ReleaseBuffer
push edi
push 1
lea edx, [esp + 0x18]
push 4
push edx
call ebp
mov eax, dword [esp + 0x20]
add esp, 0x10
test eax, eax
jne 0x471a30
lea ecx, [esi + 0x4c]
call sub.MFC42.DLL_CString::Empty
jmp 0x471a51
push edi
lea ebx, [esi + 0x4c]
push 1
push eax
push eax
mov ecx, ebx
call sub.MFC42.DLL_CString::GetBuffer
push eax
call ebp
mov eax, dword [esp + 0x20]
add esp, 0x10
mov ecx, ebx
push eax
call sub.MFC42.DLL_CString::ReleaseBuffer
push edi
push 1
lea ecx, [esi + 0x50]
push 4
push ecx
call ebp
push edi
push 1
lea edx, [esp + 0x28]
push 4
push edx
call ebp
mov eax, dword [esp + 0x30]
add esp, 0x20
test eax, eax
mov dword [esp + 0x24], 0
jle 0x471ac3
add esi, 0x60
push 8
call sub.MFC42.DLL_operatornew
push edi
mov ebx, eax
push 1
push 8
push ebx
call ebp
mov eax, dword [esi + 8]
add esp, 0x14
mov dword [esp + 0x28], eax
inc eax
push 0xffffffffffffffff
push eax
mov ecx, esi
call fcn.00420670
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x28]
mov dword [eax + ecx*4], ebx
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
inc eax
cmp eax, ecx
mov dword [esp + 0x24], eax
jl 0x471a7e
mov esi, dword [esp + 0x20]
mov dword [esi + 0x5c], 0
mov ebx, dword [0x533ea8]
cmp ebx, ebx
jl 0x471ae4
lea edx, [ebx + 1]
push 0xffffffffffffffff
push edx
mov ecx, 0x533ea0
call fcn.00420670
mov eax, dword [0x533ea4]
mov dword [eax + ebx*4], esi
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x471947
mov ebx, dword [esp + 0x2c]
push edi
push 1
lea ecx, [esp + 0x20]
push 4
push ecx
call ebp
mov esi, dword [ebx + 0x10c]
add esp, 0x10
test esi, esi
mov eax, esi
je 0x471b53
mov ecx, esi
mov esi, dword [esi]
mov edx, dword [ecx + 8]
test edx, edx
je 0x471b4d
mov edx, dword [eax + 8]
push eax
lea ecx, [ebx + 0x108]
mov dword [esp + 0x30], edx
call sub.MFC42.DLL_CObList::RemoveAt
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x471b4d
mov eax, dword [ecx]
push 1
call dword [eax + 4]
test esi, esi
mov eax, esi
jne 0x471b20
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], 0
test eax, eax
jle 0x471bb3
push 0x28
call sub.MFC42.DLL_operatornew
add esp, 4
test eax, eax
je 0x471b7b
mov dword [eax], 0x50e330
mov esi, eax
jmp 0x471b7d
xor esi, esi
push edi
push 1
lea ecx, [esi + 0x10]
push 8
push ecx
call ebp
push edi
push 1
lea edx, [esi + 0x20]
push 8
push edx
call ebp
add esp, 0x20
lea ecx, [ebx + 0x108]
push esi
call sub.MFC42.DLL_CObList::AddTail
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x471b63
push edi
push 1
lea eax, [ebx + 0x134]
push 0x10
push eax
call ebp
mov eax, dword [0x533eb4]
add esp, 0x10
test eax, eax
pop ebp
je 0x471c91
mov eax, dword [0x53625c]
push 0
push 0
push 0x474
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
push eax
call sub.MFC42.DLL_CWnd::FromHandle
mov edx, dword [0x533e98]
push 1
mov ecx, dword [edx + 0x140]
mov esi, dword [edx + 0x138]
sub ecx, esi
mov esi, dword [edx + 0x134]
push ecx
mov ecx, dword [edx + 0x13c]
sub ecx, esi
push ecx
push 5
push 5
mov ecx, eax
call sub.MFC42.DLL_CWnd::MoveWindow
mov eax, dword [0x53625c]
lea edx, [esp + 0x2c]
push edx
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [0x533e98]
push 1
mov edx, dword [eax + 0x140]
mov esi, dword [eax + 0x138]
mov ecx, dword [eax + 0x13c]
sub edx, esi
mov esi, dword [eax + 0x134]
mov eax, dword [esp + 0x30]
add edx, 0xa
sub ecx, esi
push edx
mov edx, dword [esp + 0x38]
add ecx, 0xa
push ecx
mov ecx, dword [0x53625c]
push edx
push eax
call sub.MFC42.DLL_CWnd::MoveWindow
mov ecx, dword [ebx + 0x20]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, ebx
call fcn.00470b10
mov ecx, ebx
call fcn.00470150
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0x44], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x3c
ret