Function at 0xf030699
Capabilities:
Manipulate console buffer

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x48
push esi
xor esi, esi
cmp dword [0xf0ad950], esi
jne 0xf030724
call fcn.0f0316b5
cmp dword [0xf082db0], esi
jne 0xf030715
cmp dword [0xf0754f0], esi
je 0xf030715
cmp dword [0xf082b84], esi
jne 0xf030715
push dword [0xf0ad9cc]
push dword [0xf0ad920]
call dword [sym.imp.KERNEL32.dll_SetConsoleScreenBufferSize]
xor eax, eax
mov word [ebp - 0x30], ax
mov word [ebp - 0x2e], ax
mov eax, dword [0xf0ad9dc]
sub eax, dword [0xf0ad9d8]
mov word [ebp - 0x2a], ax
mov eax, dword [0xf0ad9da]
sub eax, dword [0xf0ad9d6]
mov word [ebp - 0x2c], ax
lea eax, [ebp - 0x30]
push eax
push 1
push dword [0xf0ad920]
call dword [sym.imp.KERNEL32.dll_SetConsoleWindowInfo]
call fcn.0f02fdc3
call fcn.0f0384f9
jmp 0xf030b72
push ebx
push edi
call fcn.0f0300b4
test eax, eax
jne 0xf030a16
mov eax, dword [0xf082db0]
xor ebx, ebx
inc ebx
cmp eax, esi
jne 0xf0307de
cmp dword [0xf0754f0], esi
je 0xf0307a3
cmp dword [0xf082b84], esi
jne 0xf0307a3
push dword [0xf0ad9cc]
push dword [0xf0ad920]
call dword [sym.imp.KERNEL32.dll_SetConsoleScreenBufferSize]
xor eax, eax
mov word [ebp - 0x30], ax
mov word [ebp - 0x2e], ax
mov eax, dword [0xf0ad9dc]
sub eax, dword [0xf0ad9d8]
mov word [ebp - 0x2a], ax
mov eax, dword [0xf0ad9da]
sub eax, dword [0xf0ad9d6]
mov word [ebp - 0x2c], ax
lea eax, [ebp - 0x30]
push eax
push ebx
push dword [0xf0ad920]
call dword [sym.imp.KERNEL32.dll_SetConsoleWindowInfo]
mov eax, dword [ebp - 0x2a]
jmp 0xf0307d8
lea eax, [ebp - 0x48]
push eax
push dword [0xf0ad920]
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne 0xf0307d2
push 0x4da
push 0xf002fe8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x3e9
call fcn.0f02cb1f
mov eax, dword [ebp - 0x38]
sub eax, dword [ebp - 0x3c]
inc eax
movzx eax, ax
jmp 0xf0307e9
movzx eax, ax
cmp ax, bx
jne 0xf0307e9
push 0x32
pop eax
mov dword [ebp - 8], esi
xor ecx, ecx
cmp word [ecx + 0xf075668], ax
je 0xf030802
inc dword [ebp - 8]
add ecx, 0xa
cmp ecx, 0x32
jb 0xf0307ee
cmp dword [ebp - 8], 5
jne 0xf03080f
mov dword [ebp - 8], 4
push 0xf082af0
push 0xf07ec60
push dword [0xf0ad920]
call sub.KERNEL32.dll_GetConsoleHardwareState
push 0x462
call fcn.0f04451f
mov byte [ebp - 1], al
lea eax, [ebp - 2]
push eax
push 0x3cc
call fcn.0f01b851
test byte [ebp - 2], bl
movzx ebx, byte [ebp - 1]
je 0xf030856
imul ebx, ebx, 0xfa0
add ebx, 0xb8000
jmp 0xf030862
imul ebx, ebx, 0xfa0
add ebx, 0xb0000
push 0x44a
mov esi, 0xf07ec68
call fcn.0f044532
push 0x484
movzx edi, ax
call fcn.0f04451f
and dword [ebp - 0x1c], 0
movzx ax, al
inc ax
push 0x50
movsx ecx, ax
pop eax
push 0x32
mov word [ebp - 0x10], ax
pop eax
mov word [ebp - 0xe], ax
test ecx, ecx
jbe 0xf0308f3
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], ecx
and dword [ebp - 0x14], 0
mov eax, ebx
test edi, edi
jbe 0xf0308ce
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x14], edi
mov dl, byte [eax]
inc eax
mov byte [esi], dl
movzx dx, byte [eax]
mov word [esi + 2], dx
inc eax
add esi, 4
dec dword [ebp - 0xc]
jne 0xf0308b3
cmp edi, 0x50
jae 0xf0308e4
push 0x50
pop eax
sub eax, dword [ebp - 0x14]
push 7
pop edx
mov byte [esi], 0x20
mov word [esi + 2], dx
add esi, 4
dec eax
jne 0xf0308d4
lea eax, [edi + edi]
add ebx, eax
dec dword [ebp - 0x18]
jne 0xf0308a3
cmp ecx, 0x32
jae 0xf03090f
push 0x32
pop eax
sub eax, dword [ebp - 0x1c]
push 0x50
pop ecx
push 7
pop edx
mov byte [esi], 0x20
mov word [esi + 2], dx
add esi, 4
dec ecx
jne 0xf0308fc
dec eax
jne 0xf0308f9
xor eax, eax
push 0x4f
mov word [ebp - 0xa], ax
mov word [ebp - 0xc], ax
mov word [ebp - 0x22], ax
mov word [ebp - 0x24], ax
pop eax
push 0x31
mov word [ebp - 0x20], ax
pop eax
mov word [ebp - 0x1e], ax
call fcn.0f0384f9
mov esi, dword [ebp - 8]
mov ax, word [0xf07ec60]
imul esi, esi, 0xa
cmp ax, word [esi + 0xf07566a]
jne 0xf03099a
mov ax, word [0xf07ec62]
cmp ax, word [esi + 0xf07566c]
jne 0xf03099a
mov ax, word [0xf082af0]
cmp ax, word [esi + 0xf07566e]
jne 0xf03099a
mov ax, word [0xf082af2]
cmp ax, word [esi + 0xf075670]
jne 0xf03099a
push 0x44a
call fcn.0f04451f
cmp al, 0x28
je 0xf03099a
push 0x485
call fcn.0f04451f
movzx eax, al
cmp word [0xf082af2], ax
je 0xf0309b1
push dword [esi + 0xf07566e]
push dword [esi + 0xf07566a]
push dword [0xf0ad920]
call sub.KERNEL32.dll_SetConsoleHardwareState
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push 0xf07ec68
push dword [0xf0ad920]
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputA]
test eax, eax
jne 0xf0309eb
push 0x5a6
push 0xf002fe8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x3e9
call fcn.0f02cb1f
cmp dword [0xf082db0], 0
jne 0xf030a0c
movsx eax, word [0xf07ec62]
mov dword [0xf0ad9ac], eax
movsx eax, word [0xf082af2]
mov dword [0xf0ad99c], eax
call fcn.0f02fdc3
jmp 0xf030b6b
push 3
push 0x449
call fcn.0f044546
mov eax, dword [0xf082db0]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
inc ebx
mov dword [0xf082b0c], ebx
cmp eax, esi
jne 0xf030a6e
lea eax, [ebp - 0x48]
push eax
push dword [0xf0ad920]
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne 0xf030a65
push 0x5e7
push 0xf002fe8
call edi
push eax
push 0x3e9
call fcn.0f02cb1f
mov eax, dword [ebp - 0x38]
sub eax, dword [ebp - 0x3c]
inc eax
jmp 0xf030a72
cmp eax, ebx
je 0xf030a77
movzx ecx, ax
jmp 0xf030a7a
push 0x32
pop ecx
xor ebx, ebx
xor eax, eax
cmp word [eax + 0xf075668], cx
je 0xf030a90
add eax, 0xa
inc ebx
cmp eax, 0x32
jb 0xf030a7e
cmp ebx, 5
jne 0xf030a98
push 4
pop ebx
push 0x50
pop eax
mov word [ebp - 0x10], ax
push 0x32
pop eax
mov esi, 0xf07ec68
mov word [ebp - 0xe], ax
mov ecx, 0xfa0
mov eax, esi
push 7
pop edx
dec ecx
mov byte [eax], 0x20
mov word [eax + 2], dx
add eax, 4
test ecx, ecx
jne 0xf030ab2
xor eax, eax
push 0x4f
mov word [ebp - 0xa], ax
mov word [ebp - 0xc], ax
mov word [ebp - 0x22], ax
mov word [ebp - 0x24], ax
pop eax
push 0x31
mov word [ebp - 0x20], ax
pop eax
mov word [ebp - 0x1e], ax
call fcn.0f0384f9
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push esi
push dword [0xf0ad920]
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputA]
test eax, eax
jne 0xf030b1b
push 0x626
push 0xf002fe8
call edi
push eax
push 0x3e9
call fcn.0f02cb1f
xor eax, eax
mov word [ebp - 0x1c], ax
mov word [ebp - 0x1a], ax
push dword [ebp - 0x1c]
push dword [0xf0ad920]
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
test eax, eax
jne 0xf030b4f
push 0x62c
push 0xf002fe8
call edi
push eax
push 0x3e9
call fcn.0f02cb1f
mov eax, ebx
imul eax, eax, 0xa
push dword [eax + 0xf07566e]
push dword [eax + 0xf07566a]
push dword [0xf0ad920]
call sub.KERNEL32.dll_SetConsoleHardwareState
call fcn.0f0316b5
pop edi
pop ebx
push 0xf0ad070
push dword [0xf0ad920]
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorInfo]
call fcn.0f031722
pop esi
leave
ret