Function at 0x401f96
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb1c
mov edx, dword [0x2d18bf4]
push ebx
push esi
push edi
mov edi, ecx
xor esi, esi
mov dword [ebp - 0x2c], edi
mov ebx, dword [edi]
mov eax, dword [edi + 4]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 8], eax
cmp edx, 0x594
jne 0x401fd7
push esi
lea eax, [ebp - 0xb1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edx, dword [0x2d18bf4]
mov eax, dword [0x4265c0]
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x34], eax
mov eax, dword [0x4265c4]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x20], eax
call fcn.00401f8a
mov esi, dword [ebp - 0x10]
add esi, 0x23f
mov dword [ebp - 0x10], esi
cmp edx, 0x14
jne 0x402014
push 0
lea eax, [ebp - 0xb1c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
mov ecx, dword [0x4265c8]
mov edx, dword [0x4265cc]
mov edi, dword [ebp - 8]
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x1c], 0x20
mov dword [ebp - 8], 2
add dword [ebp - 8], 3
mov eax, ebx
mov dword [ebp - 0x14], 0xedeb2e40
shl eax, 4
add eax, ecx
cmp dword [0x2d18bf4], 0xfa9
mov dword [ebp - 4], eax
mov eax, dword [0x2d18bf0]
cmove eax, dword [ebp - 0x14]
and dword [ebp - 0x14], 0
cmp dword [0x2d18bf4], 0x3eb
mov dword [0x2d18bf0], eax
mov eax, dword [0x2d185e8]
cmove eax, dword [ebp - 0x14]
mov dword [0x2d185e8], eax
mov eax, dword [ebp - 0x18]
shr eax, 5
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 4]
lea eax, [esi + ebx]
xor ecx, eax
mov dword [0x2d18bec], 0xf4ea3dee
mov eax, dword [ebp - 0xc]
add eax, edx
mov dword [ebp - 4], ecx
xor eax, ecx
mov ecx, dword [0x2d18bf4]
mov dword [ebp - 0xc], eax
cmp ecx, 0x213
jne 0x402119
xor eax, eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateHardLinkA]
push 0
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
lea eax, [ebp - 0x24]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeW]
xor ecx, ecx
lea eax, [ebp - 0x31c]
push ecx
push ecx
push ecx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
push dword [ebp - 0x24]
push 0
call dword [sym.imp.KERNEL32.dll_GetNumaProcessorNode]
lea eax, [ebp - 0x38]
push eax
push 0
lea eax, [ebp - 0x50]
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 - 0xc]
mov ecx, dword [0x2d18bf4]
sub edi, eax
cmp ecx, 0xc
jne 0x40212f
lea eax, [ebp - 0x3c]
push eax
xor eax, eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
mov eax, edi
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x34]
add dword [ebp - 4], eax
mov ecx, dword [ebp - 8]
mov eax, edi
shr eax, cl
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x20]
add dword [ebp - 0xc], eax
mov edx, dword [ebp - 4]
lea eax, [esi + edi]
xor edx, eax
cmp dword [0x2d18bf4], 0xb03
mov dword [ebp - 4], edx
jne 0x40216d
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesLengthA]
mov edx, dword [ebp - 4]
xor edx, dword [ebp - 0xc]
mov ecx, ebx
mov dword [ebp - 4], edx
call fcn.00401f91
mov ebx, eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x18], ebx
call fcn.00401f83
dec dword [ebp - 0x1c]
je 0x40219a
mov esi, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x28]
jmp 0x402030
mov dword [ebp - 8], edi
mov edi, dword [ebp - 0x2c]
mov eax, dword [ebp - 8]
mov dword [edi], ebx
mov dword [edi + 4], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret