Function at 0x402e10
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x44795f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x98
mov eax, dword [0x497c30]
push ebx
push ebp
push esi
mov ebx, ecx
push 0x3e9
push ebx
mov dword [esp + 0xa8], eax
call fcn.004050d0
mov esi, eax
xor ebp, ebp
add esp, 8
cmp esi, ebp
mov dword [esp + 0x28], esi
jne 0x402e69
push str.Invalid_Encode_Type
push ebx
call fcn.004019c0
add esp, 8
jmp 0x40313f
push 0x3ee
push ebx
call fcn.004050d0
add esp, 8
cmp eax, 1
mov dword [esp + 0xc], ebp
jne 0x402e8a
mov dword [esp + 0xc], 0x80
jmp 0x402ea6
cmp eax, 2
jne 0x402e99
mov dword [esp + 0xc], 0x84
jmp 0x402ea6
cmp eax, 3
jne 0x402ea6
mov dword [esp + 0xc], 0x88
mov ecx, esi
imul ecx, ecx, 0x1c
push edi
add ecx, 0x4aa6a8
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.Start_StreamFile_Decrypt_Using:__s
push ebx
call fcn.004019c0
add esp, 0xc
lea eax, [ebx + 0xe8]
push eax
lea ecx, [esp + 0x24]
call fcn.004026f0
mov eax, dword [esp + 0x24]
mov esi, dword [eax]
cmp esi, eax
mov edi, dword [esp + 0x28]
mov dword [esp + 0xb0], ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x30], eax
je 0x4030ec
lea ecx, [esi + 0xc]
push ecx
lea ecx, [esp + 0x54]
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 + 0x8c]
mov byte [esp + 0xb4], 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, [ebx + 0x110]
push eax
lea edx, [esp + 0x3c]
push edx
mov byte [esp + 0xbc], 2
call fcn.00401080
lea ecx, [esp + 0x5c]
push ecx
push eax
lea edx, [esp + 0x80]
push edx
mov byte [esp + 0xc8], 3
call fcn.00401000
add esp, 0x18
lea ecx, [esp + 0x34]
mov byte [esp + 0xb0], 5
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 0x450c60
lea ecx, [esp + 0x8c]
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
call dword [sym.imp.MSVCR71.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
jne 0x402fb5
lea ecx, [esp + 0x50]
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 ebx
call fcn.004019c0
add esp, 0xc
jmp 0x403094
mov ebp, dword [sym.imp.MSVCR71.dll_fseek]
push 2
push 0
push esi
call ebp
push esi
call dword [sym.imp.MSVCR71.dll_ftell]
push 0
push 0
push esi
mov edi, eax
call ebp
push edi
call fcn.00427580
push esi
push edi
mov ebp, eax
push 1
push ebp
call dword [sym.imp.MSVCR71.dll_fread]
push esi
call dword [sym.imp.MSVCR71.dll_fclose]
mov eax, dword [esp + 0x44]
add esp, 0x34
cmp eax, edi
jl 0x40301b
lea ecx, [esp + 0x50]
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.Bypass_size_more_than_file_size__File:__s
push ebx
call fcn.004019c0
push ebp
call sub.MFC71.DLL_operator_delete_1
add esp, 0x10
jmp 0x403094
mov ecx, dword [esp + 0x2c]
push ecx
mov edx, edi
sub edx, eax
push edx
add eax, ebp
push eax
call fcn.00406060
add esp, 0xc
push 0x450c30
lea ecx, [esp + 0x70]
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
call dword [sym.imp.MSVCR71.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
jne 0x403070
lea ecx, [esp + 0x6c]
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 ebx
call fcn.004019c0
push ebp
call sub.MFC71.DLL_operator_delete_1
add esp, 0x10
jmp 0x403094
push esi
push edi
push 1
push ebp
call dword [sym.imp.MSVCR71.dll_fwrite]
push esi
call dword [sym.imp.MSVCR71.dll_fclose]
push ebp
call sub.MFC71.DLL_operator_delete_1
mov eax, dword [esp + 0x2c]
add esp, 0x18
inc eax
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x6c]
mov byte [esp + 0xb0], 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 + 0x88]
mov byte [esp + 0xb0], 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 + 0x50]
mov byte [esp + 0xb0], 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 + 0x1c]
call fcn.00401df0
mov esi, dword [esp + 0x1c]
cmp esi, dword [esp + 0x30]
jne 0x402f00
mov edi, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
push ebp
push str._d_Files_Finished
push ebx
call fcn.004019c0
add esp, 0xc
cmp ebp, edi
je 0x403110
sub edi, ebp
push edi
push str._d_Files_Failed
push ebx
call fcn.004019c0
add esp, 0xc
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
push eax
push ecx
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x2c]
mov dword [esp + 0xbc], 0xffffffff
call fcn.00402600
mov edx, dword [esp + 0x24]
push edx
call sub.MFC71.DLL_operator_delete
add esp, 4
pop edi
mov ecx, dword [esp + 0xa4]
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x98]
pop ebx
call fcn.00427a0e
add esp, 0xa4
ret