Function at 0x417e90
Capabilities:
Get common file path

Disassembly:
mov eax, 0x203c
call fcn.00530230
mov eax, dword [0x58cb30]
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 0x417fd0
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 0x417fb3
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 0x4180d5
lea eax, [esp + 0x20]
push eax
push 0
push 0x113e
push dword [ebx]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x417f7b
cmp word [edi], 0
je 0x417f6f
push 0x800
lea eax, [esp + 0x4c]
push eax
call fcn.004a1860
push 0x800
push edi
lea eax, [esp + 0x50]
push eax
call fcn.004bda80
push ebp
lea eax, [esp + 0x4c]
push eax
push edi
call fcn.004bdae0
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 0x417f18
xor al, al
mov ecx, dword [esp + 0x2048]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00530218
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 0x4180dc
cmp word [0x58d788], 0
jne 0x418030
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0x13
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
push 0x58d788
push dword [esp + 0x14]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov eax, dword [0x600948]
push dword [esp + 0x10]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x14]
mov ecx, esi
call dword [0x55770c]
call esi
mov ecx, 0x58d788
lea edx, [ecx + 2]
jmp 0x418040
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x418040
sub ecx, edx
lea eax, [esp + 0x48]
sar ecx, 1
push ecx
push eax
push 0x58d788
call fcn.0053968d
add esp, 0xc
test eax, eax
jne 0x4180b5
push 0x800
lea eax, [esp + 0x104c]
push eax
lea eax, [ebp + 4]
push eax
push ebp
push dword [esp + 0x24]
call fcn.00417bc0
test al, al
je 0x4180c3
push 0x800
lea eax, [esp + 0x104c]
push eax
lea eax, [esp + 0x50]
push eax
call fcn.004bdae0
push dword [esp + 0x205c]
lea eax, [esp + 0x4c]
push eax
push edi
call fcn.004bdae0
mov al, 1
jmp 0x417fb5
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.004bdae0
mov al, 1
jmp 0x417fb5
call fcn.00495f30
cmp eax, 0x601
jb 0x417fb3
push 0x559b58
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x417fb3
push str.SHCreateItemFromIDList
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x417fb3
lea eax, [esp + 0x18]
mov ecx, esi
push eax
push 0x559b48
push dword [ebp + 8]
call dword [0x55770c]
call esi
test eax, eax
jne 0x417fb3
mov ebp, dword [esp + 0x18]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x10]
push eax
push 0x559b38
push 1
push 0
push 0x56ed10
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ebx, eax
test ebx, ebx
js 0x4181ad
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 [0x55770c]
call esi
mov ebx, eax
test ebx, ebx
js 0x418197
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx]
mov esi, dword [eax]
lea eax, [esp + 0x14]
push eax
push 0x559b38
push ecx
mov ecx, esi
call dword [0x55770c]
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 [0x55770c]
call esi
test ebx, ebx
jne 0x417fb3
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
mov esi, dword [eax + 0x24]
lea eax, [esp + 0x1c]
push eax
push 0x559b48
push 1
push ecx
mov ecx, esi
call dword [0x55770c]
call esi
test eax, eax
jne 0x417fb3
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 [0x55770c]
call esi
test eax, eax
jne 0x417fb3
push dword [esp + 0x205c]
push dword [esp + 0x14]
push edi
call fcn.004bdae0
push dword [esp + 0x10]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov al, 1
jmp 0x417fb5