Function at 0x40d630
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc78
mov eax, dword [0x4cd724]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov word [ebp - 0x618], ax
xor ecx, ecx
mov dword [ebp - 0x616], ecx
xor edx, edx
mov word [ebp - 0x208], dx
push 0x1fe
push 0
lea eax, [ebp - 0x206]
push eax
call fcn.004677c0
add esp, 0xc
xor ecx, ecx
mov word [ebp - 0x610], cx
push 0x1fe
push 0
lea edx, [ebp - 0x60e]
push edx
call fcn.004677c0
add esp, 0xc
xor eax, eax
mov word [ebp - 0xa20], ax
push 0x1fe
push 0
lea ecx, [ebp - 0xa1e]
push ecx
call fcn.004677c0
add esp, 0xc
xor edx, edx
mov word [ebp - 0x410], dx
push 0x1fe
push 0
lea eax, [ebp - 0x40e]
push eax
call fcn.004677c0
add esp, 0xc
xor ecx, ecx
mov word [ebp - 0x820], cx
push 0x1fe
push 0
lea edx, [ebp - 0x81e]
push edx
call fcn.004677c0
add esp, 0xc
mov dword [ebp - 0x61c], 0
push 0x100
lea eax, [ebp - 0xa20]
push eax
push 0x100
lea ecx, [ebp - 0x610]
push ecx
push 0x100
lea edx, [ebp - 0x208]
push edx
push 3
lea eax, [ebp - 0x618]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0046b0fd
add esp, 0x24
lea edx, [ebp - 0x208]
push edx
lea eax, [ebp - 0x618]
push eax
push 0x4ae0d8
push 0x100
lea ecx, [ebp - 0x410]
push ecx
call fcn.00467d96
add esp, 0x14
lea edx, [ebp - 0xc78]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0xa24], eax
cmp dword [ebp - 0xa24], 0xffffffff
je 0x40d869
lea ecx, [ebp - 0xc4c]
mov dword [ebp - 0x20c], ecx
mov edx, dword [ebp - 0x20c]
movzx eax, word [edx + 2]
test eax, eax
jne 0x40d7ac
mov ecx, dword [ebp - 0x20c]
movzx edx, word [ecx]
cmp edx, 0x2e
jne 0x40d7ac
jmp 0x40d840
mov eax, dword [ebp - 0x20c]
movzx ecx, word [eax + 4]
test ecx, ecx
jne 0x40d7d9
mov edx, dword [ebp - 0x20c]
movzx eax, word [edx]
cmp eax, 0x2e
jne 0x40d7d9
mov ecx, dword [ebp - 0x20c]
movzx edx, word [ecx + 2]
cmp edx, 0x2e
jne 0x40d7d9
jmp 0x40d840
lea eax, [ebp - 0xc4c]
push eax
lea ecx, [ebp - 0x410]
push ecx
push 0x4ae0e4
push 0x100
lea edx, [ebp - 0x820]
push edx
call fcn.00467d96
add esp, 0x14
mov eax, dword [ebp - 0xc78]
and eax, 0x10
jne 0x40d840
mov ecx, dword [ebp - 0xc78]
and ecx, 1
je 0x40d82d
mov edx, dword [ebp - 0xc78]
and edx, 0xfffffffe
push edx
lea eax, [ebp - 0x820]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [ebp - 0x820]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x61c], eax
lea edx, [ebp - 0xc78]
push edx
mov eax, dword [ebp - 0xa24]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40d77d
mov ecx, dword [ebp - 0xa24]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 0xc], 0
je 0x40d9a4
lea edx, [ebp - 0x410]
push edx
push 0x4ae0f0
push 0x100
lea eax, [ebp - 0x820]
push eax
call fcn.00467d96
add esp, 0x10
lea ecx, [ebp - 0xc78]
push ecx
lea edx, [ebp - 0x820]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0xa24], eax
cmp dword [ebp - 0xa24], 0
je 0x40d8bf
cmp dword [ebp - 0xa24], 0xffffffff
jne 0x40d8c6
xor eax, eax
jmp 0x40d9aa
lea eax, [ebp - 0xc4c]
mov dword [ebp - 0x20c], eax
mov ecx, dword [ebp - 0x20c]
movzx edx, word [ecx + 2]
test edx, edx
jne 0x40d8f5
mov eax, dword [ebp - 0x20c]
movzx ecx, word [eax]
cmp ecx, 0x2e
jne 0x40d8f5
jmp 0x40d97b
mov edx, dword [ebp - 0x20c]
movzx eax, word [edx + 4]
test eax, eax
jne 0x40d922
mov ecx, dword [ebp - 0x20c]
movzx edx, word [ecx]
cmp edx, 0x2e
jne 0x40d922
mov eax, dword [ebp - 0x20c]
movzx ecx, word [eax + 2]
cmp ecx, 0x2e
jne 0x40d922
jmp 0x40d97b
mov edx, dword [ebp - 0xc78]
and edx, 0x10
je 0x40d97b
lea eax, [ebp - 0xa20]
push eax
lea ecx, [ebp - 0x610]
push ecx
mov edx, dword [ebp - 0x20c]
push edx
lea eax, [ebp - 0x410]
push eax
push 0x4ae0fc
push 0x100
lea ecx, [ebp - 0x820]
push ecx
call fcn.00467d96
add esp, 0x1c
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x820]
push eax
call fcn.0040d630
add esp, 8
mov dword [ebp - 0x61c], eax
lea ecx, [ebp - 0xc78]
push ecx
mov edx, dword [ebp - 0xa24]
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40d8c6
mov eax, dword [ebp - 0xa24]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x61c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004677af
mov esp, ebp
pop ebp
ret