Function at 0x402310
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x404427
mov eax, dword fs:[0]
push eax
sub esp, 0x114
mov eax, dword [0x407008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x4c], eax
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push 1
push 0x2bc
push 0x384
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_MoveWindow]
push 0
push 1
push 0
push 0
push 0xc0000000
call dword [sym.imp.KERNEL32.dll_CreateConsoleScreenBuffer]
push eax
mov dword [ebp - 0x68], eax
call dword [sym.imp.KERNEL32.dll_SetConsoleActiveScreenBuffer]
push 0xff00
call fcn.004038a8
mov edi, dword [0x40701c]
mov edx, eax
mov eax, dword [0x407018]
add esp, 4
mov dword [0x407458], edx
mov dword [ebp - 0x2c], 0
lea esi, [eax + 1]
imul esi, edi
test esi, esi
jle 0x4023cd
mov ecx, esi
mov eax, 0x200020
shr ecx, 1
mov edi, edx
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov edi, dword [0x40701c]
mov eax, dword [0x407018]
xor ecx, ecx
mov word [edx + esi*2 - 2], cx
lea ecx, [eax - 1]
mov dword [ebp - 0x60], ecx
mov esi, 0x23
test ecx, ecx
jle 0x40241e
lea esi, [edi + edi]
mov eax, edx
mov edi, dword [ebp - 0x60]
lea ecx, [edx - 2]
mov dword [ebp - 0x48], edi
add ecx, esi
mov edi, dword [0x40701c]
mov edx, 0x23
nop
mov word [eax], dx
add eax, esi
mov word [ecx], dx
add ecx, esi
sub dword [ebp - 0x48], 1
jne 0x402400
mov edx, dword [0x407458]
mov esi, 0x23
mov ecx, dword [ebp - 0x60]
xor eax, eax
test edi, edi
jle 0x402440
lea ecx, [ecx*2 - 2]
imul ecx, edi
add ecx, edx
mov word [edx + eax*2], si
lea ecx, [ecx + 2]
inc eax
mov word [ecx - 2], si
cmp eax, edi
jl 0x402430
push 0x6c
mov dword [ebp - 0x44], 0
lea ecx, [ebp - 0x44]
push str.Welcome_to_the_game__There_isnt_much_to_do_yet__but_you_can_press_any_key_to_start_exploring_what_there_is.
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
call fcn.00403030
push 0x10
mov dword [ebp - 4], 0
call fcn.00403619
mov edi, eax
mov dword [ebp - 0x60], edi
mov byte [ebp - 4], 1
xorps xmm0, xmm0
movups xmmword [edi], xmm0
push 0x13880
mov dword [edi + 4], 0x64
mov dword [edi], 0x64
call fcn.004038a8
add esp, 8
mov edx, 0x2710
lea ecx, [eax + 5]
nop word [eax + eax]
mov dword [ecx - 5], 0x78
mov word [ecx - 1], 5
add ecx, 8
sub edx, 1
jne 0x4024b0
mov esi, dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
push ecx
push dword [edi]
mov dword [edi + 8], eax
call esi
cdq
mov ecx, 0xf
idiv ecx
sub edx, 0xa
push edx
call esi
mov ecx, 0x1e
cdq
idiv ecx
sub edx, 0xf
push edx
mov edx, dword [edi + 4]
push ecx
mov ecx, dword [edi]
call fcn.00401760
mov ecx, dword [edi + 4]
add esp, 0x14
imul ecx, dword [edi]
xor edx, edx
mov esi, eax
test ecx, ecx
jle 0x402543
nop dword [eax]
cmp byte [edx + esi], 0x20
lea ecx, [edx*8]
mov eax, dword [edi + 8]
jne 0x402529
mov dword [eax + ecx], 0x20
jmp 0x402538
mov dword [eax + ecx], 0x2588
mov eax, dword [edi + 8]
xor byte [ecx + eax + 4], 1
mov eax, dword [edi + 4]
inc edx
imul eax, dword [edi]
cmp edx, eax
jl 0x402510
push esi
call fcn.00403614
mov byte [ebp - 4], 0
add esp, 4
mov dword [edi + 0xc], 0x407448
mov dword [0x407038], 0x14
mov dword [0x40703c], 0x14
mov dword [0x407040], 0x40
mov dword [0x407050], edi
mov edx, dword [edi]
mov dword [0x407454], edi
lea ecx, [edx + 1]
lea ecx, [ecx + ecx*4]
shl ecx, 2
test ecx, ecx
jle 0x4025a2
mov eax, dword [edi + 4]
imul eax, edx
cmp ecx, eax
jge 0x4025a2
mov eax, dword [edi + 8]
lea eax, [eax + ecx*8]
jmp 0x4025a5
mov eax, dword [edi + 8]
inc byte [eax + 5]
mov edx, edi
push 1
push 1
mov ecx, 0x407448
mov dword [0x407450], 0x407038
call fcn.00401e90
mov esi, dword [0x40701c]
lea eax, [ebp - 0x44]
add esp, 8
push dword [ebp - 0x34]
sub esp, 0x18
mov ecx, esp
push eax
call fcn.00402f60
lea edx, [esi + 3]
call fcn.00401de0
add esp, 0x1c
xor eax, eax
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [0x407018]
push dword [ebp - 0x48]
inc eax
imul eax, dword [0x40701c]
push eax
push dword [0x407458]
push dword [ebp - 0x68]
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputCharacterW]
push 0
push 0x4051e0
mov ecx, 0x407020
call fcn.00403030
mov edx, dword [0x407018]
mov esi, dword [0x407458]
inc edx
imul edx, dword [0x40701c]
test edx, edx
jle 0x40264b
mov ecx, edx
mov eax, 0x200020
shr ecx, 1
mov edi, esi
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
xor eax, eax
mov word [esi + edx*2 - 2], ax
call dword [sym.imp.api_ms_win_crt_conio_l1_1_0.dll__getch]
mov cl, al
call fcn.00401f90
mov eax, dword [0x407454]
mov eax, dword [eax + 0xc]
mov edi, dword [eax]
test edi, edi
je 0x40275d
push dword [0x40703c]
mov ecx, dword [edi + 8]
push dword [0x407038]
call fcn.00401af0
mov edx, dword [edi + 8]
mov eax, dword [edx + 0x1c]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x402753
mov ecx, dword [eax + 8]
mov esi, dword [edx + 0x18]
mov eax, dword [eax + 4]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x50], ecx
mov eax, dword [esi]
imul eax, dword [edx + 4]
mov ecx, dword [edx]
add ecx, eax
mov dword [ebp - 0x48], ecx
test ecx, ecx
jle 0x4026cb
mov eax, dword [esi + 4]
imul eax, dword [esi]
cmp ecx, eax
jge 0x4026cb
mov ecx, dword [esi + 8]
mov eax, dword [ebp - 0x48]
lea eax, [ecx + eax*8]
jmp 0x4026d0
mov eax, dword [esi + 8]
mov ecx, eax
mov dword [ebp - 0x48], eax
mov eax, dword [esi]
imul eax, dword [ebp - 0x50]
add eax, dword [ebp - 0x5c]
mov dword [ebp - 0x54], eax
test eax, eax
jle 0x4026f3
mov eax, dword [esi + 4]
imul eax, dword [esi]
mov esi, dword [ebp - 0x54]
cmp esi, eax
jge 0x4026f3
lea ecx, [ecx + esi*8]
mov ah, byte [ecx + 5]
mov al, byte [edx + 0x14]
test ah, ah
je 0x402708
test al, 1
jne 0x402713
or al, 1
mov byte [edx + 0x14], al
jmp 0x402753
test al, 1
je 0x402713
xor al, 1
mov byte [edx + 0x14], al
jmp 0x402753
test byte [ecx + 4], 1
je 0x402753
test ah, ah
je 0x402723
test byte [edx + 0x14], 1
je 0x402753
inc ah
mov byte [ecx + 5], ah
mov eax, dword [ebp - 0x48]
push 0x14
dec byte [eax + 5]
mov eax, dword [ebp - 0x5c]
mov dword [edx], eax
mov eax, dword [ebp - 0x50]
mov dword [edx + 4], eax
mov eax, dword [edi + 8]
mov eax, dword [eax + 0x1c]
push eax
mov esi, dword [eax + 0xc]
call fcn.0040389a
mov eax, dword [edi + 8]
add esp, 8
mov dword [eax + 0x1c], esi
mov edi, dword [edi]
test edi, edi
jne 0x402671
movsx eax, byte [0x40704c]
mov dword [ebp - 0x54], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xa8]
push 3
mov dword [ebp - 0xa8], 0
push 0x4051e4
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x94], 0xf
mov byte [ebp - 0xa8], 0
call fcn.00403030
mov eax, dword [ebp - 0x58]
or eax, 1
test byte [ebp - 0x54], 1
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x4c], eax
jne 0x4027c6
push 2
push 0x4051e8
lea ecx, [ebp - 0xa8]
call fcn.00403030
mov edx, dword [0x40703c]
lea ecx, [ebp - 0xd8]
call fcn.004011b0
mov edi, eax
mov dword [ebp - 0x54], edi
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xc0]
mov edx, dword [0x407038]
call fcn.004011b0
mov esi, eax
mov byte [ebp - 4], 4
mov ecx, dword [esi + 0x14]
mov eax, ecx
mov edx, dword [esi + 0x10]
sub eax, edx
cmp eax, 3
jb 0x40288e
lea eax, [edx + 3]
mov edi, esi
mov dword [esi + 0x10], eax
cmp ecx, 0x10
jb 0x402819
mov edi, dword [esi]
cmp edi, 0x4052a3
jae 0x402848
lea eax, [edi + edx]
cmp eax, 0x4052a0
jb 0x402848
cmp edi, 0x4052a0
ja 0x40283c
mov dword [ebp - 0x4c], 0
jmp 0x40284f
mov eax, edi
sub eax, 0x4052a0
mov dword [ebp - 0x4c], eax
jmp 0x40284f
mov dword [ebp - 0x4c], 3
lea eax, [edx + 1]
push eax
lea ecx, [edi + 3]
push edi
push ecx
call sub.VCRUNTIME140.dll_memmove
push dword [ebp - 0x4c]
push 0x4052a0
push edi
call sub.VCRUNTIME140.dll_memcpy
mov edx, dword [ebp - 0x4c]
mov eax, 3
sub eax, edx
push eax
lea eax, [edx + 0x4052a3]
lea ecx, [edi + edx]
push eax
push ecx
call sub.VCRUNTIME140.dll_memcpy
mov edi, dword [ebp - 0x54]
add esp, 0x24
jmp 0x4028ab
push 3
sub esp, 8
mov byte [ebp - 0x8c], 0
mov ecx, esi
push dword [ebp - 0x8c]
push 3
call fcn.004034c0
mov esi, eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x18], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov esi, dword [ebp - 0x58]
or esi, 2
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x4c], esi
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x14]
mov eax, edx
mov ecx, dword [ebp - 0x18]
sub eax, ecx
push 5
push str.__y:
cmp eax, 5
jb 0x40292f
cmp edx, 0x10
lea esi, [ebp - 0x28]
lea eax, [ecx + 5]
cmovae esi, dword [ebp - 0x28]
add esi, ecx
mov dword [ebp - 0x18], eax
push esi
call sub.VCRUNTIME140.dll_memmove
mov byte [esi + 5], 0
lea eax, [ebp - 0x28]
mov esi, dword [ebp - 0x58]
add esp, 0xc
jmp 0x402946
mov byte [ebp - 0x90], 0
lea ecx, [ebp - 0x28]
push dword [ebp - 0x90]
push 5
call fcn.00403170
movups xmm0, xmmword [eax]
or esi, 4
mov dword [ebp - 0x4c], esi
movups xmmword [ebp - 0x108], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0xf8], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
push edi
lea eax, [ebp - 0x108]
mov byte [ebp - 4], 6
push eax
push dword [ebp - 0x64]
lea ecx, [ebp - 0x88]
call fcn.004032d0
or esi, 8
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x4c], esi
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x74]
mov eax, edx
mov ecx, dword [ebp - 0x78]
sub eax, ecx
push 0xd
push str.__Crouching:
cmp eax, 0xd
jb 0x4029e1
cmp edx, 0x10
lea esi, [ebp - 0x88]
lea eax, [ecx + 0xd]
cmovae esi, dword [ebp - 0x88]
add esi, ecx
mov dword [ebp - 0x78], eax
push esi
call sub.VCRUNTIME140.dll_memmove
mov byte [esi + 0xd], 0
lea eax, [ebp - 0x88]
mov esi, dword [ebp - 0x58]
add esp, 0xc
jmp 0x4029f5
mov byte [ebp - 0x64], 0
lea ecx, [ebp - 0x88]
push dword [ebp - 0x64]
push 0xd
call fcn.00403170
movups xmm0, xmmword [eax]
or esi, 0x10
mov dword [ebp - 0x4c], esi
movups xmmword [ebp - 0xf0], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0xe0], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0xa8]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0xf0]
push eax
push dword [ebp - 0x64]
lea ecx, [ebp - 0x120]
call fcn.004032d0
mov edx, dword [ebp - 0x30]
or esi, 0x20
cmp edx, 0x10
jb 0x402a7a
mov ecx, dword [ebp - 0x44]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x402a70
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402f03
push edx
push ecx
call fcn.0040389a
add esp, 8
movups xmm0, xmmword [ebp - 0x120]
movups xmmword [ebp - 0x44], xmm0
movq xmm0, qword [ebp - 0x110]
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0xdc]
movq qword [ebp - 0x34], xmm0
cmp edx, 0x10
jb 0x402ad0
mov ecx, dword [ebp - 0xf0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x402ac6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402f03
push edx
push ecx
call fcn.0040389a
add esp, 8
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x74]
cmp edx, 0x10
jb 0x402b0b
mov ecx, dword [ebp - 0x88]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x402b01
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402f03
push edx
push ecx
call fcn.0040389a
add esp, 8
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0xf4]
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0xf
mov byte [ebp - 0x88], 0
cmp edx, 0x10
jb 0x402b5e
mov ecx, dword [ebp - 0x108]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x402b54
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402f03
push edx
push ecx
call fcn.0040389a
add esp, 8
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x402b96
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x402b8c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402f03
push edx
push ecx
call fcn.0040389a
add esp, 8
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0xac]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
cmp edx, 0x10
jb 0x402be6
mov ecx, dword [ebp - 0xc0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x402bdc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402f03
push edx
push ecx
call fcn.0040389a
add esp, 8
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0xc4]
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0xac], 0xf
mov byte [ebp - 0xc0], 0
cmp edx, 0x10
jb 0x402c3f
mov ecx, dword [ebp - 0xd8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x402c35
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402f03
push edx
push ecx
call fcn.0040389a
add esp, 8
and esi, 0xfffffffe
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x94]
mov dword [ebp - 0xc8], 0
mov dword [ebp - 0xc4], 0xf
mov byte [ebp - 0xd8], 0
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x4c], esi
cmp edx, 0x10
jb 0x402ca1
mov ecx, dword [ebp - 0xa8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x402c97
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402f03
push edx
push ecx
call fcn.0040389a
add esp, 8
mov ecx, dword [ebp - 0x60]
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0x48], eax
xor eax, eax
mov dword [ebp - 0x5c], eax
cmp dword [ecx + 4], eax
jle 0x402d5c
mov esi, dword [ecx]
xor edi, edi
test esi, esi
jle 0x402d4f
mov eax, dword [0x40701c]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x54], eax
mov eax, dword [0x407018]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x50], eax
mov eax, dword [0x40701c]
mov ecx, dword [ebp - 0x50]
sub ecx, dword [0x40703c]
add ecx, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x54]
sub edx, dword [0x407038]
imul ecx, eax
add edx, edi
add ecx, edx
test ecx, ecx
jle 0x402d42
mov eax, dword [0x407018]
add eax, 0xfffffffe
imul eax, dword [0x40701c]
cmp ecx, eax
mov eax, dword [0x40701c]
jge 0x402d42
test edx, edx
jle 0x402d42
cmp edx, eax
jge 0x402d42
imul esi, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x60]
mov edx, dword [0x407458]
mov eax, dword [eax + 8]
add esi, edi
mov ax, word [eax + esi*8]
mov word [edx + ecx*2], ax
mov eax, dword [0x40701c]
mov ecx, dword [ebp - 0x60]
inc edi
mov esi, dword [ecx]
cmp edi, esi
jl 0x402ce3
mov eax, dword [ebp - 0x5c]
inc eax
mov dword [ebp - 0x5c], eax
cmp eax, dword [ecx + 4]
jl 0x402cb8
mov ecx, dword [ebp - 0x48]
mov esi, dword [0x40701c]
test ecx, ecx
je 0x402dcb
mov eax, dword [0x407018]
cdq
sub eax, edx
mov edi, eax
mov eax, esi
cdq
sub eax, edx
sar edi, 1
sar eax, 1
mov dword [ebp - 0x50], eax
nop
mov edx, dword [ecx + 8]
mov ecx, dword [edx + 4]
sub ecx, dword [0x40703c]
add ecx, edi
imul ecx, esi
sub ecx, dword [0x407038]
add ecx, eax
add ecx, dword [edx]
test ecx, ecx
jle 0x402dbf
mov eax, dword [0x407018]
add eax, 0xfffffffe
imul eax, esi
cmp ecx, eax
jge 0x402dbc
mov ax, word [edx + 8]
mov edx, dword [0x407458]
mov word [edx + ecx*2], ax
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x48]
mov ecx, dword [ecx]
mov dword [ebp - 0x48], ecx
test ecx, ecx
jne 0x402d80
mov edi, dword [0x407018]
add edi, 0xfffffffe
mov dword [ebp - 0x50], edi
test edi, edi
jle 0x402e08
mov ecx, dword [0x407458]
lea edx, [esi + esi]
mov eax, ecx
mov esi, 0x23
add ecx, 0xfffffffe
add ecx, edx
mov word [eax], si
add eax, edx
mov word [ecx], si
add ecx, edx
sub edi, 1
jne 0x402df0
mov esi, dword [0x40701c]
mov edi, dword [ebp - 0x50]
xor eax, eax
test esi, esi
jle 0x402e38
mov edx, dword [0x407458]
lea ecx, [edi*2 - 2]
imul ecx, esi
mov edi, 0x23
add ecx, edx
mov word [edx + eax*2], di
lea ecx, [ecx + 2]
inc eax
mov word [ecx - 2], di
cmp eax, esi
jl 0x402e25
mov edi, dword [ebp - 0x50]
lea eax, [esi - 4]
imul edi, esi
push eax
sub esp, 0x18
lea eax, [ebp - 0x44]
mov ecx, esp
push eax
call fcn.00402f60
lea edx, [edi + 3]
call fcn.00401de0
mov ecx, dword [0x40701c]
add esp, 0x1c
mov esi, dword [0x407018]
dec esi
imul esi, ecx
lea eax, [ecx - 4]
push eax
sub esp, 0x18
mov ecx, esp
push 0x407020
call fcn.00402f60
lea edx, [esi + 3]
call fcn.00401de0
mov edi, dword [ebp - 0x68]
lea eax, [ebp - 0x28]
add esp, 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
movsx eax, word [ebp - 0x1e]
movsx edx, word [ebp - 0x1a]
movsx ecx, word [ebp - 0x18]
sub edx, eax
movsx eax, word [ebp - 0x1c]
inc edx
mov esi, dword [0x40701c]
sub ecx, eax
inc ecx
cmp edx, esi
jne 0x402ebd
mov eax, dword [0x407018]
cmp ecx, eax
je 0x402ee6
mov word [ebp - 0x6c], dx
mov word [ebp - 0x6a], cx
push dword [ebp - 0x6c]
mov dword [0x40701c], edx
push edi
mov dword [0x407018], ecx
call dword [sym.imp.KERNEL32.dll_SetConsoleScreenBufferSize]
mov esi, dword [0x40701c]
mov eax, dword [0x407018]
xor ecx, ecx
inc eax
mov dword [ebp - 0x70], ecx
lea ecx, [ebp - 0x2c]
push ecx
push dword [ebp - 0x70]
imul eax, esi
push eax
push dword [0x407458]
push edi
jmp 0x40260a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3