Function at 0x414510
Capabilities:
Get common file path

Disassembly:
sub esp, 0x78
mov eax, dword [0x493008]
xor eax, esp
mov dword [esp + 0x74], eax
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push edi
mov edi, dword [0x561b84]
push 0
push 0
push 0xb
push edi
mov dword [esp + 0x20], 0
call ebx
push 0
push 0
push 0x14b
push edi
call ebx
lea eax, [esp + 0x18]
mov dword [esp + 0x48], 0
xorps xmm0, xmm0
mov dword [esp + 0x64], 0
push eax
movlpd qword [esp + 0x60], xmm0
movaps xmm0, xmmword [0x48e780]
push 0x11
push edi
mov dword [esp + 0x50], 0x27
movups xmmword [esp + 0x58], xmm0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x414740
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
test eax, eax
jne 0x414734
mov eax, dword [esp + 0x1c]
lea edx, [esp + 8]
push edx
push 0x47f4fc
push 0
mov ecx, dword [eax]
push dword [esp + 0x24]
push eax
mov eax, dword [ecx + 0x14]
call eax
test eax, eax
jne 0x41472a
mov eax, dword [esp + 8]
lea edx, [esp + 0x14]
push edx
push 0x20
push edi
mov ecx, dword [eax]
push eax
mov eax, dword [ecx + 0x10]
call eax
test eax, eax
jne 0x41471e
mov eax, dword [esp + 0x14]
lea edx, [esp + 0xc]
push 0
push edx
push 1
mov ecx, dword [eax]
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
jne 0x414712
push ebp
mov ebp, dword [sym.imp.ole32.dll_CoTaskMemAlloc]
push esi
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x1c], 0x40000000
lea edx, [esp + 0x18]
push edx
mov ecx, dword [eax]
push 1
push eax
mov eax, dword [ecx + 0x24]
call eax
test dword [esp + 0x18], 0x40000000
je 0x4146f3
push 0x14
lea eax, [esp + 0x74]
push eax
push 3
push dword [esp + 0x20]
push dword [esp + 0x20]
call dword [sym.imp.SHELL32.dll_SHGetDataFromIDListW]
test eax, eax
jne 0x41465d
mov eax, dword [esp + 0x70]
add eax, 0xfffffffb
cmp eax, 7
ja 0x4146f3
push 8
call ebp
mov esi, eax
test esi, esi
je 0x4146f3
mov ecx, dword [esp + 0x14]
mov dword [esi], ecx
mov ecx, dword [esp + 0x10]
mov dword [esi + 4], ecx
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 4]
call eax
lea eax, [esp + 0x28]
mov dword [esp + 0x28], 0x20
push eax
push 0
push 0x40d
push edi
mov dword [esp + 0x3c], 0
call ebx
test eax, eax
je 0x4146d8
mov eax, dword [esp + 0x48]
mov ecx, dword [esi + 4]
push dword [eax]
mov edx, dword [ecx]
push dword [esi]
push 0
mov eax, dword [edx + 0x1c]
push ecx
call eax
test ax, ax
js 0x4146d8
inc dword [esp + 0x2c]
lea eax, [esp + 0x28]
push eax
push 0
push 0x40d
push edi
call ebx
test eax, eax
jne 0x4146a7
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x50], eax
lea eax, [esp + 0x4c]
push eax
push 0
push 0x40b
push edi
mov dword [esp + 0x7c], esi
call ebx
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x14]
push 0
push edx
push 1
mov ecx, dword [eax]
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
je 0x414604
pop esi
pop ebp
mov eax, dword [esp + 0x14]
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 8]
call eax
mov eax, dword [esp + 8]
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 8]
call eax
push dword [esp + 0x18]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [esp + 0x1c]
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 8]
call eax
push 0
push 1
push 0xb
push edi
call ebx
push 0
push 0
push 0x146
push edi
call ebx
mov ecx, dword [esp + 0x7c]
pop edi
pop ebx
xor ecx, esp
call fcn.00422d0c
add esp, 0x78
ret