Function at 0x1000115d
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, 0xe0
lea eax, [esp + 0x9c]
lea ecx, [esp + 0xbc]
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 + 0x98], ecx
mov dword [esp + 0x94], 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 + 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 + 0xb0]
mov dword [esp + 0x7c], eax
mov dword [esp + 0x78], edx
mov dword [esp + 0x74], ecx
jmp 0x10001336
mov dword [esp + 0xd4], 0x1cd
mov eax, esp
lea ecx, [esp + 0xd4]
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 + 0x70], eax
jmp 0x100013f0
mov eax, dword [esp + 0x6c]
add eax, 1
cmp eax, 0x6c
mov dword [esp + 0x74], eax
je 0x100014f6
jmp 0x10001336
mov eax, dword [esp + 0x68]
add eax, 1
mov dword [esp + 0xd8], 0xfc3
mov ecx, esp
lea edx, [esp + 0xd8]
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 + 0x64], eax
call ecx
sub esp, 0x14
mov ecx, dword [esp + 0x64]
cmp ecx, 0xa
mov dword [esp + 0x60], eax
mov dword [esp + 0x68], ecx
je 0x100012c4
jmp 0x100012de
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 + 0x5c], eax
call ecx
sub esp, 8
mov ecx, esp
mov dword [ecx], 0x5443a3
mov ecx, dword [sym.imp.KERNEL32.dll_AddRefActCtx]
mov dword [esp + 0x58], eax
call ecx
sub esp, 4
xor eax, eax
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x54]
mov ecx, 0x88888889
mov dword [esp + 0x50], eax
mul ecx
shr edx, 3
imul eax, edx, 0xf
mov ecx, dword [esp + 0x50]
sub ecx, eax
mov eax, ecx
sub eax, 0xb
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x48], eax
je 0x1000127a
jmp 0x100013b1
mov eax, dword [esp + 0x4c]
sub eax, 1
mov dword [esp + 0x44], eax
jne 0x100013f0
jmp 0x100013c0
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 + 0x40], eax
jmp 0x1000127a
mov eax, dword [esp + 0x50]
add eax, 1
cmp eax, 0xd4
mov dword [esp + 0x54], eax
jne 0x10001381
xor eax, eax
mov ecx, dword [sym.imp.ole32.dll_OleUninitialize]
mov dword [esp + 0x3c], eax
call ecx
xor eax, eax
mov ecx, dword [esp + 0x6c]
sub ecx, 0xc
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], ecx
je 0x100014a6
jmp 0x1000142b
mov eax, dword [esp + 0x6c]
sub eax, 0x5b
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x30], eax
mov dword [esp + 0x68], ecx
jne 0x100012de
jmp 0x10001446
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 + 0x2c], eax
call ecx
sub esp, 0xc
mov ecx, esp
mov dword [ecx], 0x58
mov ecx, dword [sym.imp.USER32.dll_VkKeyScanW]
mov dword [esp + 0x28], eax
call ecx
sub esp, 4
mov word [esp + 0x26], ax
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 + 0x20], eax
mov dword [esp + 0x1c], ecx
call fcn.10186f60
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 + 0x18], eax
jmp 0x100012c4
lea esp, [ebp - 4]
pop esi
pop ebp
ret