Function at 0x4152b0
Capabilities:
Get common file path

Disassembly:
mov eax, 0x203c
call fcn.0051dcc0
mov eax, dword [0x572844]
xor eax, esp
mov dword [esp + 0x2038], eax
mov eax, dword [esp + 0x2040]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x2050]
mov ebx, ecx
mov dword [esp + 0x10], eax
xor eax, eax
push edi
mov edi, dword [esp + 0x2058]
mov ebp, dword [esi + 0x24]
test ebp, ebp
jne 0x4153f0
mov word [edi], ax
lea eax, [esp + 0x48]
mov esi, dword [esi + 4]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x20]
push eax
push ebp
push 0x113e
push dword [ebx]
mov dword [esp + 0x30], 1
mov dword [esp + 0x34], esi
mov dword [esp + 0x44], 0x800
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x4153d3
mov ebp, dword [esp + 0x205c]
push esi
push 3
push 0x110a
push dword [ebx]
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, eax
test esi, esi
je 0x4154f5
lea eax, [esp + 0x20]
push eax
push 0
push 0x113e
push dword [ebx]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x41539b
cmp word [edi], 0
je 0x41538f
push 0x800
lea eax, [esp + 0x4c]
push eax
call fcn.00493970
push 0x800
push edi
lea eax, [esp + 0x50]
push eax
call fcn.004b0300
push ebp
lea eax, [esp + 0x4c]
push eax
push edi
call fcn.004b0360
lea eax, [esp + 0x48]
mov dword [esp + 0x20], 1
mov dword [esp + 0x30], eax
lea eax, [esp + 0x20]
push eax
push 0
push 0x113e
push dword [ebx]
mov dword [esp + 0x34], esi
mov dword [esp + 0x44], 0x800
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jne 0x415338
xor al, al
mov ecx, dword [esp + 0x2048]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0051dca8
add esp, 0x203c
ret 0x10
mov word [esp + 0x48], ax
lea eax, [esp + 0x48]
push eax
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x4154fc
cmp word [0x573478], 0
jne 0x415450
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0x13
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
push 0x573478
push dword [esp + 0x14]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov eax, dword [0x5e3c10]
push dword [esp + 0x10]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x14]
mov ecx, esi
call dword [0x541740]
call esi
mov ecx, 0x573478
lea edx, [ecx + 2]
jmp 0x415460
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x415460
sub ecx, edx
lea eax, [esp + 0x48]
sar ecx, 1
push ecx
push eax
push 0x573478
call fcn.00526778
add esp, 0xc
test eax, eax
jne 0x4154d5
push 0x800
lea eax, [esp + 0x104c]
push eax
lea eax, [ebp + 4]
push eax
push ebp
push dword [esp + 0x24]
call fcn.00414fe0
test al, al
je 0x4154e3
push 0x800
lea eax, [esp + 0x104c]
push eax
lea eax, [esp + 0x50]
push eax
call fcn.004b0360
push dword [esp + 0x205c]
lea eax, [esp + 0x4c]
push eax
push edi
call fcn.004b0360
mov al, 1
jmp 0x4153d5
lea eax, [esp + 0x48]
push eax
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
push dword [esp + 0x205c]
lea eax, [esp + 0x4c]
push eax
push edi
call fcn.004b0360
mov al, 1
jmp 0x4153d5
call fcn.004881b0
cmp eax, 0x601
jb 0x4153d3
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4153d3
push str.SHCreateItemFromIDList
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x4153d3
lea eax, [esp + 0x18]
mov ecx, esi
push eax
push 0x543ae0
push dword [ebp + 8]
call dword [0x541740]
call esi
test eax, eax
jne 0x4153d3
mov ebp, dword [esp + 0x18]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x10]
push eax
push 0x543ad0
push 1
push 0
push 0x557b44
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ebx, eax
test ebx, ebx
js 0x4155cd
mov ecx, dword [esp + 0x10]
push 0
push ebp
push ecx
mov eax, dword [ecx]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x541740]
call esi
mov ebx, eax
test ebx, ebx
js 0x4155b7
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx]
mov esi, dword [eax]
lea eax, [esp + 0x14]
push eax
push 0x543ad0
push ecx
mov ecx, esi
call dword [0x541740]
call esi
mov ebx, eax
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x541740]
call esi
test ebx, ebx
jne 0x4153d3
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
mov esi, dword [eax + 0x24]
lea eax, [esp + 0x1c]
push eax
push 0x543ae0
push 1
push ecx
mov ecx, esi
call dword [0x541740]
call esi
test eax, eax
jne 0x4153d3
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx]
mov esi, dword [eax + 0x14]
lea eax, [esp + 0x10]
push eax
push 0x80058000
push ecx
mov ecx, esi
call dword [0x541740]
call esi
test eax, eax
jne 0x4153d3
push dword [esp + 0x205c]
push dword [esp + 0x14]
push edi
call fcn.004b0360
push dword [esp + 0x10]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov al, 1
jmp 0x4153d5