Function at 0x4044e3
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x406ea4
call fcn.00406cf0
sub esp, 0x1c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x3c]
push edi
mov eax, esi
call fcn.00403e9d
lea ecx, [esp + 0x24]
mov dword [esp + 0x28], eax
call fcn.0040645c
and dword [esp + 0x34], 0
mov eax, dword [esi + 0x50]
push dword [eax + 0xc]
push dword [eax + 8]
push dword [eax + 4]
lea eax, [esp + 0x30]
push 0x82cc
push eax
call sub.MFC42u.dll_CString::Format
push dword [esp + 0x38]
mov ebx, dword [sym.imp.msvcrt.dll_wcscpy]
mov esi, 0x408480
push esi
call ebx
mov ebp, dword [sym.imp.msvcrt.dll_wcslen]
push esi
call ebp
lea eax, [eax + eax + 2]
push eax
push esi
mov edi, 0x408c38
push edi
call dword [sym.imp.msvcrt.dll_wcstombs]
mov eax, edi
add esp, 0x2c
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x404561
push 0
sub eax, ecx
lea ecx, [esp + 0x18]
push ecx
push eax
push edi
push dword [esp + 0x54]
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [esp + 0x20]
call fcn.0040645c
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], 1
call fcn.0040645c
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], 2
call fcn.0040645c
push 0x82c3
lea ecx, [esp + 0x24]
mov byte [esp + 0x38], 3
call sub.MFC42u.dll_CString::LoadStringW
push 0x82c4
lea ecx, [esp + 0x20]
call sub.MFC42u.dll_CString::LoadStringW
push 0x82c5
lea ecx, [esp + 0x1c]
call sub.MFC42u.dll_CString::LoadStringW
push dword [esp + 0x18]
push dword [esp + 0x20]
push dword [esp + 0x28]
push 0x4024b8
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
push esi
call ebp
lea eax, [eax + eax + 2]
push eax
push esi
push edi
call dword [sym.imp.msvcrt.dll_wcstombs]
mov eax, edi
add esp, 0x24
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x404601
push 0
sub eax, ecx
lea ecx, [esp + 0x18]
push ecx
push eax
push edi
push dword [esp + 0x54]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x402298
push esi
call ebx
push esi
call ebp
lea eax, [eax + eax + 2]
push eax
push esi
push edi
call dword [sym.imp.msvcrt.dll_wcstombs]
mov eax, edi
add esp, 0x18
lea ebp, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40463d
sub eax, ebp
xor ebp, ebp
push ebp
lea ecx, [esp + 0x18]
push ecx
push eax
push edi
push dword [esp + 0x54]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [esp + 0x28], ebp
mov dword [esp + 0x10], ebp
jle 0x404799
mov ebp, 0x408380
push 0x402380
push ebp
call ebx
pop ecx
pop ecx
mov ecx, dword [esp + 0x40]
push 0x80
push ebp
push 0
push dword [esp + 0x1c]
call sub.MFC42u.dll_CListCtrl::GetItemText
push ebp
push esi
call ebx
push esi
call dword [sym.imp.msvcrt.dll_wcslen]
lea eax, [eax + eax + 2]
push eax
push esi
push edi
call dword [sym.imp.msvcrt.dll_wcstombs]
mov eax, edi
add esp, 0x18
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4046ac
push 0
sub eax, ecx
lea ecx, [esp + 0x18]
push ecx
push eax
push edi
push dword [esp + 0x54]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x402380
push ebp
call ebx
pop ecx
pop ecx
mov ecx, dword [esp + 0x40]
push 0x80
push ebp
push 1
push dword [esp + 0x1c]
call sub.MFC42u.dll_CListCtrl::GetItemText
push ebp
push esi
call ebx
push esi
call dword [sym.imp.msvcrt.dll_wcslen]
lea eax, [eax + eax + 2]
push eax
push esi
push edi
call dword [sym.imp.msvcrt.dll_wcstombs]
mov eax, edi
add esp, 0x18
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x404707
push 0
sub eax, ecx
lea ecx, [esp + 0x18]
push ecx
push eax
push edi
push dword [esp + 0x54]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x402380
push ebp
call ebx
pop ecx
pop ecx
mov ecx, dword [esp + 0x40]
push 0x80
push ebp
push 2
push dword [esp + 0x1c]
call sub.MFC42u.dll_CListCtrl::GetItemText
push ebp
push 0x402288
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
push esi
call dword [sym.imp.msvcrt.dll_wcslen]
lea eax, [eax + eax + 2]
push eax
push esi
push edi
call dword [sym.imp.msvcrt.dll_wcstombs]
mov eax, edi
add esp, 0x1c
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40476b
push 0
sub eax, ecx
lea ecx, [esp + 0x18]
push ecx
push eax
push edi
push dword [esp + 0x54]
call dword [sym.imp.KERNEL32.dll_WriteFile]
inc dword [esp + 0x10]
mov eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x28]
jl 0x40466d
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], 2
call sub.MFC42u.dll_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], 1
call sub.MFC42u.dll_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x34], 0
call sub.MFC42u.dll_CString::CString
or dword [esp + 0x34], 0xffffffff
lea ecx, [esp + 0x24]
call sub.MFC42u.dll_CString::CString
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
xor eax, eax
pop ebp
inc eax
pop ebx
mov dword fs:[0], ecx
leave
ret 8