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

Disassembly:
push 0xffffffffffffffff
push 0x447a4f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x94
mov eax, dword [0x4985c0]
push ebx
push ebp
push esi
push edi
mov edi, ecx
push str.Start_XML_File_Decrypt
push edi
mov dword [esp + 0xa8], eax
mov dword [esp + 0x18], edi
call fcn.004019c0
add esp, 8
lea eax, [edi + 0xe8]
push eax
lea ecx, [esp + 0x24]
call fcn.00402700
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 0x403aec
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.00401080
lea ecx, [esp + 0x74]
push ecx
push eax
lea edx, [esp + 0x60]
push edx
mov byte [esp + 0xc4], 3
call fcn.00401000
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 0x4039e9
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.004019c0
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 0x403acd
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 fcn.004275f0
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.00406970
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 0x403a6d
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.004019c0
push edi
call sub.MFC71.DLL_operator_delete_1
add esp, 0x10
jmp 0x403a91
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_1
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.00401e00
mov esi, dword [esp + 0x1c]
cmp esi, dword [esp + 0x2c]
jne 0x403900
mov ebp, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
push ebp
push str._d_Files_Finished
push edi
call fcn.004019c0
add esp, 0xc
cmp ebp, ebx
je 0x403b10
sub ebx, ebp
push ebx
push str._d_Files_Failed
push edi
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 + 0xb8], 0xffffffff
call fcn.00402610
mov edx, dword [esp + 0x24]
push edx
call sub.MFC71.DLL_operator_delete
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.00427a7e
add esp, 0xa0
ret