Function at 0x480c70
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x5bfbff
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push ebp
push esi
push edi
mov eax, dword [0x62f570]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x64]
xor esi, esi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], esi
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::constructor_void_]
mov ebx, 1
push 0x208
lea ecx, [esp + 0x20]
mov dword [esp + 0x60], ebx
call dword [sym.imp.utilities.dll_public:_wchar_t____thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::GetBuffer_int_]
mov edi, eax
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
je 0x480cea
lea ecx, [esp + 0x1c]
push ecx
mov ecx, ebp
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::constructor_class_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits__const__]
mov dword [esp + 0x18], ebx
jmp 0x480e4a
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x24]
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::constructor_class_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits__const__]
mov byte [esp + 0x5c], 2
mov eax, dword [esp + 0x20]
cmp dword [eax - 8], esi
je 0x480d39
push ebx
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x28]
call dword [sym.imp.utilities.dll_public:_class_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits____thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::Right_int_]
mov byte [esp + 0x5c], 3
push 0x5e1594
mov ecx, eax
mov dword [esp + 0x1c], 2
call dword [sym.imp.utilities.dll_public:_int___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::Compare_wchar_t_const__const]
test eax, eax
jne 0x480d39
mov bl, 1
jmp 0x480d3b
xor bl, bl
mov dword [esp + 0x5c], 2
test byte [esp + 0x18], 2
je 0x480d59
and dword [esp + 0x18], 0xfffffffd
lea ecx, [esp + 0x28]
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::destructor_void_]
test bl, bl
je 0x480d94
mov edx, dword [esp + 0x20]
mov eax, dword [edx - 8]
dec eax
push eax
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x28]
call dword [sym.imp.utilities.dll_public:_class_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits____thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::Left_int_]
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x60], 4
call dword [sym.imp.utilities.dll_public:_class_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_____thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::operator_class_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits__const__]
lea ecx, [esp + 0x28]
mov byte [esp + 0x5c], 2
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::destructor_void_]
lea ecx, [esp + 0x24]
push ecx
push 0x11
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov edx, dword [esp + 0x24]
xor eax, eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x30]
push eax
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], 0x51
mov dword [esp + 0x34], esi
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderW]
mov esi, eax
test esi, esi
je 0x480df9
push edi
push esi
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
push 0xffffffffffffffff
lea ecx, [esp + 0x20]
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::ReleaseBuffer_int_]
mov edi, dword [sym.imp.ole32.dll_CoTaskMemFree]
test esi, esi
je 0x480e12
push esi
call edi
mov eax, dword [esp + 0x24]
test eax, eax
je 0x480e1d
push eax
call edi
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea eax, [esp + 0x1c]
push eax
mov ecx, ebp
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::constructor_class_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits__const__]
or dword [esp + 0x18], 1
lea ecx, [esp + 0x20]
mov byte [esp + 0x5c], 1
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::destructor_void_]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x5c], 0
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::destructor_void_]
mov eax, ebp
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret