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

Disassembly:
push 0xffffffffffffffff
push 0x447959
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x654
mov eax, dword [0x4a6970]
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.004018c0
add esp, 8
lea eax, [edi + 0xe8]
push eax
lea ecx, [esp + 0x24]
call fcn.004026c0
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 0x402a32
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 0x450c14
lea eax, [edi + 0x110]
push eax
lea edx, [esp + 0x48]
push edx
mov byte [esp + 0x678], 2
call fcn.00401fa0
lea ecx, [esp + 0x68]
push ecx
push eax
lea edx, [esp + 0x8c]
push edx
mov byte [esp + 0x684], 3
call fcn.00401f20
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.00406280
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.004064a0
test eax, eax
jne 0x4028bf
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.004018c0
add esp, 0xc
jmp 0x4029cb
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.00406320
test eax, eax
je 0x402923
push 0x450b18
lea ecx, [esp + 0x14]
call dword [0x4501a0]
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x18]
call dword [0x45019c]
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0xb4]
call fcn.00406320
test eax, eax
jne 0x4028f0
lea ecx, [esp + 0xb0]
call fcn.004062f0
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 0x40297d
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.004018c0
add esp, 0xc
jmp 0x4029a6
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.00443de0
lea ecx, [esp + 0x10]
call dword [0x45017c]
lea ecx, [esp + 0x14]
call dword [0x45017c]
lea ecx, [esp + 0xb0]
mov byte [esp + 0x66c], bl
call fcn.00406400
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.00401c40
mov esi, dword [esp + 0x18]
cmp esi, dword [esp + 0x2c]
jne 0x4027f4
mov ebx, dword [esp + 0x1c]
push ebp
push str._d_Files_Finished
push edi
call fcn.004018c0
add esp, 0xc
cmp ebp, ebx
je 0x402a56
sub ebx, ebp
push ebx
push str._d_Files_Failed
push edi
call fcn.004018c0
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.00402600
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.00443ef1
add esp, 0x660
ret