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

Disassembly:
push ebp
sub esp, 0x288
lea ebp, [esp - 4]
mov eax, dword [0x48e190]
xor eax, ebp
mov dword [ebp + 0x288], eax
push 0x34
mov eax, 0x466c89
call fcn.0044c0cc
mov edi, dword [ebp + 0x294]
xor ebx, ebx
mov eax, ecx
mov dword [ebp - 0x1c], ebx
cmp dword [edi + 0x18], 8
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x18], edi
jb 0x41d154
mov ecx, dword [edi + 4]
jmp 0x41d157
lea ecx, [edi + 4]
movzx edx, byte [ebp + 0x298]
push edx
push ecx
push str.deleteDirectory__S_childrenOnly_d
lea esi, [eax + 0x1ac]
call fcn.00409019
push 7
pop eax
xor ecx, ecx
mov byte [ebp - 0x11], bl
mov dword [ebp + 0x284], eax
mov dword [ebp + 0x280], ebx
mov word [ebp + 0x270], cx
mov dword [ebp - 4], ebx
mov dword [ebp + 0x268], eax
xor eax, eax
mov dword [ebp + 0x264], ebx
mov word [ebp + 0x254], ax
push 0x475920
lea eax, [ebp - 0x40]
push edi
push eax
mov byte [ebp - 4], 1
call fcn.0040b558
add esp, 0x18
push 0xffffffffffffffff
lea ecx, [ebp + 0x250]
push ecx
xor ebx, ebx
mov byte [ebp - 4], 2
call fcn.0040958a
inc ebx
push 0
push ebx
lea esi, [ebp - 0x40]
mov byte [ebp - 4], bl
call fcn.00409732
cmp dword [ebp + 0x268], 8
mov eax, dword [ebp + 0x254]
jae 0x41d1f1
lea eax, [ebp + 0x254]
lea ecx, [ebp]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x20], eax
cmp eax, 0xffffffff
je 0x41d362
push dword [ebp - 0x24]
mov byte [ebp - 4], 3
call fcn.0041e92a
mov dword [ebp - 4], ebx
cmp word [ebp + 0x2c], 0x2e
je 0x41d30b
push 0xffffffffffffffff
xor edi, edi
lea esi, [ebp + 0x26c]
call fcn.0040a251
lea eax, [ebp + 0x2c]
push eax
push dword [ebp - 0x18]
lea eax, [ebp - 0x40]
push eax
call fcn.0040b558
add esp, 0xc
push 0xffffffffffffffff
mov ecx, esi
push ecx
xor ebx, ebx
mov byte [ebp - 4], 5
call fcn.0040958a
inc ebx
push edi
push ebx
lea esi, [ebp - 0x40]
mov byte [ebp - 4], bl
call fcn.00409732
test byte [ebp], 0x10
je 0x41d2ba
push 0x46eae8
lea eax, [ebp + 0x26c]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0040b558
add esp, 0xc
mov ecx, dword [ebp - 0x24]
push edi
mov byte [ebp - 4], 6
or dword [ebp - 0x1c], ebx
push eax
call fcn.0041d112
test al, al
jne 0x41d29d
cmp byte [ebp - 0x11], al
mov byte [ebp - 0x11], al
je 0x41d2a0
mov byte [ebp - 0x11], bl
mov dword [ebp - 4], ebx
test byte [ebp - 0x1c], bl
je 0x41d308
and dword [ebp - 0x1c], 0xfffffffe
push 0
push 1
lea esi, [ebp - 0x40]
call fcn.00409732
jmp 0x41d308
cmp dword [ebp + 0x284], 8
mov eax, dword [ebp + 0x270]
jae 0x41d2cf
lea eax, [ebp + 0x270]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x41d2e4
mov byte [ebp - 0x11], bl
jmp 0x41d308
cmp dword [ebp + 0x284], 8
mov eax, dword [ebp + 0x270]
jae 0x41d2f9
lea eax, [ebp + 0x270]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x41d308
mov byte [ebp - 0x11], 1
mov edi, dword [ebp - 0x18]
lea eax, [ebp]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
xor ebx, ebx
inc ebx
cmp eax, ebx
je 0x41d208
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_FindClose]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x41d35f
cmp byte [ebp + 0x298], 0
jne 0x41d362
cmp dword [edi + 0x18], 8
lea esi, [edi + 4]
jb 0x41d34d
mov eax, dword [esi]
jmp 0x41d34f
mov eax, esi
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x41d3a6
mov byte [ebp - 0x11], bl
push 0
push ebx
lea esi, [ebp + 0x250]
call fcn.00409732
push 0
push ebx
lea esi, [ebp + 0x26c]
call fcn.00409732
mov al, byte [ebp - 0x11]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x288]
xor ecx, ebp
call fcn.00447c3d
add ebp, 0x28c
leave
ret 8
cmp dword [edi + 0x18], 8
jb 0x41d3ae
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x41d362
jmp 0x41d35f