Function at 0x442fe9
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.00441b7f
test eax, eax
je 0x443434
mov edi, esi
mov eax, edi
call fcn.00441a35
test eax, eax
je 0x443434
cmp dword [edi + 0x14], 0
je 0x44342d
call fcn.00494e81
mov dword [ebp - 0x64], eax
test eax, eax
je 0x44342d
cmp eax, 0xffffffff
je 0x44342d
lea ecx, [ebp - 0x20]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je 0x44342d
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 0x4430db
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 0x443100
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 0x4430ef
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 0x443100
sub ebx, dword [ebp - 0x30]
mov dword [ebp - 0x30], eax
mov eax, dword [edi + 4]
cmp dword [ebp - 0x24], eax
jl 0x44310c
dec eax
mov dword [ebp - 0x24], eax
mov eax, dword [edi]
cmp ecx, eax
jl 0x443118
lea ecx, [eax - 1]
mov dword [ebp - 0x28], ecx
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x443197
cmp edx, dword [eax + 4]
jge 0x443133
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.00470481
mov esi, dword [ebp - 0x50]
mov esi, dword [esi + 0xc]
lea edi, [eax + edx]
add esp, 0x10
cmp edi, esi
jle 0x44315b
sub esi, eax
sub esi, edx
add dword [ebp - 0x24], esi
mov eax, dword [ebp - 0x50]
mov eax, dword [eax]
cmp ebx, eax
jge 0x44316d
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.0047049d
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 0x443197
sub esi, eax
sub esi, ebx
add ecx, esi
mov eax, dword [ebp - 0x24]
cmp dword [ebp - 0x2c], eax
jg 0x443420
cmp dword [ebp - 0x30], ecx
jg 0x443420
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 0x4431e6
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 0x4431f3
xor edx, edx
inc edx
jmp 0x443422
cmp ebx, dword [ebp - 0x4c]
jge 0x4431de
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 0x44321c
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 0x4431de
test edx, edx
jns 0x44340b
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 0x4431de
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 0x44327b
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 0x4431de
xor ecx, ecx
cmp eax, ecx
jge 0x443295
mov dword [ebp - 0x2c], ecx
mov eax, ecx
cmp dword [ebp - 0x30], ecx
jge 0x44329d
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 0x4432d1
xor eax, eax
mov word [ebp - 0x42], ax
test bx, bx
jns 0x4432dc
xor eax, eax
mov word [ebp - 0x44], ax
movsx eax, cx
cmp eax, esi
jl 0x4432e8
dec esi
mov word [ebp - 0x3e], si
mov eax, dword [ebp - 0x4c]
movsx ecx, dx
cmp ecx, eax
jl 0x4432f7
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 0x4433ff
mov ebx, dword [edi + 0x14]
cmp byte [ebx], 0x20
jb 0x443347
inc ecx
add ebx, 4
cmp ecx, eax
jl 0x44333a
cmp ecx, eax
jge 0x4433ff
push dword [ebp - 0x40]
push dword [ebp - 0x44]
call fcn.0047048c
add eax, dword [ebp - 0x68]
pop ecx
pop ecx
mov dword [ebp - 0x50], eax
cmp eax, esi
jl 0x44336c
lea eax, [esi - 1]
mov dword [ebp - 0x50], eax
push dword [ebp - 0x40]
push dword [ebp - 0x44]
call fcn.0047046a
pop ecx
pop ecx
mov ecx, eax
mov eax, dword [ebp - 0x48]
add ecx, eax
mov dword [ebp - 0x54], ecx
cmp ecx, edx
jl 0x44338d
dec edx
mov dword [ebp - 0x54], edx
mov ecx, edx
mov dword [ebp - 0x34], eax
cmp eax, ecx
jg 0x4433ff
mov edx, esi
imul edx, eax
mov dword [ebp - 0x48], edx
mov ebx, dword [ebp - 0x68]
cmp ebx, dword [ebp - 0x50]
jg 0x4433f2
lea esi, [edx + ebx]
shl esi, 2
mov eax, dword [edi + 0x14]
add eax, esi
cmp byte [eax], 0x20
jae 0x4433e6
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 0x4433aa
mov esi, dword [ebp - 0x60]
inc dword [ebp - 0x34]
add edx, esi
mov dword [ebp - 0x48], edx
cmp dword [ebp - 0x34], ecx
jle 0x44339c
mov eax, edi
call fcn.00441a28
mov eax, dword [ebp - 0x6c]
jmp 0x443436
cmp edx, dword [ebp - 0x54]
jge 0x4431de
mov eax, dword [ebp - 0x2c]
mov word [ebp - 0x5a], ax
jmp 0x44324d
xor edx, edx
mov eax, edi
call fcn.00441a28
mov eax, edx
jmp 0x443436
mov eax, edi
call fcn.00441a28
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401317
leave
ret