Function at 0x4e2ed0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x501313
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
mov eax, dword [0x55a064]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x30], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov dword [ebp - 0x40], edi
mov byte [esi], 0
lea eax, [ebp - 0x34]
mov dword [ebp - 4], 0
push eax
push 0
push 0
push edi
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x34], 0
call sub.SHELL32.dll_SHGetKnownFolderPath
mov dword [ebp - 0x3c], eax
test eax, eax
jne 0x4e3169
lea ecx, [ebp - 0x8c]
mov dword [ebp - 4], 1
mov dword [ebp - 0xf4], 0x516634
mov dword [ebp - 0xe4], 0x51661c
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::constructor_void_]
push 0
lea eax, [ebp - 0xdc]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0xf4]
mov dword [ebp - 0x30], 3
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__::constructor_class_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t____]
mov eax, dword [ebp - 0xf4]
mov dword [ebp - 4], 3
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xf4], vtable.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, dword [ebp - 0xf4]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xf8], eax
lea ecx, [ebp - 0xdc]
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::constructor_void_]
mov dword [ebp - 0xdc], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov dword [ebp - 0xa4], 0
mov dword [ebp - 0xa0], 0
push dword [ebp - 0x34]
lea eax, [ebp - 0xe4]
mov byte [ebp - 4], 4
push eax
call fcn.004e1f30
add esp, 8
mov ecx, dword [ebp - 0xa0]
xor eax, eax
mov byte [ebp - 4], 5
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov dword [ebp - 0x30], 0xb
test cl, 2
jne 0x4e305a
mov eax, dword [ebp - 0xbc]
mov edx, dword [eax]
test edx, edx
je 0x4e305a
cmp edx, dword [ebp - 0xa4]
mov eax, dword [ebp - 0xcc]
cmovb edx, dword [ebp - 0xa4]
mov ecx, dword [eax]
sub edx, ecx
sar edx, 1
push edx
jmp 0x4e3084
test cl, 4
jne 0x4e308d
mov eax, dword [ebp - 0xc0]
mov edx, dword [eax]
test edx, edx
je 0x4e308d
mov eax, dword [ebp - 0xd0]
mov ecx, dword [eax]
mov eax, dword [ebp - 0xb0]
mov eax, dword [eax]
add eax, eax
sub eax, ecx
add eax, edx
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0x2c]
call fcn.0042ff90
mov dword [ebp - 4], 4
mov dword [ebp - 0x30], 7
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 6
push esi
push eax
call dword [sym.imp.PocoFoundation.dll_public:_static_void___cdecl_Poco::UnicodeConverter::convert_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char____]
mov eax, dword [ebp - 0x18]
add esp, 8
cmp eax, 8
jb 0x4e30c8
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x2c]
call fcn.00418150
add esp, 8
mov eax, dword [ebp - 0xf4]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xf4], vtable.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, dword [ebp - 0xf4]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xf8], eax
lea ecx, [ebp - 0xdc]
call fcn.0047f660
lea ecx, [ebp - 0xd4]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__::destructor_void_]
lea ecx, [ebp - 0x8c]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::destructor_void_]
push dword [ebp - 0x34]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x4e31aa
lea eax, [ebp - 0x2c]
push edi
push eax
call fcn.004e31d0
add esp, 8
lea ecx, [ebp - 0x3c]
push ecx
push eax
sub esp, 8
mov eax, esp
mov dword [eax], str.Failed_to_get_known_directory_path_for_Folder_ID___error_.
mov dword [eax + 4], 0x40
call fcn.004e2120
mov eax, dword [ebp - 0x18]
add esp, 0x10
cmp eax, 0x10
jb 0x4e31aa
inc eax
push eax
push dword [ebp - 0x2c]
call fcn.00418150
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004e9056
mov esp, ebp
pop ebp
ret