Function at 0x401030
Capabilities:
Delete file
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc50
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, dword [eax]
mov eax, dword [eax + 4]
xor esi, esi
cmp dword [0xc27dfc], 0x594
mov dword [ebp - 8], eax
jne 0x401064
lea ecx, [ebp - 0x24]
push ecx
push esi
lea edx, [ebp - 0x50]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
mov eax, dword [0x805ef8]
mov ecx, dword [0x805efc]
mov dword [ebp - 0x2c], eax
push ebx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x24], ecx
call fcn.00401020
mov ebx, dword [ebp - 0x18]
mov edx, dword [0x805f00]
mov eax, dword [0x805f04]
add ebx, 0x23f
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x20], 0x20
jmp 0x4010b2
xor esi, esi
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov ecx, dword [0xc27dfc]
mov eax, edi
shl eax, 4
mov dword [ebp - 4], eax
cmp ecx, 0xc
jne 0x401121
push esi
lea ecx, [ebp - 0x450]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointA]
push esi
lea edx, [ebp - 0x38]
push edx
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WriteConsoleA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_PurgeComm]
xor eax, eax
xor ecx, ecx
mov word [ebp - 0x1a], cx
lea edx, [ebp - 0x3c]
push edx
mov word [ebp - 0x1c], ax
mov eax, dword [ebp - 0x1c]
push eax
push esi
lea ecx, [ebp - 0xc50]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterW]
mov eax, dword [ebp - 4]
mov ecx, dword [0xc27dfc]
add eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
cmp ecx, 0xfa9
jne 0x40113b
mov dword [0xc27df8], 0xedeb2e40
jmp 0x401157
cmp ecx, 0x3eb
jne 0x401157
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov dword [0xc277ac], esi
mov ecx, dword [ebp - 0xc]
lea edx, [ebx + edi]
mov dword [ebp - 0x14], edx
mov edx, edi
shr edx, cl
mov dword [0xc27df4], 0xf4ea3dee
add edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x14]
xor dword [ebp - 4], eax
xor edx, dword [ebp - 4]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x30]
add dword [ebp - 8], 0x64
sub dword [ebp - 8], eax
sub dword [ebp - 8], 0x64
mov eax, dword [ebp - 8]
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x2c]
add dword [ebp - 4], eax
mov dword [ebp - 0x10], esi
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
nop
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov esi, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
shr esi, cl
add esi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x14]
xor dword [ebp - 4], eax
cmp dword [0xc27dfc], 0xb03
jne 0x4011d5
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthW]
mov eax, dword [ebp - 4]
xor eax, esi
add ebx, 0x61c88647
sub edi, eax
sub dword [ebp - 0x20], 1
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], ebx
jne 0x4010b0
cmp dword [0xc27dfc], 0xa6d
mov esi, dword [ebp + 8]
mov dword [esi], edi
pop ebx
jne 0x40121e
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov ecx, dword [ebp - 8]
pop edi
mov dword [esi + 4], ecx
pop esi
mov esp, ebp
pop ebp
ret 4
mov edx, dword [ebp - 8]
pop edi
mov dword [esi + 4], edx
pop esi
mov esp, ebp
pop ebp
ret 4