Function at 0x40306a
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 [0x59c100], 0x594
push edi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0xc], eax
jne 0x4030b1
push 0x402d44
push 0x402d50
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 [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.00403059
mov eax, dword [0x428480]
mov ebx, dword [ebp - 8]
mov dword [ebp - 0x28], eax
mov eax, dword [str.1SS]
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 [0x59c100], 0xc
mov dword [ebp - 4], eax
jne 0x403150
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 [0x59c100]
cmp eax, 0xfa9
jne 0x40316c
mov dword [0x59b69c], 0xedeb2e40
cmp eax, 0x3eb
jne 0x403179
mov dword [0x59b050], 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 [0x59b698], 0xf4ea3dee
add edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x10]
xor dword [ebp - 4], eax
xor edx, dword [ebp - 4]
cmp dword [0x59c100], 0x213
mov dword [ebp - 0x10], edx
jne 0x4031b3
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 [0x59c100], 0xc
jne 0x4031f3
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 0x402d64
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 [0x59c100], 0x121
jne 0x403234
push esi
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthW]
push 0x402d90
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.00403060
add ebx, 0x61c88647
dec dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
jne 0x4030ed
cmp dword [0x59c100], 0xa6d
mov edi, dword [ebp + 8]
mov dword [edi], eax
pop ebx
jne 0x40326e
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