Function at 0x4618c0
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
push ebx
mov ebx, dword [0x49fc04]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
push edi
push 0xfffffffffffffff6
mov dword [ebx + 0x84], 0x499f80
call esi
push 0xfffffffffffffff5
mov dword [0x4a0994], eax
call esi
push eax
mov dword [0x4a0998], eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
mov edi, eax
mov eax, dword [0x49ad1c]
test eax, eax
mov dword [ebp - 0xc], edi
jne 0x461920
cmp dword [0x4a0998], 0xffffffff
je 0x461916
test edi, edi
jne 0x461920
mov dword [0x49ad1c], 4
mov al, byte [0x49d2c6]
test al, al
je 0x461955
call dword [sym.imp.KERNEL32.dll_GetACP]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetConsoleCP]
mov dword [0x4b52b0], eax
call dword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
push esi
mov dword [0x4b5194], eax
call dword [sym.imp.KERNEL32.dll_SetConsoleCP]
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x461a2b
lea ecx, [ebp - 0x13c]
push 0x104
push ecx
push 0x64
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
test eax, eax
je 0x4619b5
inc eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edx, eax
lea edi, [ebp - 0x13c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [0x4b55a8], edx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x461a28
mov eax, 0x104
call fcn.0048d710
mov esi, esp
push 0x104
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 2
push 0
push 0xffffffffffffffff
push esi
call fcn.0045a9b0
mov esi, eax
add esp, 0x10
test esi, esi
mov dword [ebp - 4], esi
je 0x461a2b
mov ecx, dword [esi + 0x34]
inc ecx
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edx, eax
or ecx, 0xffffffff
mov dword [0x4b55a8], edx
mov edi, dword [esi + 0x14]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 4]
push ecx
call fcn.0045ab90
add esp, 4
mov edi, dword [ebp - 0xc]
mov eax, dword [0x49ad1c]
test eax, eax
je 0x461af8
mov eax, dword [0x4a0998]
or esi, 0xffffffff
cmp eax, esi
je 0x461a4e
cmp edi, 1
je 0x461a58
cmp edi, 3
je 0x461a58
mov dword [0x4b5598], 1
mov edx, dword [0x4a0994]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp dword [0x4a0994], esi
je 0x461a77
cmp eax, 1
je 0x461a81
cmp eax, 3
je 0x461a81
mov dword [0x4b5594], 1
mov esi, dword [ebp + 8]
mov byte [ebx + 0x80], 0
mov byte [ebx + 0x81], 0
mov eax, dword [0x49d18c]
test eax, eax
je 0x461aa0
mov dword [ebx + 0x10], eax
jmp 0x461aad
mov dword [esi], 0x50
mov dword [ebx + 0x10], 0x50
mov eax, dword [0x49d16c]
test eax, eax
je 0x461abb
mov dword [ebx + 0xc], eax
jmp 0x461ae1
mov al, byte [0x49d263]
test al, 0x10
je 0x461acd
mov dword [ebx + 0xc], 0x2b
jmp 0x461ae1
test al, 0x20
je 0x461ada
mov dword [ebx + 0xc], 0x32
jmp 0x461ae1
mov dword [ebx + 0xc], 0x19
call fcn.004610d0
test eax, eax
je 0x461aed
dec dword [ebx + 0xc]
mov eax, dword [ebx + 0xc]
mov dword [esi + 4], eax
jmp 0x461c05
mov dword [ebp - 4], 0
call fcn.004613d0
mov ecx, 5
mov esi, 0x4b5460
lea edi, [ebp - 0x24]
mov al, byte [0x49d263]
rep movsd dword es:[edi], dword [esi]
test al, 0x30
movsw word es:[edi], word [esi]
jne 0x461b30
mov eax, dword [0x49d16c]
test eax, eax
jne 0x461b30
mov eax, dword [0x49d18c]
test eax, eax
je 0x461b48
mov edx, dword [0x4b558c]
lea ecx, [ebp - 0x24]
push ecx
push edx
mov esi, 1
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
jmp 0x461b4b
mov esi, dword [ebp - 4]
mov dx, word [ebp - 0x24]
mov ax, word [ebp - 0x22]
cmp dx, 0x84
jg 0x461b60
cmp ax, 0x3c
jle 0x461b8c
cmp ax, 0x3c
movsx ecx, ax
jl 0x461b6e
mov ecx, 0x3c
cmp dx, 0x84
movsx eax, dx
jl 0x461b7d
mov eax, 0x84
push esi
push ecx
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00461720
add esp, 0x10
mov cl, byte [ebp - 0x20]
mov esi, dword [ebp + 8]
mov byte [ebx + 0x80], cl
mov dl, byte [ebp - 0x1e]
mov byte [ebx + 0x81], dl
movsx eax, word [ebp - 0x24]
mov dword [esi], eax
mov dword [ebx + 0x10], eax
movsx eax, word [ebp - 0x22]
mov dword [esi + 4], eax
mov dword [ebx + 0xc], eax
call fcn.004610d0
test eax, eax
je 0x461bfc
movsx ecx, word [ebp - 0x1e]
mov eax, dword [ebx + 0xc]
inc ecx
cmp eax, ecx
jne 0x461bf1
dec eax
push 1
push eax
push 0
call fcn.00462760
mov eax, dword [0x4b558c]
add esp, 0xc
dec word [ebp - 0x1e]
mov edx, dword [ebp - 0x20]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
dec byte [ebx + 0x81]
movsx eax, word [ebp - 0x22]
dec eax
mov dword [esi + 4], eax
mov dword [ebx + 0xc], eax
mov ecx, dword [ebp - 0x20]
mov dword [0x4b52a4], ecx
push 0x271d
push 0
push 0
xor edx, edx
mov ecx, 0x4000
mov dword [ebx + 4], 2
call fcn.00452a70
push 0x4b55c4
mov dword [0x4b55b4], eax
mov dword [0x4b55bc], eax
mov dword [0x4b55b8], eax
mov dword [0x4b52b4], 0
call fcn.00461e00
mov esi, dword [sym.imp.KERNEL32.dll_GetVersion]
add esp, 4
call esi
cmp al, 3
ja 0x461c62
call esi
xor edx, edx
mov dl, ah
cmp dl, 0x32
jbe 0x461dad
mov ebx, dword [sym.imp.KERNEL32.dll_LocalAlloc]
push 0x110
push 0
call ebx
mov cx, word [0x4a0a4c]
mov esi, eax
mov eax, dword [0x4a0a48]
push esi
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0xc]
mov word [ebp - 8], cx
push str.HELP
lea eax, [ebp - 0x38]
push edx
lea ecx, [ebp + 8]
push eax
push ecx
mov dword [ebp + 8], 0
mov dword [ebp - 0x38], 0x14
mov dword [ebp - 0x28], 0x104
call fcn.0042e5b0
add esp, 0x14
test eax, eax
jne 0x461d23
push 0x110
push eax
call ebx
mov edx, dword [ebp - 0x28]
mov edi, eax
push 0
push 0xffffffffffffffff
push edi
push edx
push esi
call fcn.00452280
add esp, 0x14
test eax, eax
je 0x461cee
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
or ecx, 0xffffffff
xor eax, eax
mov esi, edi
repne scasb al, byte es:[edi]
not ecx
dec ecx
jmp 0x461cf1
mov ecx, dword [ebp - 0x28]
mov byte [ecx + esi], 0x5c
mov edx, dword [0x4a0a58]
lea eax, [ecx + esi + 1]
mov dword [ecx + esi + 1], edx
mov edx, dword [0x4a0a5c]
mov dword [eax + 4], edx
mov edx, dword [0x4a0a60]
mov dword [eax + 8], edx
mov dl, byte [0x4a0a64]
mov byte [eax + 0xc], dl
lea eax, [ecx + 0xe]
jmp 0x461d4d
mov ecx, dword [str.mfnetx50.chm]
mov eax, esi
mov dword [eax], ecx
mov edx, dword [0x4a0a6c]
mov dword [eax + 4], edx
mov ecx, dword [0x4a0a70]
mov dword [eax + 8], ecx
mov dl, byte [0x4a0a74]
mov byte [eax + 0xc], dl
mov eax, 0x104
push eax
push 0
call ebx
test eax, eax
mov dword [0x4b5298], eax
jne 0x461d6a
push 0x69
call fcn.00425880
mov eax, dword [0x4b5298]
add esp, 4
lea ecx, [ebp - 4]
push ecx
push eax
push 0x104
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SearchPathA]
test eax, eax
je 0x461d8f
mov dword [0x4b55ac], 1
jmp 0x461da6
mov edx, dword [0x4b5298]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [0x4b5298], 0
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0x461320
push 0x7f
call fcn.00426070
add esp, 8
test eax, eax
jne 0x461dcd
push 0xc8
call fcn.00425880
add esp, 4
mov eax, dword [0x4a1ae4]
mov ecx, dword [0x4a1ae8]
mov dword [0x4b53cc], eax
mov dword [0x4b53d0], ecx
call fcn.004635c0
lea esp, [ebp - 0x148]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret