Function at 0x40db60
Capabilities:
Get common file path

Disassembly:
mov eax, 0x1044
call fcn.004a5e30
mov eax, dword [0x4c4004]
xor eax, esp
mov dword [esp + 0x1040], eax
push ebx
push ebp
push esi
push edi
push 0x2780
push dword [0x4def88]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
xor eax, eax
push 0x7fe
push eax
mov word [esp + 0x58], ax
lea eax, [esp + 0x5a]
push eax
call fcn.0048e880
mov ebx, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
lea eax, [esp + 0x1c]
add esp, 0xc
push eax
push 0x24
push 0
call ebx
mov ebp, dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jne 0x40dc62
lea eax, [esp + 0x50]
push eax
push dword [esp + 0x14]
call ebp
push 0
push 0
push 0x1004
push esi
call edi
mov dword [0x4cf8b8], eax
lea eax, [esp + 0x50]
push str.Logs
push eax
mov dword [0x4cf8d0], 0
call dword [sym.imp.SHLWAPI.dll_StrCatW]
push 0x4cf8b4
push 0
push 0x104d
lea eax, [esp + 0x5c]
push esi
mov dword [0x4cf8c8], eax
call edi
lea eax, [esp + 0x14]
mov dword [esp + 0x1c], 1
push eax
push dword [0x4cf8b8]
mov dword [esp + 0x30], str._Windows_Logs
push 0x1074
push esi
call edi
lea eax, [esp + 0x14]
mov dword [esp + 0x1c], 2
push eax
push dword [0x4cf8b8]
mov dword [esp + 0x30], 0x4ad0e0
push 0x1074
push esi
call edi
lea eax, [esp + 0x10]
push eax
push 0x25
push 0
call ebx
test eax, eax
jne 0x40dd09
lea eax, [esp + 0x50]
push eax
push dword [esp + 0x14]
call ebp
push 0
push 0
push 0x1004
push esi
call edi
mov dword [0x4cf8b8], eax
lea eax, [esp + 0x50]
push str.WDILogFiles
push eax
mov dword [0x4cf8d0], 0
call dword [sym.imp.SHLWAPI.dll_StrCatW]
push 0x4cf8b4
push 0
push 0x104d
lea eax, [esp + 0x5c]
push esi
mov dword [0x4cf8c8], eax
call edi
lea eax, [esp + 0x14]
mov dword [esp + 0x1c], 1
push eax
push dword [0x4cf8b8]
mov dword [esp + 0x30], str._WDI_Log_Files
push 0x1074
push esi
call edi
lea eax, [esp + 0x14]
mov dword [esp + 0x1c], 2
push eax
push dword [0x4cf8b8]
mov dword [esp + 0x30], 0x4ad0e0
push 0x1074
push esi
call edi
lea eax, [esp + 0x10]
push eax
push 0x1c
push 0
call ebx
test eax, eax
jne 0x40ddb0
lea eax, [esp + 0x50]
push eax
push dword [esp + 0x14]
call ebp
push 0
push 0
push 0x1004
push esi
call edi
mov dword [0x4cf8b8], eax
lea eax, [esp + 0x50]
push str.MicrosoftOneDrive_setuplogs
push eax
mov dword [0x4cf8d0], 0
call dword [sym.imp.SHLWAPI.dll_StrCatW]
push 0x4cf8b4
push 0
push 0x104d
lea eax, [esp + 0x5c]
push esi
mov dword [0x4cf8c8], eax
call edi
lea eax, [esp + 0x14]
mov dword [esp + 0x1c], 1
push eax
push dword [0x4cf8b8]
mov dword [esp + 0x30], str._OneDrive_Logs
push 0x1074
push esi
call edi
lea eax, [esp + 0x14]
mov dword [esp + 0x1c], 2
push eax
push dword [0x4cf8b8]
mov dword [esp + 0x30], 0x4ad0e0
push 0x1074
push esi
call edi
lea eax, [esp + 0x10]
push eax
push 0x1c
push 0
call ebx
test eax, eax
jne 0x40de57
lea eax, [esp + 0x50]
push eax
push dword [esp + 0x14]
call ebp
push 0
push 0
push 0x1004
push esi
call edi
mov dword [0x4cf8b8], eax
lea eax, [esp + 0x50]
push str.MicrosoftWindowsWebCache
push eax
mov dword [0x4cf8d0], 0
call dword [sym.imp.SHLWAPI.dll_StrCatW]
push 0x4cf8b4
push 0
push 0x104d
lea eax, [esp + 0x5c]
push esi
mov dword [0x4cf8c8], eax
call edi
lea eax, [esp + 0x14]
mov dword [esp + 0x1c], 1
push eax
push dword [0x4cf8b8]
mov dword [esp + 0x30], str._Web_Cache
push 0x1074
push esi
call edi
lea eax, [esp + 0x14]
mov dword [esp + 0x1c], 2
push eax
push dword [0x4cf8b8]
mov dword [esp + 0x30], 0x4ad0e0
push 0x1074
push esi
call edi
lea eax, [esp + 0x10]
push eax
push 0x21
push 0
call ebx
test eax, eax
jne 0x40def9
lea eax, [esp + 0x50]
push eax
push dword [esp + 0x14]
call ebp
push 0
push 0
push 0x1004
push esi
call edi
push 0x4cf8b4
push 0
mov dword [0x4cf8b8], eax
lea eax, [esp + 0x58]
push 0x104d
push esi
mov dword [0x4cf8d0], 0
mov dword [0x4cf8c8], eax
call edi
mov edx, 0x4adbf8
mov dword [esp + 0x1c], 1
mov ecx, str.FILE
call fcn.00477440
mov dword [esp + 0x28], eax
lea eax, [esp + 0x14]
push eax
push dword [0x4cf8b8]
push 0x1074
push esi
call edi
lea eax, [esp + 0x14]
mov dword [esp + 0x1c], 2
push eax
push dword [0x4cf8b8]
mov dword [esp + 0x30], 0x4ad0e0
push 0x1074
push esi
call edi
lea eax, [esp + 0x10]
push eax
push 0x22
push 0
call ebx
test eax, eax
jne 0x40df9b
lea eax, [esp + 0x50]
push eax
push dword [esp + 0x14]
call ebp
push 0
push 0
push 0x1004
push esi
call edi
push 0x4cf8b4
push 0
mov dword [0x4cf8b8], eax
lea eax, [esp + 0x58]
push 0x104d
push esi
mov dword [0x4cf8d0], 0
mov dword [0x4cf8c8], eax
call edi
mov edx, 0x4adc00
mov dword [esp + 0x1c], 1
mov ecx, str.FILE
call fcn.00477440
mov dword [esp + 0x28], eax
lea eax, [esp + 0x14]
push eax
push dword [0x4cf8b8]
push 0x1074
push esi
call edi
lea eax, [esp + 0x14]
mov dword [esp + 0x1c], 2
push eax
push dword [0x4cf8b8]
mov dword [esp + 0x30], 0x4ad0e0
push 0x1074
push esi
call edi
lea eax, [esp + 0x10]
push eax
push 0x20
push 0
call ebx
test eax, eax
jne 0x40e03d
lea eax, [esp + 0x50]
push eax
push dword [esp + 0x14]
call ebp
push 0
push 0
push 0x1004
push esi
call edi
push 0x4cf8b4
push 0
mov dword [0x4cf8b8], eax
lea eax, [esp + 0x58]
push 0x104d
push esi
mov dword [0x4cf8d0], 0
mov dword [0x4cf8c8], eax
call edi
mov edx, 0x4adc08
mov dword [esp + 0x1c], 1
mov ecx, str.FILE
call fcn.00477440
mov dword [esp + 0x28], eax
lea eax, [esp + 0x14]
push eax
push dword [0x4cf8b8]
push 0x1074
push esi
call edi
lea eax, [esp + 0x14]
mov dword [esp + 0x1c], 2
push eax
push dword [0x4cf8b8]
mov dword [esp + 0x30], 0x4ad0e0
push 0x1074
push esi
call edi
lea eax, [esp + 0x50]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x40e0f2
push 0x400
lea eax, [esp + 0x54]
push eax
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x40e0f2
push 0
push 0
push 0x1004
push esi
call edi
push 0x4cf8b4
push 0
mov dword [0x4cf8b8], eax
lea eax, [esp + 0x58]
push 0x104d
push esi
mov dword [0x4cf8d0], 0
mov dword [0x4cf8c8], eax
call edi
mov edx, 0x4adc10
mov dword [esp + 0x1c], 1
mov ecx, str.FILE
call fcn.00477440
mov dword [esp + 0x28], eax
lea eax, [esp + 0x14]
push eax
push dword [0x4cf8b8]
push 0x1074
push esi
call edi
lea eax, [esp + 0x14]
mov dword [esp + 0x1c], 2
push eax
push dword [0x4cf8b8]
mov dword [esp + 0x30], 0x4ad0e0
push 0x1074
push esi
call edi
push 0x400
lea eax, [esp + 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x40e24b
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x854]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
push str.Temp
lea eax, [esp + 0x54]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCatW]
push str.Prefetch
lea eax, [esp + 0x854]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCatW]
push 0
push 0
push 0x1004
push esi
call edi
push 0x4cf8b4
push 0
mov dword [0x4cf8b8], eax
lea eax, [esp + 0x58]
push 0x104d
push esi
mov dword [0x4cf8d0], 0
mov dword [0x4cf8c8], eax
call edi
mov edx, 0x4adc18
mov dword [esp + 0x1c], 1
mov ecx, str.FILE
call fcn.00477440
mov dword [esp + 0x28], eax
lea eax, [esp + 0x14]
push eax
push dword [0x4cf8b8]
push 0x1074
push esi
call edi
lea eax, [esp + 0x14]
mov dword [esp + 0x1c], 2
push eax
push dword [0x4cf8b8]
mov dword [esp + 0x30], 0x4ad0e0
push 0x1074
push esi
call edi
push 0
push 0
push 0x1004
push esi
call edi
push 0x4cf8b4
push 0
mov dword [0x4cf8b8], eax
lea eax, [esp + 0x858]
push 0x104d
push esi
mov dword [0x4cf8d0], 0
mov dword [0x4cf8c8], eax
call edi
mov edx, 0x4adc20
mov dword [esp + 0x1c], 1
mov ecx, str.FILE
call fcn.00477440
mov dword [esp + 0x28], eax
lea eax, [esp + 0x14]
push eax
push dword [0x4cf8b8]
push 0x1074
push esi
call edi
lea eax, [esp + 0x14]
mov dword [esp + 0x1c], 2
push eax
push dword [0x4cf8b8]
mov dword [esp + 0x30], 0x4ad0e0
push 0x1074
push esi
call edi
lea eax, [esp + 0x10]
push eax
push 0x24
push 0
call ebx
test eax, eax
jne 0x40e2f7
lea eax, [esp + 0x50]
push eax
push dword [esp + 0x14]
call ebp
xor eax, eax
push eax
push eax
push 0x1004
push esi
mov word [esp + 0x62], ax
call edi
mov dword [0x4cf8b8], eax
lea eax, [esp + 0x50]
push str.:_Recycle.Bin
push eax
mov dword [0x4cf8d0], 0
call dword [sym.imp.SHLWAPI.dll_StrCatW]
push 0x4cf8b4
push 0
push 0x104d
lea eax, [esp + 0x5c]
push esi
mov dword [0x4cf8c8], eax
call edi
lea eax, [esp + 0x14]
mov dword [esp + 0x1c], 1
push eax
push dword [0x4cf8b8]
mov dword [esp + 0x30], str._Recycle_Bin
push 0x1074
push esi
call edi
lea eax, [esp + 0x14]
mov dword [esp + 0x1c], 2
push eax
push dword [0x4cf8b8]
mov dword [esp + 0x30], 0x4ad0e0
push 0x1074
push esi
call edi
mov ecx, dword [esp + 0x1050]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0048d925
add esp, 0x1044
ret