Function at 0x4aa5ff
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x640
push ebx
push esi
push edi
mov edi, 0x206
xor esi, esi
push edi
lea eax, [ebp - 0x22a]
push esi
push eax
mov word [ebp - 0x22c], si
call sub.MSVCR80.dll_memset
add esp, 0xc
push edi
lea eax, [ebp - 0x63a]
push esi
push eax
mov word [ebp - 0x63c], si
call sub.MSVCR80.dll_memset
mov ebx, dword [sym.imp.MSVCR80.dll_wcsncpy]
add esp, 0xc
mov esi, 0x103
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x22c]
push eax
call ebx
add esp, 0xc
push dword [ebp + 0xc]
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push esi
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x63c]
push eax
call ebx
add esp, 0xc
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x63c]
call fcn.004a8bb4
lea eax, [ebp - 0x22c]
test eax, eax
je 0x4aa6c5
push eax
call fcn.004aa0ca
test eax, eax
je 0x4aa6c5
push 0x104
lea eax, [ebp - 0x22c]
push eax
push dword [ebp + 0x10]
call ebx
add esp, 0xc
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x20]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
push str..exe
lea ecx, [ebp - 0x20]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
cmp dword [ebp - 8], 8
mov eax, dword [ebp - 0x1c]
jae 0x4aa6ef
lea eax, [ebp - 0x1c]
test eax, eax
je 0x4aa722
push eax
call fcn.004aa0ca
test eax, eax
je 0x4aa722
cmp dword [ebp - 8], 8
mov eax, dword [ebp - 0x1c]
jae 0x4aa709
lea eax, [ebp - 0x1c]
push 0x104
push eax
push dword [ebp + 0x10]
call ebx
add esp, 0xc
lea ecx, [ebp - 0x20]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
jmp 0x4aa6bb
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x20]
call dword [0x4d95ec]
push str..dll
lea ecx, [ebp - 0x20]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
cmp dword [ebp - 8], 8
mov eax, dword [ebp - 0x1c]
jae 0x4aa74c
lea eax, [ebp - 0x1c]
test eax, eax
je 0x4aa75a
push eax
call fcn.004aa0ca
test eax, eax
jne 0x4aa6fd
push str..fon
push dword [ebp + 0xc]
call dword [sym.imp.MSVCR80.dll_wcsstr]
test eax, eax
pop ecx
pop ecx
je 0x4aa823
and word [ebp - 0x434], 0
push edi
lea eax, [ebp - 0x432]
push 0
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x104
lea eax, [ebp - 0x434]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov edi, dword [sym.imp.MSVCR80.dll_wcslen]
lea eax, [ebp - 0x434]
push eax
call edi
pop ecx
mov ecx, esi
sub ecx, eax
push ecx
lea eax, [ebp - 0x434]
push str._fonts_
push eax
call dword [sym.imp.MSVCR80.dll_wcsncat]
lea eax, [ebp - 0x434]
add esp, 0xc
push eax
call edi
pop ecx
sub esi, eax
push esi
push dword [ebp + 0xc]
lea eax, [ebp - 0x434]
push eax
call dword [sym.imp.MSVCR80.dll_wcsncat]
lea eax, [ebp - 0x434]
add esp, 0xc
test eax, eax
je 0x4aa823
push eax
call fcn.004aa0ca
test eax, eax
je 0x4aa823
push 0x104
lea eax, [ebp - 0x434]
push eax
push dword [ebp + 0x10]
call ebx
xor esi, esi
add esp, 0xc
inc esi
lea ecx, [ebp - 0x20]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, esi
jmp 0x4aa6be
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 0x22c]
push eax
call fcn.004aa916
mov esi, eax
jmp 0x4aa813