Function at 0xf036123
Capabilities:
Manipulate console buffer

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
push esi
xor esi, esi
cmp dword [0xf09c590], esi
jne 0xf0361a4
call fcn.0f036cd9
cmp dword [0xf064a70], esi
je 0xf036195
cmp dword [0xf071748], esi
jne 0xf036195
push dword [0xf09c60c]
push dword [0xf09c560]
call dword [sym.imp.KERNEL32.dll_SetConsoleScreenBufferSize]
mov eax, dword [0xf09c61c]
sub eax, dword [0xf09c618]
mov word [ebp - 0x2c], si
mov word [ebp - 0x26], ax
mov eax, dword [0xf09c61a]
sub eax, dword [0xf09c616]
mov word [ebp - 0x2a], si
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x2c]
push eax
push 1
push dword [0xf09c560]
call dword [sym.imp.KERNEL32.dll_SetConsoleWindowInfo]
call fcn.0f035e82
call fcn.0f03bf22
jmp 0xf036556
push ebx
push edi
call fcn.0f035f4e
test eax, eax
jne 0xf036407
lea eax, [ebp - 0x44]
push eax
push dword [0xf09c560]
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne 0xf0361e2
push 0x54c
push 0xf00241c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x3e9
call fcn.0f034a13
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 + 0xf064be8]
cmp edx, ecx
je 0xf036208
inc dword [ebp - 8]
add eax, 0xa
cmp eax, 0x32
jb 0xf0361f2
cmp dword [ebp - 8], 5
jne 0xf036215
mov dword [ebp - 8], 4
push 0xf0716b8
push 0xf06d828
push dword [0xf09c560]
call sub.KERNEL32.dll_GetConsoleHardwareState
push 0x462
call fcn.0f00f6f0
mov bl, al
lea eax, [ebp - 1]
push eax
push 0x3cc
call fcn.0f01af50
movzx ebx, bl
imul ebx, ebx, 0xfa0
test byte [ebp - 1], 1
je 0xf03625b
add ebx, 0xb8000
jmp 0xf036261
add ebx, 0xb0000
push 0x44a
mov esi, 0xf06d830
call fcn.0f00f703
push 0x484
movzx edi, ax
call fcn.0f00f6f0
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 0xf0362ee
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], ecx
and dword [ebp - 0x14], 0
test edi, edi
mov eax, ebx
jbe 0xf0362ca
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 0xf0362af
cmp edi, 0x50
jae 0xf0362df
push 0x50
pop eax
sub eax, dword [ebp - 0x14]
mov byte [esi], 0x20
mov word [esi + 2], 7
add esi, 4
dec eax
jne 0xf0362d0
lea eax, [edi + edi]
add ebx, eax
dec dword [ebp - 0x18]
jne 0xf03629f
cmp ecx, 0x32
jae 0xf036309
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 0xf0362f7
dec eax
jne 0xf0362f4
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.0f03bf22
mov esi, dword [ebp - 8]
mov ax, word [0xf06d828]
lea esi, [esi + esi*4]
shl esi, 1
cmp ax, word [esi + 0xf064bea]
jne 0xf036394
mov ax, word [0xf06d82a]
cmp ax, word [esi + 0xf064bec]
jne 0xf036394
mov ax, word [0xf0716b8]
cmp ax, word [esi + 0xf064bee]
jne 0xf036394
mov ax, word [0xf0716ba]
cmp ax, word [esi + 0xf064bf0]
jne 0xf036394
push 0x44a
call fcn.0f00f6f0
cmp al, 0x28
je 0xf036394
push 0x485
call fcn.0f00f6f0
movzx eax, al
cmp word [0xf0716ba], ax
je 0xf0363ab
push dword [esi + 0xf064bee]
push dword [esi + 0xf064bea]
push dword [0xf09c560]
call sub.KERNEL32.dll_SetConsoleHardwareState
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push 0xf06d830
push dword [0xf09c560]
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputA]
test eax, eax
jne 0xf0363e5
push 0x644
push 0xf00241c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x3e9
call fcn.0f034a13
movsx eax, word [0xf06d82a]
mov dword [0xf09c5ec], eax
movsx eax, word [0xf0716ba]
mov dword [0xf09c5dc], eax
call fcn.0f035e82
jmp 0xf03654f
push 3
push 0x449
call fcn.0f00f717
lea eax, [ebp - 0x44]
push eax
push dword [0xf09c560]
mov dword [0xf0716d4], 1
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
mov ebx, 0xf00241c
jne 0xf036450
push 0x67b
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edi, 0x3e9
push edi
call fcn.0f034a13
jmp 0xf036455
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 + 0xf064be8]
cmp edx, ecx
je 0xf03647b
inc dword [ebp - 8]
add eax, 0xa
cmp eax, 0x32
jb 0xf036465
cmp dword [ebp - 8], 5
jne 0xf036488
mov dword [ebp - 8], 4
mov esi, 0xf06d830
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 0xf0364a0
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.0f03bf22
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push esi
push dword [0xf09c560]
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputA]
test eax, eax
jne 0xf036500
push 0x6af
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
call fcn.0f034a13
and word [ebp - 0x1c], 0
and word [ebp - 0x1a], 0
push dword [ebp - 0x1c]
push dword [0xf09c560]
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
test eax, eax
jne 0xf036530
push 0x6b5
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
call fcn.0f034a13
mov eax, dword [ebp - 8]
lea eax, [eax + eax*4]
shl eax, 1
push dword [eax + 0xf064bee]
push dword [eax + 0xf064bea]
push dword [0xf09c560]
call sub.KERNEL32.dll_SetConsoleHardwareState
call fcn.0f036cd9
pop edi
pop ebx
push 0xf09bde0
push dword [0xf09c560]
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorInfo]
call fcn.0f036d46
pop esi
leave
ret