Function at 0x403b99
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 0x82cb
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, 0x408d40
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 0x403c17
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 0x82c0
lea ecx, [esp + 0x24]
mov byte [esp + 0x38], 3
call sub.MFC42u.dll_CString::LoadStringW
push 0x82c1
lea ecx, [esp + 0x20]
call sub.MFC42u.dll_CString::LoadStringW
push 0x82c2
lea ecx, [esp + 0x1c]
call sub.MFC42u.dll_CString::LoadStringW
push dword [esp + 0x18]
push dword [esp + 0x20]
push dword [esp + 0x28]
push 0x40233c
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 0x403cb7
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 0x403cf3
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 0x403e4f
mov ebp, 0x408380
push 0x402380
push ebp
call ebx
pop ecx
pop ecx
mov ecx, dword [esp + 0x40]
push pe_nt_image_headers32
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 0x403d62
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 pe_nt_image_headers32
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 0x403dbd
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 pe_nt_image_headers32
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 0x403e21
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 0x403d23
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