Function at 0x51590c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push 0x30
mov eax, 0x59b6ad
call fcn.00584f68
mov ebx, ecx
xor esi, esi
lea ecx, [ebp + 8]
mov dword [ebp - 4], esi
call sym.txupd.exe_public:_bool___thiscall_CTXStringW::IsEmpty_void_const
test al, al
je 0x515944
mov ebx, dword [ebx + 0xc]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
mov eax, ebx
call fcn.00585040
ret 8
mov edi, dword [ebx + 0xc]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], esi
call sym.txupd.exe_public:_void___thiscall_CTXStringW::constructor_void_
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call sym.txupd.exe_public:_void___thiscall_CTXStringW::constructor_void_
push 0x5c
push 0x2f
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call sym.txupd.exe_public:_int___thiscall_CTXStringW::Replace_wchar_t__wchar_t_
lea ecx, [ebp + 8]
call sym.txupd.exe_public:_int___thiscall_CTXStringW::GetLength_void_const
dec eax
push eax
lea ecx, [ebp + 8]
call sym.txupd.exe_public:_wchar_t___thiscall_CTXStringW::operator___int_const
cmp ax, 0x5c
je 0x515999
push 0x5d13ac
lea ecx, [ebp + 8]
call sym.txupd.exe_public:_class_CTXStringW____thiscall_CTXStringW::operator_wchar_t_const__
push esi
push 0x5c
lea ecx, [ebp + 8]
call sym.txupd.exe_public:_int___thiscall_CTXStringW::Find_wchar_t__int_const
mov esi, eax
test esi, esi
jl 0x515b7d
jmp 0x5159b3
mov esi, dword [ebp - 0x28]
mov eax, esi
sub eax, dword [ebp - 0x14]
lea ecx, [ebp + 8]
push eax
push dword [ebp - 0x14]
lea eax, [ebp - 0x30]
push eax
call sym.txupd.exe_public:_class_CTXStringW___thiscall_CTXStringW::Mid_int__int_
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 3
call fcn.0049f0c7
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
push esi
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp + 8]
call sym.txupd.exe_public:_class_CTXStringW___thiscall_CTXStringW::Left_int_
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.0049f0c7
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
inc esi
push esi
push 0x5c
lea ecx, [ebp + 8]
mov dword [ebp - 0x14], esi
call sym.txupd.exe_public:_int___thiscall_CTXStringW::Find_wchar_t__int_const
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x1c]
push eax
mov ecx, ebx
call fcn.00514caf
test eax, eax
mov dword [ebp - 0x10], eax
jne 0x515b61
cmp dword [ebx + 0x28], eax
push ecx
sete al
mov ecx, esp
mov dword [ebp - 0x3c], esp
lea eax, [eax + eax + 0x10]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x24]
push eax
call sym.txupd.exe_public:_void___thiscall_CTXStringW::constructor_class_CTXStringW_const__
lea eax, [ebp - 0x18]
push eax
mov ecx, ebx
call fcn.005135c4
mov byte [ebp - 4], 5
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [edi]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x10]
push eax
xor eax, eax
push eax
push eax
push dword [ebp - 0x38]
lea ecx, [ebp - 0x18]
push eax
add esi, 0x18
call sym.txupd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
push eax
push edi
call dword [esi]
test eax, eax
jge 0x515af6
cmp dword [ebp + 0xc], 0
je 0x515af6
mov esi, dword [edi]
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0x1012
lea ecx, [ebp - 0x18]
add esi, 0x14
call sym.txupd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
push eax
push edi
call dword [esi]
push 4
mov esi, eax
mov eax, dword [edi]
push edi
call dword [eax + 0x24]
test esi, esi
jl 0x515af6
lea ecx, [ebp + 8]
call sym.txupd.exe_public:_int___thiscall_CTXStringW::GetLength_void_const
dec eax
push eax
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp + 8]
call sym.txupd.exe_public:_class_CTXStringW___thiscall_CTXStringW::Left_int_
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 6
call sym.txupd.exe_public:_class_CTXStringW____thiscall_CTXStringW::MakeLower_void_
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebx + 0x50]
call fcn.00515700
lea ecx, [ebp - 0x20]
mov dword [eax], 1
mov byte [ebp - 4], 5
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x3c]
cmp eax, 0xa
jbe 0x515b3a
push eax
push dword [ebp - 0x18]
lea eax, [ebx + 8]
push ecx
mov ecx, esp
mov dword [ebp - 0x3c], esp
push eax
call sym.txupd.exe_public:_void___thiscall_CTXStringW::constructor_class_CTXStringW_const__
push str.Path_s_FileName_s_CostTime__d
push str.PerfFS.OpenStorage
push 4
push str.CSSFileSystem::GetFolderStorage
push 0x794
push 0x5c0640
call fcn.0046fa20
add esp, 0x24
cmp dword [ebp - 0x10], 0
je 0x515b4e
push dword [ebp - 0x10]
lea eax, [ebp - 0x1c]
push eax
mov ecx, ebx
call fcn.00515338
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x515b73
and dword [ebp - 0x10], 0
cmp dword [ebp - 0x28], 0
mov edi, eax
jge 0x5159b0
jmp 0x515b7d
push edi
mov ecx, ebx
call fcn.005150d2
xor edi, edi
test edi, edi
je 0x515b84
mov dword [ebp - 0x2c], edi
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
mov ebx, dword [ebp - 0x2c]
jmp 0x51592e