Function at 0x10001159
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 + 0xc8]
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 + 0xb0]
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 + 0xd0]
mov dword [esp + 0x7c], eax
mov dword [esp + 0x78], edx
mov dword [esp + 0x74], ecx
jmp 0x1000138b
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 + 0x70], eax
mov dword [esp + 0x6c], ecx
call fcn.10186fe0
mov eax, esp
lea ecx, [esp + 0xd0]
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 + 0x68], eax
jmp 0x10001304
xor eax, eax
mov ecx, dword [sym.imp.ole32.dll_OleUninitialize]
mov dword [esp + 0x64], eax
call ecx
xor eax, eax
mov ecx, dword [esp + 0x60]
sub ecx, 0xc
mov dword [esp + 0x5c], eax
mov dword [esp + 0x58], ecx
je 0x10001276
jmp 0x100012e6
mov eax, dword [esp + 0x60]
sub eax, 0x5b
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x54], eax
mov dword [esp + 0x50], ecx
je 0x1000143f
jmp 0x100014a4
mov eax, dword [esp + 0x60]
add eax, 1
cmp eax, 0x6c
mov dword [esp + 0x74], eax
je 0x10001385
jmp 0x1000138b
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 + 0x4c], eax
jmp 0x100013f8
mov eax, dword [esp + 0x48]
mov ecx, 0x88888889
mov dword [esp + 0x44], eax
mul ecx
shr edx, 3
imul eax, edx, 0xf
mov ecx, dword [esp + 0x44]
sub ecx, eax
mov eax, ecx
sub eax, 1
mov dword [esp + 0x40], ecx
mov dword [esp + 0x3c], eax
je 0x1000131a
jmp 0x10001376
mov eax, dword [esp + 0x40]
sub eax, 0xb
mov dword [esp + 0x38], eax
je 0x100013f8
jmp 0x100013db
lea esp, [ebp - 4]
pop esi
pop ebp
ret
mov eax, dword [esp + 0x74]
mov ecx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x60], 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 + 0x34], eax
call ecx
sub esp, 8
mov ecx, esp
mov dword [ecx], 0x5443a3
mov ecx, dword [sym.imp.KERNEL32.dll_AddRefActCtx]
mov dword [esp + 0x30], eax
call ecx
sub esp, 4
xor eax, eax
mov dword [esp + 0x48], eax
jmp 0x1000134a
mov eax, dword [esp + 0x44]
add eax, 1
cmp eax, 0xd4
mov dword [esp + 0x48], eax
je 0x100012c3
jmp 0x1000134a
mov dword [esp + 0xcc], 0x1cd
mov eax, esp
lea ecx, [esp + 0xcc]
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 + 0x2c], eax
jmp 0x100013db
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 0x10001276
mov eax, dword [esp + 0x50]
add eax, 1
mov dword [esp + 0xc4], 0xfc3
mov ecx, esp
lea edx, [esp + 0xc4]
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 + 0x50], ecx
je 0x10001304
jmp 0x100014a4