Function at 0x140056240
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0xa0
mov qword [rsp + 0x90], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov rsi, rcx
xor ebx, ebx
mov dword [rax + 0x20], ebx
lea rcx, [rsp + 0x20]
call qword [sym.imp.utilities.dll_public:_void___cdecl_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::constructor_void____ptr64]
nop
mov edx, 0x208
lea rcx, [rsp + 0x20]
call qword [sym.imp.utilities.dll_public:_wchar_t____ptr64___cdecl_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::GetBuffer_int____ptr64]
mov rbp, rax
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
je 0x1400562c3
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.utilities.dll_public:_void___cdecl_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::constructor_class_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits__const____ptr64____ptr64]
mov dword [rsp + 0xd8], 1
lea rcx, [rsp + 0x20]
call qword [sym.imp.utilities.dll_public:_void___cdecl_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::destructor_void____ptr64]
mov rax, rsi
jmp 0x140056460
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x28]
call qword [sym.imp.utilities.dll_public:_void___cdecl_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::constructor_class_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits__const____ptr64____ptr64]
nop
mov rax, qword [rsp + 0x28]
cmp dword [rax - 8], 0
je 0x14005631b
mov r8d, 1
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x28]
call qword [sym.imp.utilities.dll_public:_class_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits____cdecl_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::Right_int____ptr64]
nop
mov ebx, 2
mov dword [rsp + 0xd8], ebx
lea rdx, [0x140127cc0]
mov rcx, rax
call qword [sym.imp.utilities.dll_public:_int___cdecl_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::Compare_wchar_t_const____ptr64_const___ptr64]
test eax, eax
jne 0x14005631b
mov dil, 1
jmp 0x14005631e
xor dil, dil
test bl, 2
je 0x140056338
and ebx, 0xfffffffd
mov dword [rsp + 0xd8], ebx
lea rcx, [rsp + 0x30]
call qword [sym.imp.utilities.dll_public:_void___cdecl_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::destructor_void____ptr64]
test dil, dil
je 0x140056374
mov rax, qword [rsp + 0x28]
mov r8d, dword [rax - 8]
dec r8d
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x28]
call qword [sym.imp.utilities.dll_public:_class_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits____cdecl_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::Left_int____ptr64]
nop
mov rdx, rax
lea rcx, [rsp + 0x28]
call qword [sym.imp.utilities.dll_public:_class_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_____ptr64___cdecl_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::operator_class_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits__const____ptr64____ptr64]
nop
lea rcx, [rsp + 0x30]
call qword [sym.imp.utilities.dll_public:_void___cdecl_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::destructor_void____ptr64]
lea r8, [rsp + 0x38]
mov edx, send
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
xor r11d, r11d
mov qword [rsp + 0x50], r11
mov qword [rsp + 0x58], r11
mov qword [rsp + 0x60], r11
mov qword [rsp + 0x68], r11
mov qword [rsp + 0x70], r11
mov qword [rsp + 0x78], r11
mov qword [rsp + 0x80], r11
mov qword [rsp + 0x88], r11
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x68], r11
mov dword [rsp + 0x70], 0x51
mov qword [rsp + 0x50], r11
lea rcx, [rsp + 0x50]
call qword [sym.imp.SHELL32.dll_SHBrowseForFolderW]
mov rdi, rax
test rax, rax
je 0x1400563f7
mov rdx, rbp
mov rcx, rax
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
or edx, 0xffffffff
lea rcx, [rsp + 0x20]
call qword [sym.imp.utilities.dll_public:_void___cdecl_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::ReleaseBuffer_int____ptr64]
test rdi, rdi
je 0x140056413
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140056423
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [rsp + 0x40]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.utilities.dll_public:_void___cdecl_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::constructor_class_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits__const____ptr64____ptr64]
or ebx, 1
mov dword [rsp + 0xd8], ebx
lea rcx, [rsp + 0x28]
call qword [sym.imp.utilities.dll_public:_void___cdecl_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x20]
call qword [sym.imp.utilities.dll_public:_void___cdecl_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::destructor_void____ptr64]
mov rax, rsi
mov rbx, qword [rsp + 0xc8]
add rsp, 0xa0
pop rdi
pop rsi
pop rbp
ret