Function at 0x1003a1e0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x10145188]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov ebx, ecx
cmp esi, 0x104
ja 0x1003a3c1
je 0x1003a2cb
cmp esi, 5
je 0x1003a2b7
cmp esi, 0x7e
jne 0x1003a39d
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x1003a39d
xor edi, edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.mfc100u.dll_CWnd::FromHandle]
mov edx, dword [eax + 0x20]
lea ecx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
sub ecx, dword [esp + 0x14]
push eax
push ecx
push str.Stu_Exam_wnd_display_change_movewindow_to_width_d_height_d
push 1
call dword [sym.imp.Common.dll_int___cdecl_COMMON::WriteLog_int__wchar_t_const__]
mov edx, dword [esp + 0x30]
sub edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x24]
mov ecx, dword [ebx + 4]
add esp, 0x10
push 0x40
push edx
push eax
push edi
push edi
push edi
push ecx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov edx, dword [ebx + 4]
push edx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
call fcn.1003a440
jmp 0x1003a39d
xor edi, edi
push edi
push edi
push 0x502
call dword [sym.imp.DuiLib_u.dll_public:_long_int___thiscall_DuiLib::CWindowWnd::PostMessageW_unsigned_int__unsigned_int__long_int_]
jmp 0x1003a39d
cmp dword [ebp + 0xc], 0x73
jne 0x1003a2fa
push 0x100fb224
push 0
call dword [sym.imp.Common.dll_int___cdecl_COMMON::WriteLog_int__wchar_t_const__]
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.100d0962
mov esp, ebp
pop ebp
ret 0xc
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
call edi
movzx esi, ax
push 0x10
and esi, 0x8000
call edi
push 0x12
and eax, 0x8000
mov dword [esp + 0x14], eax
call edi
and eax, 0x8000
cmp dword [ebp + 0xc], 0x7b
jne 0x1003a39a
xor edi, edi
cmp esi, edi
je 0x1003a39a
cmp eax, edi
je 0x1003a39a
cmp dword [esp + 0x10], edi
je 0x1003a39a
push str._tc_vN
push edi
call dword [sym.imp.Common.dll_int___cdecl_COMMON::WriteLog_int__wchar_t_const__]
mov ecx, dword [ebx + 0x4d8]
add esp, 8
cmp ecx, edi
je 0x1003a390
cmp dword [ebx + 0x470], edi
je 0x1003a390
mov eax, dword [ecx]
mov edx, dword [eax + 0xdc]
push edi
call edx
mov ecx, dword [ebx + 0x470]
mov eax, dword [ecx]
mov edx, dword [eax + 0xdc]
push 1
call edx
mov eax, dword [ebx + 0x46c]
push 1
push eax
call dword [sym.imp.CMBrowser.dll_struct_HWND______cdecl_CMBROWSER::GetWindowHandle_void__]
add esp, 4
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov dword [ebx + 0x4dc], 1
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push edx
push eax
push esi
mov ecx, ebx
call fcn.100028c0
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100d0962
mov esp, ebp
pop ebp
ret 0xc
cmp esi, 0x17b0
jne 0x1003a39d
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push ecx
mov ecx, ebx
call fcn.1003a750
jmp 0x1003a39d