Function at 0x40db00
Capabilities:
Get common file path

Disassembly:
mov eax, 0x1044
call fcn.004a5d20
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.0048e770
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 0x40dc02
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 0x4ae0f4
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], 0x4ae100
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 0x40dca9
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 0x4ae120
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], 0x4ae13c
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 0x40dd50
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 0x4ae15c
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], 0x4ae19c
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 0x40ddf7
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 0x4ae1bc
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], 0x4ae1f4
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 0x40de99
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, 0x4ae00c
call fcn.004773a0
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 0x40df3b
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, 0x4ae00c
call fcn.004773a0
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 0x40dfdd
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, 0x4ae00c
call fcn.004773a0
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 0x40e092
push 0x400
lea eax, [esp + 0x54]
push eax
push eax
call dword [sym.imp.kernel32.dll_GetLongPathNameW]
test eax, eax
je 0x40e092
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, 0x4ae00c
call fcn.004773a0
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 0x40e1eb
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x854]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
push 0x4ae20c
lea eax, [esp + 0x54]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCatW]
push 0x4ae218
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, 0x4ae00c
call fcn.004773a0
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, 0x4ae00c
call fcn.004773a0
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 0x40e297
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 0x4ae22c
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], 0x4ae24c
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.0048d815
add esp, 0x1044
ret