Function at 0x46da00
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x580986
mov eax, dword fs:[0]
push eax
sub esp, 0x270
mov eax, dword [0x5e95e0]
xor eax, esp
mov dword [esp + 0x268], eax
push esi
mov eax, dword [0x5e95e0]
xor eax, esp
push eax
lea eax, [esp + 0x278]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x18], eax
call fcn.00530e1f
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x46da5f
push 0x80004005
call fcn.00401f70
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x10], esi
mov dword [esp + 0x280], 0
call fcn.00530e1f
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x46da94
push 0x80004005
call fcn.00401f70
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0xc], eax
test edi, edi
mov byte [esp + 0x280], 1
jne 0x46dab4
xor eax, eax
jmp 0x46dacf
mov eax, edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x46dac0
sub eax, edx
sar eax, 1
push eax
push edi
lea ecx, [esp + 0x14]
call fcn.00402250
push 6
push str..ico
lea ecx, [esp + 0x14]
call fcn.004121c0
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
jne 0x46db60
mov byte [esp + 0x280], 0
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46db2b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov dword [esp + 0x280], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46db52
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x46dd14
mov ecx, 0x5925cc
lea eax, [esp + 0x48]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x46db96
test dx, dx
je 0x46db92
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x46db96
add eax, 4
add ecx, 4
test dx, dx
jne 0x46db70
xor eax, eax
jmp 0x46db9b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x46dc9d
mov ecx, 0x59a8a0
lea eax, [esp + 0x48]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x46dbd6
test dx, dx
je 0x46dbd2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x46dbd6
add eax, 4
add ecx, 4
test dx, dx
jne 0x46dbb0
xor eax, eax
jmp 0x46dbdb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x46dc9d
lea ecx, [esp + 0x48]
push str.desktop.ini
push ecx
call fcn.005522fc
add esp, 8
test eax, eax
je 0x46dc9d
test edi, edi
jne 0x46dc05
xor eax, eax
jmp 0x46dc1f
mov eax, edi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x46dc10
sub eax, edx
sar eax, 1
push eax
push edi
lea ecx, [esp + 0x18]
call fcn.00402250
push 0x5c
lea ecx, [esp + 0x14]
call fcn.00463630
lea eax, [esp + 0x48]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x46dc40
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x4c]
push edx
lea ecx, [esp + 0x18]
call fcn.004121c0
mov esi, dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x46dc78
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test byte [esp + 0x1c], 0x10
je 0x46dc96
mov ecx, dword [esp + 0x18]
push 0
push 0
push esi
call fcn.0046d690
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x46dc9d
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x46db60
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [esp + 0x280], 0
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46dce8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov dword [esp + 0x280], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46dd0f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x278]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x268]
xor ecx, esp
call fcn.00552101
mov esp, ebp
pop ebp
ret 4