Function at 0x10096d00
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1024bc34
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x268
push esi
mov esi, 0x10256060
push edi
mov dword [ebp - 0x34], esi
nop dword [eax]
push 0x208
lea eax, [ebp - 0x278]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [esi]
add esp, 0xc
mov dword [ebp - 0x14], eax
cmp eax, 0xff
jge 0x10096e5f
push 0
push eax
lea eax, [ebp - 0x278]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x10096fb2
xor eax, eax
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 0x278]
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10096da0
sub ecx, edx
lea eax, [ebp - 0x278]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x30]
call fcn.1001a600
mov dword [ebp - 4], 0
mov edx, dword [0x10320928]
mov esi, edx
mov eax, dword [edx + 4]
cmp byte [eax + 0xd], 0
jne 0x10096dfd
mov ecx, dword [ebp - 0x14]
nop word [eax + eax]
cmp dword [eax + 0x10], ecx
jge 0x10096dea
mov eax, dword [eax + 8]
jmp 0x10096dee
mov esi, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x10096de0
cmp esi, edx
je 0x10096dfd
cmp ecx, dword [esi + 0x10]
jge 0x10096e20
lea eax, [ebp - 0x14]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push ecx
push eax
push ecx
call fcn.1002ca90
push eax
add eax, 0x10
push eax
push esi
lea eax, [ebp - 0x38]
push eax
call fcn.1002cac0
mov esi, dword [ebp - 0x38]
add esi, 0x14
lea eax, [ebp - 0x30]
cmp esi, eax
je 0x10096fa3
mov ecx, esi
call fcn.1001a5a0
movups xmm0, xmmword [ebp - 0x30]
xor eax, eax
mov word [ebp - 0x30], ax
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x20]
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 7
jmp 0x10096fa3
sub eax, 0x101
je 0x10096f22
sub eax, 1
je 0x10096ee0
sub eax, 1
jne 0x100970b9
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0x28
push eax
call fcn.100270c0
push eax
lea eax, [ebp - 0x30]
push eax
call sym.WMCommon.dll_public:_static_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_WM::GMFileName::GetDirectory_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__
add esp, 8
mov esi, eax
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 5
push eax
call fcn.100270c0
mov edi, eax
cmp edi, esi
je 0x10096fa3
mov ecx, edi
call fcn.1001a5a0
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [edi], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [edi + 0x10], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
jmp 0x10096fa3
push 0xb
xor eax, eax
mov dword [ebp - 0x20], 0
push str._HOMEDRIVE_
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
call fcn.1001a600
lea eax, [ebp - 0x30]
mov dword [ebp - 4], 3
push eax
lea eax, [ebp - 0x54]
push eax
call sym.WMCommon.dll_public:_static_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_WM::GMShellUtils::GetEnvironmentRealPath_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__
add esp, 8
mov esi, eax
mov byte [ebp - 4], 4
jmp 0x10096f62
push 0x11
xor eax, eax
mov dword [ebp - 0x20], 0
push str._ALLUSERSPROFILE_
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
call fcn.1001a600
lea eax, [ebp - 0x30]
mov dword [ebp - 4], 1
push eax
lea eax, [ebp - 0x54]
push eax
call sym.WMCommon.dll_public:_static_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_WM::GMShellUtils::GetEnvironmentRealPath_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__
add esp, 8
mov esi, eax
mov byte [ebp - 4], 2
lea eax, [ebp - 0x14]
push eax
call fcn.100270c0
mov edi, eax
cmp edi, esi
je 0x10096f9b
mov ecx, edi
call fcn.1001a5a0
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [edi], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [edi + 0x10], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
lea ecx, [ebp - 0x54]
call fcn.1001a5a0
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 0xffffffff
call fcn.1001a5a0
mov edx, dword [0x10320928]
mov esi, edx
mov eax, dword [edx + 4]
cmp byte [eax + 0xd], 0
jne 0x10096fe3
mov ecx, dword [ebp - 0x14]
cmp dword [eax + 0x10], ecx
jge 0x10096fd0
mov eax, dword [eax + 8]
jmp 0x10096fd4
mov esi, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x10096fc6
cmp esi, edx
je 0x10096fe3
cmp ecx, dword [esi + 0x10]
jge 0x10097006
lea eax, [ebp - 0x14]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push ecx
push eax
push ecx
call fcn.1002ca90
push eax
add eax, 0x10
push eax
push esi
lea eax, [ebp - 0x3c]
push eax
call fcn.1002cac0
mov esi, dword [ebp - 0x3c]
mov eax, dword [esi + 0x24]
add esi, 0x14
cmp eax, 2
jb 0x1009707f
mov edx, dword [esi + 0x14]
mov ecx, esi
cmp edx, 8
jb 0x1009701d
mov ecx, dword [esi]
cmp word [ecx], 0x22
jne 0x1009707f
mov ecx, esi
cmp edx, 8
jb 0x1009702c
mov ecx, dword [esi]
cmp word [ecx + eax*2 - 2], 0x22
jne 0x1009707f
add eax, 0xfffffffe
push eax
push 1
lea eax, [ebp - 0x6c]
push esi
push eax
call sym.WMCommon.dll_public:_static_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_WM::GMStringUtils::Mid_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___int__unsigned_int_
mov edi, eax
add esp, 0x10
cmp esi, edi
je 0x10097077
mov ecx, esi
call fcn.1001a5a0
movups xmm0, xmmword [edi]
xor eax, eax
movups xmmword [esi], xmm0
movq xmm0, qword [edi + 0x10]
movq qword [esi + 0x10], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
lea ecx, [ebp - 0x6c]
call fcn.1001a5a0
push 0x10267444
push esi
call sym.WMCommon.dll_public:_static_void___cdecl_WM::GMStringUtils::TrimRight_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____wchar_t_const__
push 0x5c
push 0x5c
push esi
call sym.WMCommon.dll_public:_static_void___cdecl_WM::GMStringUtils::Replace_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____wchar_t__wchar_t_
add esp, 0x14
push 0x5c
push 0x2f
push esi
call sym.WMCommon.dll_public:_static_void___cdecl_WM::GMStringUtils::Replace_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____wchar_t__wchar_t_
mov esi, dword [ebp - 0x34]
add esp, 0xc
add esi, 4
mov dword [ebp - 0x34], esi
cmp esi, 0x10256108
jl 0x10096d40
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret