Function at 0x4ad0bfc7
Capabilities:
Manipulate console buffer

Disassembly:
push dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4ad0c0d4
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 0x4ad125d6
cmp byte [0x4ad2fa24], 0
push ebx
push esi
push edi
je 0x4ad12612
cmp word [0x4ad2fa18], 0x20
jae 0x4ad12612
cmp word [0x4ad2fa1c], 0x20
jae 0x4ad12612
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je 0x4ad12612
mov eax, dword [ebp - 0x3c]
mov cl, byte [0x4ad2fa1c]
mov dword [ebp - 8], eax
xor eax, eax
inc eax
xor edx, edx
shl eax, cl
mov cl, byte [0x4ad2fa18]
inc edx
shl edx, cl
xor edi, edi
mov dword [ebp - 0x28], 0x10
mov dword [ebp - 0x24], edi
or eax, edx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edi
call fcn.4ad0c118
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 [0x4ad2b9a8], edi
mov dword [ebp - 0x18], eax
mov eax, dword [ebx]
mov dword [ebp - 0x14], eax
jne 0x4ad11dec
cmp dword [ebp - 0x18], edi
je 0x4ad0c0cb
mov dword [ebp + 0xc], edi
xor eax, eax
or edi, 0xffffffff
or edx, 0xffffffff
cmp dword [ebx], eax
jbe 0x4ad0c0c9
mov cx, word [esi + eax*2]
cmp cx, 0xd
je 0x4ad0c32f
cmp cx, word [0x4ad2fa18]
je 0x4ad0c921
cmp cx, word [0x4ad2fa1c]
je 0x4ad0f004
inc eax
cmp eax, dword [ebx]
jb 0x4ad0c09c
xor edi, edi
cmp dword [ebp - 4], edi
jne 0x4ad08f00
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
leave
ret 0x10
mov edx, eax
cmp edx, 0xffffffff
jne 0x4ad0c0c9
cmp edi, 0xffffffff
je 0x4ad0c0c9
mov dword [ebx], edi
xor ebx, ebx
cmp dword [ebp - 4], ebx
mov word [esi + edi*2], bx
je 0x4ad0cae6
push dword [ebp - 4]
push esi
call dword [sym.imp.msvcrt.dll_wcscmp]
test eax, eax
pop ecx
pop ecx
jne 0x4ad0cae6
cmp dword [ebp + 0xc], 0
jne 0x4ad0c42a
cmp edi, 2
jbe 0x4ad0c42a
push 3
push 0x4ad0c554
push esi
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
je 0x4ad0eff8
push 3
push 0x4ad0c54c
push esi
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
je 0x4ad0eff8
push 3
push 0x4ad0c544
push esi
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
je 0x4ad0eff8
push 6
push 0x4ad0c534
push esi
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
je 0x4ad0eff8
push 6
push 0x4ad0c524
push esi
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
je 0x4ad0eff8
push 6
push 0x4ad0c514
push esi
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
je 0x4ad0eff8
push 6
push 0x4ad0c504
push esi
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
je 0x4ad0eff8
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.4ad0c92d
test eax, eax
je 0x4ad125fd
mov ebx, dword [ebp - 0xc]
lea eax, [ebp - 0x40]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je 0x4ad0c475
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
je 0x4ad0c4cc
push dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
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]
cmp eax, edi
mov dword [ebp - 4], eax
je 0x4ad0f012
push esi
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
xor edi, edi
jmp 0x4ad0c05f
mov edi, eax
jmp 0x4ad0c33a
xor ebx, ebx
inc ebx
jmp 0x4ad0c368
mov dword [ebp + 0xc], 1
jmp 0x4ad0c42a
mov edi, eax
mov dword [ebp + 0xc], 1
jmp 0x4ad0c331
xor eax, eax
jmp 0x4ad0c0d7
call fcn.4ad01f53
cmp dword [ebp - 4], edi
jne 0x4ad125e7
mov dword [ebp - 4], edi
jmp 0x4ad0c088
push 1
call dword [sym.imp.msvcrt.dll__get_osfhandle]
pop ecx
mov dword [ebp - 0xc], eax
jmp 0x4ad0bfe3
push dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4ad11dfa
push 0xffffffffffffffff
call dword [sym.imp.USER32.dll_MessageBeep]
push esi
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
jmp 0x4ad0c4b1
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 0x4ad0c0d7