Function at 0x50d8ea
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push 0x8c
mov eax, 0x59a712
call fcn.00584f68
mov esi, ecx
push str.Init
lea ecx, [ebp - 0x1c]
call sym.txupd.exe_public:_void___thiscall_CTXStringW::constructor_wchar_t_const__
and dword [ebp - 4], 0
mov ecx, eax
call sym.txupd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.004588a0
push eax
lea eax, [ebp - 0x20]
push str..FS_CD
push eax
mov byte [ebp - 4], 1
call sym.txupd.exe_class_CTXStringW___cdecl_operator_wchar_t_const___class_CTXStringW_const__
add esp, 0x14
push 0x5a3f7c
mov ecx, eax
mov byte [ebp - 4], 2
call sym.txupd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
push eax
push str.CCDFileSystem::Init
xor ebx, ebx
inc ebx
push ebx
push 0x3b1
lea eax, [ebp - 0x38]
push str.....SourceCommonFileSystemCDFileSystemCDFileSystem.cpp
push eax
call fcn.004b1d3b
add esp, 0x1c
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 4
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 5
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 6
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
push ebx
push str.CD::Init
push 0x5bf138
push esi
lea ecx, [ebp - 0x98]
call fcn.0051db88
lea edi, [esi + 0xc]
cmp dword [edi], 0
mov byte [ebp - 4], 7
je 0x50d9cf
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 6
call fcn.0051dd5e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.004b1dba
mov eax, ebx
call fcn.00585040
ret 4
cmp dword [ebp + 8], 0
je 0x50d9e4
mov ecx, esi
call fcn.0050cde9
test eax, eax
jne 0x50d9e4
xor ebx, ebx
jmp 0x50d9aa
push ecx
lea eax, [esi + 8]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call sym.txupd.exe_public:_void___thiscall_CTXStringW::constructor_class_CTXStringW_const__
lea eax, [ebp - 0x10]
push eax
call fcn.004e4eed
pop ecx
pop ecx
mov ecx, eax
mov byte [ebp - 4], 8
call sym.txupd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
push eax
call fcn.004e4b4c
mov ebx, eax
neg ebx
pop ecx
sbb bl, bl
lea ecx, [ebp - 0x10]
inc bl
mov byte [ebp - 4], 7
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
test bl, bl
jne 0x50d9e0
lea ebx, [esi + 8]
mov ecx, ebx
mov dword [ebp - 0x14], ebx
call sym.txupd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x50da52
and eax, 0xfffffffe
push eax
mov ecx, ebx
call sym.txupd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor ebx, ebx
push ebx
push str.CD::OpenStorage
push 0x5bf144
push esi
lea ecx, [ebp - 0x68]
call fcn.0051db88
mov ecx, dword [ebp - 0x14]
push edi
push dword [esi + 0x1c]
mov byte [ebp - 4], 9
call sym.txupd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
push eax
call sym.txupd.exe_long_int___cdecl_TXOpenStorage_wchar_t_const___int__class_CStorage___
add esp, 0xc
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 7
call fcn.0051dd5e
cmp dword [edi], ebx
jne 0x50dc09
cmp dword [esi + 0x1c], ebx
jne 0x50dbea
mov ecx, esi
call fcn.0050cde9
test eax, eax
je 0x50dbea
cmp dword [ebp - 0x10], 0xe06303e8
jne 0x50dbea
mov ecx, dword [ebp - 0x14]
push ebx
push ebx
push 3
push ebx
push 1
push 0xc0000000
call sym.txupd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x10], 0xffffffff
jne 0x50db42
cmp dword [ebp - 0x18], 5
jne 0x50db42
push dword [esi + 0x30]
push esi
call fcn.004de004
mov ecx, eax
call fcn.004dfc62
cmp dword [esi + 0x30], ebx
je 0x50db11
mov dword [esi + 0x30], ebx
mov ecx, dword [ebp - 0x14]
call sym.txupd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
push eax
push 0x5bf7a8
push str.FileSystem
push 2
push str.CCDFileSystem::Init
push 0x3d5
push str.....SourceCommonFileSystemCDFileSystemCDFileSystem.cpp
call fcn.004587e0
add esp, 0x1c
jmp 0x50d9aa
mov ecx, dword [ebp - 0x14]
call sym.txupd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
push eax
push str.try_to_sleep_somewhile_to_wait_for_the_file__s.
push str.FileSystem
push 4
push str.CCDFileSystem::Init
push 0x3d9
push str.....SourceCommonFileSystemCDFileSystemCDFileSystem.cpp
call fcn.004587e0
add esp, 0x1c
mov dword [ebp - 0x10], ebx
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
push str.CD::OpenStorage
push 0x5bf144
push esi
lea ecx, [ebp - 0x68]
call fcn.0051db88
mov ecx, dword [ebp - 0x14]
push edi
push dword [esi + 0x1c]
mov byte [ebp - 4], 0xa
call sym.txupd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
push eax
call sym.txupd.exe_long_int___cdecl_TXOpenStorage_wchar_t_const___int__class_CStorage___
add esp, 0xc
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 7
call fcn.0051dd5e
cmp dword [edi], ebx
jne 0x50dc09
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 5
jl 0x50db71
cmp dword [edi], ebx
jne 0x50dc09
mov ecx, dword [ebp - 0x14]
call sym.txupd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
push eax
push 0x5bf70c
push str.FileSystem
push 2
push str.CCDFileSystem::Init
push 0x3e7
jmp 0x50db30
cmp dword [edi], ebx
jne 0x50dc09
cmp dword [ebp + 8], ebx
jne 0x50dc09
cmp dword [esi + 0x1c], ebx
jne 0x50dc09
mov ecx, dword [ebp - 0x14]
push edi
call sym.txupd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
push eax
call sym.txupd.exe_long_int___cdecl_TXCreateCompoundDocument_wchar_t_const___class_CStorage___
pop ecx
pop ecx
xor eax, eax
cmp dword [edi], ebx
setne al
mov ebx, eax
jmp 0x50d9aa