Function at 0x4795e0
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x5a8c91
mov eax, dword fs:[0]
push eax
sub esp, 0x260
mov eax, dword [0x61ac94]
xor eax, esp
mov dword [esp + 0x25c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x61ac94]
xor eax, esp
push eax
lea eax, [esp + 0x274]
mov dword fs:[0], eax
mov eax, dword [esp + 0x284]
test eax, eax
je 0x47966d
push eax
lea ecx, [esp + 0x18]
call fcn.0040e080
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 0xc]
mov dword [esp + 0x27c], 0
test ecx, ecx
jne 0x479697
add eax, 0xfffffff0
mov dword [esp + 0x27c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47966d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x274]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x25c]
xor ecx, esp
call fcn.004e5fb0
add esp, 0x26c
ret
lea edx, [ecx - 1]
test edx, edx
jl 0x479849
cmp edx, ecx
jg 0x479849
movzx ecx, word [eax + edx*2]
cmp cx, 0x5c
je 0x4796c3
push 0x5c
lea ecx, [esp + 0x18]
call fcn.0040c600
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 3
jle 0x479646
add eax, 0xfffffff0
push eax
call fcn.0040c050
add eax, 0x10
add esp, 4
mov dword [esp + 0x18], eax
push 0x5bf344
lea ecx, [esp + 0x1c]
mov byte [esp + 0x280], 1
call fcn.00414a10
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x20]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x479724
lea ecx, [esp + 0x18]
call fcn.0040c150
lea ecx, [esp + 0x14]
call fcn.0040c150
jmp 0x47966d
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea ebx, [ebx]
cmp word [esp + 0x4c], 0x2e
jne 0x47975f
mov ax, word [esp + 0x4e]
test ax, ax
je 0x479750
cmp ax, 0x2e
jne 0x47975f
cmp word [esp + 0x50], 0
jne 0x47975f
lea eax, [esp + 0x20]
push eax
push ebp
call ebx
mov edi, eax
jmp 0x479804
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
push eax
call fcn.0040c050
add esp, 4
add eax, 0x10
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x4c]
mov byte [esp + 0x27c], 2
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x479785
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x24]
call fcn.0040c9c0
test byte [esp + 0x20], 0x10
mov esi, dword [esp + 0x1c]
je 0x4797b9
push esi
call fcn.004795e0
add esp, 4
jmp 0x4797d6
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4797d6
push esi
call fcn.0044ee80
lea edx, [esp + 0x20]
push edx
push ebp
call ebx
mov edi, eax
lea eax, [esi - 0x10]
mov byte [esp + 0x27c], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x479804
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test edi, edi
jne 0x479730
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebp
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp esi, 0x12
jne 0x47970d
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [esp + 0x18]
call fcn.0040c150
lea ecx, [esp + 0x14]
call fcn.0040c150
lea eax, [edi + 1]
jmp 0x47966f
push 0x80070057
call fcn.0040b390
int3