Function at 0x46f21e
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 0x46f3ad
cmp word [0x52b0e8], ax
mov ebx, 0x52b0e8
mov edi, 0x52a8e8
jne 0x46f2c8
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 0x46f274
and word [eax + 2], 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jbe 0x46f29c
add eax, eax
lea ecx, [eax + 0x52a8e8]
cmp word [ecx - 2], 0x5c
je 0x46f29c
and word [eax + 0x52a8ea], 0
mov word [ecx], 0x5c
push esi
push 0x52a0e8
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jbe 0x46f2c8
add eax, eax
lea ecx, [eax + 0x52a0e8]
cmp word [ecx - 2], 0x5c
je 0x46f2c8
and word [eax + 0x52a0ea], 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
mov ecx, eax
call sym.QQProtectUpd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
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 0x46f3b8
push 0x52a0e8
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
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 0x46f3b8
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
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 0x46f3b8
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
mov eax, edi
call fcn.004cbd08
ret