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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008b3c5
mov eax, dword fs:[0]
push eax
sub esp, 0x2bc
mov eax, dword [0x100c90c0]
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 - 0x2a0], ecx
mov edx, dword [ebp + 8]
mov dword [ebp - 0x29c], edx
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x1004a3e1
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x1004a3e1
cmp dword [edx], 0
jbe 0x1004a3e1
xor esi, esi
mov dword [ebp - 0x264], esi
mov byte [ebp - 4], 1
push ecx
push eax
lea ecx, [ebp - 0x274]
mov dword [ebp - method.CStringBufferW.virtual_0], vtable.CStringBufferW.0
mov dword [ebp - 0x268], esi
mov dword [ebp - 0x26c], esi
mov dword [ebp - 0x270], esi
call fcn.1003ea90
push 0x5c
lea ecx, [ebp - 0x274]
mov byte [ebp - 4], 2
call fcn.1003f790
mov ecx, dword [ebp - 0x270]
lea edx, [ecx - 1]
cmp eax, edx
jne 0x1004a0a4
cmp dword [ebp - 0x268], esi
jne 0x1004a062
push 1
push 0x100b3920
lea ecx, [ebp - 0x274]
call fcn.1003ea90
jmp 0x1004a0e0
lea eax, [ecx + 1]
push eax
lea ecx, [ebp - 0x274]
call fcn.1003f120
mov edi, dword [ebp - 0x268]
test eax, eax
je 0x1004a0e6
mov esi, dword [ebp - 0x270]
mov eax, dword [ebp - 0x26c]
sub eax, esi
push 0x100b3920
push eax
lea eax, [edi + esi*2]
push eax
call fcn.1006fdc7
add esp, 0xc
inc esi
mov dword [ebp - 0x270], esi
jmp 0x1004a0e6
test ecx, ecx
jle 0x1004a0d0
cmp edx, ecx
sbb eax, eax
inc eax
jne 0x1004a0c3
mov eax, dword [ebp - 0x268]
movzx eax, word [eax + edx*2]
cmp eax, 0x5c
je 0x1004a0d0
cmp eax, 0x2f
je 0x1004a0d0
push 0x5c
lea ecx, [ebp - 0x274]
call fcn.1003eea0
push 0x100b3920
lea ecx, [ebp - 0x274]
call fcn.1003ef80
mov edi, dword [ebp - 0x268]
lea eax, [ebp - 0x260]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x2a4], eax
cmp eax, 0xffffffff
je 0x1004a3c7
test byte [ebp - 0x260], 0x10
je 0x1004a3c7
mov ebx, dword [ebp + 0xc]
xor edi, edi
mov byte [ebp - 4], 3
lea esi, [ebp - 0x234]
xor ecx, ecx
mov dword [ebp - method.CStringBufferW.virtual_0], vtable.CStringBufferW.0
mov dword [ebp - 0x278], edi
mov dword [ebp - 0x27c], edi
mov dword [ebp - 0x280], ecx
lea edx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1004a140
sub esi, edx
sar esi, 1
je 0x1004a189
push esi
lea ecx, [ebp - 0x284]
call fcn.1003f120
mov edi, dword [ebp - 0x278]
push esi
lea eax, [ebp - 0x234]
push eax
push dword [ebp - 0x27c]
push edi
call fcn.1006fb74
mov ecx, esi
add esp, 0x10
inc esi
mov dword [ebp - 0x280], ecx
mov dword [ebp - 0x27c], esi
mov byte [ebp - 4], 4
test edi, edi
je 0x1004a2d7
test ecx, ecx
je 0x1004a2d7
push 0x100b33d8
lea ecx, [ebp - 0x284]
call fcn.1003fa00
test eax, eax
jne 0x1004a2d7
push 0x100b3918
lea ecx, [ebp - 0x284]
call fcn.1003fa00
test eax, eax
jne 0x1004a2d7
test byte [ebp - 0x260], 0x10
je 0x1004a26e
push ecx
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x2c4]
call fcn.1003e580
mov byte [ebp - 4], 5
cmp dword [ebp - 0x2b8], 0
je 0x1004a266
cmp dword [ebp - 0x2c0], 0
je 0x1004a266
mov esi, dword [ebp - 0x29c]
mov eax, dword [esi]
test eax, eax
je 0x1004a266
dec eax
mov dword [esi], eax
lea eax, [ebp + 0x10]
push eax
lea ecx, [ebp - 0x2b4]
call fcn.1003e5f0
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x2b4]
mov byte [ebp - 4], 6
call fcn.1003ef30
sub esp, 0x10
lea eax, [ebp - 0x2b4]
mov ecx, esp
push eax
call fcn.1003e5f0
mov ecx, dword [ebp - 0x2a0]
push ebx
push esi
call fcn.10049f90
or dword [ebp - 0x264], eax
lea ecx, [ebp - 0x2b4]
call fcn.10022960
lea ecx, [ebp - 0x2c4]
jmp 0x1004a2d2
lea eax, [ebp + 0x10]
push eax
lea ecx, [ebp - 0x294]
call fcn.1003e5f0
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x294]
mov byte [ebp - 4], 7
call fcn.1003ef30
test ebx, ebx
je 0x1004a34f
cmp ebx, 2
je 0x1004a34f
cmp ebx, 1
jne 0x1004a2cc
mov ecx, dword [ebp - 0x288]
test ecx, ecx
je 0x1004a2c4
call fcn.1004a420
test eax, eax
je 0x1004a2c4
mov dword [ebp - 0x264], ebx
jmp 0x1004a2cc
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
lea ecx, [ebp - 0x294]
call fcn.10022960
mov byte [ebp - 4], 2
test edi, edi
je 0x1004a2e8
push edi
call fcn.1006eaef
add esp, 4
mov esi, dword [ebp - 0x2a4]
lea eax, [ebp - 0x260]
push eax
push esi
mov dword [ebp - 0x278], 0
mov dword [ebp - 0x27c], 0
mov dword [ebp - 0x280], 0
mov dword [ebp - method.CSeed.virtual_0], vtable.CSeed.0
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1004a113
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
sub esp, 0x10
lea eax, [ebp + 0x10]
mov ecx, esp
push eax
call fcn.1003e5f0
push ebx
call fcn.10049eb0
mov esi, dword [ebp - 0x264]
jmp 0x1004a3c9
push dword [ebp - 0x288]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1004a2cc
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push 0x80
push dword [ebp - 0x288]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x1004a394
push dword [ebp - 0x288]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1004a2cc
cmp ebx, 2
jne 0x1004a2cc
mov ecx, dword [ebp - 0x288]
test ecx, ecx
je 0x1004a2ca
call fcn.1004a420
test eax, eax
je 0x1004a2ca
mov dword [ebp - 0x264], 1
jmp 0x1004a2cc
xor esi, esi
mov eax, dword [ebp - 0x268]
test eax, eax
je 0x1004a3dc
push eax
call fcn.1006eaef
add esp, 4
mov eax, dword [ebp + 0x1c]
jmp 0x1004a3e3
xor esi, esi
mov dword [ebp + 0x10], vtable.CStringBufferW.0
test eax, eax
je 0x1004a3f7
push eax
call fcn.1006eaef
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.1006daee
mov esp, ebp
pop ebp
ret 0x18