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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4c
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
push esi
xor esi, esi
cmp dword [0x59c108], 0x594
push edi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0xc], eax
jne 0x4030d1
push 0x402d44
push 0x402d5c
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointW]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomW]
mov eax, dword [0x428478]
mov dword [ebp - 0x24], eax
mov eax, dword [0x42847c]
mov dword [ebp - 0x20], eax
push ebx
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
call fcn.00403079
mov eax, dword [0x428480]
mov ebx, dword [ebp - 8]
mov dword [ebp - 0x28], eax
mov eax, dword [0x428484]
add ebx, 0x23f
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x18], 0x20
mov dword [ebp - 8], 2
add dword [ebp - 8], 3
mov eax, dword [ebp - 0x14]
shl eax, 4
cmp dword [0x59c108], 0xc
mov dword [ebp - 4], eax
jne 0x403170
push esi
lea eax, [ebp - 0xc4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
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 - 0x44c]
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputCharacterA]
lea eax, [ebp - 0x30]
push eax
push esi
lea eax, [ebp - 0x4c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov eax, dword [0x59c108]
cmp eax, 0xfa9
jne 0x40318c
mov dword [0x59b6a4], 0xedeb2e40
cmp eax, 0x3eb
jne 0x403199
mov dword [0x59b054], esi
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
lea eax, [ebx + edx]
shr edx, cl
mov dword [ebp - 0x10], eax
mov dword [0x59b6a0], 0xf4ea3dee
add edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x10]
xor dword [ebp - 4], eax
xor edx, dword [ebp - 4]
cmp dword [0x59c108], 0x213
mov dword [ebp - 0x10], edx
jne 0x4031d3
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov eax, dword [ebp - 0x10]
add dword [ebp - 0xc], 0x64
sub dword [ebp - 0xc], eax
sub dword [ebp - 0xc], 0x64
cmp dword [0x59c108], 0xc
jne 0x403213
lea eax, [ebp - 0x10]
push eax
push esi
push esi
lea eax, [ebp - 0x38]
push eax
push esi
push esi
push esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_BackupWrite]
push esi
lea eax, [ebp - 0x44c]
push eax
push 0x402d84
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameA]
mov eax, dword [ebp - 0xc]
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 4], eax
mov edi, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
lea eax, [ebx + edi]
xor dword [ebp - 4], eax
shr edi, cl
add edi, dword [ebp - 0x20]
cmp dword [0x59c108], 0x121
jne 0x403254
push esi
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthW]
push 0x402db0
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetCalendarInfoA]
xor dword [ebp - 4], edi
push dword [ebp - 4]
mov eax, dword [ebp - 0x14]
call fcn.00403080
add ebx, 0x61c88647
dec dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
jne 0x40310d
cmp dword [0x59c108], 0xa6d
mov edi, dword [ebp + 8]
mov dword [edi], eax
pop ebx
jne 0x40328e
push esi
push esi
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceA]
mov eax, dword [ebp - 0xc]
mov dword [edi + 4], eax
pop edi
pop esi
leave
ret 4