Function at 0x402f91
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]
push ebx
mov ebx, dword [eax]
mov eax, dword [eax + 4]
push esi
xor esi, esi
cmp dword [0x2fa4ad8], 0x594
push edi
mov dword [ebp - 8], eax
jne 0x402fd6
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 [0x80b468]
mov dword [ebp - 0x24], eax
mov eax, dword [0x80b46c]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], esi
call fcn.00402f80
mov eax, dword [0x80b470]
add dword [ebp - 0x14], 0x23f
mov dword [ebp - 0x28], eax
mov eax, dword [0x80b474]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x18], 0x20
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov eax, ebx
shl eax, 4
cmp dword [0x2fa4ad8], 0xc
mov dword [ebp - 4], eax
jne 0x403071
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 [0x2fa4ad8]
cmp eax, 0xfa9
jne 0x40308d
mov dword [0x2fa4074], 0xedeb2e40
cmp eax, 0x3eb
jne 0x40309a
mov dword [0x2fa3a28], esi
mov ecx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x14]
mov edx, ebx
shr edx, cl
lea eax, [edi + ebx]
mov dword [ebp - 0x10], eax
mov dword [0x2fa4070], 0xf4ea3dee
add edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x10]
xor dword [ebp - 4], eax
xor edx, dword [ebp - 4]
cmp dword [0x2fa4ad8], 0x213
mov dword [ebp - 0x10], edx
jne 0x4030d6
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov eax, dword [ebp - 0x10]
add dword [ebp - 8], 0x64
sub dword [ebp - 8], eax
sub dword [ebp - 8], 0x64
cmp dword [0x2fa4ad8], 0xc
jne 0x403116
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 - 8]
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 4], eax
mov ecx, dword [ebp - 8]
lea eax, [edi + ecx]
xor dword [ebp - 4], eax
mov edi, ecx
mov ecx, dword [ebp - 0xc]
shr edi, cl
add edi, dword [ebp - 0x20]
cmp dword [0x2fa4ad8], 0x121
jne 0x403159
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, ebx
call fcn.00402f87
mov ebx, eax
lea eax, [ebp - 0x14]
call fcn.00402f79
dec dword [ebp - 0x18]
jne 0x40300f
cmp dword [0x2fa4ad8], 0xa6d
mov edi, dword [ebp + 8]
mov dword [edi], ebx
jne 0x403192
push esi
push esi
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceA]
mov eax, dword [ebp - 8]
mov dword [edi + 4], eax
pop edi
pop esi
pop ebx
leave
ret 4