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

Disassembly:
push 0xffffffffffffffff
push 0x4d724f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x98
mov eax, dword [0x542a60]
push ebx
push ebp
push esi
mov ebx, ecx
push 0x3e9
push ebx
mov dword [esp + 0xa8], eax
call fcn.00405530
mov esi, eax
xor ebp, ebp
add esp, 8
cmp esi, ebp
mov dword [esp + 0x28], esi
jne 0x402fa9
push str.Invalid_Encode_Type
push ebx
call fcn.004018e0
add esp, 8
jmp 0x40327f
push 0x3ee
push ebx
call fcn.00405530
add esp, 8
cmp eax, 1
mov dword [esp + 0xc], ebp
jne 0x402fca
mov dword [esp + 0xc], 0x80
jmp 0x402fe6
cmp eax, 2
jne 0x402fd9
mov dword [esp + 0xc], 0x84
jmp 0x402fe6
cmp eax, 3
jne 0x402fe6
mov dword [esp + 0xc], 0x88
mov ecx, esi
imul ecx, ecx, 0x1c
push edi
add ecx, 0x546bf0
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.004018e0
add esp, 0xc
lea eax, [ebx + 0xe8]
push eax
lea ecx, [esp + 0x24]
call fcn.00402800
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 0x40322c
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 0x4e4cb8
lea eax, [ebx + 0x110]
push eax
lea edx, [esp + 0x3c]
push edx
mov byte [esp + 0xbc], 2
call fcn.00402040
lea ecx, [esp + 0x5c]
push ecx
push eax
lea edx, [esp + 0x80]
push edx
mov byte [esp + 0xc8], 3
call fcn.00401fc0
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 0x4e4d04
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 0x4030f5
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.004018e0
add esp, 0xc
jmp 0x4031d4
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 sub.MFC71.DLL_operator_new_1
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 0x40315b
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.004018e0
push ebp
call sub.MFC71.DLL_operator_delete
add esp, 0x10
jmp 0x4031d4
mov ecx, dword [esp + 0x2c]
push ecx
mov edx, edi
sub edx, eax
push edx
add eax, ebp
push eax
call fcn.004064c0
add esp, 0xc
push 0x4e4cd4
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 0x4031b0
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.004018e0
push ebp
call sub.MFC71.DLL_operator_delete
add esp, 0x10
jmp 0x4031d4
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
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.00401cd0
mov esi, dword [esp + 0x1c]
cmp esi, dword [esp + 0x30]
jne 0x403040
mov edi, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
push ebp
push str._d_Files_Finished
push ebx
call fcn.004018e0
add esp, 0xc
cmp ebp, edi
je 0x403250
sub edi, ebp
push edi
push str._d_Files_Failed
push ebx
call fcn.004018e0
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.00402740
mov edx, dword [esp + 0x24]
push edx
call sub.MFC71.DLL_operator_delete_1
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.004cf741
add esp, 0xa4
ret