Function at 0x4f848d
Capabilities:
Check if file exists

Disassembly:
push 0x2c
mov eax, 0x6ea2db
call fcn.00682c5e
xor edi, edi
mov dword [ebp - 0x14], edi
cmp dword [ebp + 8], edi
je 0x4f88da
cmp dword [ebp + 0xc], edi
je 0x4f88da
push dword [ebp + 0xc]
lea ecx, [ebp - 0x1c]
call sym.txupd.exe_public:_void___thiscall_CTXStringW::constructor_wchar_t_const__
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], edi
call sym.txupd.exe_public:_void___thiscall_CTXStringW::constructor_wchar_t_const__
push str.BACKUP_
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x24]
push eax
call sym.txupd.exe_class_CTXStringW___cdecl_operator_class_CTXStringW_const___wchar_t_const__
add esp, 0xc
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call sym.txupd.exe_public:_int___thiscall_CTXStringW::GetLength_void_const
dec eax
lea ecx, [ebp - 0x10]
push eax
call sym.txupd.exe_public:_wchar_t___thiscall_CTXStringW::GetAt_int_const
push 0x5c
pop ecx
cmp ax, cx
je 0x4f8530
push ecx
lea ecx, [ebp - 0x10]
call sym.txupd.exe_public:_int___thiscall_CTXStringW::ReverseFind_wchar_t_const
inc eax
lea ecx, [ebp - 0x10]
push eax
lea eax, [ebp + 8]
push eax
call sym.txupd.exe_public:_class_CTXStringW___thiscall_CTXStringW::Left_int_
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.0051b603
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
push str.Bin_
lea ecx, [ebp - 0x18]
call sym.txupd.exe_public:_void___thiscall_CTXStringW::constructor_wchar_t_const__
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call sym.txupd.exe_public:_int___thiscall_CTXStringW::GetLength_void_const
push eax
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x10]
call sym.txupd.exe_public:_class_CTXStringW___thiscall_CTXStringW::Right_int_
mov esi, eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 5
call sym.txupd.exe_public:_wchar_t____thiscall_CTXStringW::GetBuffer_void_
push eax
mov ecx, esi
call sym.txupd.exe_public:_int___thiscall_CTXStringW::CompareNoCase_wchar_t_const__const
mov ebx, eax
mov byte [ebp - 4], 4
neg ebx
lea ecx, [ebp + 8]
sbb bl, bl
inc bl
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
movzx eax, bl
mov esi, str.LICENSE
mov dword [ebp - 0x28], eax
test bl, bl
je 0x4f85a7
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x38]
call sym.txupd.exe_public:_void___thiscall_CTXStringW::constructor_class_CTXStringW_const__
mov dword [ebp - 0x20], eax
xor ebx, ebx
mov byte [ebp - 4], 6
inc ebx
jmp 0x4f85e1
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x34]
push eax
call sym.txupd.exe_class_CTXStringW___cdecl_operator_class_CTXStringW_const___class_CTXStringW_const__
push esi
push eax
lea eax, [ebp - 0x30]
mov dword [ebp - 4], 7
push eax
mov dword [ebp - 0x14], 2
call sym.txupd.exe_class_CTXStringW___cdecl_operator_class_CTXStringW_const___wchar_t_const__
add esp, 0x18
mov dword [ebp - 0x20], eax
push 6
mov dword [ebp - 4], 8
pop ebx
push esi
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x14], ebx
push eax
lea eax, [ebp - 0x2c]
mov dword [ebp + 8], ebx
push eax
call sym.txupd.exe_class_CTXStringW___cdecl_operator_class_CTXStringW_const___wchar_t_const__
add esp, 0xc
mov esi, eax
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 4], 9
call sym.txupd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
push eax
mov ecx, esi
call sym.txupd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
push eax
call fcn.004d14f3
pop ecx
pop ecx
lea ecx, [ebp - 0x2c]
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
test bl, 4
je 0x4f8637
and ebx, 0xfffffffb
lea ecx, [ebp - 0x30]
mov dword [ebp + 8], ebx
mov dword [ebp - 0x14], ebx
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
test bl, 2
je 0x4f864d
and ebx, 0xfffffffd
lea ecx, [ebp - 0x34]
mov dword [ebp + 8], ebx
mov dword [ebp - 0x14], ebx
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
mov dword [ebp - 4], 4
test bl, 1
je 0x4f866a
and ebx, 0xfffffffe
lea ecx, [ebp - 0x38]
mov dword [ebp + 8], ebx
mov dword [ebp - 0x14], ebx
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.004f5f23
cmp dword [ebp - 0x28], 0
mov ebx, 0x706f0c
pop ecx
pop ecx
jne 0x4f871e
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x38]
push eax
call sym.txupd.exe_class_CTXStringW___cdecl_operator_class_CTXStringW_const___class_CTXStringW_const__
push ebx
push eax
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 0xa
push eax
call sym.txupd.exe_class_CTXStringW___cdecl_operator_class_CTXStringW_const___wchar_t_const__
add esp, 0x18
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0xc
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
lea ecx, [ebp - 0x20]
call sym.txupd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4f8712
push ebx
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x34]
push eax
call sym.txupd.exe_class_CTXStringW___cdecl_operator_class_CTXStringW_const___wchar_t_const__
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0xd
push ecx
push eax
call fcn.004f81c9
mov ebx, eax
mov byte [ebp - 4], 0xc
add esp, 0x14
lea ecx, [ebp - 0x34]
neg ebx
sbb bl, bl
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
add bl, 1
je 0x4f870d
lea ecx, [ebp - 0x20]
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
jmp 0x4f88b6
mov ebx, 0x706f0c
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 4
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
push ebx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x34]
push eax
call sym.txupd.exe_class_CTXStringW___cdecl_operator_class_CTXStringW_const___wchar_t_const__
mov esi, eax
push ebx
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 0xe
push eax
lea eax, [ebp - 0x38]
push eax
call sym.txupd.exe_class_CTXStringW___cdecl_operator_class_CTXStringW_const___wchar_t_const__
push esi
push eax
mov byte [ebp - 4], 0xf
call fcn.004f81c9
mov ebx, eax
lea ecx, [ebp - 0x38]
add esp, 0x20
neg ebx
sbb bl, bl
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 4
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
add bl, 1
jne 0x4f88b6
mov esi, dword [ebp - 0x28]
test esi, esi
je 0x4f8790
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x34]
call sym.txupd.exe_public:_void___thiscall_CTXStringW::constructor_class_CTXStringW_const__
mov ebx, dword [ebp + 8]
mov byte [ebp - 4], 0x10
or ebx, 8
jmp 0x4f87b1
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x38]
push eax
call sym.txupd.exe_class_CTXStringW___cdecl_operator_class_CTXStringW_const___class_CTXStringW_const__
add esp, 0xc
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0x11
or ebx, 0x10
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x14], ebx
push eax
call fcn.004f8288
neg eax
pop ecx
sbb al, al
inc al
mov dword [ebp + 8], eax
pop ecx
test bl, 0x10
je 0x4f87dc
and ebx, 0xffffffef
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x14], ebx
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
mov dword [ebp - 4], 4
test bl, 8
je 0x4f87f6
and ebx, 0xfffffff7
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x14], ebx
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
cmp byte [ebp + 8], 0
je 0x4f88a2
lea eax, [ebp + 8]
mov dword [ebp + 8], str.txupd:_replace_tencent_component_file_faild___n
push eax
push 0x6f3c88
push 0x707020
push 2
push str.OwnUpdater::ReplaceUpdaterUsingNewVer
push 0xbc
push str.E:FixReplayAttackscodingTXUpdate_servicelogicOwnUpdater.cpp
call fcn.0047373e
push str.txupd:_replace_tencent_component_file_faild___n
call fcn.0047380a
add esp, 0x20
test esi, esi
je 0x4f8851
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x38]
call sym.txupd.exe_public:_void___thiscall_CTXStringW::constructor_class_CTXStringW_const__
mov byte [ebp - 4], 0x12
or ebx, 0x20
jmp 0x4f886f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 8]
push eax
call sym.txupd.exe_class_CTXStringW___cdecl_operator_class_CTXStringW_const___class_CTXStringW_const__
add esp, 0xc
mov dword [ebp - 4], 0x13
or ebx, 0x40
push eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x14], ebx
push eax
call fcn.004f88e2
pop ecx
pop ecx
test bl, 0x40
je 0x4f888e
lea ecx, [ebp + 8]
and ebx, 0xffffffbf
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
mov dword [ebp - 4], 4
test bl, 0x20
je 0x4f88a2
lea ecx, [ebp - 0x38]
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
push edi
lea ecx, [ebp - 0x24]
call sym.txupd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
push eax
call fcn.004d1868
pop ecx
xor edi, edi
pop ecx
inc edi
lea ecx, [ebp - 0x18]
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
lea ecx, [ebp - 0x24]
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
lea ecx, [ebp - 0x10]
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
lea ecx, [ebp - 0x1c]
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
mov eax, edi
jmp 0x4f88dc
xor eax, eax
call fcn.00682c27
ret