Function at 0x402e10
Capabilities:
Get common file path

Disassembly:
sub esp, 0x780
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x71]
mov byte [esp + 0x70], 0
xor ebp, ebp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 0x40]
mov dword [esp + 0x24], ebp
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x24], ebp
mov dword [esp + 0x44], 7
call edi
mov ecx, dword [esi + 0x80]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push ebp
push ebp
push 0x1009
push ecx
call ebx
mov eax, dword [esi + 0xbc]
cmp word [eax], bp
je 0x402f06
mov ecx, dword [esp + 0x28]
lea edi, [esp + 0x18]
push edi
push 0x40791c
mov edx, dword [ecx]
push ebp
push eax
push ecx
call dword [edx + 0x14]
mov ecx, esi
mov dword [esp + 0x54], 0x4091fc
mov dword [esp + 0x58], 3
mov dword [esp + 0x60], ebp
call fcn.00402b20
mov ecx, dword [esi + 0x80]
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x40]
mov dword [esp + 0x44], ebp
push eax
push ebp
push 0x1007
push ecx
mov dword [esp + 0x30], 1
call ebx
mov eax, dword [esi + 0xbc]
lea edx, [esp + 0x70]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
mov al, byte [esp + 0x70]
test al, al
jne 0x402f1e
mov edx, dword [esi + 0xbc]
lea ecx, [esp + 0x70]
push ecx
push edx
mov ecx, esi
call fcn.004035a0
jmp 0x402f1e
lea eax, [esp + 0x18]
push eax
call edi
mov edx, dword [esi + 0x20]
push ebp
lea ecx, [esp + 0x74]
push ebp
push ecx
push edx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov eax, dword [esp + 0x28]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
lea edx, [esp + 0x70]
mov ecx, esi
push edx
push 0x3ea
call sub.MFC42.DLL_CWnd::SetDlgItemTextA
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x24]
push edx
mov edx, dword [esi + 0x20]
mov ecx, dword [eax]
push 0x60
push edx
push eax
call dword [ecx + 0x10]
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x30]
push edx
lea edx, [esp + 0x18]
mov ecx, dword [eax]
push edx
push 1
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x4032a4
cmp dword [esp + 0x30], 1
jne 0x4032a4
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x585]
mov byte [esp + 0x584], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x279]
mov byte [esp + 0x278], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x175]
mov byte [esp + 0x174], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x688]
mov dword [esp + 0x1c], ebp
stosb byte es:[edi], al
mov eax, dword [esp + 0x18]
push edx
mov edx, dword [esp + 0x18]
push 1
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x2c]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x174]
push 0x104
push eax
lea edx, [esp + 0x690]
push ecx
push edx
call dword [sym.imp.SHLWAPI.dll_StrRetToBufA]
lea eax, [esp + 0x174]
lea edi, [esp + 0x174]
mov dword [esp + 0x54], eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x14]
not ecx
dec ecx
push eax
mov dword [esp + 0x5c], ecx
mov ecx, dword [esi + 0xbc]
push ecx
mov ecx, esi
mov dword [esp + 0x68], eax
call fcn.004033e0
mov ebp, eax
mov ecx, esi
push ebp
call fcn.00402af0
lea edx, [esp + 0x278]
push ebp
push edx
mov ecx, esi
mov dword [esp + 0x64], eax
call fcn.00402bc0
push ebp
mov ecx, esi
call fcn.00402b80
mov edi, eax
lea eax, [esp + 0x584]
push eax
push ebp
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test edi, 0x20000000
jne 0x4030d5
lea ecx, [esp + 0x584]
push ecx
mov ecx, esi
call fcn.004034c0
test eax, eax
je 0x4030a6
mov edx, dword [esi + 0x80]
push 0
push 0
push 0x1004
push edx
call ebx
mov dword [esp + 0x44], eax
jmp 0x4030ea
mov eax, dword [esi + 0xac]
test eax, eax
jne 0x40308e
mov eax, dword [esi + 0xd0]
push ebp
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov eax, dword [esi + 0xd0]
mov ecx, dword [esp + 0x14]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x14]
xor ebp, ebp
jmp 0x402f4e
mov eax, dword [esp + 0x20]
mov dword [esp + 0x1c], 1
mov dword [esp + 0x44], eax
inc eax
mov dword [esp + 0x20], eax
mov ecx, dword [esi + 0x80]
lea eax, [esp + 0x40]
push eax
push 0
push 0x1007
push ecx
call ebx
mov eax, dword [esp + 0x44]
push 0
push 0xf000
push 0x1000
lea edx, [esp + 0x284]
push 0
push edx
lea ebx, [esi + 0x60]
push 9
push 2
push eax
mov ecx, ebx
call sub.MFC42.DLL_CListCtrl::SetItem
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x40328a
lea ecx, [esp + 0x68]
push ebp
push ecx
mov ecx, esi
call fcn.00402c90
push ebp
mov ecx, esi
call fcn.00402c20
lea edx, [esp + 0x68]
push 0xffffffffffffffff
push edx
lea ecx, [esp + 0x18]
mov dword [esp + 0x3c], eax
call sub.MFC42.DLL_CTime::CTime
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x37d]
mov byte [esp + 0x37c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x481]
mov byte [esp + 0x480], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0
lea ecx, [esp + 0x14]
stosb byte es:[edi], al
call sub.MFC42.DLL_CTime::GetLocalTm
mov eax, dword [eax]
push 0
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], eax
call sub.MFC42.DLL_CTime::GetLocalTm
mov ecx, dword [eax + 4]
push 0
mov dword [esp + 0x40], ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CTime::GetLocalTm
mov edx, dword [eax + 8]
push 0
lea ecx, [esp + 0x14]
mov dword [esp + 0x3c], edx
call sub.MFC42.DLL_CTime::GetLocalTm
mov eax, dword [eax + 0xc]
push 0
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], eax
call sub.MFC42.DLL_CTime::GetLocalTm
mov edi, dword [eax + 0x10]
push 0
lea ecx, [esp + 0x14]
inc edi
call sub.MFC42.DLL_CTime::GetLocalTm
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x3c]
mov eax, dword [eax + 0x14]
push ecx
mov ecx, dword [esp + 0x3c]
push edx
mov edx, dword [esp + 0x34]
push ecx
add eax, 0x76c
push edx
push edi
mov edi, dword [sym.imp.MSVCRT.dll_sprintf]
push eax
lea eax, [esp + 0x394]
push str._d__.2d__.2d__.2d:_.2d:_.2d
push eax
call edi
mov ecx, dword [esp + 0x54]
lea edx, [esp + 0x4a0]
push ecx
push 0x409188
push edx
call edi
add esp, 0x2c
push 0
mov ecx, dword [esp + 0x48]
push 0xf000
push 0x1000
lea eax, [esp + 0x388]
push 0
push eax
push 9
push 3
push ecx
mov ecx, ebx
call sub.MFC42.DLL_CListCtrl::SetItem
mov eax, dword [esp + 0x44]
push 0
push 0xf000
push 0x1000
lea edx, [esp + 0x48c]
push 0
push edx
push 9
push 1
push eax
mov ecx, ebx
call sub.MFC42.DLL_CListCtrl::SetItem
mov eax, dword [esi + 0xd0]
push ebp
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
xor ebp, ebp
jmp 0x402f4e
mov eax, dword [esp + 0x18]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [esp + 0x24]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x780
ret