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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc50
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [eax]
mov eax, dword [eax + 4]
xor ebx, ebx
cmp dword [0x61b0e8], 0x594
mov dword [ebp - 0x18], esi
mov dword [ebp - 8], eax
jne 0x40497b
push 0x404734
push 0x40474c
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointW]
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceW]
mov eax, dword [0x4a7488]
mov dword [ebp - 0x28], eax
mov eax, dword [0x4a748c]
mov dword [ebp - 0x30], eax
push edi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
call fcn.00404922
mov eax, dword [0x4a7490]
add dword [ebp - 0x10], 0x23f
mov dword [ebp - 0x2c], eax
mov eax, dword [0x4a7494]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 0x20
jmp 0x4049ba
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov eax, esi
shl eax, 4
cmp dword [0x61b0e8], 0xc
mov dword [ebp - 4], eax
jne 0x404a1c
push ebx
lea eax, [ebp - 0xc50]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
xor eax, eax
mov word [ebp - 0x1c], ax
lea edi, [ebp - 0x1a]
stosw word es:[edi], ax
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x1c]
lea eax, [ebp - 0x450]
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputCharacterA]
lea eax, [ebp - 0x34]
push eax
push ebx
lea eax, [ebp - 0x50]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
mov eax, dword [ebp - 0x2c]
add dword [ebp - 4], eax
mov eax, dword [0x61b0e8]
cmp eax, 0xfa9
jne 0x404a38
mov dword [0x61a684], 0xedeb2e40
cmp eax, 0x3eb
jne 0x404a45
mov dword [0x61a034], ebx
mov ecx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov edx, esi
shr edx, cl
lea eax, [edi + esi]
mov dword [ebp - 0x14], eax
mov dword [0x61a680], 0xf4ea3dee
add edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x14]
xor dword [ebp - 4], eax
xor edx, dword [ebp - 4]
cmp dword [0x61b0e8], 0x213
mov dword [ebp - 0x14], edx
jne 0x404a81
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov eax, dword [ebp - 0x14]
add dword [ebp - 8], 0x64
sub dword [ebp - 8], eax
sub dword [ebp - 8], 0x64
cmp dword [0x61b0e8], 0xc
jne 0x404ac1
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
lea eax, [ebp - 0x3c]
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 - 0x450]
push eax
push 0x404774
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameA]
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 [0x61b0e8], 0x121
jne 0x404af4
push ebx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthW]
xor dword [ebp - 4], esi
push dword [ebp - 4]
mov eax, dword [ebp - 0x18]
call fcn.00404929
add dword [ebp - 0x10], 0x61c88647
dec dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
jne 0x4049b7
cmp dword [0x61b0e8], 0xa6d
mov esi, dword [ebp + 8]
mov dword [esi], eax
pop edi
jne 0x404b2f
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