Function at 0x4146f0
Capabilities:
Get common file path

Disassembly:
mov eax, 0x203c
call fcn.00507730
mov eax, dword [0x5755c4]
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 0x414830
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 0x414813
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 0x414a1a
lea eax, [esp + 0x20]
push eax
push 0
push 0x113e
push dword [ebx]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x4147db
cmp word [edi], 0
je 0x4147cf
push 0x800
lea eax, [esp + 0x4c]
push eax
call fcn.00484610
push 0x800
push edi
lea eax, [esp + 0x50]
push eax
call fcn.0049dbe0
push ebp
lea eax, [esp + 0x4c]
push eax
push edi
call fcn.0049dc20
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 0x414778
xor al, al
mov ecx, dword [esp + 0x2048]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00507712
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 0x41493c
cmp word [0x577338], 0
jne 0x414890
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0x13
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
push 0x577338
push dword [esp + 0x14]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov eax, dword [0x5e4c48]
push dword [esp + 0x10]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x14]
mov ecx, esi
call dword [0x540780]
call esi
mov ecx, 0x577338
lea edx, [ecx + 2]
jmp 0x4148a0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4148a0
sub ecx, edx
lea eax, [esp + 0x48]
sar ecx, 1
push ecx
push eax
push 0x577338
call fcn.0052595a
add esp, 0xc
test eax, eax
jne 0x414915
push 0x800
lea eax, [esp + 0x104c]
push eax
lea eax, [ebp + 4]
push eax
push ebp
push dword [esp + 0x24]
call fcn.004143f0
test al, al
je 0x414923
push 0x800
lea eax, [esp + 0x104c]
push eax
lea eax, [esp + 0x50]
push eax
call fcn.0049dc20
push dword [esp + 0x205c]
lea eax, [esp + 0x4c]
push eax
push edi
call fcn.0049dc20
mov al, 1
jmp 0x414815
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.0049dc20
mov al, 1
jmp 0x414815
call fcn.00478e40
cmp eax, 0x601
jb 0x414813
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x414813
push str.SHCreateItemFromIDList
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x414813
lea eax, [esp + 0x14]
mov ecx, esi
push eax
push 0x542d50
push dword [ebp + 8]
call dword [0x540780]
call esi
test eax, eax
jne 0x414813
lea eax, [esp + 0x18]
push eax
push 0x542d40
push 0
push dword [esp + 0x20]
call fcn.00415430
test eax, eax
jne 0x414813
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push ecx
push 0x542d50
push 1
mov esi, dword [eax]
push eax
mov esi, dword [esi + 0x24]
mov ecx, esi
call dword [0x540780]
call esi
test eax, eax
jne 0x414813
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 [0x540780]
call esi
test eax, eax
jne 0x414813
push dword [esp + 0x205c]
push dword [esp + 0x14]
push edi
call fcn.0049dc20
push dword [esp + 0x10]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov al, 1
jmp 0x414815