Function at 0x46df90
Capabilities:
Check if file exists
Delete file
Enumerate files on windows
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4da61d
mov eax, dword fs:[0]
push eax
sub esp, 0x274
mov eax, dword [0x523f10]
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 - 4], 1
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 0xc]
test eax, eax
jne 0x46dfea
push 0x4f6890
call fcn.004b9b7a
add esp, 4
push eax
push 0x4f6890
lea ecx, [ebp + 0xc]
call fcn.004253ee
lea ecx, [ebp - 0x260]
push ecx
push ecx
mov esi, esp
mov dword [ebp - 0x268], esp
mov dword [ebp - 0x264], esi
call fcn.004ab443
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x46e01a
push 0x80004005
call fcn.00422000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
mov ebx, 0x4e9fa0
shr ebx, 0x10
mov byte [ebp - 4], 2
mov dword [ebp - 0x26c], ebx
test ebx, ebx
jne 0x46e05b
mov ecx, 0x4e9fa0
movzx edi, cx
push edi
call fcn.004b33b0
test eax, eax
je 0x46e075
push edi
push eax
mov ecx, esi
call fcn.00424e6b
jmp 0x46e075
push 0x4e9fa0
call fcn.004b9b7a
add esp, 4
push eax
push 0x4e9fa0
mov ecx, esi
call fcn.004253ee
mov byte [ebp - 4], 3
mov eax, dword [ebp + 0xc]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x264], esp
mov esi, esp
push eax
call fcn.0042545f
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 4
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov dword [ebp - 0x278], esp
mov esi, esp
push eax
call fcn.0042545f
add eax, 0x10
mov dword [esi], eax
add esp, 4
lea edi, [ebp - 0x27c]
mov byte [ebp - 4], 1
call fcn.0046b5f0
mov eax, dword [eax]
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov eax, dword [ebp - 0x27c]
add eax, 0xfffffff0
mov dword [ebp - 0x268], esi
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x46e0f8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, 0xffffffff
je 0x46e321
push ecx
mov esi, esp
mov dword [ebp - 0x278], esp
mov dword [ebp - 0x270], esi
call fcn.004ab443
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x46e010
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 5
test ebx, ebx
jne 0x46e157
mov ecx, 0x4e9fa0
movzx edi, cx
push edi
call fcn.004b33b0
test eax, eax
je 0x46e171
push edi
push eax
mov ecx, esi
call fcn.00424e6b
jmp 0x46e171
push 0x4e9fa0
call fcn.004b9b7a
add esp, 4
push eax
push 0x4e9fa0
mov ecx, esi
call fcn.004253ee
push ecx
mov byte [ebp - 4], 6
mov esi, esp
mov dword [ebp - 0x270], esp
mov dword [ebp - 0x274], esi
call fcn.004ab443
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x46e010
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 7
test ecx, 0xffff0000
jne 0x46e1d2
mov edx, ecx
movzx edi, dx
push edi
call fcn.004b33b0
test eax, eax
je 0x46e1f0
push edi
push eax
mov ecx, esi
call fcn.00424e6b
jmp 0x46e1f0
lea eax, [ebp - 0x234]
push eax
call fcn.004b9b7a
add esp, 4
push eax
lea ecx, [ebp - 0x234]
push ecx
mov ecx, esi
call fcn.004253ee
mov byte [ebp - 4], 8
mov esi, dword [ebp + 8]
push ecx
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
add esi, 0xfffffff0
mov dword [ebp - 0x274], esp
mov ebx, esp
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x46e227
cmp eax, dword [esi]
jne 0x46e227
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x46e262
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x46e315
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax + 2]
push ecx
add esi, 0x10
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [edi + 0x10]
push eax
call fcn.004b9601
add esp, 0x10
add edi, 0x10
mov dword [ebx], edi
lea edi, [ebp - 0x264]
mov byte [ebp - 4], 1
call fcn.0046b5f0
add esp, 0xc
test byte [ebp - 0x260], 0x10
jne 0x46e2d0
mov ecx, dword [ebp - 0x264]
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
push ecx
call esi
mov edx, dword [ebp - 0x264]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edx
call edi
test eax, eax
jne 0x46e2d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x46e2d0
mov ecx, dword [ebp - 0x264]
call fcn.00472810
mov eax, dword [ebp - 0x264]
push 0
push eax
call esi
mov ecx, dword [ebp - 0x264]
push ecx
call edi
mov eax, dword [ebp - 0x264]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x46e2f2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebp - 0x268]
lea ecx, [ebp - 0x260]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x46e31a
mov ebx, dword [ebp - 0x26c]
jmp 0x46e101
call fcn.00426489
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
push eax
call fcn.0042545f
add esp, 4
lea esi, [eax + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x46e34a
test al, 0x10
je 0x46e34a
mov edi, 1
jmp 0x46e34c
xor edi, edi
lea eax, [esi - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x46e368
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor ecx, ecx
test edi, edi
sete cl
mov byte [ebp - 4], 0
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov esi, ecx
mov ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x46e396
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46e3bc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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.004b9212
mov esp, ebp
pop ebp
ret