Function at 0x401030
Capabilities:
Delete file
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, dword [eax]
mov eax, dword [eax + 4]
xor esi, esi
cmp dword [0x854f4c], 0x594
mov dword [ebp - 8], eax
jne 0x401061
lea ecx, [ebp - 0x34]
push ecx
push esi
lea edx, [ebp - 0x50]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
mov eax, dword [0x433058]
mov ecx, dword [0x43305c]
mov dword [ebp - 0x30], eax
push ebx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x34], ecx
call fcn.00401020
mov ebx, dword [ebp - 0x18]
mov edx, dword [0x433060]
mov eax, dword [0x433064]
add ebx, 0x23f
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], 0x20
jmp 0x4010b2
xor esi, esi
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov ecx, dword [0x854f4c]
mov eax, edi
shl eax, 4
mov dword [ebp - 4], eax
cmp ecx, 0xc
jne 0x40110c
push esi
lea ecx, [ebp - 0x38]
push ecx
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_PurgeComm]
xor edx, edx
xor eax, eax
lea ecx, [ebp - 0x3c]
push ecx
mov word [ebp - 0x1c], dx
mov word [ebp - 0x1a], ax
mov edx, dword [ebp - 0x1c]
push edx
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterA]
mov eax, dword [ebp - 4]
mov ecx, dword [0x854f4c]
add eax, dword [ebp - 0x24]
mov dword [ebp - 4], eax
cmp ecx, 0xfa9
jne 0x401126
mov dword [0x854f48], 0xedeb2e40
jmp 0x401142
cmp ecx, 0x3eb
jne 0x401142
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov dword [0x8548fc], esi
mov ecx, dword [ebp - 0xc]
mov edx, edi
shr edx, cl
lea eax, [ebx + edi]
mov dword [ebp - 0x14], eax
mov dword [0x854f44], 0xf4ea3dee
add edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
xor dword [ebp - 4], eax
xor edx, dword [ebp - 4]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
add dword [ebp - 8], 0x64
sub dword [ebp - 8], eax
sub dword [ebp - 8], 0x64
mov ecx, dword [ebp - 8]
shl ecx, 4
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 0x30]
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 - 0x34]
mov eax, dword [ebp - 0x14]
xor dword [ebp - 4], eax
cmp dword [0x854f4c], 0xb03
jne 0x4011c0
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthA]
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 [0x854f4c], 0xa6d
mov esi, dword [ebp + 8]
mov dword [esi], edi
pop ebx
jne 0x401209
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [ebp - 8]
pop edi
mov dword [esi + 4], edx
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 8]
pop edi
mov dword [esi + 4], eax
pop esi
mov esp, ebp
pop ebp
ret 4