Function at 0x401f43
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb1c
mov edx, dword [0x2d3af74]
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 0x401f84
push esi
lea eax, [ebp - 0xb1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edx, dword [0x2d3af74]
mov eax, dword [0x4255c0]
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x34], eax
mov eax, dword [0x4255c4]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x20], eax
call fcn.00401f37
mov esi, dword [ebp - 0x10]
add esi, 0x23f
mov dword [ebp - 0x10], esi
cmp edx, 0x14
jne 0x401fc1
push 0
lea eax, [ebp - 0xb1c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
mov ecx, dword [0x4255c8]
mov edx, dword [0x4255cc]
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 [0x2d3af74], 0xfa9
mov dword [ebp - 4], eax
mov eax, dword [0x2d3af70]
cmove eax, dword [ebp - 0x14]
and dword [ebp - 0x14], 0
cmp dword [0x2d3af74], 0x3eb
mov dword [0x2d3af70], eax
mov eax, dword [0x2d3a968]
cmove eax, dword [ebp - 0x14]
mov dword [0x2d3a968], 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 [0x2d3af6c], 0xf4ea3dee
mov eax, dword [ebp - 0xc]
add eax, edx
mov dword [ebp - 4], ecx
xor eax, ecx
mov ecx, dword [0x2d3af74]
mov dword [ebp - 0xc], eax
cmp ecx, 0x213
jne 0x4020c6
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 - 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 [0x2d3af74]
sub edi, eax
cmp ecx, 0xc
jne 0x4020dc
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 [0x2d3af74], 0xb03
mov dword [ebp - 4], edx
jne 0x40211a
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.00401f3e
mov ebx, eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x18], ebx
call fcn.00401f30
dec dword [ebp - 0x1c]
je 0x402147
mov esi, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x28]
jmp 0x401fdd
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