Function at 0x417e00
Capabilities:
Get common file path

Disassembly:
mov eax, 0x203c
call fcn.0052f720
mov eax, dword [0x58bb30]
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 0x417f40
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 0x417f23
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 0x418045
lea eax, [esp + 0x20]
push eax
push 0
push 0x113e
push dword [ebx]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x417eeb
cmp word [edi], 0
je 0x417edf
push 0x800
lea eax, [esp + 0x4c]
push eax
call fcn.004a0eb0
push 0x800
push edi
lea eax, [esp + 0x50]
push eax
call fcn.004bd030
push ebp
lea eax, [esp + 0x4c]
push eax
push edi
call fcn.004bd090
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 0x417e88
xor al, al
mov ecx, dword [esp + 0x2048]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0052f708
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 0x41804c
cmp word [0x58c788], 0
jne 0x417fa0
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0x13
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
push 0x58c788
push dword [esp + 0x14]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov eax, dword [0x5ff948]
push dword [esp + 0x10]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x14]
mov ecx, esi
call dword [0x55670c]
call esi
mov ecx, 0x58c788
lea edx, [ecx + 2]
jmp 0x417fb0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x417fb0
sub ecx, edx
lea eax, [esp + 0x48]
sar ecx, 1
push ecx
push eax
push 0x58c788
call fcn.00538b7d
add esp, 0xc
test eax, eax
jne 0x418025
push 0x800
lea eax, [esp + 0x104c]
push eax
lea eax, [ebp + 4]
push eax
push ebp
push dword [esp + 0x24]
call fcn.00417b30
test al, al
je 0x418033
push 0x800
lea eax, [esp + 0x104c]
push eax
lea eax, [esp + 0x50]
push eax
call fcn.004bd090
push dword [esp + 0x205c]
lea eax, [esp + 0x4c]
push eax
push edi
call fcn.004bd090
mov al, 1
jmp 0x417f25
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.004bd090
mov al, 1
jmp 0x417f25
call fcn.00495590
cmp eax, 0x601
jb 0x417f23
push 0x558b48
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x417f23
push str.SHCreateItemFromIDList
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x417f23
lea eax, [esp + 0x18]
mov ecx, esi
push eax
push 0x558b38
push dword [ebp + 8]
call dword [0x55670c]
call esi
test eax, eax
jne 0x417f23
mov ebp, dword [esp + 0x18]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x10]
push eax
push 0x558b28
push 1
push 0
push 0x56db10
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ebx, eax
test ebx, ebx
js 0x41811d
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 [0x55670c]
call esi
mov ebx, eax
test ebx, ebx
js 0x418107
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx]
mov esi, dword [eax]
lea eax, [esp + 0x14]
push eax
push 0x558b28
push ecx
mov ecx, esi
call dword [0x55670c]
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 [0x55670c]
call esi
test ebx, ebx
jne 0x417f23
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
mov esi, dword [eax + 0x24]
lea eax, [esp + 0x1c]
push eax
push 0x558b38
push 1
push ecx
mov ecx, esi
call dword [0x55670c]
call esi
test eax, eax
jne 0x417f23
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 [0x55670c]
call esi
test eax, eax
jne 0x417f23
push dword [esp + 0x205c]
push dword [esp + 0x14]
push edi
call fcn.004bd090
push dword [esp + 0x10]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov al, 1
jmp 0x417f25