Function at 0x405a20
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x412d64
mov eax, dword fs:[0]
push eax
sub esp, 0x2bc
mov eax, dword [0x41a3b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x298], ebx
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], ebx
mov word [ebp - 0x40], ax
push 0xffffffffffffffff
push eax
push esi
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], eax
call fcn.004030a0
push 2
push 0x414668
lea ecx, [ebp - 0x40]
call fcn.004031b0
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x290]
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x405ab0
xor esi, esi
jmp 0x405d13
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
push 0xffffffffffffffff
push eax
push esi
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.004030a0
push 1
push 0x414594
lea ecx, [ebp - 0x28]
call fcn.004031b0
cmp word [ebp - 0x264], 0
jne 0x405af1
xor ecx, ecx
jmp 0x405b0f
lea ecx, [ebp - 0x264]
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405b00
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0x28]
call fcn.004031b0
test byte [ebp - 0x290], 0x10
je 0x405cbb
xor eax, eax
mov dword [ebp - 0x2b4], 7
mov dword [ebp - 0x2b8], 0
mov word [ebp - 0x2c8], ax
cmp word [ebp - 0x264], ax
jne 0x405b56
xor ecx, ecx
jmp 0x405b6f
lea ecx, [ebp - 0x264]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405b60
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0x2c8]
call fcn.004028f0
push 1
push 0x41440c
push dword [ebp - 0x2b8]
or ebx, 1
mov byte [ebp - 4], 2
push 0
lea ecx, [ebp - 0x2c8]
mov dword [ebp - 0x298], ebx
call fcn.00403290
test eax, eax
je 0x405c3b
xor eax, eax
mov dword [ebp - 0x29c], 7
mov dword [ebp - 0x2a0], 0
mov word [ebp - 0x2b0], ax
cmp word [ebp - 0x264], ax
jne 0x405bdb
xor ecx, ecx
jmp 0x405bf3
lea ecx, [ebp - 0x264]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405be4
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0x2b0]
call fcn.004028f0
push 2
push 0x414670
push dword [ebp - 0x2a0]
or ebx, 2
mov dword [ebp - 4], 3
push 0
lea ecx, [ebp - 0x2b0]
mov dword [ebp - 0x298], ebx
call fcn.00403290
mov byte [ebp - 0x291], 1
test eax, eax
jne 0x405c42
mov byte [ebp - 0x291], 0
test bl, 2
je 0x405c7e
and ebx, 0xfffffffd
cmp dword [ebp - 0x29c], 8
jb 0x405c61
push dword [ebp - 0x2b0]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
mov dword [ebp - 0x29c], 7
mov dword [ebp - 0x2a0], 0
mov word [ebp - 0x2b0], ax
mov dword [ebp - 4], 1
test bl, 1
je 0x405ca4
and ebx, 0xfffffffe
cmp dword [ebp - 0x2b4], 8
jb 0x405ca4
push dword [ebp - 0x2c8]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp byte [ebp - 0x291], 0
je 0x405ccd
lea eax, [ebp - 0x28]
push eax
call fcn.00405a20
add esp, 4
jmp 0x405ccd
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x14], 8
mov byte [ebp - 4], 0
jb 0x405ce2
push dword [ebp - 0x28]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
lea eax, [ebp - 0x290]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x405ab0
cmp dword [esi + 0x14], 8
jb 0x405d00
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, 1
cmp dword [ebp - 0x2c], 8
jb 0x405d24
push dword [ebp - 0x40]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00411746
mov esp, ebp
pop ebp
ret