Function at 0x46f08a
Capabilities:
Get common file path

Disassembly:
push 0x14
mov eax, 0x4d2b2a
call fcn.004cbc30
push 0x5c
push dword [ebp + 8]
call dword [sym.imp.MSVCR80.dll_strchr]
test eax, eax
pop ecx
pop ecx
jne 0x46f20b
cmp byte [0x529ce8], al
mov ebx, 0x529ce8
mov edi, 0x5298e8
jne 0x46f126
mov esi, 0x400
push esi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x5c
push ebx
call dword [sym.imp.MSVCR80.dll_strrchr]
test eax, eax
pop ecx
pop ecx
je 0x46f0de
mov byte [eax + 1], 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jbe 0x46f100
lea ecx, [eax + 0x5298e8]
cmp byte [ecx - 1], 0x5c
je 0x46f100
mov byte [ecx], 0x5c
mov byte [eax + 0x5298e9], 0
push esi
push 0x5294e8
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jbe 0x46f126
lea ecx, [eax + 0x5294e8]
cmp byte [ecx - 1], 0x5c
je 0x46f126
mov byte [ecx], 0x5c
mov byte [eax + 0x5294e9], 0
push edi
lea ecx, [ebp - 0x18]
call sym.QQProtectUpd.exe_public:_void___thiscall_CTXStringA::constructor_char_const__
push dword [ebp + 8]
and dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x14]
push eax
call sym.QQProtectUpd.exe_class_CTXStringA___cdecl_operator_class_CTXStringA_const___char_const__
add esp, 0xc
mov ecx, eax
call sym.QQProtectUpd.exe_public:_char_const____thiscall_CTXStringA::operator_char_const__void_const
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
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_CTXStringA::destructor_void_
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call sym.QQProtectUpd.exe_public:_void___thiscall_CTXStringA::destructor_void_
cmp byte [ebp - 0xd], 0
je 0x46f216
push 0x5294e8
lea ecx, [ebp - 0x14]
call sym.QQProtectUpd.exe_public:_void___thiscall_CTXStringA::constructor_char_const__
push dword [ebp + 8]
mov dword [ebp - 4], 1
push eax
lea eax, [ebp - 0x18]
push eax
call sym.QQProtectUpd.exe_class_CTXStringA___cdecl_operator_class_CTXStringA_const___char_const__
add esp, 0xc
mov ecx, eax
call sym.QQProtectUpd.exe_public:_char_const____thiscall_CTXStringA::operator_char_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_CTXStringA::destructor_void_
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call sym.QQProtectUpd.exe_public:_void___thiscall_CTXStringA::destructor_void_
cmp byte [ebp - 0xd], 0
je 0x46f216
push ebx
lea ecx, [ebp - 0x20]
call sym.QQProtectUpd.exe_public:_void___thiscall_CTXStringA::constructor_char_const__
push dword [ebp + 8]
mov dword [ebp - 4], 2
push eax
lea eax, [ebp - 0x1c]
push eax
call sym.QQProtectUpd.exe_class_CTXStringA___cdecl_operator_class_CTXStringA_const___char_const__
add esp, 0xc
mov ecx, eax
call sym.QQProtectUpd.exe_public:_char_const____thiscall_CTXStringA::operator_char_const__void_const
push eax
call esi
lea ecx, [ebp - 0x1c]
mov edi, eax
call sym.QQProtectUpd.exe_public:_void___thiscall_CTXStringA::destructor_void_
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call sym.QQProtectUpd.exe_public:_void___thiscall_CTXStringA::destructor_void_
jmp 0x46f216
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
mov eax, edi
call fcn.004cbd08
ret