Function at 0x401481
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb1c
mov edx, dword [0x2d20ed4]
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 0x4014c2
push esi
lea eax, [ebp - 0xb1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edx, dword [0x2d20ed4]
mov eax, dword [0x41a5c0]
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x34], eax
mov eax, dword [0x41a5c4]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x20], eax
call fcn.00401475
mov esi, dword [ebp - 0x10]
add esi, 0x23f
mov dword [ebp - 0x10], esi
cmp edx, 0x14
jne 0x4014ff
push 0
lea eax, [ebp - 0xb1c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
mov ecx, dword [0x41a5c8]
mov edx, dword [0x41a5cc]
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 [0x2d20ed4], 0xfa9
mov dword [ebp - 4], eax
mov eax, dword [0x2d20ed0]
cmove eax, dword [ebp - 0x14]
and dword [ebp - 0x14], 0
cmp dword [0x2d20ed4], 0x3eb
mov dword [0x2d20ed0], eax
mov eax, dword [0x2d208c8]
cmove eax, dword [ebp - 0x14]
mov dword [0x2d208c8], 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 [0x2d20ecc], 0xf4ea3dee
mov eax, dword [ebp - 0xc]
add eax, edx
mov dword [ebp - 4], ecx
xor eax, ecx
mov ecx, dword [0x2d20ed4]
mov dword [ebp - 0xc], eax
cmp ecx, 0x213
jne 0x401604
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 [0x2d20ed4]
sub edi, eax
cmp ecx, 0xc
jne 0x40161a
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 [0x2d20ed4], 0xb03
mov dword [ebp - 4], edx
jne 0x401658
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.0040147c
mov ebx, eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x18], ebx
call fcn.0040146e
dec dword [ebp - 0x1c]
je 0x401685
mov esi, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x28]
jmp 0x40151b
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