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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x484
mov eax, dword [0x4434f4]
xor eax, esp
mov dword [esp + 0x480], eax
push ebx
push esi
push edi
mov edi, ecx
mov eax, edx
mov esi, edi
mov dword [esp + 0x10], eax
xor ecx, ecx
mov dword [esp + 0x28], edi
mov dword [esp + 0x14], ecx
mov dword [eax], 1
lea edx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, cx
jne 0x420f5e
sub esi, edx
mov ebx, 0x104
sar esi, 1
lea eax, [esi + 3]
cmp eax, ebx
jbe 0x420f95
mov ecx, edi
call fcn.00420eb9
mov ecx, dword [esp + 0x48c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00441b90
mov esp, ebp
pop ebp
ret
push edi
mov edx, ebx
lea ecx, [esp + 0x284]
call fcn.0040c010
test esi, esi
je 0x420fee
movzx eax, word [edi + esi*2 - 2]
cmp eax, 0x3a
je 0x420fee
cmp eax, 0x5c
je 0x420fee
push ecx
lea eax, [esp + 0x10]
mov edx, ebx
push eax
lea ecx, [esp + 0x288]
call fcn.0040c131
test eax, eax
js 0x420fed
mov eax, dword [esp + 0xc]
mov edx, ebx
push ecx
push 0x4043e0
push ecx
lea ecx, [esp + 0x28c]
sub edx, eax
lea ecx, [ecx + eax*2]
call fcn.0040c197
inc esi
push ecx
lea eax, [esp + 0x10]
mov edx, ebx
push eax
lea ecx, [esp + 0x288]
call fcn.0040c131
test eax, eax
js 0x421024
mov eax, dword [esp + 0xc]
mov edx, ebx
push ecx
push 0x404a2c
push ecx
lea ecx, [esp + 0x28c]
sub edx, eax
lea ecx, [ecx + eax*2]
call fcn.0040c197
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x284]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
mov dword [esp + 0x24], ebx
cmp ebx, 0xffffffff
je 0x420f79
add esi, esi
cmp esi, 0x208
jae 0x421299
mov edi, dword [esp + 0x10]
xor eax, eax
lea ecx, [esp + 0x264]
mov word [esp + esi + 0x280], ax
lea edx, [ecx + 2]
xor ebx, ebx
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x42106e
sub ecx, edx
mov ebx, 0x104
sar ecx, 1
mov edx, ebx
push ecx
lea ecx, [esp + 0x284]
je 0x4210ab
lea eax, [esp + 0x14]
push eax
call fcn.0040c131
test eax, eax
js 0x4210d7
lea eax, [esp + 0x264]
push ecx
push eax
mov eax, dword [esp + 0x18]
jmp 0x4210c3
lea eax, [esp + 0x10]
push eax
call fcn.0040c131
test eax, eax
js 0x4210d7
lea eax, [esp + 0x5c]
push ecx
push eax
mov eax, dword [esp + 0x14]
push ecx
mov edx, ebx
lea ecx, [esp + 0x28c]
sub edx, eax
lea ecx, [ecx + eax*2]
call fcn.0040c197
mov ebx, dword [esp + 0x30]
test bl, 0x10
je 0x42117f
mov ecx, 0x404a30
lea eax, [esp + 0x5c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x421115
test dx, dx
je 0x42110f
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x421115
add eax, 4
add ecx, 4
test dx, dx
jne 0x4210ed
xor ebx, ebx
mov eax, ebx
jmp 0x42111c
sbb eax, eax
or eax, 1
xor ebx, ebx
test eax, eax
je 0x421271
mov ecx, 0x404a34
lea eax, [esp + 0x5c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x421153
test dx, dx
je 0x42114f
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x421153
add eax, 4
add ecx, 4
test dx, dx
jne 0x42112d
mov eax, ebx
jmp 0x421158
sbb eax, eax
or eax, 1
test eax, eax
je 0x421271
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x280]
call fcn.00420f22
test eax, eax
je 0x421271
mov dword [edi], ebx
jmp 0x421271
test bl, 1
je 0x421198
mov eax, ebx
and eax, 0xfffffffe
push eax
lea eax, [esp + 0x284]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [esp + 0x280]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x421271
lea ecx, [esp + 0x264]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [esp + 0x14]
jne 0x4211b8
sub ecx, edx
sar ecx, 1
je 0x42125e
xor eax, eax
mov edx, 0x104
mov word [esp + esi + 0x280], ax
lea eax, [esp + 0x1c]
push ecx
push eax
lea ecx, [esp + 0x288]
call fcn.0040c131
test eax, eax
js 0x421215
push ecx
lea eax, [esp + 0x60]
mov edx, 0x104
push eax
mov eax, dword [esp + 0x24]
sub edx, eax
push ecx
lea ecx, [esp + 0x28c]
lea ecx, [ecx + eax*2]
call fcn.0040c197
xor eax, eax
mov edx, 0x104
mov word [esp + esi + 0x280], ax
lea eax, [esp + 0x20]
push ecx
push eax
lea ecx, [esp + 0x288]
call fcn.0040c131
test eax, eax
js 0x42125e
push ecx
lea eax, [esp + 0x268]
mov edx, 0x104
push eax
mov eax, dword [esp + 0x28]
sub edx, eax
push ecx
lea ecx, [esp + 0x28c]
lea ecx, [ecx + eax*2]
call fcn.0040c197
push ebx
lea eax, [esp + 0x284]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
mov dword [edi], eax
mov ebx, dword [esp + 0x24]
lea eax, [esp + 0x30]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x421058
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x28]
jmp 0x420f7b
call fcn.00441cda
int3