Function at 0x40c020
Capabilities:
Check if file exists
Delete file
Enumerate files on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1674
call fcn.0041e0c0
mov eax, dword [0x43e010]
xor eax, esp
mov dword [esp + 0x1670], eax
push ebx
mov ebx, dword [0x452b90]
lea eax, [esp + 0x470]
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
add ebx, 0x300000
push edi
push 0x4519f8
push str._sGetFile
xor edi, edi
mov dword [esp + 0x24], ecx
push eax
mov dword [esp + 0x24], edi
mov byte [esp + 0x1f], 0
call esi
add esp, 0xc
lea eax, [esp + 0x478]
push eax
lea eax, [esp + 0x27c]
push str._s
push eax
call esi
add esp, 0xc
push 0x80
push edi
push 0x452198
call fcn.0041e990
add esp, 0xc
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x27c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
jne 0x40c0d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x40c4e8
mov edi, dword [esp + 0x24]
lea eax, [esp + 0x678]
mov esi, dword [esp + 0x14]
mov dword [esp + 0x20], eax
nop word [eax + eax]
test byte [esp + 0x28], 0x10
jne 0x40c277
mov esi, dword [0x450a88]
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x47c]
mov dword [esp + 0x28], esi
push eax
lea eax, [esp + 0x280]
push 0x42f890
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [esp + 0x288]
push eax
push esi
push dword [0x43e8d4]
push str._HTMLtextView_______________View_HtmlFile_______11111______d_:__d___s_
call fcn.00403840
add esp, 0x20
lea eax, [esp + 0x278]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, 0xffffffff
je 0x40c273
lea eax, [esp + 0x278]
push eax
push dword [esp + 0x28]
push dword [0x43e8d4]
push str._HTMLtextView_______________View_HtmlFile_______22222______d_:__d___s_
call fcn.00403840
mov esi, dword [esp + 0x2c]
add esp, 0x10
test esi, esi
je 0x40c24e
cmp byte [esp + 0x13], 1
jne 0x40c24e
push ebx
mov edx, 0x600000
lea ecx, [esp + 0x27c]
call fcn.00403ab0
mov edi, eax
add esp, 4
test edi, edi
jle 0x40c24e
lea eax, [esp + 0x278]
push eax
push edi
push str._HTMLtextView_______________View_HtmlFile_______33333______d___s_
call fcn.00403840
add esp, 0xc
xor eax, eax
nop dword [eax]
mov cl, byte [eax + ebx]
test cl, cl
je 0x40c1dc
cmp cl, 0x1f
jne 0x40c1e0
mov byte [eax + ebx], 0x20
inc eax
cmp eax, edi
jl 0x40c1d0
push ebx
push esi
mov byte [esp + 0x1b], 9
mov byte [edi + ebx], 0
call dword [sym.imp.USER32.dll_SetWindowTextA]
push 0
push 0
push 0xe
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, eax
push esi
push edi
push str._HTMLtextView_______________FileReadLength_________________d_:__d_
call fcn.00403960
lea ecx, [esi + 0x200]
add esp, 0xc
cmp ecx, edi
jge 0x40c24e
movsx eax, byte [esi + ebx + 3]
push eax
movsx eax, byte [esi + ebx + 2]
push eax
movsx eax, byte [esi + ebx + 1]
push eax
movsx eax, byte [esi + ebx]
push eax
movsx eax, byte [esi + ebx - 1]
push eax
movsx eax, byte [esi + ebx - 2]
push eax
push str._HTMLtextView_______________TextViewLength_________________02X:_02X:_02X:_02X:_02X:_02X_
call fcn.00403960
add esp, 0x1c
mov esi, dword [esp + 0x20]
lea eax, [esp + 0x278]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
inc dword [esp + 0x18]
add esi, 0x200
inc byte [esp + 0x13]
mov dword [esp + 0x20], esi
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40c0f0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x40c489
mov al, byte [esp + 0x13]
cmp al, 9
jae 0x40c2da
push ebx
mov edx, 0x600000
lea ecx, [esp + 0x67c]
call fcn.00403ab0
mov edi, eax
add esp, 4
test edi, edi
jle 0x40c489
push ebx
push esi
mov byte [esp + 0x1b], 9
mov byte [edi + ebx], 0
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov al, byte [esp + 0x13]
movzx eax, al
push eax
push str._HTMLtextView_______________bViewFlags_____________________d_
call fcn.00403960
add esp, 8
mov edx, edi
mov ecx, ebx
call fcn.0040bc90
cmp edi, 0x8000
jge 0x40c308
push str.Varnish_cache
push edi
push ebx
call fcn.004040e0
push str._address_
push edi
push ebx
call fcn.004040e0
push str._meta_name_author_
push edi
push ebx
call fcn.004040e0
test eax, eax
je 0x40c332
push eax
push str._HTMLtextView_______________author_________________________.28s_
call fcn.00403960
add esp, 8
push str.powered_by
push edi
push ebx
call fcn.004040e0
mov esi, eax
test esi, esi
je 0x40c471
push esi
push str._HTMLtextView_______________Powered_by______11111111_______.16s_
call fcn.00403960
xor ecx, ecx
add esp, 8
cmp byte [esi + 0xa], 0x3a
sete cl
add ecx, 0xa
cmp byte [ecx + esi], 0x20
lea eax, [ecx + 1]
cmova eax, ecx
cmp byte [eax + esi], 0x20
lea ecx, [eax + 1]
cmova ecx, eax
cmp byte [ecx + esi], 0x20
lea eax, [ecx + 1]
cmova eax, ecx
cmp byte [eax + esi], 0x20
lea ecx, [eax + 1]
cmova ecx, eax
cmp byte [ecx + esi], 0x20
lea eax, [ecx + 1]
cmova eax, ecx
cmp eax, edi
jge 0x40c463
cmp byte [eax + esi], 0x3c
jne 0x40c3b5
inc eax
cmp eax, edi
jge 0x40c3b5
cmp byte [esi + eax], 0x3e
je 0x40c3b4
inc eax
cmp eax, edi
jl 0x40c3a7
jmp 0x40c3b5
inc eax
xor ecx, ecx
cmp eax, edi
jge 0x40c463
mov dl, byte [esi + eax]
cmp dl, 0x20
jl 0x40c463
cmp dl, 0x3c
je 0x40c463
inc eax
mov byte [ecx + 0x452198], dl
cmp eax, edi
jge 0x40c463
mov dl, byte [esi + eax]
cmp dl, 0x20
jl 0x40c463
cmp dl, 0x3c
je 0x40c463
inc eax
mov byte [ecx + 0x452199], dl
cmp eax, edi
jge 0x40c463
mov dl, byte [esi + eax]
cmp dl, 0x20
jl 0x40c463
cmp dl, 0x3c
je 0x40c463
inc eax
mov byte [ecx + 0x45219a], dl
cmp eax, edi
jge 0x40c463
mov dl, byte [esi + eax]
cmp dl, 0x20
jl 0x40c463
cmp dl, 0x3c
je 0x40c463
inc eax
mov byte [ecx + 0x45219b], dl
cmp eax, edi
jge 0x40c463
mov dl, byte [esi + eax]
cmp dl, 0x20
jl 0x40c463
cmp dl, 0x3c
je 0x40c463
inc eax
mov byte [ecx + 0x45219c], dl
cmp eax, edi
jge 0x40c463
mov dl, byte [esi + eax]
cmp dl, 0x20
jl 0x40c463
cmp dl, 0x3c
je 0x40c463
mov byte [ecx + 0x45219d], dl
inc eax
add ecx, 6
cmp ecx, 0x60
jl 0x40c3b7
push esi
push str._HTMLtextView_______________Powered_by______22222222_______.16s_
call fcn.00403960
add esp, 8
push str._title_
push edi
push ebx
call fcn.004040e0
push str._center_
push edi
push ebx
call fcn.004040e0
push 0x4519f8
lea eax, [esp + 0x47c]
push str._sEntryInfo.txt
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [esp + 0x478]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, 0xffffffff
je 0x40c4d4
push ebx
mov edx, 0x600000
lea ecx, [esp + 0x47c]
call fcn.00403ab0
add esp, 4
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esp + 0x478]
push eax
call ebx
mov edi, dword [esp + 0x18]
cmp dword [esp + 0x1c], 0
jne 0x40c50e
test edi, edi
jle 0x40c50e
lea esi, [esp + 0x678]
nop word [eax + eax]
push esi
call ebx
add esi, 0x200
sub edi, 1
jne 0x40c500
cmp byte [0x452198], 0
je 0x40c52f
push 0
push 0x463
push 0x111
push dword [0x4522f0]
call dword [sym.imp.USER32.dll_PostMessageW]
push 0x452198
push str._HTMLtextView_______________Powered_by______33333333_______.16s_
call fcn.00403960
mov ecx, dword [esp + 0x1684]
add esp, 8
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041d3d1
mov esp, ebp
pop ebp
ret