Function at 0x471cd0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4fe708
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov dword [esp + 0x10], ecx
push esi
push edi
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_3
lea eax, [esp + 0x14]
xor esi, esi
push eax
mov ecx, 0x53a920
mov dword [esp + 0x2c], esi
call fcn.004d39c0
push str.layout.ini
lea ecx, [esp + 0x18]
call fcn.004f668e
mov ecx, dword [esp + 0x14]
push 0x52be1c
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, eax
add esp, 8
cmp edi, esi
jne 0x471dc1
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_3
push 0x9d25
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 1
call sub.MFC42.DLL_CString::LoadStringA
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push str.layout
push eax
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 2
call fcn.004f6400
lea ecx, [esp + 0x1c]
mov byte [esp + 0x28], 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 + 0x28], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
pop esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret
mov eax, dword [0x533ea8]
push ebx
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll_fwrite]
push edi
push 1
lea edx, [esp + 0x1c]
push 4
push edx
mov dword [esp + 0x24], eax
call ebp
mov eax, dword [esp + 0x24]
add esp, 0x10
cmp eax, esi
jle 0x471f15
mov eax, dword [0x533ea4]
push edi
push 1
push 0x48
mov ecx, dword [eax + esi*4]
push ecx
call ebp
mov edx, dword [0x533ea4]
push edi
push 1
push 4
mov eax, dword [edx + esi*4]
lea edx, [esp + 0x2c]
push edx
mov ecx, dword [eax + 0x48]
mov eax, dword [ecx - 8]
mov dword [esp + 0x30], eax
call ebp
mov eax, dword [esp + 0x30]
add esp, 0x20
push edi
push 1
push eax
push eax
mov eax, dword [0x533ea4]
mov ecx, dword [eax + esi*4]
add ecx, 0x48
call sub.MFC42.DLL_CString::GetBuffer
push eax
call ebp
mov ecx, dword [esp + 0x20]
mov edx, dword [0x533ea4]
add esp, 0x10
push ecx
mov ecx, dword [edx + esi*4]
add ecx, 0x48
call sub.MFC42.DLL_CString::ReleaseBuffer
mov eax, dword [0x533ea4]
push edi
push 1
push 4
mov ecx, dword [eax + esi*4]
mov edx, dword [ecx + 0x4c]
mov eax, dword [edx - 8]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push eax
call ebp
mov ecx, dword [0x533ea4]
mov eax, dword [esp + 0x20]
add esp, 0x10
mov ecx, dword [ecx + esi*4]
push edi
push 1
push eax
push eax
add ecx, 0x4c
call sub.MFC42.DLL_CString::GetBuffer
push eax
call ebp
mov eax, dword [0x533ea4]
mov edx, dword [esp + 0x20]
add esp, 0x10
mov ecx, dword [eax + esi*4]
push edx
add ecx, 0x4c
call sub.MFC42.DLL_CString::ReleaseBuffer
mov ecx, dword [0x533ea4]
push edi
push 1
push 4
mov edx, dword [ecx + esi*4]
add edx, 0x50
push edx
call ebp
mov eax, dword [0x533ea4]
push edi
push 1
mov ecx, dword [eax + esi*4]
mov eax, dword [ecx + 0x68]
mov dword [esp + 0x28], eax
lea edx, [esp + 0x28]
push 4
push edx
call ebp
mov eax, dword [esp + 0x30]
add esp, 0x20
xor ebx, ebx
test eax, eax
jle 0x471f08
mov eax, dword [0x533ea4]
push edi
push 1
push 8
mov ecx, dword [eax + esi*4]
mov edx, dword [ecx + 0x64]
mov eax, dword [edx + ebx*4]
push eax
call ebp
mov eax, dword [esp + 0x20]
add esp, 0x10
inc ebx
cmp ebx, eax
jl 0x471ee6
mov eax, dword [esp + 0x14]
inc esi
cmp esi, eax
jl 0x471ded
mov ecx, dword [esp + 0x20]
push edi
push 1
lea edx, [esp + 0x1c]
mov eax, dword [ecx + 0x114]
push 4
push edx
mov dword [esp + 0x24], eax
call ebp
mov eax, dword [esp + 0x24]
add esp, 0x10
xor esi, esi
test eax, eax
jle 0x471f71
mov eax, dword [esp + 0x20]
push esi
lea ecx, [eax + 0x108]
call sub.MFC42.DLL_CObList::FindIndex
mov ebx, dword [eax + 8]
push edi
push 1
push 8
lea ecx, [ebx + 0x10]
push ecx
call ebp
push edi
push 1
add ebx, 0x20
push 8
push ebx
call ebp
mov eax, dword [esp + 0x34]
add esp, 0x20
inc esi
cmp esi, eax
jl 0x471f3c
mov edx, dword [esp + 0x20]
push edi
push 1
add edx, 0x134
push 0x10
push edx
call ebp
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
lea ecx, [esp + 0x1c]
mov dword [esp + 0x30], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x28]
pop ebp
pop ebx
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret