Function at 0x4b51a0
Capabilities:
Delete directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea ebx, [ebp - 0x50]
sub esp, 0x8c
mov ecx, ebx
call fcn.004b6180
lea ecx, [ebp - 0x28]
call fcn.00472730
mov eax, dword [ebp + 8]
mov ecx, ebx
mov eax, dword [eax]
mov dword [esp], eax
call fcn.004b61f0
sub esp, 4
test al, al
je 0x4b5310
mov eax, dword [ebp - 0x30]
test al, 0x10
je 0x4b5300
test ah, 4
mov eax, dword [ebp - 0x28]
jne 0x4b534a
test eax, eax
je 0x4b51fb
mov dword [esp], eax
call fcn.006eb310
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x6c]
mov dword [esp], eax
call fcn.00472920
mov eax, dword [ebp - 0x68]
sub esp, 4
cmp dword [ebp - 0x64], eax
je 0x4b53ec
mov ecx, dword [ebp - 0x6c]
lea edx, [eax + eax]
mov edi, 0x5c
lea esi, [eax + 1]
mov word [ecx + eax*2], di
lea eax, [edx + 2]
mov dword [ebp - 0x7c], eax
xor eax, eax
mov word [ecx + edx + 2], ax
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x60], 0xffffffff
call fcn.00472730
lea eax, [ebp - 0x6c]
lea ecx, [ebp - 0x60]
mov dword [esp], eax
call fcn.004b6ec0
mov ecx, ebx
sub esp, 4
call fcn.004b6180
lea ecx, [ebp - 0x28]
call fcn.00472730
lea esi, [esi]
lea ecx, [ebp - 0x60]
mov dword [esp], ebx
call fcn.004b6f40
sub esp, 4
test al, al
je 0x4b5321
cmp dword [ebp - 0x68], esi
jbe 0x4b529a
mov eax, dword [ebp - 0x6c]
mov edi, dword [ebp - 0x7c]
xor edx, edx
mov dword [ebp - 0x68], esi
mov word [eax + edi], dx
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x6c]
mov dword [esp], eax
call fcn.00472fc0
sub esp, 4
test byte [ebp - 0x30], 0x10
je 0x4b5395
lea eax, [ebp - 0x6c]
mov dword [esp], eax
call fcn.004b51a0
test al, al
jne 0x4b5270
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x4b52d3
mov dword [esp], eax
call fcn.006eb310
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x4b52e2
mov dword [esp], eax
call fcn.006eb310
lea ecx, [ebp - 0x60]
call fcn.004b5e20
mov eax, dword [ebp - 0x6c]
test eax, eax
jne 0x4b5317
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], 0x10b
call dword [sym.imp.KERNEL32.dll_SetLastError]
sub esp, 4
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x4b52f1
mov dword [esp], eax
call fcn.006eb310
jmp 0x4b52f1
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x4b5330
mov dword [esp], eax
call fcn.006eb310
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x4b533f
mov dword [esp], eax
call fcn.006eb310
lea ecx, [ebp - 0x60]
call fcn.004b5e20
mov eax, dword [ebp - 0x6c]
test eax, eax
je 0x4b5356
mov dword [esp], eax
call fcn.006eb310
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
sub esp, 8
test eax, eax
je 0x4b52f3
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
sub esp, 4
test eax, eax
setne al
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, dword [ebp - 0x6c]
mov dword [esp], edi
call fcn.004b61d0
cmp eax, 0xffffffff
je 0x4b53af
mov edx, eax
and edx, 0x11
cmp edx, 1
je 0x4b53d0
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
sub esp, 4
test eax, eax
je 0x4b52c4
jmp 0x4b5270
and eax, 0xfffffffe
mov dword [esp], edi
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
sub esp, 8
test eax, eax
jne 0x4b53af
jmp 0x4b52c4
lea ecx, [ebp - 0x6c]
call fcn.00472200
mov eax, dword [ebp - 0x68]
jmp 0x4b5218