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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x83c
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [eax]
mov eax, dword [eax + 4]
push esi
xor esi, esi
cmp dword [0x596e80], 0x594
push edi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 8], eax
jne 0x402f45
push 0x402af0
push 0x402afc
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointA]
push 0x402b00
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomW]
mov eax, dword [0x423218]
mov dword [ebp - 0x28], eax
mov eax, dword [0x42321c]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], esi
call fcn.00402ef1
mov eax, dword [0x423220]
add dword [ebp - 0x10], 0x23f
mov dword [ebp - 0x24], eax
mov eax, dword [0x423224]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x20], 0x20
jmp 0x402f83
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov eax, ebx
shl eax, 4
cmp dword [0x596e80], 0xc
mov dword [ebp - 4], eax
jne 0x402fe0
push esi
lea eax, [ebp - 0x43c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
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]
push esi
push 0x402b60
push esi
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputCharacterW]
lea eax, [ebp - 0x3c]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
mov eax, dword [ebp - 0x24]
add dword [ebp - 4], eax
mov eax, dword [0x596e80]
cmp eax, 0xfa9
jne 0x402ffc
mov dword [0x59641c], 0xedeb2e40
cmp eax, 0x3eb
jne 0x403009
mov dword [0x595dcc], esi
mov edi, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
lea eax, [edi + ebx]
shr ebx, cl
mov dword [ebp - 0x14], eax
mov dword [0x596418], 0xf4ea3dee
add ebx, dword [ebp - 0x2c]
mov ecx, ebx
mov eax, dword [ebp - 0x14]
xor dword [ebp - 4], eax
xor ecx, dword [ebp - 4]
cmp dword [0x596e80], 0x213
mov dword [ebp - 0x14], ecx
jne 0x403046
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [ebp - 0x14]
add dword [ebp - 8], 0x64
sub dword [ebp - 8], eax
sub dword [ebp - 8], 0x64
cmp dword [0x596e80], 0xc
jne 0x403086
lea eax, [ebp - 0x14]
push eax
push esi
push esi
lea eax, [ebp - 0x38]
push eax
push esi
push esi
push esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_BackupWrite]
push esi
lea eax, [ebp - 0x83c]
push eax
push 0x402b74
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 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 - 0x30]
cmp dword [0x596e80], 0x121
jne 0x4030c9
push esi
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthA]
push 0x402b80
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetCalendarInfoA]
xor dword [ebp - 4], edi
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x18]
call fcn.00402ef8
lea eax, [ebp - 0x10]
call fcn.00402eea
dec dword [ebp - 0x20]
jne 0x402f80
cmp dword [0x596e80], 0xa6d
mov eax, dword [ebp - 0x18]
mov edi, dword [ebp + 8]
mov dword [edi], eax
jne 0x403108
push esi
push 0x402b9c
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