Function at 0x401f75
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb18
mov edx, dword [0x2daf6d4]
push ebx
push esi
push edi
mov edi, ecx
xor esi, esi
mov dword [ebp - 0x28], edi
mov eax, dword [edi]
mov ebx, dword [edi + 4]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
cmp edx, 0x594
jne 0x401fb6
push esi
lea eax, [ebp - 0xb18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edx, dword [0x2daf6d4]
mov eax, dword [0x4265c0]
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x30], eax
mov eax, dword [0x4265c4]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x1c], eax
call fcn.00401f6b
mov esi, dword [ebp - 0xc]
add esi, 0x23f
mov dword [ebp - 0xc], esi
cmp edx, 0x14
jne 0x401ff3
push 0
lea eax, [ebp - 0xb18]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
mov ecx, dword [0x4265c8]
mov eax, dword [0x4265cc]
mov edx, dword [ebp - 0x10]
push 0x20
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x2c], eax
pop edi
mov dword [ebp - 0x10], 2
add dword [ebp - 0x10], 3
mov eax, edx
mov dword [ebp - 0x18], 0xedeb2e40
shl eax, 4
add eax, ecx
cmp dword [0x2daf6d4], 0xfa9
mov dword [ebp - 4], eax
mov eax, dword [0x2daf6d0]
cmove eax, dword [ebp - 0x18]
and dword [ebp - 0x18], 0
cmp dword [0x2daf6d4], 0x3eb
mov dword [0x2daf6d0], eax
mov eax, dword [0x2daf0c8]
cmove eax, dword [ebp - 0x18]
mov dword [0x2daf0c8], eax
mov eax, dword [ebp - 0x14]
shr eax, 5
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
lea eax, [esi + edx]
xor ecx, eax
mov dword [0x2daf6cc], 0xf4ea3dee
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x2c]
xor eax, ecx
mov dword [ebp - 4], ecx
mov ecx, dword [0x2daf6d4]
mov dword [ebp - 8], eax
cmp ecx, 0x213
jne 0x4020f4
xor eax, eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateHardLinkW]
push 0
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
lea eax, [ebp - 0x20]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeW]
xor ecx, ecx
lea eax, [ebp - 0x318]
push ecx
push ecx
push ecx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
push dword [ebp - 0x20]
push 0
call dword [sym.imp.KERNEL32.dll_GetNumaProcessorNode]
lea eax, [ebp - 0x34]
push eax
push 0
lea eax, [ebp - 0x4c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputW]
xor eax, eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_DeleteTimerQueueTimer]
mov eax, dword [ebp - 8]
mov ecx, dword [0x2daf6d4]
sub ebx, eax
cmp ecx, 0xc
jne 0x40210a
lea eax, [ebp - 0x38]
push eax
xor eax, eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
mov eax, ebx
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x30]
add dword [ebp - 4], eax
mov ecx, dword [ebp - 0x10]
mov eax, ebx
shr eax, cl
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x1c]
add dword [ebp - 8], eax
mov edx, dword [ebp - 4]
lea eax, [esi + ebx]
xor edx, eax
cmp dword [0x2daf6d4], 0xb03
mov dword [ebp - 4], edx
jne 0x402148
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesLengthA]
mov edx, dword [ebp - 4]
xor edx, dword [ebp - 8]
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], edx
call fcn.00401f72
lea ecx, [ebp - 0xc]
call fcn.00401f64
dec edi
je 0x40216f
mov edx, dword [ebp - 0x14]
mov esi, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x24]
jmp 0x40200a
mov edi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
mov dword [edi + 4], ebx
mov dword [edi], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret