Function at 0x4028c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4d7209
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x654
mov eax, dword [0x542a60]
push ebx
push ebp
push esi
push edi
mov edi, ecx
push str.Start_TextFile_Decrypt
push edi
mov dword [esp + 0x668], eax
call fcn.004018e0
add esp, 8
lea eax, [edi + 0xe8]
push eax
lea ecx, [esp + 0x24]
call fcn.00402800
mov eax, dword [esp + 0x24]
mov esi, dword [eax]
mov ebx, dword [esp + 0x28]
xor ebp, ebp
cmp esi, eax
mov dword [esp + 0x66c], ebp
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], esi
mov dword [esp + 0x2c], eax
je 0x402b72
mov bl, 5
lea ecx, [esi + 0xc]
push ecx
lea ecx, [esp + 0x60]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
add esi, 0x28
push esi
lea ecx, [esp + 0x98]
mov byte [esp + 0x670], 1
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
push 0x4e4cb8
lea eax, [edi + 0x110]
push eax
lea edx, [esp + 0x48]
push edx
mov byte [esp + 0x678], 2
call fcn.00402040
lea ecx, [esp + 0x68]
push ecx
push eax
lea edx, [esp + 0x8c]
push edx
mov byte [esp + 0x684], 3
call fcn.00401fc0
add esp, 0x18
lea ecx, [esp + 0x40]
mov byte [esp + 0x66c], bl
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
push 0x1000
lea ecx, [esp + 0xb4]
call fcn.004091b0
push 1
lea ecx, [esp + 0x98]
mov byte [esp + 0x670], 6
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
lea ecx, [esp + 0xb8]
call fcn.004093d0
test eax, eax
jne 0x4029ff
lea ecx, [esp + 0x5c]
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
push str.Failed_Open_Input_File:__s
push edi
call fcn.004018e0
add esp, 0xc
jmp 0x402b0b
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0xb4]
mov byte [esp + 0x670], 8
call fcn.00409250
test eax, eax
je 0x402a63
push 0x4e4bcc
lea ecx, [esp + 0x14]
call dword [0x4e4190]
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x18]
call dword [0x4e418c]
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0xb4]
call fcn.00409250
test eax, eax
jne 0x402a30
lea ecx, [esp + 0xb0]
call fcn.00409220
lea ecx, [esp + 0x30]
call sub.MFC71.DLL_CFile::CFile
push 0
push 0x1001
lea ecx, [esp + 0x80]
mov byte [esp + 0x674], 9
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
lea ecx, [esp + 0x3c]
call sub.MFC71.DLL_CFile::Open
test eax, eax
jne 0x402abd
lea ecx, [esp + 0x78]
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
push str.Failed_Open_Output_File:__s
push edi
call fcn.004018e0
add esp, 0xc
jmp 0x402ae6
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetLength]
push eax
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetString]
push eax
lea ecx, [esp + 0x38]
call sub.MFC71.DLL_CFile::Write
lea ecx, [esp + 0x30]
call sub.MFC71.DLL_CFile::Close
inc ebp
lea ecx, [esp + 0x30]
mov byte [esp + 0x66c], 8
call fcn.004cf630
lea ecx, [esp + 0x10]
call dword [0x4e416c]
lea ecx, [esp + 0x14]
call dword [0x4e416c]
lea ecx, [esp + 0xb0]
mov byte [esp + 0x66c], bl
call fcn.00409330
lea ecx, [esp + 0x78]
mov byte [esp + 0x66c], 2
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x94]
mov byte [esp + 0x66c], 1
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x5c]
mov byte [esp + 0x66c], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x18]
call fcn.00401cd0
mov esi, dword [esp + 0x18]
cmp esi, dword [esp + 0x2c]
jne 0x402934
mov ebx, dword [esp + 0x1c]
push ebp
push str._d_Files_Finished
push edi
call fcn.004018e0
add esp, 0xc
cmp ebp, ebx
je 0x402b96
sub ebx, ebp
push ebx
push str._d_Files_Failed
push edi
call fcn.004018e0
add esp, 0xc
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
push eax
push ecx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x678], 0xffffffff
call fcn.00402740
mov ecx, dword [esp + 0x24]
push ecx
call sub.MFC71.DLL_operator_delete_1
mov ecx, dword [esp + 0x668]
add esp, 4
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x654]
pop ebx
call fcn.004cf741
add esp, 0x660
ret