Function at 0x42ddda
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x4832e4]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov ebx, ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x50], eax
xor eax, eax
mov word [ebp - 0x3c], ax
mov word [ebp - 0x5c], ax
mov word [ebp - 0x44], ax
lea edi, [ebp - 0x3a]
stosw word es:[edi], ax
and dword [ebp - 0x30], 0
lea edi, [ebp - 0x5a]
stosw word es:[edi], ax
lea edi, [ebp - 0x42]
stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov word [ebp - 0x20], ax
lea edi, [ebp - 0x1e]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [ebp - 0x2c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov esi, edx
stosd dword es:[edi], eax
mov edi, 0x320
mov dword [ebp - 0x34], esi
call fcn.0042cff3
test eax, eax
je 0x42e225
mov edi, esi
mov eax, edi
call fcn.0042cea9
test eax, eax
je 0x42e225
cmp dword [edi + 0x14], 0
je 0x42e21e
call fcn.0045d525
mov dword [ebp - 0x64], eax
test eax, eax
je 0x42e21e
cmp eax, 0xffffffff
je 0x42e21e
lea ecx, [ebp - 0x20]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je 0x42e21e
movsx ecx, word [ebp - 0x16]
movsx eax, word [ebp - 0x12]
mov esi, dword [ebp - 0x48]
mov edx, dword [ebp + 8]
sub eax, ecx
movsx ecx, word [ebp - 0x14]
inc eax
mov dword [ebp - 0x4c], eax
movsx eax, word [ebp - 0x10]
sub eax, ecx
inc eax
mov dword [ebp - 0x54], eax
test esi, esi
jne 0x42decc
and dword [ebp - 0x2c], esi
and dword [ebp - 0x30], esi
mov eax, dword [edi + 4]
mov ecx, dword [edi]
dec eax
dec ecx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
jmp 0x42def1
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor eax, eax
movsd dword es:[edi], dword [esi]
cmp dword [ebp - 0x2c], eax
jge 0x42dee0
sub edx, dword [ebp - 0x2c]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x28]
mov edi, dword [ebp - 0x34]
cmp dword [ebp - 0x30], eax
jge 0x42def1
sub ebx, dword [ebp - 0x30]
mov dword [ebp - 0x30], eax
mov eax, dword [edi + 4]
cmp dword [ebp - 0x24], eax
jl 0x42defd
dec eax
mov dword [ebp - 0x24], eax
mov eax, dword [edi]
cmp ecx, eax
jl 0x42df09
lea ecx, [eax - 1]
mov dword [ebp - 0x28], ecx
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x42df88
cmp edx, dword [eax + 4]
jge 0x42df24
mov eax, dword [eax + 4]
mov esi, eax
sub esi, edx
add dword [ebp - 0x2c], esi
mov dword [ebp + 8], eax
mov edx, eax
sub esp, 0x10
lea esi, [ebp - 0x30]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0044f1dc
mov esi, dword [ebp - 0x50]
mov esi, dword [esi + 0xc]
lea edi, [eax + edx]
add esp, 0x10
cmp edi, esi
jle 0x42df4c
sub esi, eax
sub esi, edx
add dword [ebp - 0x24], esi
mov eax, dword [ebp - 0x50]
mov eax, dword [eax]
cmp ebx, eax
jge 0x42df5e
mov esi, eax
sub esi, ebx
add dword [ebp - 0x30], esi
mov ebx, eax
sub esp, 0x10
lea esi, [ebp - 0x30]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0044f1f8
mov esi, dword [ebp - 0x50]
mov esi, dword [esi + 8]
lea edi, [eax + ebx]
add esp, 0x10
cmp edi, esi
mov edi, dword [ebp - 0x34]
jle 0x42df88
sub esi, eax
sub esi, ebx
add ecx, esi
mov eax, dword [ebp - 0x24]
cmp dword [ebp - 0x2c], eax
jg 0x42e211
cmp dword [ebp - 0x30], ecx
jg 0x42e211
mov eax, ecx
sub eax, dword [ebp - 0x30]
mov word [ebp - 0x3c], ax
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x2c]
mov word [ebp - 0x3a], ax
test ebx, ebx
jns 0x42dfd7
sub dword [ebp - 0x30], ebx
mov ax, word [ebp - 0x30]
mov word [ebp - 0x5c], ax
mov eax, ecx
sub eax, dword [ebp - 0x30]
xor ebx, ebx
mov word [ebp - 0x3c], ax
cmp dword [ebp - 0x30], ecx
jle 0x42dfe4
xor edx, edx
inc edx
jmp 0x42e213
cmp ebx, dword [ebp - 0x4c]
jge 0x42dfcf
mov ax, word [ebp - 0x30]
mov word [ebp - 0x5c], ax
movsx eax, word [ebp - 0x3c]
mov dword [ebp - 0x60], eax
add eax, ebx
cmp eax, dword [ebp - 0x4c]
jle 0x42e00d
mov eax, dword [ebp - 0x4c]
sub eax, dword [ebp - 0x60]
sub eax, ebx
mov ebx, dword [ebp - 0x4c]
add ecx, eax
mov eax, ecx
sub eax, dword [ebp - 0x30]
mov word [ebp - 0x3c], ax
movsx eax, ax
sub ebx, eax
movsx eax, word [ebp - 0x30]
mov dword [ebp - 0x68], eax
cmp eax, ecx
jg 0x42dfcf
test edx, edx
jns 0x42e1fc
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x24]
and dword [ebp + 8], 0
sub eax, edx
sub ecx, eax
mov word [ebp - 0x5a], ax
mov word [ebp - 0x3a], cx
cmp eax, dword [ebp - 0x24]
jg 0x42dfcf
mov edx, dword [ebp + 8]
movsx ecx, word [ebp - 0x3a]
mov esi, dword [ebp - 0x54]
mov dword [ebp - 0x48], ecx
add ecx, edx
cmp ecx, esi
jle 0x42e06c
sub esi, dword [ebp - 0x48]
sub esi, edx
add dword [ebp - 0x24], esi
mov ecx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x54]
sub ecx, eax
mov word [ebp - 0x3a], cx
movsx ecx, cx
mov edx, esi
sub edx, ecx
mov dword [ebp + 8], edx
movsx ecx, ax
mov dword [ebp - 0x48], ecx
cmp ecx, dword [ebp - 0x24]
jg 0x42dfcf
xor ecx, ecx
cmp eax, ecx
jge 0x42e086
mov dword [ebp - 0x2c], ecx
mov eax, ecx
cmp dword [ebp - 0x30], ecx
jge 0x42e08e
mov dword [ebp - 0x30], ecx
sub ebx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x3a]
add ebx, dword [ebp - 0x5c]
sub edx, eax
add edx, dword [ebp - 0x5a]
mov word [ebp - 0x44], bx
mov word [ebp - 0x42], dx
add ecx, dword [ebp - 0x42]
mov edx, dword [ebp - 0x44]
add edx, dword [ebp - 0x3c]
cmp word [ebp - 0x42], 0
mov word [ebp - 0x3e], cx
mov word [ebp - 0x40], dx
jge 0x42e0c2
xor eax, eax
mov word [ebp - 0x42], ax
test bx, bx
jns 0x42e0cd
xor eax, eax
mov word [ebp - 0x44], ax
movsx eax, cx
cmp eax, esi
jl 0x42e0d9
dec esi
mov word [ebp - 0x3e], si
mov eax, dword [ebp - 0x4c]
movsx ecx, dx
cmp ecx, eax
jl 0x42e0e8
dec eax
mov word [ebp - 0x40], ax
mov si, word [edi]
mov bx, word [edi + 4]
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x5c]
mov word [ebp - 0x3c], si
mov word [ebp - 0x3a], bx
push dword [ebp - 0x3c]
push dword [edi + 0x14]
push dword [ebp - 0x64]
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputA]
movsx edx, bx
movsx esi, si
mov dword [ebp - 0x6c], eax
mov eax, edx
imul eax, esi
xor ecx, ecx
mov dword [ebp - 0x60], esi
test eax, eax
jle 0x42e1f0
mov ebx, dword [edi + 0x14]
cmp byte [ebx], 0x20
jb 0x42e138
inc ecx
add ebx, 4
cmp ecx, eax
jl 0x42e12b
cmp ecx, eax
jge 0x42e1f0
push dword [ebp - 0x40]
push dword [ebp - 0x44]
call fcn.0044f1e7
add eax, dword [ebp - 0x68]
pop ecx
pop ecx
mov dword [ebp - 0x50], eax
cmp eax, esi
jl 0x42e15d
lea eax, [esi - 1]
mov dword [ebp - 0x50], eax
push dword [ebp - 0x40]
push dword [ebp - 0x44]
call fcn.0044f1c5
pop ecx
pop ecx
mov ecx, eax
mov eax, dword [ebp - 0x48]
add ecx, eax
mov dword [ebp - 0x54], ecx
cmp ecx, edx
jl 0x42e17e
dec edx
mov dword [ebp - 0x54], edx
mov ecx, edx
mov dword [ebp - 0x34], eax
cmp eax, ecx
jg 0x42e1f0
mov edx, esi
imul edx, eax
mov dword [ebp - 0x48], edx
mov ebx, dword [ebp - 0x68]
cmp ebx, dword [ebp - 0x50]
jg 0x42e1e3
lea esi, [edx + ebx]
shl esi, 2
mov eax, dword [edi + 0x14]
add eax, esi
cmp byte [eax], 0x20
jae 0x42e1d7
mov ecx, ebx
sub ecx, dword [ebp - 0x5c]
add ecx, dword [ebp - 0x44]
mov word [ebp - 0x4c], cx
mov ecx, dword [ebp - 0x34]
sub ecx, dword [ebp - 0x5a]
add ecx, dword [ebp - 0x42]
mov word [ebp - 0x4a], cx
lea ecx, [ebp - 0x3c]
push ecx
push dword [ebp - 0x4c]
push 1
push eax
push dword [ebp - 0x64]
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputCharacterA]
mov edx, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x54]
inc ebx
add esi, 4
cmp ebx, dword [ebp - 0x50]
jle 0x42e19b
mov esi, dword [ebp - 0x60]
inc dword [ebp - 0x34]
add edx, esi
mov dword [ebp - 0x48], edx
cmp dword [ebp - 0x34], ecx
jle 0x42e18d
mov eax, edi
call fcn.0042ce9c
mov eax, dword [ebp - 0x6c]
jmp 0x42e227
cmp edx, dword [ebp - 0x54]
jge 0x42dfcf
mov eax, dword [ebp - 0x2c]
mov word [ebp - 0x5a], ax
jmp 0x42e03e
xor edx, edx
mov eax, edi
call fcn.0042ce9c
mov eax, edx
jmp 0x42e227
mov eax, edi
call fcn.0042ce9c
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401317
leave
ret