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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1250
call fcn.00402be0
push ebx
mov ebx, dword [sym.imp.MSVCR100.dll_wcscpy_s]
push esi
mov esi, dword [ebp + 8]
push edi
push esi
lea eax, [ebp - 0x1250]
push 0x400
push eax
call ebx
mov edi, dword [sym.imp.MSVCR100.dll_wcscat_s]
push 0x4041e0
lea ecx, [ebp - 0x1250]
push 0x400
push ecx
call edi
add esp, 0x18
cmp word [ebp - 0x1250], 0
je 0x4013cb
lea edx, [ebp - 0x250]
push edx
lea eax, [ebp - 0x1250]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [section..data], eax
cmp eax, 0xffffffff
je 0x4013cb
push esi
lea ecx, [ebp - 0xa50]
push 0x400
push ecx
call ebx
push 0x4041dc
lea edx, [ebp - 0xa50]
push 0x400
push edx
call edi
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0xa50]
push 0x400
push ecx
call edi
mov ebx, dword [ebp - 0x250]
mov esi, ebx
add esp, 0x24
and esi, 0x10
je 0x401386
mov ecx, 0x4041d8
lea eax, [ebp - 0x224]
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x401246
test dx, dx
je 0x401242
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x401246
add eax, 4
add ecx, 4
test dx, dx
jne 0x401220
xor eax, eax
jmp 0x40124b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x401386
mov ecx, 0x4041d0
lea eax, [ebp - 0x224]
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x401286
test dx, dx
je 0x401282
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x401286
add eax, 4
add ecx, 4
test dx, dx
jne 0x401260
xor eax, eax
jmp 0x40128b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x401386
mov edx, dword [section..data]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0xa50]
push eax
call fcn.00401150
add esp, 4
test eax, eax
je 0x4013cb
lea ecx, [ebp - 0xa50]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x4013cb
lea edx, [ebp - 0x250]
push edx
lea eax, [ebp - 0x1250]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [section..data], eax
mov edx, dword [section..data]
lea ecx, [ebp - 0x250]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x4014bc
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0xa50]
push 0x400
push ecx
call dword [sym.imp.MSVCR100.dll_wcscpy_s]
push 0x4041dc
lea edx, [ebp - 0xa50]
push 0x400
push edx
call edi
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0xa50]
push 0x400
push ecx
call edi
mov ebx, dword [ebp - 0x250]
mov esi, ebx
add esp, 0x24
and esi, 0x10
je 0x40146f
mov ecx, 0x4041d8
lea eax, [ebp - 0x224]
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4013d4
test dx, dx
je 0x401382
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4013d4
add eax, 4
add ecx, 4
test dx, dx
jne 0x401360
xor eax, eax
jmp 0x4013d9
test esi, esi
jne 0x4012e5
test bl, 1
je 0x4013aa
and ebx, 0xfffffffe
push ebx
lea ecx, [ebp - 0xa50]
push ecx
mov dword [ebp - 0x250], ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea edx, [ebp - 0xa50]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4012e5
mov eax, dword [section..data]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40146f
mov ecx, 0x4041d0
lea eax, [ebp - 0x224]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x401416
test dx, dx
je 0x401412
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x401416
add eax, 4
add ecx, 4
test dx, dx
jne 0x4013f0
xor eax, eax
jmp 0x40141b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40146f
mov edx, dword [section..data]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0xa50]
push eax
call fcn.00401150
add esp, 4
test eax, eax
je 0x4013cb
lea ecx, [ebp - 0xa50]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x4013cb
lea edx, [ebp - 0x250]
push edx
lea eax, [ebp - 0x1250]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [section..data], eax
jmp 0x4014a0
test esi, esi
jne 0x4014a0
test bl, 1
je 0x40148f
and ebx, 0xfffffffe
push ebx
lea ecx, [ebp - 0xa50]
push ecx
mov dword [ebp - 0x250], ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea edx, [ebp - 0xa50]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4014d4
mov ecx, dword [section..data]
lea eax, [ebp - 0x250]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x401301
mov eax, dword [section..data]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [section..data]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret