Function at 0x10001157
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 + 0xb4]
lea ecx, [esp + 0xac]
mov edx, esp
lea esi, [esp + 0x98]
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 + 0xb8]
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 + 0xc8]
mov dword [esp + 0x78], eax
mov dword [esp + 0x74], edx
mov dword [esp + 0x70], ecx
jmp 0x100013c4
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 + 0x6c], eax
call ecx
sub esp, 0xc
mov ecx, esp
mov dword [ecx], 0x58
mov ecx, dword [sym.imp.USER32.dll_VkKeyScanW]
mov dword [esp + 0x68], eax
call ecx
sub esp, 4
mov word [esp + 0x66], ax
jmp 0x10001345
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 + 0x60], eax
jmp 0x10001452
xor eax, eax
mov ecx, dword [sym.imp.ole32.dll_OleUninitialize]
mov dword [esp + 0x5c], eax
call ecx
xor eax, eax
mov ecx, dword [esp + 0x58]
sub ecx, 0x5b
mov dword [esp + 0x54], eax
mov dword [esp + 0x50], ecx
je 0x10001271
jmp 0x1000132a
mov eax, dword [esp + 0x58]
sub eax, 0xc
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x48], ecx
jne 0x1000149c
jmp 0x10001345
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 + 0x44], eax
mov dword [esp + 0x40], ecx
call fcn.10186fb0
mov eax, esp
lea ecx, [esp + 0xc8]
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 + 0x3c], eax
jmp 0x100013ac
mov eax, dword [esp + 0x38]
add eax, 1
cmp eax, 0xd4
mov dword [esp + 0x34], eax
je 0x10001303
jmp 0x1000140f
mov eax, dword [esp + 0x58]
add eax, 1
cmp eax, 0x6c
mov dword [esp + 0x70], eax
je 0x100014f8
mov eax, dword [esp + 0x70]
mov ecx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x58], 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 + 0x30], eax
call ecx
sub esp, 8
mov ecx, esp
mov dword [ecx], 0x5443a3
mov ecx, dword [sym.imp.KERNEL32.dll_AddRefActCtx]
mov dword [esp + 0x2c], eax
call ecx
sub esp, 4
xor eax, eax
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x34]
mov ecx, 0x88888889
mov dword [esp + 0x38], eax
mul ecx
shr edx, 3
imul eax, edx, 0xf
mov ecx, dword [esp + 0x38]
sub ecx, eax
mov eax, ecx
sub eax, 1
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], eax
je 0x100012d3
jmp 0x1000143f
mov eax, dword [esp + 0x28]
sub eax, 0xb
mov dword [esp + 0x20], eax
jne 0x10001392
jmp 0x10001452
mov dword [esp + 0xa8], 0x1cd
mov eax, esp
lea ecx, [esp + 0xa8]
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 + 0x1c], eax
jmp 0x10001392
mov eax, dword [esp + 0x48]
add eax, 1
mov dword [esp + 0xb0], 0xfc3
mov ecx, esp
lea edx, [esp + 0xb0]
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 + 0x48], ecx
je 0x100013ac
jmp 0x1000149c
lea esp, [ebp - 4]
pop esi
pop ebp
ret