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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea ecx, [ebp - 0x50]
sub esp, 0x8c
mov ebx, dword [ebp + 8]
call fcn.004bbe80
lea ecx, [ebp - 0x28]
call fcn.00473f00
mov eax, dword [ebx]
lea ecx, [ebp - 0x50]
mov dword [esp], eax
call fcn.004bbef0
sub esp, 4
test al, al
je 0x4bad60
mov eax, dword [ebp - 0x30]
test al, 0x10
je 0x4bad50
test ah, 4
mov edx, dword [ebp - 0x28]
jne 0x4bad71
test edx, edx
je 0x4bac1a
mov dword [esp], edx
call fcn.006febd0
lea ecx, [ebp - 0x6c]
mov dword [esp], ebx
call fcn.00474110
mov eax, dword [ebp - 0x68]
sub esp, 4
cmp dword [ebp - 0x64], eax
je 0x4bae30
mov ecx, dword [ebp - 0x6c]
lea edx, [eax + eax]
mov esi, 0x5c
lea edi, [eax + 1]
mov word [ecx + eax*2], si
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], edi
mov dword [ebp - 0x60], 0xffffffff
call fcn.00473f00
lea eax, [ebp - 0x6c]
lea ecx, [ebp - 0x60]
mov dword [esp], eax
call fcn.004bcb90
lea ecx, [ebp - 0x50]
sub esp, 4
call fcn.004bbe80
lea ecx, [ebp - 0x28]
call fcn.00473f00
lea eax, [ebp - 0x50]
lea ecx, [ebp - 0x60]
mov dword [esp], eax
call fcn.004bcc10
sub esp, 4
test al, al
je 0x4badf0
cmp dword [ebp - 0x68], edi
jbe 0x4bacb3
mov eax, dword [ebp - 0x6c]
mov esi, dword [ebp - 0x7c]
xor edx, edx
mov dword [ebp - 0x68], edi
mov word [eax + esi], dx
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x6c]
mov dword [esp], eax
call fcn.004747a0
sub esp, 4
test byte [ebp - 0x30], 0x10
jne 0x4badb0
mov esi, dword [ebp - 0x6c]
mov dword [esp], esi
call fcn.004bbed0
cmp eax, 0xffffffff
je 0x4bacec
mov edx, eax
and edx, 0x11
cmp edx, 1
je 0x4badd0
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
sub esp, 4
test eax, eax
jne 0x4bac86
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x4bad10
mov dword [esp], eax
call fcn.006febd0
nop
lea esi, [esi]
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x4bad1f
mov dword [esp], eax
call fcn.006febd0
lea ecx, [ebp - 0x60]
call fcn.004bbb20
mov eax, dword [ebp - 0x6c]
test eax, eax
je 0x4bad40
mov dword [esp], eax
call fcn.006febd0
lea esi, [esi]
lea edi, [edi]
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 0x4bad40
mov dword [esp], eax
call fcn.006febd0
jmp 0x4bad40
test edx, edx
jne 0x4bae40
mov dword [esp + 4], 0
mov eax, dword [ebx]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov edx, eax
sub esp, 8
xor eax, eax
test edx, edx
je 0x4bad42
mov eax, dword [ebx]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
sub esp, 4
test eax, eax
setne al
jmp 0x4bad42
lea eax, [ebp - 0x6c]
mov dword [esp], eax
call fcn.004babc0
test al, al
jne 0x4bac86
jmp 0x4bacfc
and eax, 0xfffffffe
mov dword [esp], esi
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
sub esp, 8
test eax, eax
jne 0x4bacec
jmp 0x4bacfc
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x4badff
mov dword [esp], eax
call fcn.006febd0
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x4bae0e
mov dword [esp], eax
call fcn.006febd0
lea ecx, [ebp - 0x60]
call fcn.004bbb20
mov eax, dword [ebp - 0x6c]
test eax, eax
je 0x4bad79
mov dword [esp], eax
call fcn.006febd0
jmp 0x4bad79
lea ecx, [ebp - 0x6c]
call fcn.004739d0
mov eax, dword [ebp - 0x68]
jmp 0x4bac34
mov dword [esp], edx
call fcn.006febd0
jmp 0x4bad79