Function at 0x401d9b
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84c
mov edx, dword [0x2d3a608]
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x1c], esi
push edi
mov ebx, dword [esi]
mov edi, dword [esi + 4]
mov dword [ebp - 0x10], ebx
cmp edx, 0x594
jne 0x401dd9
push 0
lea eax, [ebp - 0x84c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edx, dword [0x2d3a608]
mov eax, dword [0x4245c0]
lea ecx, [ebp - 8]
and dword [ebp - 8], 0
mov dword [ebp - 0x2c], eax
mov eax, dword [0x4245c4]
mov dword [ebp - 0x20], 0x9e3779b9
mov dword [ebp - 0x18], eax
call fcn.00401d91
add dword [ebp - 8], 0x23f
cmp edx, 0x14
jne 0x401e19
push 0
lea eax, [ebp - 0x44c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindNextVolumeA]
mov ecx, dword [0x4245c8]
mov eax, dword [0x4245cc]
push 0x20
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], eax
pop esi
mov dword [ebp - 0x14], 2
add dword [ebp - 0x14], 3
mov eax, ebx
mov edx, 0xedeb2e40
shl eax, 4
add eax, ecx
cmp dword [0x2d3a608], 0xfa9
mov ecx, dword [ebp - 8]
mov dword [ebp - 4], eax
mov eax, dword [0x2d39c04]
cmove eax, edx
xor edx, edx
cmp dword [0x2d3a608], 0x3eb
mov dword [0x2d39c04], eax
mov eax, dword [0x2d395f8]
cmove eax, edx
add ecx, ebx
mov dword [0x2d395f8], eax
mov eax, dword [ebp - 0x10]
shr eax, 5
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 4]
xor ebx, ebx
mov eax, dword [ebp - 0xc]
xor edx, ecx
add eax, dword [ebp - 0x28]
mov ecx, dword [0x2d3a608]
xor eax, edx
mov dword [0x2d39c00], 0xf4ea3dee
mov dword [ebp - 4], edx
mov dword [ebp - 0xc], eax
cmp ecx, 0x213
jne 0x401f06
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateHardLinkW]
call dword [sym.imp.KERNEL32.dll_GetACP]
lea eax, [ebp - 0x30]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeW]
push ebx
push ebx
push ebx
lea eax, [ebp - 0x318]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
push ebx
call dword [sym.imp.KERNEL32.dll_GetNumaHighestNodeNumber]
lea eax, [ebp - 0x38]
push eax
push ebx
lea eax, [ebp - 0x4c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputW]
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteTimerQueueTimer]
mov eax, dword [ebp - 0xc]
mov ecx, dword [0x2d3a608]
sub edi, eax
cmp ecx, 0xc
jne 0x401f1a
lea eax, [ebp - 0x34]
push eax
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
mov eax, edi
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x2c]
add dword [ebp - 4], eax
mov ecx, dword [ebp - 0x14]
mov eax, edi
mov edx, dword [ebp - 8]
shr eax, cl
add edx, edi
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
xor eax, edx
cmp dword [0x2d3a608], 0xb03
mov dword [ebp - 4], eax
jne 0x401f5a
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesLengthW]
mov eax, dword [ebp - 4]
xor eax, dword [ebp - 0xc]
lea ecx, [ebp - 0x10]
mov edx, eax
mov dword [ebp - 4], eax
call fcn.00401d98
mov eax, dword [ebp - 0x20]
sub dword [ebp - 8], eax
dec esi
je 0x401f7e
mov ebx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x24]
jmp 0x401e2d
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x10]
mov dword [esi + 4], edi
pop edi
mov dword [esi], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret