Function at 0x40400d
Capabilities:
Delete directory
Delete file
Print debug messages
Resolve function by parsing pe exports
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x453741
mov eax, dword fs:[0]
push eax
sub esp, 0xed4
mov eax, dword [0x47a550]
xor eax, esp
mov dword [esp + 0xed0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x47a550]
xor eax, esp
push eax
lea eax, [esp + 0xee8]
mov dword fs:[0], eax
mov ebx, ecx
xor ebp, ebp
mov dword [esp + 0xef0], ebp
mov esi, str.hwang
lea edi, [esp + 0x6e4]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x7f2
lea eax, [esp + 0x6f6]
push ebp
push eax
movsw word es:[edi], word [esi]
call fcn.0042e030
add esp, 0xc
cmp dword [ebx + 0x14], 8
jb 0x404084
mov eax, dword [ebx]
jmp 0x404086
mov eax, ebx
push eax
push str.DTLScriptEngine::DeleteDirectories
lea eax, [esp + 0x6f8]
push 0x45c4c8
push eax
call fcn.0042e0c0
add esp, 0x10
lea eax, [esp + 0x6e4]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x5c
pop eax
mov word [esp + 0x4cc], ax
mov dword [esp + 0x4d0], ebp
mov dword [esp + 0x4d4], ebp
lea eax, [esp + 0x28]
mov dword [esp + 0x24], eax
xor eax, eax
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], ebp
mov word [esp + 0x28], ax
mov byte [esp + 0xef0], 2
cmp dword [ebx + 0x14], 8
jb 0x4040f5
mov eax, dword [ebx]
jmp 0x4040f7
mov eax, ebx
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
mov edi, eax
test edi, edi
je 0x404136
cmp dword [ebx + 0x14], 8
jb 0x40410e
mov esi, dword [ebx]
jmp 0x404110
mov esi, ebx
mov ecx, dword [esp + 0x24]
mov edx, 0x104
call fcn.00401e08
push 0x45d524
push esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov ecx, dword [esp + 0x24]
call fcn.0040230b
jmp 0x404178
lea eax, [esp + 0x5c]
push ebx
mov ecx, eax
mov dword [esp + 0x5c], eax
call fcn.0040983c
mov byte [esp + 0xef0], 3
mov ecx, dword [esp + 0x24]
cmp ecx, dword [esp + 0x58]
je 0x404164
push 0xffffffffffffffff
push ebp
push dword [esp + 0x60]
call fcn.004019b6
push ebp
push 1
lea ecx, [esp + 0x64]
mov byte [esp + 0xef8], 2
call fcn.00401c90
mov eax, dword [esp + 0x24]
cmp dword [eax + 0x14], 8
jb 0x404184
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x78]
call fcn.0040c521
test eax, eax
je 0x404394
mov ecx, dword [esp + 0x4d4]
push 0x2e
pop esi
test ecx, ecx
mov edx, dword [esp + 0x74]
je 0x4041e6
mov eax, edx
shr eax, 4
and eax, 1
je 0x4041e8
cmp word [esp + 0xa0], si
jne 0x4041e8
cmp word [esp + 0xa2], 0
je 0x404331
cmp word [esp + 0xa2], si
jne 0x4041e8
cmp word [esp + 0xa4], 0
je 0x404331
jmp 0x4041e8
mov eax, ebp
test eax, eax
je 0x404279
xor eax, eax
push 0x206
mov word [esp + 0x4e0], ax
lea eax, [esp + 0x4e2]
push ebp
push eax
call fcn.0042e030
pop ecx
pop ecx
lea eax, [esp + 0x4e0]
push eax
lea ecx, [esp + 0x7c]
call fcn.0040c46d
xor eax, eax
mov word [esp + 0x40], ax
lea eax, [esp + 0x4dc]
push eax
lea ecx, [esp + 0x44]
mov dword [esp + 0x58], 7
mov dword [esp + 0x54], ebp
call fcn.00401a39
sub esp, 0x18
mov eax, esp
mov byte [esp + 0xf08], 4
lea ecx, [esp + 0x58]
mov dword [eax + 0x10], ebp
call fcn.0040400d
add esp, 0x18
lea ecx, [esp + 0x40]
push ebp
push 1
mov byte [esp + 0xef8], 2
call fcn.00401c90
jmp 0x40432a
test ecx, ecx
je 0x404282
and edx, 1
jmp 0x404284
mov edx, ebp
test edx, edx
je 0x4042af
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x78]
call fcn.0040c363
push 0x80
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, dword [esp + 0x20]
lea ecx, [ecx - 0x10]
call fcn.0040c959
lea ecx, [esp + 0xef8]
call fcn.0040b3e7
test al, al
je 0x404308
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x78]
call fcn.0040c363
mov byte [esp + 0xef0], 5
mov ecx, dword [esp + 0xf08]
mov eax, dword [eax]
mov dword [esp + 0x14], eax
test ecx, ecx
je 0x404379
mov eax, dword [ecx]
lea edx, [esp + 0x14]
push edx
call dword [eax + 8]
mov byte [esp + 0xef0], 2
mov ecx, dword [esp + 0x18]
lea ecx, [ecx - 0x10]
call fcn.0040c959
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x78]
call fcn.0040c363
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esp + 0x1c]
lea ecx, [ecx - 0x10]
call fcn.0040c959
mov ecx, dword [esp + 0x4d4]
cmp dword [esp + 0x4d0], 0
je 0x404362
test ecx, ecx
je 0x404362
lea eax, [esp + 0x74]
push eax
push dword [esp + 0x4d4]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov ecx, eax
mov dword [esp + 0x4d4], ecx
test ecx, ecx
jne 0x4041a2
lea ecx, [esp + 0x74]
call fcn.0040c5e0
test edi, edi
je 0x404394
cmp dword [ebx + 0x14], 8
jb 0x40437e
mov ecx, dword [ebx]
jmp 0x404380
call fcn.0042d083
mov ecx, ebx
call fcn.0040469c
cmp dword [ebx + 0x14], 8
jb 0x40438d
mov ebx, dword [ebx]
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push ebp
push 1
lea ecx, [esp + 0x30]
call fcn.00401c90
lea ecx, [esp + 0x74]
call fcn.0040c5e0
or dword [esp + 0xef0], 0xffffffff
mov ecx, dword [esp + 0xf08]
test ecx, ecx
je 0x4043d1
mov edx, dword [ecx]
lea eax, [esp + 0xef8]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov ecx, dword [esp + 0xee8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xed0]
xor ecx, esp
call fcn.0042d16b
add esp, 0xee0
ret