Function at 0x442d7f
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x4e22e4]
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.004419a6
test eax, eax
je 0x4431ca
mov edi, esi
mov eax, edi
call fcn.0044185c
test eax, eax
je 0x4431ca
cmp dword [edi + 0x14], 0
je 0x4431c3
call fcn.00494dd4
mov dword [ebp - 0x64], eax
test eax, eax
je 0x4431c3
cmp eax, 0xffffffff
je 0x4431c3
lea ecx, [ebp - 0x20]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je 0x4431c3
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 0x442e71
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 0x442e96
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 0x442e85
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 0x442e96
sub ebx, dword [ebp - 0x30]
mov dword [ebp - 0x30], eax
mov eax, dword [edi + 4]
cmp dword [ebp - 0x24], eax
jl 0x442ea2
dec eax
mov dword [ebp - 0x24], eax
mov eax, dword [edi]
cmp ecx, eax
jl 0x442eae
lea ecx, [eax - 1]
mov dword [ebp - 0x28], ecx
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x442f2d
cmp edx, dword [eax + 4]
jge 0x442ec9
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.0046fe04
mov esi, dword [ebp - 0x50]
mov esi, dword [esi + 0xc]
lea edi, [eax + edx]
add esp, 0x10
cmp edi, esi
jle 0x442ef1
sub esi, eax
sub esi, edx
add dword [ebp - 0x24], esi
mov eax, dword [ebp - 0x50]
mov eax, dword [eax]
cmp ebx, eax
jge 0x442f03
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.0046fe20
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 0x442f2d
sub esi, eax
sub esi, ebx
add ecx, esi
mov eax, dword [ebp - 0x24]
cmp dword [ebp - 0x2c], eax
jg 0x4431b6
cmp dword [ebp - 0x30], ecx
jg 0x4431b6
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 0x442f7c
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 0x442f89
xor edx, edx
inc edx
jmp 0x4431b8
cmp ebx, dword [ebp - 0x4c]
jge 0x442f74
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 0x442fb2
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 0x442f74
test edx, edx
jns 0x4431a1
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 0x442f74
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 0x443011
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 0x442f74
xor ecx, ecx
cmp eax, ecx
jge 0x44302b
mov dword [ebp - 0x2c], ecx
mov eax, ecx
cmp dword [ebp - 0x30], ecx
jge 0x443033
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 0x443067
xor eax, eax
mov word [ebp - 0x42], ax
test bx, bx
jns 0x443072
xor eax, eax
mov word [ebp - 0x44], ax
movsx eax, cx
cmp eax, esi
jl 0x44307e
dec esi
mov word [ebp - 0x3e], si
mov eax, dword [ebp - 0x4c]
movsx ecx, dx
cmp ecx, eax
jl 0x44308d
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 0x443195
mov ebx, dword [edi + 0x14]
cmp byte [ebx], 0x20
jb 0x4430dd
inc ecx
add ebx, 4
cmp ecx, eax
jl 0x4430d0
cmp ecx, eax
jge 0x443195
push dword [ebp - 0x40]
push dword [ebp - 0x44]
call fcn.0046fe0f
add eax, dword [ebp - 0x68]
pop ecx
pop ecx
mov dword [ebp - 0x50], eax
cmp eax, esi
jl 0x443102
lea eax, [esi - 1]
mov dword [ebp - 0x50], eax
push dword [ebp - 0x40]
push dword [ebp - 0x44]
call fcn.0046fded
pop ecx
pop ecx
mov ecx, eax
mov eax, dword [ebp - 0x48]
add ecx, eax
mov dword [ebp - 0x54], ecx
cmp ecx, edx
jl 0x443123
dec edx
mov dword [ebp - 0x54], edx
mov ecx, edx
mov dword [ebp - 0x34], eax
cmp eax, ecx
jg 0x443195
mov edx, esi
imul edx, eax
mov dword [ebp - 0x48], edx
mov ebx, dword [ebp - 0x68]
cmp ebx, dword [ebp - 0x50]
jg 0x443188
lea esi, [edx + ebx]
shl esi, 2
mov eax, dword [edi + 0x14]
add eax, esi
cmp byte [eax], 0x20
jae 0x44317c
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 0x443140
mov esi, dword [ebp - 0x60]
inc dword [ebp - 0x34]
add edx, esi
mov dword [ebp - 0x48], edx
cmp dword [ebp - 0x34], ecx
jle 0x443132
mov eax, edi
call fcn.0044184f
mov eax, dword [ebp - 0x6c]
jmp 0x4431cc
cmp edx, dword [ebp - 0x54]
jge 0x442f74
mov eax, dword [ebp - 0x2c]
mov word [ebp - 0x5a], ax
jmp 0x442fe3
xor edx, edx
mov eax, edi
call fcn.0044184f
mov eax, edx
jmp 0x4431cc
mov eax, edi
call fcn.0044184f
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401317
leave
ret