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

Disassembly:
push 0xffffffffffffffff
push 0x44792f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x98
mov eax, dword [0x4a6980]
push ebx
push ebp
push esi
mov ebx, ecx
push 0x3e9
push ebx
mov dword [esp + 0xa8], eax
call fcn.004050e0
mov esi, eax
xor ebp, ebp
add esp, 8
cmp esi, ebp
mov dword [esp + 0x28], esi
jne 0x402e79
push str.Invalid_Encode_Type
push ebx
call fcn.004018c0
add esp, 8
jmp 0x40314f
push 0x3ee
push ebx
call fcn.004050e0
add esp, 8
cmp eax, 1
mov dword [esp + 0xc], ebp
jne 0x402e9a
mov dword [esp + 0xc], 0x80
jmp 0x402eb6
cmp eax, 2
jne 0x402ea9
mov dword [esp + 0xc], 0x84
jmp 0x402eb6
cmp eax, 3
jne 0x402eb6
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.004018c0
add esp, 0xc
lea eax, [ebx + 0xe8]
push eax
lea ecx, [esp + 0x24]
call fcn.004026d0
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 0x4030fc
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.00401fb0
lea ecx, [esp + 0x5c]
push ecx
push eax
lea edx, [esp + 0x80]
push edx
mov byte [esp + 0xc8], 3
call fcn.00401f30
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 0x402fc5
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.004018c0
add esp, 0xc
jmp 0x4030a4
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 0x40302b
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.004018c0
push ebp
call sub.MFC71.DLL_operator_delete
add esp, 0x10
jmp 0x4030a4
mov ecx, dword [esp + 0x2c]
push ecx
mov edx, edi
sub edx, eax
push edx
add eax, ebp
push eax
call fcn.00406070
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 0x403080
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.004018c0
push ebp
call sub.MFC71.DLL_operator_delete
add esp, 0x10
jmp 0x4030a4
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.00401c40
mov esi, dword [esp + 0x1c]
cmp esi, dword [esp + 0x30]
jne 0x402f10
mov ebp, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
push ebp
push str._d_Files_Finished
push ebx
call fcn.004018c0
add esp, 0xc
cmp ebp, edi
je 0x403120
sub edi, ebp
push edi
push str._d_Files_Failed
push ebx
call fcn.004018c0
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.00402610
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.00443e81
add esp, 0xa4
ret