Function at 0xf0359f6
Capabilities:
Manipulate console buffer

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
push esi
xor esi, esi
cmp dword [0xf09b490], esi
jne 0xf035a77
call fcn.0f0365ac
cmp dword [0xf063a68], esi
je 0xf035a68
cmp dword [0xf070698], esi
jne 0xf035a68
push dword [0xf09b50c]
push dword [0xf09b460]
call dword [sym.imp.KERNEL32.dll_SetConsoleScreenBufferSize]
mov eax, dword [0xf09b51c]
sub eax, dword [0xf09b518]
mov word [ebp - 0x2c], si
mov word [ebp - 0x26], ax
mov eax, dword [0xf09b51a]
sub eax, dword [0xf09b516]
mov word [ebp - 0x2a], si
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x2c]
push eax
push 1
push dword [0xf09b460]
call dword [sym.imp.KERNEL32.dll_SetConsoleWindowInfo]
call fcn.0f035755
call fcn.0f03b8a6
jmp 0xf035e29
push ebx
push edi
call fcn.0f035821
test eax, eax
jne 0xf035cda
lea eax, [ebp - 0x44]
push eax
push dword [0xf09b460]
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne 0xf035ab5
push 0x54c
push 0xf0023a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x3e9
call fcn.0f03446f
movsx eax, word [ebp - 0x38]
movsx ecx, word [ebp - 0x34]
sub ecx, eax
inc ecx
mov dword [ebp - 8], esi
xor eax, eax
movzx edx, word [eax + 0xf063bc8]
cmp edx, ecx
je 0xf035adb
inc dword [ebp - 8]
add eax, 0xa
cmp eax, 0x32
jb 0xf035ac5
cmp dword [ebp - 8], 5
jne 0xf035ae8
mov dword [ebp - 8], 4
push 0xf070608
push 0xf06c778
push dword [0xf09b460]
call sub.KERNEL32.dll_GetConsoleHardwareState
push 0x462
call fcn.0f00f53c
mov bl, al
lea eax, [ebp - 1]
push eax
push 0x3cc
call fcn.0f01ab1f
movzx ebx, bl
imul ebx, ebx, 0xfa0
test byte [ebp - 1], 1
je 0xf035b2e
add ebx, 0xb8000
jmp 0xf035b34
add ebx, 0xb0000
push 0x44a
mov esi, 0xf06c780
call fcn.0f00f54f
push 0x484
movzx edi, ax
call fcn.0f00f53c
and dword [ebp - 0x1c], 0
movzx ax, al
mov word [ebp - 0x10], 0x50
mov word [ebp - 0xe], 0x32
inc eax
movsx ecx, ax
test ecx, ecx
jbe 0xf035bc1
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], ecx
and dword [ebp - 0x14], 0
test edi, edi
mov eax, ebx
jbe 0xf035b9d
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 0xf035b82
cmp edi, 0x50
jae 0xf035bb2
push 0x50
pop eax
sub eax, dword [ebp - 0x14]
mov byte [esi], 0x20
mov word [esi + 2], 7
add esi, 4
dec eax
jne 0xf035ba3
lea eax, [edi + edi]
add ebx, eax
dec dword [ebp - 0x18]
jne 0xf035b72
cmp ecx, 0x32
jae 0xf035bdc
push 0x32
pop eax
sub eax, dword [ebp - 0x1c]
push 0x50
pop ecx
mov byte [esi], 0x20
mov word [esi + 2], 7
add esi, 4
dec ecx
jne 0xf035bca
dec eax
jne 0xf035bc7
xor eax, eax
mov word [ebp - 0xa], ax
mov word [ebp - 0xc], ax
mov word [ebp - 0x22], ax
mov word [ebp - 0x24], ax
mov word [ebp - 0x20], 0x4f
mov word [ebp - 0x1e], 0x31
call fcn.0f03b8a6
mov esi, dword [ebp - 8]
mov ax, word [0xf06c778]
lea esi, [esi + esi*4]
shl esi, 1
cmp ax, word [esi + 0xf063bca]
jne 0xf035c67
mov ax, word [0xf06c77a]
cmp ax, word [esi + 0xf063bcc]
jne 0xf035c67
mov ax, word [0xf070608]
cmp ax, word [esi + 0xf063bce]
jne 0xf035c67
mov ax, word [0xf07060a]
cmp ax, word [esi + 0xf063bd0]
jne 0xf035c67
push 0x44a
call fcn.0f00f53c
cmp al, 0x28
je 0xf035c67
push 0x485
call fcn.0f00f53c
movzx eax, al
cmp word [0xf07060a], ax
je 0xf035c7e
push dword [esi + 0xf063bce]
push dword [esi + 0xf063bca]
push dword [0xf09b460]
call sub.KERNEL32.dll_SetConsoleHardwareState
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push 0xf06c780
push dword [0xf09b460]
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputA]
test eax, eax
jne 0xf035cb8
push 0x644
push 0xf0023a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x3e9
call fcn.0f03446f
movsx eax, word [0xf06c77a]
mov dword [0xf09b4ec], eax
movsx eax, word [0xf07060a]
mov dword [0xf09b4dc], eax
call fcn.0f035755
jmp 0xf035e22
push 3
push 0x449
call fcn.0f00f563
lea eax, [ebp - 0x44]
push eax
push dword [0xf09b460]
mov dword [0xf070624], 1
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
mov ebx, 0xf0023a4
jne 0xf035d23
push 0x67b
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edi, 0x3e9
push edi
call fcn.0f03446f
jmp 0xf035d28
mov edi, 0x3e9
movsx eax, word [ebp - 0x38]
movsx ecx, word [ebp - 0x34]
sub ecx, eax
inc ecx
mov dword [ebp - 8], esi
xor eax, eax
movzx edx, word [eax + 0xf063bc8]
cmp edx, ecx
je 0xf035d4e
inc dword [ebp - 8]
add eax, 0xa
cmp eax, 0x32
jb 0xf035d38
cmp dword [ebp - 8], 5
jne 0xf035d5b
mov dword [ebp - 8], 4
mov esi, 0xf06c780
mov word [ebp - 0x10], 0x50
mov word [ebp - 0xe], 0x32
mov eax, esi
mov ecx, 0xfa0
mov byte [eax], 0x20
mov word [eax + 2], 7
add eax, 4
dec ecx
jne 0xf035d73
xor eax, eax
mov word [ebp - 0xa], ax
mov word [ebp - 0xc], ax
mov word [ebp - 0x22], ax
mov word [ebp - 0x24], ax
mov word [ebp - 0x20], 0x4f
mov word [ebp - 0x1e], 0x31
call fcn.0f03b8a6
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push esi
push dword [0xf09b460]
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputA]
test eax, eax
jne 0xf035dd3
push 0x6af
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
call fcn.0f03446f
and word [ebp - 0x1c], 0
and word [ebp - 0x1a], 0
push dword [ebp - 0x1c]
push dword [0xf09b460]
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
test eax, eax
jne 0xf035e03
push 0x6b5
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
call fcn.0f03446f
mov eax, dword [ebp - 8]
lea eax, [eax + eax*4]
shl eax, 1
push dword [eax + 0xf063bce]
push dword [eax + 0xf063bca]
push dword [0xf09b460]
call sub.KERNEL32.dll_SetConsoleHardwareState
call fcn.0f0365ac
pop edi
pop ebx
push 0xf09ace0
push dword [0xf09b460]
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorInfo]
call fcn.0f036619
pop esi
leave
ret