Function at 0x46f3c0
Capabilities:
Get common file path

Disassembly:
push 0x14
mov eax, 0x4d2b5d
call fcn.004cbc30
push 0x5c
push dword [ebp + 8]
call dword [sym.imp.MSVCR80.dll_wcschr]
test eax, eax
pop ecx
pop ecx
jne 0x46f558
cmp word [0x52c8e8], ax
mov ebx, 0x52c8e8
mov edi, 0x52c0e8
jne 0x46f46a
mov esi, 0x400
push esi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x5c
push ebx
call dword [sym.imp.MSVCR80.dll_wcsrchr]
test eax, eax
pop ecx
pop ecx
je 0x46f416
and word [eax + 2], 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jbe 0x46f43e
add eax, eax
lea ecx, [eax + 0x52c0e8]
cmp word [ecx - 2], 0x5c
je 0x46f43e
and word [eax + 0x52c0ea], 0
mov word [ecx], 0x5c
push esi
push 0x52b8e8
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jbe 0x46f46a
add eax, eax
lea ecx, [eax + 0x52b8e8]
cmp word [ecx - 2], 0x5c
je 0x46f46a
and word [eax + 0x52b8ea], 0
mov word [ecx], 0x5c
push edi
lea ecx, [ebp - 0x18]
call sym.QQProtectUpd.exe_public:_void___thiscall_CTXStringW::constructor_wchar_t__
push dword [ebp + 8]
and dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x14]
push eax
call sym.QQProtectUpd.exe_class_CTXStringW___cdecl_operator_class_CTXStringW_const___wchar_t_const__
add esp, 0xc
push dword [ebp + 0xc]
mov ecx, eax
call sym.QQProtectUpd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
mov esi, dword [sym.imp.ole32.dll_CoLoadLibrary]
push eax
call esi
mov edi, eax
test edi, edi
lea ecx, [ebp - 0x14]
sete byte [ebp - 0xd]
call sym.QQProtectUpd.exe_public:_void___thiscall_CTXStringW::destructor_void_
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call sym.QQProtectUpd.exe_public:_void___thiscall_CTXStringW::destructor_void_
cmp byte [ebp - 0xd], 0
je 0x46f566
push 0x52b8e8
lea ecx, [ebp - 0x14]
call sym.QQProtectUpd.exe_public:_void___thiscall_CTXStringW::constructor_wchar_t__
push dword [ebp + 8]
mov dword [ebp - 4], 1
push eax
lea eax, [ebp - 0x18]
push eax
call sym.QQProtectUpd.exe_class_CTXStringW___cdecl_operator_class_CTXStringW_const___wchar_t_const__
add esp, 0xc
push dword [ebp + 0xc]
mov ecx, eax
call sym.QQProtectUpd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
push eax
call esi
mov edi, eax
test edi, edi
lea ecx, [ebp - 0x18]
sete byte [ebp - 0xd]
call sym.QQProtectUpd.exe_public:_void___thiscall_CTXStringW::destructor_void_
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call sym.QQProtectUpd.exe_public:_void___thiscall_CTXStringW::destructor_void_
cmp byte [ebp - 0xd], 0
je 0x46f566
push ebx
lea ecx, [ebp - 0x20]
call sym.QQProtectUpd.exe_public:_void___thiscall_CTXStringW::constructor_wchar_t__
push dword [ebp + 8]
mov dword [ebp - 4], 2
push eax
lea eax, [ebp - 0x1c]
push eax
call sym.QQProtectUpd.exe_class_CTXStringW___cdecl_operator_class_CTXStringW_const___wchar_t_const__
add esp, 0xc
push dword [ebp + 0xc]
mov ecx, eax
call sym.QQProtectUpd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
push eax
call esi
lea ecx, [ebp - 0x1c]
mov edi, eax
call sym.QQProtectUpd.exe_public:_void___thiscall_CTXStringW::destructor_void_
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call sym.QQProtectUpd.exe_public:_void___thiscall_CTXStringW::destructor_void_
jmp 0x46f566
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ole32.dll_CoLoadLibrary]
mov edi, eax
mov eax, edi
call fcn.004cbd08
ret