Function at 0x40327d
Capabilities:
Delete directory
Get common file path
Get file attributes
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc3c
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [eax]
mov eax, dword [eax + 4]
xor ebx, ebx
cmp dword [0x59d0f8], 0x594
mov dword [ebp - 0x18], esi
mov dword [ebp - 8], eax
jne 0x4032c6
push 0x402d48
push 0x402d80
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointW]
push 0x402d90
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomW]
mov eax, dword [0x429478]
mov dword [ebp - 0x28], eax
mov eax, dword [0x42947c]
mov dword [ebp - 0x30], eax
push edi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
call fcn.00403273
mov eax, dword [0x429480]
add dword [ebp - 0x10], 0x23f
mov dword [ebp - 0x2c], eax
mov eax, dword [0x429484]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 0x20
jmp 0x403305
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov eax, esi
shl eax, 4
cmp dword [0x59d0f8], 0xc
mov dword [ebp - 4], eax
jne 0x403364
push ebx
lea eax, [ebp - 0x43c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
mov word [ebp - 0x1c], ax
lea edi, [ebp - 0x1a]
stosw word es:[edi], ax
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x1c]
lea eax, [ebp - 0xc3c]
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputCharacterW]
lea eax, [ebp - 0x3c]
push eax
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
mov eax, dword [ebp - 0x2c]
add dword [ebp - 4], eax
mov eax, dword [0x59d0f8]
cmp eax, 0xfa9
jne 0x403380
mov dword [0x59c694], 0xedeb2e40
cmp eax, 0x3eb
jne 0x40338d
mov dword [0x59c048], ebx
mov edi, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
lea eax, [edi + esi]
shr esi, cl
mov dword [ebp - 0x14], eax
mov dword [0x59c690], 0xf4ea3dee
add esi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x14]
xor dword [ebp - 4], eax
xor esi, dword [ebp - 4]
cmp dword [0x59d0f8], 0x213
mov dword [ebp - 0x14], esi
jne 0x4033c7
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov eax, dword [ebp - 0x14]
add dword [ebp - 8], 0x64
sub dword [ebp - 8], eax
sub dword [ebp - 8], 0x64
cmp dword [0x59d0f8], 0xc
jne 0x403407
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
lea eax, [ebp - 0x38]
push eax
push ebx
push ebx
push ebx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_BackupWrite]
push ebx
lea eax, [ebp - 0xc3c]
push eax
push 0x402df0
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
mov eax, dword [ebp - 8]
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov esi, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
lea eax, [edi + esi]
xor dword [ebp - 4], eax
shr esi, cl
add esi, dword [ebp - 0x30]
cmp dword [0x59d0f8], 0x121
jne 0x40343a
push ebx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthW]
xor dword [ebp - 4], esi
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x18]
call fcn.0040327a
lea eax, [ebp - 0x10]
call fcn.0040326c
dec dword [ebp - 0x20]
jne 0x403302
cmp dword [0x59d0f8], 0xa6d
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp + 8]
mov dword [esi], eax
pop edi
jne 0x403476
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
mov eax, dword [ebp - 8]
mov dword [esi + 4], eax
pop esi
pop ebx
leave
ret 4