Function at 0x414560
Capabilities:
Get common file path

Disassembly:
mov eax, 0x203c
call fcn.00502fa0
mov eax, dword [0x5513d4]
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 0x4146a0
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 0x414683
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 0x41488a
lea eax, [esp + 0x20]
push eax
push 0
push 0x113e
push dword [ebx]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x41464b
cmp word [edi], 0
je 0x41463f
push 0x800
lea eax, [esp + 0x4c]
push eax
call fcn.004836c0
push 0x800
push edi
lea eax, [esp + 0x50]
push eax
call fcn.0049ce50
push ebp
lea eax, [esp + 0x4c]
push eax
push edi
call fcn.0049ce90
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 0x4145e8
xor al, al
mov ecx, dword [esp + 0x2048]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00502f8e
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 0x4147ac
cmp word [0x551e60], 0
jne 0x414700
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0x13
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
push 0x551e60
push dword [esp + 0x14]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov eax, dword [0x5b976c]
push dword [esp + 0x10]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x14]
mov ecx, esi
call dword [0x523720]
call esi
mov ecx, 0x551e60
lea edx, [ecx + 2]
jmp 0x414710
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x414710
sub ecx, edx
lea eax, [esp + 0x48]
sar ecx, 1
push ecx
push eax
push 0x551e60
call fcn.00509bed
add esp, 0xc
test eax, eax
jne 0x414785
push 0x800
lea eax, [esp + 0x104c]
push eax
lea eax, [ebp + 4]
push eax
push ebp
push dword [esp + 0x24]
call fcn.00414260
test al, al
je 0x414793
push 0x800
lea eax, [esp + 0x104c]
push eax
lea eax, [esp + 0x50]
push eax
call fcn.0049ce90
push dword [esp + 0x205c]
lea eax, [esp + 0x4c]
push eax
push edi
call fcn.0049ce90
mov al, 1
jmp 0x414685
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.0049ce90
mov al, 1
jmp 0x414685
call fcn.00477ef0
cmp eax, 0x601
jb 0x414683
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x414683
push str.SHCreateItemFromIDList
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x414683
lea eax, [esp + 0x14]
mov ecx, esi
push eax
push 0x525724
push dword [ebp + 8]
call dword [0x523720]
call esi
test eax, eax
jne 0x414683
lea eax, [esp + 0x18]
push eax
push 0x525714
push 0
push dword [esp + 0x20]
call fcn.004152a0
test eax, eax
jne 0x414683
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push ecx
push 0x525724
push 1
mov esi, dword [eax]
push eax
mov esi, dword [esi + 0x24]
mov ecx, esi
call dword [0x523720]
call esi
test eax, eax
jne 0x414683
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x10]
push ecx
push 0x80058000
push eax
mov esi, dword [eax]
mov esi, dword [esi + 0x14]
mov ecx, esi
call dword [0x523720]
call esi
test eax, eax
jne 0x414683
push dword [esp + 0x205c]
push dword [esp + 0x14]
push edi
call fcn.0049ce90
push dword [esp + 0x10]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov al, 1
jmp 0x414685