Function at 0x40325d
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 [0x59d100], 0x594
mov dword [ebp - 0x18], esi
mov dword [ebp - 8], eax
jne 0x4032a6
push 0x402d38
push 0x402d70
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointW]
push 0x402d80
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomW]
mov eax, dword [0x429488]
mov dword [ebp - 0x28], eax
mov eax, dword [0x42948c]
mov dword [ebp - 0x30], eax
push edi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
call fcn.00403253
mov eax, dword [0x429490]
add dword [ebp - 0x10], 0x23f
mov dword [ebp - 0x2c], eax
mov eax, dword [0x429494]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 0x20
jmp 0x4032e5
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov eax, esi
shl eax, 4
cmp dword [0x59d100], 0xc
mov dword [ebp - 4], eax
jne 0x403344
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 [0x59d100]
cmp eax, 0xfa9
jne 0x403360
mov dword [0x59c69c], 0xedeb2e40
cmp eax, 0x3eb
jne 0x40336d
mov dword [0x59c050], 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 [0x59c698], 0xf4ea3dee
add esi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x14]
xor dword [ebp - 4], eax
xor esi, dword [ebp - 4]
cmp dword [0x59d100], 0x213
mov dword [ebp - 0x14], esi
jne 0x4033a7
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 [0x59d100], 0xc
jne 0x4033e7
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 0x402db0
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 [0x59d100], 0x121
jne 0x40341a
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.0040325a
lea eax, [ebp - 0x10]
call fcn.0040324c
dec dword [ebp - 0x20]
jne 0x4032e2
cmp dword [0x59d100], 0xa6d
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp + 8]
mov dword [esi], eax
pop edi
jne 0x403456
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