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

Disassembly:
push 0xffffffffffffffff
push 0x447a1f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x94
mov eax, dword [0x4a6970]
push ebx
push ebp
push esi
push edi
mov edi, ecx
push str.Start_XML_File_Encrypt
push edi
mov dword [esp + 0xa8], eax
mov dword [esp + 0x18], edi
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 + 0xac], ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x2c], eax
je 0x4037ec
mov ebx, 2
nop
lea ecx, [esi + 0xc]
push ecx
lea ecx, [esp + 0x6c]
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 + 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__::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 + 0x38]
push edx
mov byte [esp + 0xb8], bl
call fcn.00401fa0
lea ecx, [esp + 0x74]
push ecx
push eax
lea edx, [esp + 0x60]
push edx
mov byte [esp + 0xc4], 3
call fcn.00401f20
add esp, 0x18
lea ecx, [esp + 0x30]
mov byte [esp + 0xac], 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 + 0x88]
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 0x4036e9
lea ecx, [esp + 0x68]
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
lea ecx, [esp + 0x4c]
mov byte [esp + 0xac], 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_]
lea ecx, [esp + 0x84]
mov byte [esp + 0xac], 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 + 0x68]
mov byte [esp + 0xac], 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 0x4037cd
mov edi, dword [sym.imp.MSVCR71.dll_fseek]
push ebx
push 0
push esi
call edi
push esi
call dword [sym.imp.MSVCR71.dll_ftell]
push 0
push 0
push esi
mov ebp, eax
call edi
push ebp
call sub.MFC71.DLL_operator_new_1
push esi
push ebp
mov edi, eax
push 1
push edi
call dword [sym.imp.MSVCR71.dll_fread]
push esi
call dword [sym.imp.MSVCR71.dll_fclose]
push ebp
push edi
call fcn.004068c0
add esp, 0x3c
push 0x450c30
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
call dword [sym.imp.MSVCR71.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
jne 0x40376d
lea ecx, [esp + 0x4c]
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
mov eax, dword [esp + 0x14]
push str.Failed_Open_Output_File:__s
push eax
call fcn.004018c0
push edi
call sub.MFC71.DLL_operator_delete
add esp, 0x10
jmp 0x403791
push esi
push ebp
push 1
push edi
call dword [sym.imp.MSVCR71.dll_fwrite]
push esi
call dword [sym.imp.MSVCR71.dll_fclose]
push edi
call sub.MFC71.DLL_operator_delete
mov eax, dword [esp + 0x2c]
add esp, 0x18
inc eax
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x4c]
mov byte [esp + 0xac], 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_]
lea ecx, [esp + 0x84]
mov byte [esp + 0xac], 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 + 0x68]
mov byte [esp + 0xac], 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.00401c40
mov esi, dword [esp + 0x1c]
cmp esi, dword [esp + 0x2c]
jne 0x403600
mov ebp, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
push ebp
push str._d_Files_Finished
push edi
call fcn.004018c0
add esp, 0xc
cmp ebp, ebx
je 0x403810
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 ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x2c]
mov dword [esp + 0xb8], 0xffffffff
call fcn.00402600
mov edx, dword [esp + 0x24]
push edx
call sub.MFC71.DLL_operator_delete_1
mov ecx, dword [esp + 0xa8]
add esp, 4
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x94]
pop ebx
call fcn.00443ef1
add esp, 0xa0
ret