Function at 0x401ff0
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp - 8]
sub esp, 0xa4
mov dword [ebp - 0x80], ecx
mov dword [ebp - 0x64], 0x445710
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x60], 0x4467fa
mov dword [ebp - 0x58], 0x4022ba
mov dword [ebp - 0x54], esp
mov dword [esp], eax
call fcn.004286e0
mov eax, dword [ebp + 8]
test eax, eax
jle 0x402270
mov ebx, dword [ebp + 0xc]
test ebx, ebx
jle 0x402270
mov eax, dword [ebp - 0x80]
movzx ebx, byte [eax + 0x28]
lea ecx, [eax + 0x24]
mov dword [ebp - 0x90], ecx
mov dword [ebp - 0x8c], ebx
mov dword [esp], ebx
mov dword [ebp - 0x78], 0xffffffff
call fcn.004142f0
sub esp, 4
cmp dword [ebp + 0xc], 0x7d0
mov eax, 0x7d0
cmovle eax, dword [ebp + 0xc]
cmp dword [ebp + 8], 0x9c4
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1e], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x84], eax
mov eax, 0x9c4
cmovle eax, dword [ebp + 8]
xor ebx, ebx
xor edx, edx
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x1e]
sub eax, ecx
add eax, 0x16
and eax, 0xfffffffc
mov dword [ecx + edx], ebx
add edx, 4
cmp edx, eax
jb 0x4020b0
mov eax, dword [ebp - 0x80]
cmp byte [eax + 0x1c], 0
lea eax, [ebp - 0x40]
mov dword [esp], eax
mov dword [ebp - 0x78], 1
je 0x402260
call fcn.00414470
movzx eax, word [ebp - 0x88]
mov ebx, dword [ebp - 0x80]
mov ecx, dword [ebx + 0x38]
mov word [ebp - 0x34], ax
movzx eax, word [ebp - 0x84]
mov word [ebp - 0x32], ax
lea eax, [ebp - 0x1e]
mov dword [esp + 8], eax
lea eax, [ebp - 0x34]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x40]
mov dword [esp], eax
mov dword [ebp - 0x78], 2
call fcn.004130c0
mov ebx, dword [ebp - 0x80]
movzx edx, word [ebp - 0x14]
sub esp, 0xc
mov eax, dword [ebx + 0x58]
mov ecx, dword [ebx + 0x3c]
mov word [eax + 0x98], dx
movzx edx, word [ebp - 0x12]
test ecx, ecx
mov word [eax + 0x9a], dx
movzx edx, word [ebp - 0x10]
mov word [eax + 0x9c], dx
movzx edx, word [ebp - 0xe]
mov word [eax + 0x9e], dx
je 0x40218d
movzx eax, word [ebp - 0x88]
mov word [ebp - 0x34], ax
movzx eax, word [ebp - 0x84]
mov word [ebp - 0x32], ax
lea eax, [ebp - 0x1e]
mov dword [esp + 8], eax
lea eax, [ebp - 0x34]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x80]
mov eax, dword [eax + 0x40]
mov dword [esp], eax
mov dword [ebp - 0x78], 2
call fcn.004130c0
sub esp, 0xc
mov eax, dword [ebp - 0x40]
mov ecx, 4
xor edx, edx
mov word [ebp - 0x34], cx
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x32], 0
mov dword [ebp - 0x2e], 0
mov dword [ebp - 0x2a], 0
mov dword [ebp - 0x26], 0
mov word [ebp - 0x22], dx
mov dword [esp], eax
mov dword [ebp - 0x78], 2
call fcn.00414760
mov eax, dword [ebp - 0x38]
sub esp, 4
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x30], eax
mov dword [esp], 0xfffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
lea edx, [ebp - 0x3c]
sub esp, 4
mov dword [esp + 8], 1
mov dword [esp], eax
mov dword [esp + 0xc], edx
lea edx, [ebp - 0x34]
mov dword [esp + 4], edx
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
mov eax, dword [ebp - 0x40]
sub esp, 0x10
test eax, eax
mov dword [ebp - 0x80], eax
je 0x40222e
cmp byte [eax + 4], 0
jne 0x4022a0
mov eax, dword [ebp - 0x80]
mov dword [esp], eax
call fcn.00444a10
mov eax, dword [ebp - 0x8c]
mov dword [esp], eax
mov ecx, dword [ebp - 0x90]
mov dword [ebp - 0x78], 0
call fcn.004142f0
lea eax, [ebp - 0x7c]
sub esp, 4
mov dword [esp], eax
call fcn.00428750
mov ebx, dword [ebp - 4]
leave
ret 8
call fcn.004144b0
jmp 0x4020d9
mov dword [esp + 8], str.cols___1__rows___1
mov dword [esp + 4], 0x22c
mov dword [esp], str.src_agent_Agent.cc
mov dword [ebp - 0x78], 0xffffffff
call fcn.0041d680
jmp 0x40203c
mov eax, dword [eax]
mov dword [esp], eax
mov dword [ebp - 0x78], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
jmp 0x402223