Function at 0x4157f0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x442f13
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x218
push ebx
lea ecx, [esp + 4]
call fcn.0043fabe
lea eax, [esp + 0x18]
xor ebx, ebx
push eax
mov dword [esp + 0x228], ebx
call sub.MFC42.DLL_CTime::GetTickCount
mov ecx, dword [eax]
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 8]
call fcn.0043fabe
lea edx, [esp + 0x10]
push str._Y_m_d
push edx
lea ecx, [esp + 0x24]
mov byte [esp + 0x22c], 1
call sub.MFC42.DLL_CTime::Format
lea eax, [esp + 0x14]
push str._H_M_S
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x22c], 2
call sub.MFC42.DLL_CTime::Format
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
push ecx
lea eax, [esp + 0x10]
push edx
push eax
mov byte [esp + 0x230], 3
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x228], 4
call fcn.0043fac4
lea ecx, [esp + 0xc]
mov byte [esp + 0x224], 3
call sub.MFC42.DLL_CString::CString
cmp dword [0x44fa7c], 1
jne 0x4158c6
mov ecx, dword [0x45d8fc]
push ecx
push 1
call fcn.00410850
add esp, 8
cmp dword [0x44fa7c], 2
jne 0x415901
mov edx, dword [0x45d8fc]
push edx
push 1
call fcn.00410850
mov eax, dword [0x44fa34]
imul eax, dword [0x44fa38]
shl eax, 2
push eax
call sub.MFC42.DLL_operatornew
push eax
push 2
mov dword [esp + 0x20], eax
call fcn.00410850
add esp, 0x14
mov ecx, dword [esp + 8]
push ebx
push str.DATA__.data___.dataAll_Files__.___.
push 6
push ecx
push str.data
push ebx
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_CFileDialog::CFileDialog
lea ecx, [esp + 0x20]
mov byte [esp + 0x224], 5
call sub.MFC42.DLL_CFileDialog::DoModal
cmp eax, 1
je 0x4159b9
lea ecx, [esp + 0xd0]
mov byte [esp + 0x224], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x224], 3
call sub.MFC42.DLL_CDialog::CDialog
lea ecx, [esp + 0x14]
mov byte [esp + 0x224], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x224], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov byte [esp + 0x224], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 4]
mov dword [esp + 0x224], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop ebx
mov ecx, dword [esp + 0x218]
mov dword fs:[0], ecx
add esp, 0x224
ret
push ebp
push esi
lea edx, [esp + 0x20]
push edi
push edx
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CFileDialog::GetPathName
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x234], 7
call fcn.0043fac4
lea ecx, [esp + 0x24]
mov byte [esp + 0x230], 5
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x10]
push 0x44f8a0
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov ecx, dword [0x44fa34]
mov edx, dword [0x45d8fc]
imul ecx, dword [0x44fa38]
mov ebp, dword [sym.imp.MSVCRT.dll_fwrite]
mov esi, eax
shl ecx, 2
push esi
push ecx
push 1
push edx
call ebp
mov edi, dword [sym.imp.MSVCRT.dll_fclose]
push esi
call edi
mov eax, dword [0x44fa7c]
add esp, 0x1c
cmp eax, 2
jne 0x415a74
push str..data
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::TrimRight
push str._1.data
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator
mov eax, dword [0x44fa34]
mov ecx, dword [esp + 0x18]
imul eax, dword [0x44fa38]
shl eax, 2
push esi
push eax
push 1
push ecx
call ebp
push esi
call edi
add esp, 0x14
cmp dword [0x44fa50], 2
je 0x415aa4
mov edx, dword [0x45d8f8]
mov eax, dword [0x44fa34]
mov ecx, dword [0x44fa38]
push edx
mov edx, dword [0x45d8fc]
push eax
push ecx
push edx
push 5
call fcn.0041ccf0
add esp, 0x14
jmp 0x415b05
mov eax, dword [0x45d8f8]
mov ecx, dword [0x44fa34]
mov edx, dword [0x44fa38]
push eax
mov eax, dword [0x45d8fc]
push ecx
mov ecx, dword [0x44fa44]
push edx
push eax
push ecx
call fcn.0041ccf0
mov eax, dword [0x44fa7c]
add esp, 0x14
cmp eax, 2
jne 0x415b05
mov edx, dword [0x45d8f4]
mov eax, dword [0x44fa34]
mov ecx, dword [0x44fa38]
mov esi, dword [esp + 0x18]
push edx
mov edx, dword [0x44fa44]
push eax
push ecx
push esi
push edx
call fcn.0041ccf0
push esi
call sub.MFC42.DLL_operatordelete
add esp, 0x18
push 0xe
call sub.MFC42.DLL_operatornew
mov edi, eax
push 0x28
mov word [edi], 0x4d42
mov eax, dword [0x44fa34]
imul eax, dword [0x44fa38]
add eax, 0x12
mov dword [edi + 0xa], 0x36
mov word [edi + 6], bx
mov word [edi + 8], bx
lea eax, [eax + eax*2]
mov dword [edi + 2], eax
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 8
mov dword [esi], 0x28
mov ecx, dword [0x44fa38]
mov dword [esi + 4], ecx
mov edx, dword [0x44fa34]
mov dword [esi + 8], edx
mov word [esi + 0xc], 1
mov word [esi + 0xe], 0x18
mov dword [esi + 0x10], ebx
mov eax, dword [0x44fa34]
push str.data
imul eax, dword [0x44fa38]
lea ecx, [esp + 0x14]
mov dword [esi + 0x18], ebx
lea eax, [eax + eax*2]
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x14], eax
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
call sub.MFC42.DLL_CString::TrimRight
push 0x44f8a4
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator
mov ecx, dword [esp + 0x10]
push 0x44f8a0
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
push ebx
push 0xe
push 1
push edi
call ebp
push ebx
push 0x28
push 1
push esi
call ebp
mov eax, dword [0x44fa34]
push ebx
imul eax, dword [0x44fa38]
lea edx, [eax + eax*2]
mov eax, dword [0x45d8f8]
push edx
push 1
push eax
call ebp
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [0x44fa7c]
add esp, 0x3c
cmp eax, 2
jne 0x415c58
push str..bmp
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::TrimRight
push str._1.bmp
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator
mov ecx, dword [esp + 0x10]
push 0x44f8a0
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
push ebx
push 0xe
push 1
push edi
call ebp
push ebx
push 0x28
push 1
push esi
call ebp
mov eax, dword [0x44fa34]
push ebx
imul eax, dword [0x44fa38]
lea edx, [eax + eax*2]
mov eax, dword [0x45d8f4]
push edx
push 1
push eax
call ebp
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x3c
lea ecx, [esp + 0xdc]
mov byte [esp + 0x230], 8
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov byte [esp + 0x230], 3
call sub.MFC42.DLL_CDialog::CDialog
lea ecx, [esp + 0x20]
mov byte [esp + 0x230], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x230], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x230], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x230], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x228]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x224
ret