Function at 0x40c645
Capabilities:
Delete directory
Delete file
Print debug messages
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x465b99
mov eax, dword fs:[0]
push eax
sub esp, 0xc80
mov eax, dword [0x487590]
xor eax, esp
mov dword [esp + 0xc7c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x487590]
xor eax, esp
push eax
lea eax, [esp + 0xc94]
mov dword fs:[0], eax
mov ebp, ecx
mov esi, str.hwang
lea edi, [esp + 0x490]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x7f2
xor ebx, ebx
lea eax, [esp + 0x4a2]
push ebx
push eax
movsw word es:[edi], word [esi]
call fcn.00438850
push dword [ebp]
lea eax, [esp + 0x4ac]
push str.DTLScriptEngine::DeleteDirectories
push str._s__s
push eax
call fcn.00437dbf
add esp, 0x1c
lea eax, [esp + 0x490]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x5c
pop eax
mov word [esp + 0x484], ax
mov dword [esp + 0x488], ebx
mov dword [esp + 0x48c], ebx
mov dword [esp + 0xc9c], ebx
mov ecx, dword [ebp]
sub ecx, 0x10
call fcn.004012aa
add eax, 0x10
mov dword [esp + 0x14], eax
mov esi, 0x104
push esi
lea ecx, [esp + 0x18]
mov byte [esp + 0xca0], 1
call fcn.00401662
mov ebx, dword [esp + 0x14]
cmp dword [ebx - 8], esi
jge 0x40c72f
push 0x80070057
call fcn.00401697
push 0x47cf60
xor ecx, ecx
mov dword [ebx - 0xc], esi
push eax
mov word [ebx + 0x208], cx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push ebx
lea ecx, [esp + 0x30]
call fcn.00412a71
test eax, eax
je 0x40c8be
push 0x2e
pop ebx
cmp dword [esp + 0x488], 0
je 0x40c8b1
cmp dword [esp + 0x48c], 0
je 0x40c8b1
lea eax, [esp + 0x2c]
push eax
push dword [esp + 0x48c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov dword [esp + 0x48c], eax
test eax, eax
je 0x40c8b1
mov ecx, dword [esp + 0x2c]
mov eax, ecx
shr eax, 4
and eax, 1
je 0x40c7c5
cmp word [esp + 0x58], bx
jne 0x40c7c5
cmp word [esp + 0x5a], 0
je 0x40c75c
cmp word [esp + 0x5a], bx
jne 0x40c7c5
cmp word [esp + 0x5c], 0
je 0x40c75c
test eax, eax
je 0x40c7f7
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x30]
call fcn.004129ae
mov ecx, eax
mov byte [esp + 0xc9c], 2
call fcn.0040c645
mov byte [esp + 0xc9c], 1
mov ecx, dword [esp + 0x24]
jmp 0x40c8a4
and ecx, 1
je 0x40c823
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x30]
call fcn.004129ae
push 0x80
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, dword [esp + 0x28]
lea ecx, [ecx - 0x10]
call fcn.00401551
mov esi, str.hwang
lea edi, [esp + 0x490]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x7f2
lea eax, [esp + 0x4a2]
push 0
push eax
movsw word es:[edi], word [esi]
call fcn.00438850
add esp, 0xc
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x30]
call fcn.004129ae
push dword [eax]
lea eax, [esp + 0x4a0]
push str.Delete_File_:__s
push eax
call fcn.00437dbf
mov ecx, dword [esp + 0x24]
add esp, 0xc
lea ecx, [ecx - 0x10]
call fcn.00401551
lea eax, [esp + 0x490]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x30]
call fcn.004129ae
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esp + 0x1c]
lea ecx, [ecx - 0x10]
call fcn.00401551
jmp 0x40c75c
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ebx, dword [esp + 0x14]
lea ecx, [ebx - 0x10]
call fcn.00401551
lea ecx, [esp + 0x2c]
call fcn.00412b30
mov ecx, dword [esp + 0xc94]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc7c]
xor ecx, esp
call fcn.00437bed
add esp, 0xc8c
ret