Function at 0x402f8a
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 [0x59c0d8], 0x594
push edi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0xc], eax
jne 0x402fd1
push 0x402c6c
push 0x402c78
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointA]
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 [0x428468]
mov dword [ebp - 0x24], eax
mov eax, dword [0x42846c]
mov dword [ebp - 0x20], eax
push ebx
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
call fcn.00402f79
mov eax, dword [0x428470]
mov ebx, dword [ebp - 8]
mov dword [ebp - 0x28], eax
mov eax, dword [0x428474]
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 [0x59c0d8], 0xc
mov dword [ebp - 4], eax
jne 0x403070
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_WriteConsoleInputA]
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov eax, dword [0x59c0d8]
cmp eax, 0xfa9
jne 0x40308c
mov dword [0x59b674], 0xedeb2e40
cmp eax, 0x3eb
jne 0x403099
mov dword [0x59b028], 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 [0x59b670], 0xf4ea3dee
add edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x10]
xor dword [ebp - 4], eax
xor edx, dword [ebp - 4]
cmp dword [0x59c0d8], 0x213
mov dword [ebp - 0x10], edx
jne 0x4030d3
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 [0x59c0d8], 0xc
jne 0x403113
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 0x402c8c
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 [0x59c0d8], 0x121
jne 0x403154
push esi
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthW]
push 0x402cb8
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.00402f80
add ebx, 0x61c88647
dec dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
jne 0x40300d
cmp dword [0x59c0d8], 0xa6d
mov edi, dword [ebp + 8]
mov dword [edi], eax
pop ebx
jne 0x40318e
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