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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58affc
mov eax, dword fs:[0]
push eax
sub esp, 0x270
mov eax, dword [0x5f0a00]
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 dword [ebp - 0x27c], ecx
xor ebx, ebx
mov dword [ebp - 0x278], ebx
mov eax, dword [ebp + 8]
mov dword [ebp - 4], ebx
mov ecx, dword [eax - 8]
cmp word [eax + ecx*2 - 2], 0x5c
je 0x4204f2
cmp dword [eax - 0xc], 1
jg 0x4204d4
mov edx, ecx
cmp edx, dword [eax - 4]
jge 0x4204d4
mov esi, 0x5c
mov word [eax + edx*2], si
inc dword [eax - 8]
xor edx, edx
mov ecx, dword [eax - 8]
mov eax, dword [ebp + 8]
mov word [eax + ecx*2], dx
jmp 0x4204f2
mov esi, ecx
lea ecx, [ebp + 8]
lea eax, [esi + 1]
push eax
call fcn.0040c850
test al, al
je 0x4204f2
mov eax, dword [ebp + 8]
mov ecx, 0x5c
mov word [eax + esi*2], cx
push 0x59b330
lea ecx, [ebp - 0x268]
call fcn.0041de50
lea eax, [ebp - 0x268]
mov byte [ebp - 4], 1
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x274]
push eax
call fcn.0041ec80
add esp, 0xc
mov eax, dword [eax]
test eax, eax
je 0x420529
mov eax, dword [eax]
jmp 0x42052b
xor eax, eax
lea ecx, [ebp - 0x260]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, dword [ebp - 0x274]
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [ebp - 0x270], eax
or eax, 0xffffffff
test esi, esi
je 0x42059e
mov ecx, eax
lock xadd dword [esi + 8], ecx
dec ecx
jne 0x420594
test esi, esi
je 0x420594
mov eax, dword [esi]
test eax, eax
je 0x42056f
push eax
call edi
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x420586
push eax
call fcn.00552794
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.0055241f
add esp, 8
or eax, 0xffffffff
mov dword [ebp - 0x274], 0
mov esi, dword [ebp - 0x268]
test esi, esi
je 0x4205e1
lock xadd dword [esi + 8], eax
dec eax
jne 0x4205e1
mov eax, dword [esi]
test eax, eax
je 0x4205bf
push eax
call edi
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x4205d6
push eax
call fcn.00552794
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.0055241f
add esp, 8
cmp dword [ebp - 0x270], 0xffffffff
jne 0x4205f1
xor esi, esi
jmp 0x420878
test byte [ebp - 0x260], 0x10
je 0x420789
mov ecx, 0x59b334
lea eax, [ebp - 0x234]
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x420636
test dx, dx
je 0x420632
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x420636
add eax, 4
add ecx, 4
test dx, dx
jne 0x420610
xor eax, eax
jmp 0x42063b
sbb eax, eax
or eax, 1
test eax, eax
je 0x420843
mov ecx, 0x59b338
lea eax, [ebp - 0x234]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x420676
test dx, dx
je 0x420672
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x420676
add eax, 4
add ecx, 4
test dx, dx
jne 0x420650
xor eax, eax
jmp 0x42067b
sbb eax, eax
or eax, 1
test eax, eax
je 0x420843
mov esi, dword [0x5f0130]
or ebx, 2
mov dword [ebp - 0x268], ebx
mov dword [ebp - 0x278], ebx
lea ebx, [ebp - 0x234]
mov byte [ebp - 4], 2
lea ecx, [ebx + 2]
mov dword [ebp - 0x264], esi
nop dword [eax + eax]
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x4206b0
mov eax, dword [ebp + 8]
sub ebx, ecx
sar ebx, 1
mov dword [ebp - 0x26c], eax
mov edi, dword [eax - 8]
lea eax, [edi + ebx]
test eax, eax
je 0x42070e
push eax
lea ecx, [ebp - 0x264]
call fcn.0040c850
mov esi, dword [ebp - 0x264]
test al, al
je 0x42070e
add edi, edi
push edi
push dword [ebp - 0x26c]
push esi
call fcn.005577f0
lea eax, [ebx + ebx]
push eax
lea eax, [ebp - 0x234]
push eax
lea eax, [edi + esi]
push eax
call fcn.005577f0
add esp, 0x18
mov eax, dword [0x5f0130]
push ecx
mov ebx, esp
mov dword [ebx], eax
test esi, esi
je 0x42076c
mov edi, esi
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x420721
sub edi, ecx
sar edi, 1
je 0x42076c
lea eax, [edi*2 + 0xe]
push eax
call fcn.00440020
add esp, 4
test eax, eax
je 0x42076c
mov dword [eax], 1
xor ecx, ecx
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov word [eax + edi*2 + 0xc], cx
lea ecx, [eax + 0xc]
lea eax, [edi + edi]
mov dword [ebx], ecx
push eax
push esi
push ecx
call fcn.005577f0
add esp, 0xc
mov ecx, dword [ebp - 0x27c]
call fcn.00420460
mov ebx, dword [ebp - 0x268]
and ebx, 0xfffffffd
mov byte [ebp - 4], 3
jmp 0x420823
mov esi, dword [0x5f0130]
or ebx, 1
mov dword [ebp - 0x268], ebx
mov dword [ebp - 0x278], ebx
lea ebx, [ebp - 0x234]
mov byte [ebp - 4], 4
lea ecx, [ebx + 2]
mov dword [ebp - 0x264], esi
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x4207b1
mov eax, dword [ebp + 8]
sub ebx, ecx
sar ebx, 1
mov dword [ebp - 0x26c], eax
mov edi, dword [eax - 8]
lea eax, [edi + ebx]
test eax, eax
je 0x42080f
push eax
lea ecx, [ebp - 0x264]
call fcn.0040c850
mov esi, dword [ebp - 0x264]
test al, al
je 0x42080f
add edi, edi
push edi
push dword [ebp - 0x26c]
push esi
call fcn.005577f0
lea eax, [ebx + ebx]
push eax
lea eax, [ebp - 0x234]
push eax
lea eax, [edi + esi]
push eax
call fcn.005577f0
add esp, 0x18
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, dword [ebp - 0x268]
and ebx, 0xfffffffe
mov byte [ebp - 4], 5
add esi, 0xfffffff4
cmp esi, dword [0x5f012c]
je 0x420843
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
test eax, eax
jg 0x420843
push esi
call fcn.00408c50
add esp, 4
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x270]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4205f1
push dword [ebp - 0x270]
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esi, 1
mov eax, dword [ebp + 8]
add eax, 0xfffffff4
mov dword [ebp - 4], 6
cmp eax, dword [0x5f012c]
je 0x4208a2
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4208a2
push eax
call fcn.00408c50
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.00551e44
mov esp, ebp
pop ebp
ret 4