Function at 0x4078e0
Capabilities:
Check if file exists
Get file system object information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x415c70
mov eax, dword fs:[0]
push eax
sub esp, 0x2ec
mov eax, dword [0x42001c]
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 esi, ecx
mov eax, dword [esi + 4]
push 0x3f2
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, eax
test edi, edi
je 0x407b68
push 0x406ac0
push 0xfffffffffffffffc
push edi
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 1
push 1
push 0x21
push 0x20
push 0x20
mov dword [0x420658], eax
call dword [sym.imp.COMCTL32.dll_ImageList_Create]
mov ebx, dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
push 0x110
push 0x2b4
lea ecx, [ebp - 0x2c8]
push ecx
push 0x80
push str.file.txt
mov dword [esi + 0x1c], eax
call ebx
mov edx, dword [ebp - 0x2c8]
mov eax, dword [esi + 0x1c]
push edx
push 0xffffffffffffffff
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
push 0x110
push 0x2b4
lea ecx, [ebp - 0x2c8]
push ecx
push 0x80
push str.file.dmp
call ebx
mov edx, dword [ebp - 0x2c8]
mov eax, dword [esi + 0x1c]
push edx
push 0xffffffffffffffff
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
push 0x110
push 0x2b4
lea ecx, [ebp - 0x2c8]
push ecx
push 0x80
push str.file.tlg
call ebx
mov edx, dword [ebp - 0x2c8]
mov eax, dword [esi + 0x1c]
push edx
push 0xffffffffffffffff
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
xor eax, eax
lea ecx, [ebp - 0x2f8]
push ecx
push eax
push 0x1061
mov dword [ebp - 0x2ec], eax
push edi
mov dword [ebp - 0x2f4], eax
mov dword [ebp - 0x2f0], eax
mov dword [ebp - 0x2e8], eax
mov dword [ebp - 0x2e4], eax
mov dword [ebp - 0x2e0], eax
mov dword [ebp - 0x2dc], eax
mov dword [ebp - 0x2f8], 4
mov dword [ebp - 0x2ec], str.name
call ebx
mov edx, dword [esi + 0x1c]
push edx
push 0
push 0x1003
push edi
call ebx
lea eax, [ebp - 0x2d4]
push 1
push eax
call fcn.004010b0
mov ecx, eax
call fcn.00404420
push 0
push edi
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.00408a50
mov dword [ebp - 4], 0xffffffff
mov ebx, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
lea ecx, [ebp - 0x2d4]
call ebx
lea ecx, [ebp - 0x2cc]
push 2
push ecx
call fcn.004010b0
mov ecx, eax
call fcn.00404420
lea ecx, [ebp - 0x2cc]
mov dword [ebp - 4], 1
call dword [sym.imp.Common.dll_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x407ac5
push 0
push edi
lea ecx, [ebp - 0x2cc]
call fcn.00408a50
call fcn.004010b0
mov ecx, eax
xor eax, eax
lea esi, [ebp - 0x2d0]
call fcn.004043f0
mov ecx, esi
mov byte [ebp - 4], 2
call dword [sym.imp.Common.dll_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x407afa
push 1
push edi
mov ecx, esi
call fcn.00408a50
cmp dword [0x420688], 0
jne 0x407b17
call fcn.004106e0
mov dword [0x420684], eax
mov dword [0x420688], 1
cmp dword [0x420684], 0
je 0x407b4d
call fcn.004010b0
mov ecx, eax
mov eax, 1
lea esi, [ebp - 0x2d8]
call fcn.004043f0
push 1
push edi
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.00408a50
mov ecx, esi
mov byte [ebp - 4], 2
call ebx
lea ecx, [ebp - 0x2d0]
mov byte [ebp - 4], 1
call ebx
lea ecx, [ebp - 0x2cc]
mov dword [ebp - 4], 0xffffffff
call ebx
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.00413efc
mov esp, ebp
pop ebp
ret