Function at 0x405080
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4331a4
mov eax, dword fs:[0]
push eax
sub esp, 0x42c
mov eax, dword [0x44800c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [ebp - 0x424]
mov dword [ebp - 0x42c], 0
push eax
push 0x1a
push 0
mov dword [ebp - 0x424], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00420c30
mov eax, dword [ebp - 0x424]
add esp, 0xc
test eax, eax
je 0x4052b8
lea ecx, [ebp - 0x218]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x4052b8
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.00420c30
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x104
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
mov ebx, dword [sym.imp.LxBase.dll_allocStringFromWideChars]
lea eax, [ebp - 0x420]
push eax
call ebx
mov esi, eax
mov byte [ebp - 0x42c], 1
add esp, 4
mov dword [ebp - 0x430], esi
mov dword [ebp - 4], 0
mov ecx, dword [edi]
test ecx, ecx
je 0x405174
mov edx, dword [ecx]
call dword [edx + 0x98]
mov dword [edi], esi
mov byte [edi + 4], 1
push 0x440600
call ebx
mov esi, eax
mov byte [ebp - 0x434], 1
add esp, 4
mov dword [ebp - 0x438], esi
mov dword [ebp - 4], 2
test esi, esi
jne 0x4051a6
mov dword [ebp - 0x428], eax
jmp 0x4051c6
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x38]
mov edx, dword [esi]
mov ecx, esi
mov dword [ebp - 0x42c], eax
call dword [edx + 0x44]
mov dword [ebp - 0x428], eax
mov eax, dword [ebp - 0x42c]
mov ecx, dword [edi]
push eax
push 0
push dword [ebp - 0x428]
mov edx, dword [ecx]
call dword [edx + 0x5c]
mov dword [ebp - 4], 3
test esi, esi
je 0x4051eb
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x98]
push 0x440590
call ebx
mov esi, eax
mov byte [ebp - 0x434], 1
add esp, 4
mov dword [ebp - 0x438], esi
mov dword [ebp - 4], 4
test esi, esi
jne 0x405217
mov dword [ebp - 0x428], eax
jmp 0x405237
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x38]
mov edx, dword [esi]
mov ecx, esi
mov dword [ebp - 0x42c], eax
call dword [edx + 0x44]
mov dword [ebp - 0x428], eax
mov eax, dword [ebp - 0x42c]
mov ecx, dword [edi]
push eax
push 0
push dword [ebp - 0x428]
mov edx, dword [ecx]
call dword [edx + 0x5c]
mov dword [ebp - 4], 5
test esi, esi
je 0x40525c
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x98]
push str.WebCache
call ebx
mov esi, eax
mov byte [ebp - 0x434], 1
add esp, 4
mov dword [ebp - 0x438], esi
mov dword [ebp - 4], 6
test esi, esi
jne 0x405284
xor ebx, ebx
jmp 0x405294
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x38]
mov edx, dword [esi]
mov ecx, esi
mov ebx, eax
call dword [edx + 0x44]
mov ecx, dword [edi]
push ebx
push 0
push eax
mov edx, dword [ecx]
call dword [edx + 0x5c]
mov dword [ebp - 4], 7
test esi, esi
je 0x4052b4
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x98]
mov al, 1
jmp 0x4052ba
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00408856
mov esp, ebp
pop ebp
ret