Function at 0x4901d1
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x59a240]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
xorps xmm0, xmm0
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x30], eax
xor eax, eax
push ebx
push esi
push edi
lea edi, [ebp - 0x1c]
mov esi, dword [ebp + 8]
stosd dword es:[edi], eax
xor ebx, ebx
push 0x320
push str.E:UserskerryDocumentsVisual_Studio_2022ProjectsPAULA__TEMP_COPY_ScreenBuffer.c
push esi
stosd dword es:[edi], eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x60], ebx
stosd dword es:[edi], eax
movlpd qword [ebp - 0x58], xmm0
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
lea edi, [ebp - 0x70]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0048f564
add esp, 0xc
test eax, eax
je 0x49066e
push esi
call fcn.0048f5d3
pop ecx
test eax, eax
je 0x49066e
cmp dword [esi + 0x14], ebx
je 0x490660
call fcn.0040dd84
mov dword [ebp - 0x74], eax
test eax, eax
je 0x490660
cmp eax, 0xffffffff
je 0x490660
lea ecx, [ebp - 0x1c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je 0x490660
movsx eax, word [ebp - 0x12]
movsx ecx, word [ebp - 0xe]
sub ecx, eax
movsx eax, word [ebp - 0x10]
inc ecx
mov dword [ebp - 0x34], ecx
movsx ecx, word [ebp - 0xc]
sub ecx, eax
mov eax, dword [ebp - 0x20]
inc ecx
mov dword [ebp - 0x40], ecx
test eax, eax
jne 0x4902b3
mov edx, dword [esi + 4]
mov eax, dword [esi]
mov dword [ebp - 0x48], edx
lea edi, [edx - 1]
lea esi, [eax - 1]
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x68], esi
jmp 0x4902cd
mov esi, eax
lea edi, [ebp - 0x70]
mov eax, dword [ebp - 0x38]
movsd dword es:[edi], dword [esi]
mov ecx, dword [eax + 4]
mov eax, dword [eax]
mov dword [ebp - 0x48], ecx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x64]
mov esi, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x6c]
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x44], ecx
test ecx, ecx
jns 0x4902ed
sub edx, ecx
mov ecx, ebx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x6c], ecx
mov ebx, dword [ebp - 0x70]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], edx
test ebx, ebx
jns 0x490301
sub eax, ebx
xor ebx, ebx
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x48]
cmp edi, eax
jl 0x490312
dec eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x20]
cmp esi, eax
jl 0x490322
lea esi, [eax - 1]
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x68], esi
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x4903e9
mov esi, dword [eax + 4]
cmp edx, esi
jge 0x490343
mov eax, esi
mov dword [ebp - 0x28], esi
sub eax, edx
add ecx, eax
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x6c], ecx
sub esp, 0x10
lea esi, [ebp - 0x70]
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.00459400
mov ecx, dword [ebp - 0x30]
add esp, 0x10
add eax, dword [ebp - 0x28]
cmp eax, dword [ecx + 0xc]
jle 0x49038c
sub esp, 0x10
lea esi, [ebp - 0x70]
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.00459400
mov ecx, dword [ebp - 0x30]
add esp, 0x10
mov ecx, dword [ecx + 0xc]
sub ecx, dword [ebp - 0x28]
sub ecx, eax
mov eax, dword [ebp - 0x24]
add eax, ecx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [eax]
cmp ecx, edx
jge 0x4903a4
mov eax, edx
mov dword [ebp - 0x2c], edx
sub eax, ecx
add ebx, eax
mov dword [ebp - 0x70], ebx
sub esp, 0x10
lea esi, [ebp - 0x70]
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.00459484
mov ecx, dword [ebp - 0x30]
add esp, 0x10
add eax, dword [ebp - 0x2c]
cmp eax, dword [ecx + 8]
jle 0x4903e9
sub esp, 0x10
lea esi, [ebp - 0x70]
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.00459484
mov ecx, dword [ebp - 0x30]
add esp, 0x10
mov esi, dword [ebp - 0x3c]
mov ecx, dword [ecx + 8]
sub ecx, dword [ebp - 0x2c]
sub ecx, eax
add esi, ecx
jmp 0x4903ec
mov esi, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x44]
mov edi, dword [ebp - 0x24]
cmp ecx, edi
jg 0x49065e
cmp ebx, esi
jg 0x49065e
mov edx, edi
mov eax, esi
sub edx, ecx
sub eax, ebx
mov dword [ebp - 0x48], edx
mov word [ebp - 0x4e], dx
mov edx, dword [ebp - 0x2c]
mov word [ebp - 0x50], ax
test edx, edx
jns 0x490438
sub ebx, edx
mov eax, esi
sub eax, ebx
mov word [ebp - 0x60], bx
xor edx, edx
mov word [ebp - 0x50], ax
cmp ebx, esi
jle 0x490441
xor ebx, ebx
inc ebx
jmp 0x490660
cmp edx, dword [ebp - 0x34]
jge 0x490430
mov word [ebp - 0x60], bx
cwde
mov dword [ebp - 0x20], eax
add eax, edx
cmp eax, dword [ebp - 0x34]
jle 0x490464
mov eax, dword [ebp - 0x34]
sub eax, dword [ebp - 0x20]
sub eax, edx
mov edx, dword [ebp - 0x34]
add esi, eax
mov eax, esi
sub eax, ebx
mov word [ebp - 0x50], ax
cwde
sub edx, eax
movsx eax, bx
mov dword [ebp - 0x24], eax
cmp eax, esi
jg 0x490430
mov esi, dword [ebp - 0x28]
test esi, esi
jns 0x49048b
sub ecx, esi
mov eax, edi
sub eax, ecx
mov word [ebp - 0x5e], cx
xor esi, esi
mov word [ebp - 0x4e], ax
cmp ecx, edi
jg 0x490430
jmp 0x490497
cmp esi, dword [ebp - 0x40]
jge 0x490430
mov eax, dword [ebp - 0x48]
mov word [ebp - 0x5e], cx
cwde
mov dword [ebp - 0x20], eax
add eax, esi
cmp eax, dword [ebp - 0x40]
jle 0x4904ba
mov eax, dword [ebp - 0x40]
sub eax, dword [ebp - 0x20]
sub eax, esi
mov esi, dword [ebp - 0x40]
add edi, eax
mov eax, edi
sub eax, ecx
mov word [ebp - 0x4e], ax
cwde
sub esi, eax
movsx eax, cx
mov dword [ebp - 0x28], eax
cmp eax, edi
jg 0x490430
mov edi, dword [ebp - 0x4e]
xor eax, eax
test ecx, ecx
cmovs ecx, eax
test ebx, ebx
cmovs ebx, eax
sub esi, ecx
mov ecx, dword [ebp - 0x5e]
sub edx, ebx
mov ebx, dword [ebp - 0x50]
add ecx, esi
mov esi, dword [ebp - 0x60]
add edi, ecx
add edx, esi
mov word [ebp - 0x56], cx
add ebx, edx
mov word [ebp - 0x58], dx
mov word [ebp - 0x52], di
mov word [ebp - 0x54], bx
test cx, cx
jns 0x490505
mov word [ebp - 0x56], ax
test dx, dx
jns 0x490510
xor eax, eax
mov word [ebp - 0x58], ax
mov ecx, dword [ebp - 0x40]
movsx eax, di
cmp eax, ecx
jl 0x490521
lea eax, [ecx - 1]
mov word [ebp - 0x52], ax
mov ecx, dword [ebp - 0x34]
movsx eax, bx
cmp eax, ecx
jl 0x490532
lea eax, [ecx - 1]
mov word [ebp - 0x54], ax
mov eax, dword [ebp - 0x38]
lea ecx, [ebp - 0x58]
push ecx
push esi
movzx ebx, word [eax]
movzx edi, word [eax + 4]
mov word [ebp - 0x50], bx
mov word [ebp - 0x4e], di
push dword [ebp - 0x50]
push dword [eax + 0x14]
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputA]
movsx edx, di
movsx ecx, bx
mov dword [ebp - 0x30], eax
movsx eax, di
mov edi, dword [ebp - 0x38]
imul edx, ecx
mov dword [ebp - 0x20], eax
movsx eax, bx
mov dword [ebp - 0x34], eax
test edx, edx
jle 0x490652
mov ecx, dword [edi + 0x14]
xor eax, eax
cmp byte [ecx], 0x20
jb 0x49058d
inc eax
add ecx, 4
cmp eax, edx
jl 0x490580
cmp eax, edx
jge 0x490652
push dword [ebp - 0x54]
push dword [ebp - 0x58]
call fcn.004595f4
mov ebx, dword [ebp - 0x34]
add eax, dword [ebp - 0x24]
push dword [ebp - 0x54]
cmp eax, ebx
push dword [ebp - 0x58]
lea ecx, [ebx - 1]
cmovl ecx, eax
mov dword [ebp - 0x44], ecx
call fcn.004595ae
mov ecx, dword [ebp - 0x28]
add esp, 0x10
mov edx, dword [ebp - 0x20]
add eax, ecx
dec edx
cmp eax, dword [ebp - 0x20]
cmovl edx, eax
mov dword [ebp - 0x3c], edx
cmp ecx, edx
jg 0x490652
mov edx, dword [ebp - 0x44]
mov eax, ebx
mov ebx, dword [ebp - 0x24]
imul eax, ecx
add eax, ebx
mov dword [ebp - 0x38], eax
cmp ebx, edx
jg 0x490640
mov edx, eax
shl edx, 2
mov dword [ebp - 0x48], edx
mov eax, dword [edi + 0x14]
add eax, edx
mov dword [ebp - 0x40], eax
cmp byte [eax], 0x20
jae 0x49062e
sub ecx, dword [ebp - 0x5e]
mov eax, ebx
add ecx, dword [ebp - 0x56]
sub eax, esi
add eax, dword [ebp - 0x58]
mov word [ebp - 0x20], ax
lea eax, [ebp - 0x2c]
push eax
mov word [ebp - 0x1e], cx
push dword [ebp - 0x20]
push 1
push dword [ebp - 0x40]
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputCharacterA]
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x48]
inc ebx
add edx, 4
mov dword [ebp - 0x48], edx
cmp ebx, dword [ebp - 0x44]
jle 0x4905f1
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x44]
add eax, dword [ebp - 0x34]
inc ecx
mov ebx, dword [ebp - 0x24]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x38], eax
cmp ecx, dword [ebp - 0x3c]
jle 0x4905e5
push edi
call fcn.004923ec
mov eax, dword [ebp - 0x30]
pop ecx
jmp 0x490670
xor ebx, ebx
mov edi, dword [ebp - 0x38]
push edi
call fcn.004923ec
pop ecx
mov eax, ebx
jmp 0x490670
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e3632
leave
ret