Function at 0x46bf60
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53cc37
mov eax, dword fs:[0]
push eax
sub esp, 0x654
mov eax, dword [0x594624]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x630]
mov esi, dword [ebp + 0xc]
push 0x208
push 0
push eax
call fcn.004daa30
add esp, 0xc
lea eax, [ebp - 0x630]
push 0
push 0x10
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x46c2d3
mov dword [ebp - 0x654], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x650], 0
mov dword [ebp - 0x65c], 0
mov dword [ebp - 0x658], 0
lea eax, [ebp - 0x654]
mov byte [ebp - 4], 3
push eax
call dword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
test eax, eax
js 0x46c27c
lea eax, [ebp - 0x650]
push eax
push 0x56ec50
push 1
push 0
push 0x571160
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x46c27c
mov eax, dword [ebp - 0x650]
lea edx, [ebp - 0x65c]
push edx
push 0x570040
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
js 0x46c27c
mov eax, dword [ebp - 0x654]
lea edx, [ebp - 0x658]
push edx
push 0x40
push 0
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
test eax, eax
js 0x46c27c
xor eax, eax
mov dword [ebp - 0x64c], eax
test eax, eax
je 0x46c08a
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov dword [ebp - 0x64c], 0
mov eax, dword [ebp - 0x658]
lea edx, [ebp - 0x64c]
push 0
push edx
push 1
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x46c25a
mov eax, dword [ebp - 0x654]
lea edx, [ebp - 0x660]
push edx
lea edx, [ebp - 0x64c]
mov dword [ebp - 0x660], 0x10000
push edx
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0x24]
test dword [ebp - 0x660], 0x10000
je 0x46c180
push 0x20a
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.004daa30
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push dword [ebp - 0x64c]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x46c180
mov eax, dword [ebp - 0x65c]
lea edx, [ebp - 0x21c]
push 2
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
test eax, eax
js 0x46c180
push 0x20a
lea eax, [ebp - 0x428]
push 0
push eax
call fcn.004daa30
mov eax, dword [ebp - 0x650]
lea edx, [ebp - 0x428]
add esp, 0xc
mov ecx, dword [eax]
push 4
push 0
push 0x104
push edx
push eax
call dword [ecx + 0xc]
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x46c161
mov eax, dword [edi]
push dword [edi + 0x10]
push eax
lea eax, [ebp - 0x428]
push eax
call fcn.00516411
add esp, 0xc
test eax, eax
je 0x46c18b
nop dword [eax + eax]
mov eax, dword [ebp - 0x64c]
jmp 0x46c075
xor eax, eax
mov dword [ebp - 0x638], 0
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x634], 7
mov word [ebp - 0x648], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46c1b1
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x648]
call fcn.00432180
mov eax, dword [esi + 4]
mov byte [ebp - 4], 4
cmp dword [esi + 8], eax
je 0x46c231
movups xmm0, xmmword [ebp - 0x648]
lea ecx, [ebp - 0x648]
mov byte [ebp - 4], 3
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x638]
movq qword [eax + 0x10], xmm0
xor eax, eax
add dword [esi + 4], 0x18
mov dword [ebp - 0x638], 0
mov dword [ebp - 0x634], 7
mov word [ebp - 0x648], ax
call fcn.00421a70
mov eax, dword [ebp - 0x64c]
jmp 0x46c075
lea ecx, [ebp - 0x648]
push ecx
push eax
mov ecx, esi
call fcn.0042b5a0
lea ecx, [ebp - 0x648]
mov byte [ebp - 4], 3
call fcn.00421a70
mov eax, dword [ebp - 0x64c]
jmp 0x46c075
mov eax, dword [ebp - 0x64c]
test eax, eax
je 0x46c275
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov dword [ebp - 0x64c], 0
mov esi, 1
jmp 0x46c27e
xor esi, esi
mov eax, dword [ebp - 0x658]
mov byte [ebp - 4], 2
test eax, eax
je 0x46c292
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x65c]
mov byte [ebp - 4], 1
test eax, eax
je 0x46c2a6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x650]
mov byte [ebp - 4], 0
test eax, eax
je 0x46c2ba
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0x654]
mov dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x46c2d1
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00493dce
mov esp, ebp
pop ebp
ret