Function at 0x405f8f
Capabilities:
Delete directory
Get common file path
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x864
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [eax]
mov eax, dword [eax + 4]
xor ebx, ebx
cmp dword [0x4dffe0], 0x594
push edi
mov dword [ebp - 0x18], esi
mov dword [ebp - 8], eax
jne 0x405fd0
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteVolumeMountPointA]
push 0x405900
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomA]
mov eax, dword [0x42f768]
mov dword [ebp - 0x24], eax
mov eax, dword [0x42f76c]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
call fcn.00405f88
mov eax, dword [0x42f770]
add dword [ebp - 0x10], 0x23f
mov dword [ebp - 0x28], eax
mov eax, dword [0x42f774]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 0x20
jmp 0x40600e
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov eax, esi
shl eax, 4
cmp dword [0x4dffe0], 0xc
mov dword [ebp - 4], eax
jne 0x40604c
push ebx
lea eax, [ebp - 0x864]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
lea eax, [ebp - 0x30]
push eax
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputW]
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov eax, dword [0x4dffe0]
cmp eax, 0xfa9
jne 0x406068
mov dword [0x4df57c], 0xedeb2e40
cmp eax, 0x3eb
jne 0x406075
mov dword [0x4def30], ebx
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
mov edx, esi
shr edx, cl
add eax, esi
mov dword [ebp - 0x14], eax
mov dword [0x4df578], 0xf4ea3dee
add edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x14]
xor dword [ebp - 4], eax
xor edx, dword [ebp - 4]
cmp dword [0x4dffe0], 0x213
mov dword [ebp - 0x14], edx
jne 0x4060b1
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [ebp - 0x14]
add dword [ebp - 8], 0x64
sub dword [ebp - 8], eax
sub dword [ebp - 8], 0x64
cmp dword [0x4dffe0], 0xc
jne 0x406110
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
lea eax, [ebp - 0x34]
push eax
push ebx
push ebx
push ebx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_BackupRead]
xor eax, eax
mov dword [ebp - 0x48], ebx
lea edi, [ebp - 0x44]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x64]
push eax
push 0x405914
call dword [sym.imp.KERNEL32.dll_BuildCommDCBAndTimeoutsA]
push ebx
lea eax, [ebp - 0x464]
push eax
push 0x405928
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameA]
mov eax, dword [ebp - 8]
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 4], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
lea edx, [ecx + eax]
mov ecx, dword [ebp - 0xc]
xor dword [ebp - 4], edx
mov esi, eax
shr esi, cl
add esi, dword [ebp - 0x2c]
cmp dword [0x4dffe0], 0x121
jne 0x40614b
push ebx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthW]
mov eax, dword [ebp - 8]
xor dword [ebp - 4], esi
mov ecx, dword [ebp - 4]
sub dword [ebp - 0x18], ecx
add dword [ebp - 0x10], 0x61c88647
dec dword [ebp - 0x1c]
jne 0x40600b
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x18]
pop edi
pop esi
mov dword [ecx], edx
mov dword [ecx + 4], eax
pop ebx
leave
ret 4