Function at 0x403170
Capabilities:
Read file on windows
Resolve function by parsing pe exports
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x44799f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa0
mov eax, dword [0x497c30]
push ebx
push ebp
push esi
push edi
mov edi, ecx
push str.Start_StreamFile_Ran2__Decrypt
push edi
mov dword [esp + 0xb4], eax
mov dword [esp + 0x18], edi
call fcn.004019c0
push 0x3f8
push edi
call fcn.00405150
mov dword [esp + 0x48], eax
add esp, 0x10
lea eax, [edi + 0xe8]
push eax
lea ecx, [esp + 0x30]
call fcn.004026f0
mov eax, dword [esp + 0x30]
mov esi, dword [eax]
mov ebx, dword [esp + 0x34]
xor ebp, ebp
cmp esi, eax
mov dword [esp + 0xb8], ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x28], eax
je 0x403508
lea esp, [esp]
lea ecx, [esi + 0xc]
push ecx
lea ecx, [esp + 0x5c]
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 + 0x94]
mov byte [esp + 0xbc], 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 + 0x44]
push edx
mov byte [esp + 0xc4], 2
call fcn.00401080
lea ecx, [esp + 0x64]
push ecx
push eax
lea edx, [esp + 0x88]
push edx
mov byte [esp + 0xd0], 3
call fcn.00401000
add esp, 0x18
lea ecx, [esp + 0x3c]
mov byte [esp + 0xb8], 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 + 0x94]
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 0x4032b5
lea ecx, [esp + 0x58]
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.004019c0
add esp, 0xc
jmp 0x40337b
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 ebx, eax
call ebp
push ebx
call fcn.00427580
push esi
push ebx
mov ebp, eax
push 1
push ebp
call dword [sym.imp.MSVCR71.dll_fread]
push esi
call dword [sym.imp.MSVCR71.dll_fclose]
add esp, 0x34
cmp ebx, 0x90
jg 0x403354
lea ecx, [esp + 0x58]
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.Skip_size_more_than_file_size__File:__s
push edi
call fcn.004019c0
push ebp
call sub.MFC71.DLL_operator_delete_1
add esp, 0x10
lea ecx, [esp + 0x74]
mov byte [esp + 0xb8], 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 + 0x90]
mov byte [esp + 0xb8], 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 + 0x58]
mov byte [esp + 0xb8], 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_]
jmp 0x4034e9
cmp ebx, 0x84
jg 0x4033b9
lea ecx, [esp + 0x58]
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 edi
call fcn.004019c0
push ebp
call sub.MFC71.DLL_operator_delete_1
add esp, 0x10
lea ecx, [esp + 0x74]
mov byte [esp + 0xb8], 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 + 0x90]
mov byte [esp + 0xb8], 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 + 0x58]
mov byte [esp + 0xb8], 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_]
jmp 0x4034e9
push 2
lea eax, [ebx - 0x84]
push eax
lea ecx, [ebp + 0x84]
push ecx
call fcn.00406060
lea eax, [ebx - 0xc]
push eax
mov dword [esp + 0x28], eax
call fcn.00427580
mov edi, eax
mov ecx, 0x21
mov esi, ebp
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebx - 0x90]
mov edx, ecx
shr ecx, 2
mov dword [esp + 0x30], eax
add eax, 0x84
lea esi, [ebp + 0x90]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x48]
add esp, 0x10
test ecx, ecx
je 0x40342c
mov ecx, dword [esp + 0x18]
push 1
add ecx, 0xffffff7c
push ecx
push eax
call fcn.00406000
add esp, 0xc
push 0x450c30
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
call dword [sym.imp.MSVCR71.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
jne 0x40347a
lea ecx, [esp + 0x74]
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]
mov edx, dword [esp + 0x10]
push eax
push str.Failed_Open_Output_File:__s
push edx
call fcn.004019c0
push ebp
call sub.MFC71.DLL_operator_delete_1
mov eax, dword [esp + 0x30]
push eax
call sub.MFC71.DLL_operator_delete_1
add esp, 0x14
jmp 0x4034ac
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x20]
push esi
push ecx
push 1
push edi
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
push edi
call sub.MFC71.DLL_operator_delete_1
mov eax, dword [esp + 0x30]
add esp, 0x1c
inc eax
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x74]
mov byte [esp + 0xb8], 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 + 0x90]
mov byte [esp + 0xb8], 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 + 0x58]
mov byte [esp + 0xb8], 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_]
mov edi, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
call fcn.00401df0
mov esi, dword [esp + 0x1c]
cmp esi, dword [esp + 0x28]
jne 0x403200
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x14]
push ebp
push str._d_Files_Finished
push edi
call fcn.004019c0
add esp, 0xc
cmp ebp, ebx
je 0x40352c
sub ebx, ebp
push ebx
push str._d_Files_Failed
push edi
call fcn.004019c0
add esp, 0xc
mov eax, dword [esp + 0x30]
mov ecx, dword [eax]
push eax
push ecx
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x38]
mov dword [esp + 0xc4], 0xffffffff
call fcn.00402600
mov eax, dword [esp + 0x30]
push eax
call sub.MFC71.DLL_operator_delete
mov ecx, dword [esp + 0xb4]
add esp, 4
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0xa0]
pop ebx
call fcn.00427a0e
add esp, 0xac
ret