Function at 0x4ad0b9c4
Capabilities:
Manipulate console buffer

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x40
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
cmp eax, 0xffffffff
mov dword [ebp - 0xc], eax
je 0x4ad12046
cmp byte [0x4ad2fa64], 0
je 0x4ad12082
cmp word [0x4ad2fa58], 0x20
jae 0x4ad12082
cmp word [0x4ad2fa5c], 0x20
jae 0x4ad12082
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je 0x4ad12082
mov eax, dword [ebp - 0x3c]
mov cl, byte [0x4ad2fa5c]
mov dword [ebp - 8], eax
xor eax, eax
inc eax
xor edx, edx
shl eax, cl
mov cl, byte [0x4ad2fa58]
inc edx
push ebx
shl edx, cl
push esi
push edi
xor edi, edi
or eax, edx
mov dword [ebp - 0x28], 0x10
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edi
call fcn.4ad0bf1f
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], edi
mov ebx, dword [ebp + 0x14]
lea eax, [ebp - 0x28]
push eax
push ebx
push dword [ebp + 0x10]
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadConsoleW]
cmp dword [0x4ad2b9e8], edi
mov dword [ebp - 0x18], eax
mov eax, dword [ebx]
mov dword [ebp - 0x14], eax
jne 0x4ad0c893
cmp dword [ebp - 0x18], edi
je 0x4ad0bac8
mov dword [ebp + 0xc], edi
xor eax, eax
or edi, 0xffffffff
or edx, 0xffffffff
cmp dword [ebx], eax
jbe 0x4ad0bac6
mov cx, word [esi + eax*2]
cmp cx, 0xd
je 0x4ad0bc00
cmp cx, word [0x4ad2fa58]
je 0x4ad0c052
cmp cx, word [0x4ad2fa5c]
je 0x4ad0df1d
inc eax
cmp eax, dword [ebx]
jb 0x4ad0ba99
xor edi, edi
cmp dword [ebp - 4], edi
jne 0x4ad0bf55
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
leave
ret 0x10
mov edx, eax
cmp edx, 0xffffffff
jne 0x4ad0bac6
cmp edi, 0xffffffff
je 0x4ad0bac6
mov dword [ebx], edi
xor ebx, ebx
cmp dword [ebp - 4], ebx
mov word [esi + edi*2], bx
jne 0x4ad0c53f
xor ebx, ebx
inc ebx
cmp dword [ebp + 0xc], 0
jne 0x4ad0bcea
cmp edi, 2
jbe 0x4ad0bcea
push 3
push 0x4ad0be00
push esi
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
je 0x4ad0df11
push 3
push 0x4ad0bdf8
push esi
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
je 0x4ad0df11
push 3
push 0x4ad0bdf0
push esi
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
je 0x4ad0df11
push 6
push 0x4ad0bde0
push esi
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
je 0x4ad0df11
push 6
push 0x4ad0bdd0
push esi
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
je 0x4ad0df11
push 6
push 0x4ad0bdc0
push esi
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
je 0x4ad0df11
push 6
push 0x4ad0bdb0
push esi
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
je 0x4ad0df11
mov eax, dword [ebp - 0x1c]
push ebx
push dword [ebp + 0xc]
shr eax, 4
not eax
and eax, 1
push eax
push dword [ebp + 0x10]
push edi
push esi
call fcn.4ad0c05e
test eax, eax
je 0x4ad1206d
mov ebx, dword [ebp - 0xc]
lea eax, [ebp - 0x40]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je 0x4ad0bd35
movsx eax, word [ebp - 8]
movsx ecx, word [ebp - 0x40]
add eax, edi
xor edx, edx
div ecx
mov ecx, dword [ebp - 0x3a]
sub ecx, eax
mov word [ebp - 6], cx
push esi
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
push dword [ebp - 8]
mov dword [ebp - 0x10], eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 8]
push dword [ebp - 0x14]
push 0x20
push ebx
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterW]
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x10]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
mov eax, dword [ebp - 0x10]
xor edi, edi
cmp dword [ebp - 4], edi
mov dword [ebp - 0x24], eax
jne 0x4ad0c558
push esi
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
lea eax, [eax + eax + 2]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push esi
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
xor edi, edi
jmp 0x4ad0ba5c
push dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4ad0bad1
mov edi, eax
jmp 0x4ad0bc0b
push dword [ebp - 4]
push esi
call dword [sym.imp.msvcrt.dll_wcscmp]
test eax, eax
pop ecx
pop ecx
jne 0x4ad0bc25
jmp 0x4ad0bc28
push dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4ad0bd7f
call fcn.4ad01f01
cmp dword [ebp - 4], edi
jne 0x4ad12057
mov dword [ebp - 4], edi
jmp 0x4ad0ba85
mov dword [ebp + 0xc], 1
jmp 0x4ad0bcea
mov edi, eax
mov dword [ebp + 0xc], 1
jmp 0x4ad0bc02
push 1
call dword [sym.imp.msvcrt.dll__get_osfhandle]
pop ecx
mov dword [ebp - 0xc], eax
jmp 0x4ad0b9e0
push dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4ad0c8a1
push 0xffffffffffffffff
call dword [sym.imp.USER32.dll_MessageBeep]
push esi
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
jmp 0x4ad0bd71
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadConsoleW]
jmp 0x4ad0bad7