Function at 0x40565c
Capabilities:
Delete directory
Enumerate files on windows

Disassembly:
mov eax, 0x416a90
call fcn.0040ef50
sub esp, 0x1a0
push ebx
push esi
push edi
mov esi, ecx
push str.CMainFrame::DeleteHtmlDir___n
mov dword [ebp - 0x1c], esi
call fcn.004024eb
pop ecx
lea eax, [esi + 0x84]
push eax
lea eax, [ebp - 0x2c]
push str.SoftwareEPSONSTM3Driver_
push eax
call fcn.004017d5
add esp, 0xc
xor edi, edi
push 0x20019
push edi
push edi
mov ecx, eax
mov dword [ebp - 4], edi
call fcn.00401e04
push eax
push 0x80000002
lea ecx, [ebp - 0x3c]
call fcn.0040dc20
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.00401563
cmp dword [ebp - 0x34], edi
jne 0x4056ea
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
mov dword [esi + 0x70], 3
mov dword [esi + 0x74], 0x3f
call fcn.0040dcd0
xor eax, eax
jmp 0x405907
mov ebx, 0x420bb0
lea ecx, [ebp - 0x28]
push ebx
call fcn.00401595
lea eax, [ebp - 0x28]
push 0x100
push eax
lea eax, [ebp - 0x14]
push str.HTMLInstallPath
push eax
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 3
call fcn.0040df98
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 5
call fcn.00401563
lea ecx, [ebp - 0x14]
call fcn.00401b7a
test eax, eax
je 0x40574e
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.00401563
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.0040dcd0
push 1
pop eax
jmp 0x405907
push 1
mov dword [ebp - 0x44], edi
pop esi
xor eax, eax
lea edi, [ebp - 0x40]
mov dword [ebp - 0x6c], str.e_s.exe
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x64], str..htm
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x5c], str..html
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x54], str..gif
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x4c], str..jpg
mov dword [ebp - 0x48], esi
push ebx
lea ecx, [ebp - 0x10]
stosd dword es:[edi], eax
call fcn.00401595
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x18]
push eax
mov byte [ebp - 4], 6
call fcn.004013ef
push 0x41c058
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 7
call fcn.004019f3
cmp dword [ebp - 0x6c], 0
je 0x40586d
lea edi, [ebp - 0x6c]
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x10]
push eax
call fcn.00401618
mov eax, dword [edi]
lea ecx, [ebp - 0x10]
push eax
add edi, 8
call fcn.004019f3
lea eax, [ebp - 0x1ac]
lea ecx, [ebp - 0x10]
push eax
call fcn.00401e04
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40580f
and dword [ebp - 0x20], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x4058d5
jmp 0x405812
mov dword [ebp - 0x20], esi
cmp dword [ebp - 0x20], esi
jne 0x405858
lea eax, [ebp - 0x180]
lea ecx, [ebp - 0x10]
push eax
call fcn.004019f3
test byte [ebp - 0x1ac], 0x10
jne 0x405846
push ecx
lea eax, [ebp - 0x10]
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
call fcn.004013ef
mov ecx, dword [ebp - 0x1c]
call fcn.00405f83
lea eax, [ebp - 0x1ac]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
cmp eax, esi
je 0x405817
cmp ebx, 0xffffffff
je 0x405864
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [edi], 0
jne 0x4057c3
lea ecx, [ebp - 0x14]
call fcn.00401e04
mov edi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push eax
call edi
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x24]
push eax
call fcn.0040446d
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 8
call fcn.00401b7a
test eax, eax
jne 0x4058c9
lea eax, [ebp - 0x24]
push str.EPSONHTML
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0040176a
add esp, 0xc
mov ecx, eax
mov byte [ebp - 4], 9
call fcn.00401e04
push eax
call edi
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 8
call fcn.00401563
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 7
call fcn.00401563
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 6
call fcn.00401563
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 5
call fcn.00401563
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.00401563
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.0040dcd0
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret