Function at 0x4038f0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4064b1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x268
push ebx
push ebp
push esi
mov ebx, ecx
push edi
push 0
lea ecx, [esp + 0x118]
call fcn.00404310
lea esi, [ebx + 0x70]
push 0x40a194
mov ecx, esi
mov dword [esp + 0x284], 0
call fcn.00405d84
mov eax, dword [0x40a75c]
mov edi, dword [eax - 8]
push edi
call sub.MFC42.DLL_operatornew
add esp, 4
lea ecx, [edi + 1]
push ecx
mov ecx, 0x40a75c
call sub.MFC42.DLL_CString::GetBuffer
push 0x40a2f8
push 0x40a1a8
mov dword [esp + 0x18], eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x403987
mov edx, dword [esp + 0x10]
push ebp
push 1
push edi
push edx
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [ebx + 0x64]
mov ebp, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
add esp, 4
cmp eax, 1
jne 0x4039b3
mov eax, dword [esi]
push eax
push 0x40a434
push 0x40a430
push 0x40a42c
call ebp
mov eax, dword [0x40aa90]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0xf0
push eax
call edi
cmp eax, 1
mov eax, dword [esi]
push eax
jne 0x4039d9
push 0x40a434
jmp 0x4039de
push 0x40a428
push 0x40a424
push 0x40a42c
call ebp
mov ecx, dword [0x40aa50]
push 0
push 0
push 0xf0
push ecx
call edi
cmp eax, 1
jne 0x403a15
mov eax, dword [esi]
push eax
push 0x40a434
push 0x40a418
push 0x40a42c
call ebp
mov eax, dword [ebx + 0x17c]
test eax, eax
jne 0x403a33
mov eax, dword [esi]
push eax
push 0x40a428
push 0x40a410
push 0x40a42c
call ebp
cmp dword [ebx + 0x17c], 1
jne 0x403a50
mov eax, dword [esi]
push eax
push 0x40a434
push 0x40a410
push 0x40a42c
call ebp
cmp dword [ebx + 0x17c], 2
jne 0x403a6d
mov eax, dword [esi]
push eax
push 0x40a408
push 0x40a410
push 0x40a42c
call ebp
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
rep stosd dword es:[edi], eax
lea edx, [esp + 0x14]
push 0xff
push edx
push 0x3ec
mov ecx, ebx
stosw word es:[edi], ax
call sub.MFC42.DLL_CWnd::GetDlgItemTextA_1
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
xor edx, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x403ac6
mov al, byte [esp + edx + 0x14]
lea edi, [esp + 0x14]
xor al, 0x84
or ecx, 0xffffffff
mov byte [esp + edx + 0x14], al
xor eax, eax
inc edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp edx, ecx
jb 0x403aa9
mov eax, dword [esi]
push eax
lea eax, [esp + 0x18]
push eax
push 0x40a3fc
push 0x40a42c
call ebp
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x179]
mov byte [esp + 0x178], 0
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x178]
lea edx, [esp + 0x10]
push ecx
push edx
mov ecx, ebx
stosw word es:[edi], ax
call fcn.00403710
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
mov eax, dword [esi]
push eax
lea eax, [esp + 0x17c]
push eax
push 0x40a3f0
push 0x40a42c
call ebp
mov ecx, dword [ebx + 0x9c]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0xf0
push ecx
call edi
cmp eax, 1
jne 0x403ba3
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
lea edx, [esp + 0x10]
mov ecx, ebx
push edx
push 0x3f8
mov byte [esp + 0x288], 1
call sub.MFC42.DLL_CWnd::GetDlgItemTextA
mov eax, dword [esp + 0x10]
push 0x40a3ec
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
je 0x403b92
mov eax, dword [esi]
mov ecx, dword [esp + 0x10]
push eax
push ecx
push 0x40a3e0
push 0x40a42c
call ebp
lea ecx, [esp + 0x10]
mov byte [esp + 0x280], 0
call sub.MFC42.DLL_CString::CString
mov edx, dword [0x40aa10]
push 0
push 0
push 0xf0
push edx
call edi
cmp eax, 1
jne 0x403bce
mov eax, dword [esi]
push eax
push 0x40a434
push 0x40a3d8
push 0x40a42c
call ebp
mov eax, dword [0x40a9d0]
push 0
push 0
push 0xf0
push eax
call edi
cmp eax, 1
jne 0x403bf8
mov eax, dword [esi]
push eax
push 0x40a434
push 0x40a3cc
push 0x40a42c
call ebp
mov eax, dword [0x40aab0]
test eax, eax
mov eax, dword [esi]
push eax
jne 0x403c0b
push str.NoMove
jmp 0x403c10
push str.Move
push str.water
push 0x40a42c
call ebp
mov ecx, dword [0x40a990]
push 0
push 0
push 0xf0
push ecx
call edi
cmp eax, 1
jne 0x403c47
mov esi, dword [esi]
push esi
push 0x40a434
push 0x40a3ac
push 0x40a42c
call ebp
lea ecx, [esp + 0x174]
mov dword [esp + 0x280], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x114]
mov dword [esp + 0x280], 0xffffffff
call fcn.00405e26
mov ecx, dword [esp + 0x278]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x274
ret