Function at 0x46d3e0
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b76ea
mov eax, dword fs:[0]
push eax
sub esp, 0x2bc
mov eax, dword [0x4e5070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x27c], esi
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x280], edi
cmp eax, 0x204
jne 0x46d43c
cmp byte [esi + 0xa7], 0
je 0x46d9ed
xor eax, eax
jmp 0x46da97
cmp eax, 8
jne 0x46d47c
push dword [ebp + 0x10]
push edi
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_DefWindowProcW]
push 0
mov dword [ebp - 0x268], eax
mov eax, dword [esi + 0x14]
push 0
push 0x10
mov dword [eax + 0xc54], 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [ebp - 0x268]
jmp 0x46da97
cmp eax, 0x2111
jne 0x46d4d0
shr edi, 0x10
mov eax, 0x300
cmp di, ax
jne 0x46d4a3
cmp byte [esi + 0xa5], 0
je 0x46d435
call fcn.0046dac0
jmp 0x46da97
mov eax, 0x400
cmp di, ax
jne 0x46d435
lea eax, [ebp - 0x38]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea eax, [ebp - 0x38]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_InvalidateRect]
xor eax, eax
jmp 0x46da97
cmp eax, 0x302
jne 0x46d4eb
cmp byte [esi + 0xa6], 0
je 0x46d9ed
xor eax, eax
jmp 0x46da97
cmp eax, 0x100
jne 0x46d59a
xorps xmm0, xmm0
mov dword [ebp - 0x2c8], 3
movups xmmword [ebp - 0x2b4], xmm0
mov word [ebp - 0x2b0], di
movups xmmword [ebp - 0x2c4], xmm0
call fcn.00427d90
mov word [ebp - 0x2ae], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x14]
lea edx, [ebp - 0x2c8]
mov dword [ebp - 0x2bc], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x184]
cmp di, 0xd
jne 0x46d9ed
mov ecx, dword [esi + 0x14]
mov eax, dword [ecx]
cmp eax, vtable.UiLib::CEditUI.0
jne 0x46d55d
mov eax, dword [ecx + 0x40]
jmp 0x46d562
mov eax, dword [eax + 0x1c]
call eax
mov ecx, eax
call fcn.004243f0
mov ecx, dword [esi + 0x14]
mov eax, dword [ecx]
cmp eax, vtable.UiLib::CEditUI.0
jne 0x46d57a
mov eax, dword [ecx + 0x40]
jmp 0x46d57f
mov eax, dword [eax + 0x1c]
call eax
push ecx
push 0
push 0
push str.editreturn
push dword [esi + 0x14]
mov ecx, eax
call fcn.004229a0
xor eax, eax
jmp 0x46da97
cmp eax, 0x102
jne 0x46d9df
mov ecx, dword [esi + 0x14]
lea eax, [ebp - 0x1dc]
push eax
call fcn.0046fd80
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x1d8]
cmp word [eax], 0
je 0x46d8e8
cmp edi, 8
je 0x46d8e8
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
jne 0x46d8e8
call dword [sym.imp.KERNEL32.dll_AreFileApisANSI]
mov edx, dword [ebp - 0x1d8]
lea ecx, [ebp - 0x54]
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 0x268], eax
call fcn.0046d2b0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x54]
cmp dword [ebp - 0x40], 0x10
push ecx
cmovae eax, dword [ebp - 0x54]
lea ecx, [ebp - 0x3c]
push eax
call fcn.0046fe30
lea eax, [ebp - 0x14c]
mov dword [ebp - fcn.00429d50], vtable.UiLib::CDuiString.0
mov dword [ebp - 0x150], eax
xor eax, eax
mov word [ebp - 0x14c], ax
mov byte [ebp - 4], 3
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x46d675
lea eax, [ebp - 0x264]
push eax
mov eax, dword [ecx]
mov eax, dword [eax + 0x30]
call eax
push 0xffffffffffffffff
lea ecx, [ebp - 0x154]
push dword [eax + 4]
call fcn.00429c90
lea ecx, [ebp - 0x264]
call fcn.00424110
lea eax, [ebp - 0x26c]
push eax
lea eax, [ebp - 0x270]
push eax
push 0xb0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [ebp - 0x150]
lea ecx, [ebp - 0x28]
call fcn.0046d2b0
push 0x4c9480
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 4
call fcn.00403320
push 0x4c9480
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 5
call fcn.00403320
mov byte [ebp - 4], 6
mov esi, dword [ebp - 0x150]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x46d6d4
mov edx, dword [ebp - 0x270]
sub esi, ecx
mov ecx, dword [ebp - 0x26c]
mov eax, ecx
sar esi, 1
sub eax, edx
cmp eax, esi
jge 0x46d74b
test edx, edx
jle 0x46d724
push edx
push 0
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x28]
call fcn.00409fb0
push eax
lea ecx, [ebp - 0x9c]
call fcn.004032a0
lea ecx, [ebp - 0x6c]
call fcn.00403260
mov ecx, dword [ebp - 0x26c]
cmp ecx, esi
jge 0x46d74b
push 0xffffffffffffffff
push ecx
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x28]
call fcn.00409fb0
push eax
lea ecx, [ebp - 0x84]
call fcn.004032a0
lea ecx, [ebp - 0x6c]
call fcn.00403260
push 4
call fcn.004933e1
add esp, 4
mov dword [ebp - 0x274], eax
xor ecx, ecx
mov word [eax], di
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ecx
push ecx
push ecx
push ecx
push 0xffffffffffffffff
push eax
push ecx
push dword [ebp - 0x268]
mov word [eax + 2], cx
call edi
lea esi, [eax + 1]
push esi
call fcn.004933e1
add esp, 4
mov dword [ebp - 0x278], eax
push 0
push 0
push esi
mov esi, dword [ebp - 0x274]
push eax
push 0xffffffffffffffff
push esi
push 0
push dword [ebp - 0x268]
call edi
mov edi, dword [ebp - 0x278]
push 2
push esi
mov byte [edi + eax], 0
call fcn.004933d3
add esp, 8
lea ecx, [ebp - 0xb4]
push edi
call fcn.00403320
lea eax, [ebp - 0xb4]
mov byte [ebp - 4], 7
push eax
lea edx, [ebp - 0x9c]
lea ecx, [ebp - 0xcc]
call fcn.00470130
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 8
push ecx
mov edx, eax
lea ecx, [ebp - 0x6c]
call fcn.0040a9b0
add esp, 8
lea ecx, [ebp - 0x28]
push eax
call fcn.004032a0
lea ecx, [ebp - 0x6c]
call fcn.00403260
lea ecx, [ebp - 0xcc]
mov byte [ebp - 4], 7
call fcn.00403260
test edi, edi
je 0x46d829
push 1
push edi
call fcn.004933d3
add esp, 8
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
lea edx, [ebp - 0x3c]
cmovae ecx, dword [ebp - 0x28]
push ecx
call fcn.00470210
add esp, 4
lea ecx, [ebp - 0xb4]
test al, al
jne 0x46d89a
call fcn.00403260
lea ecx, [ebp - 0x84]
call fcn.00403260
lea ecx, [ebp - 0x9c]
call fcn.00403260
lea ecx, [ebp - 0x28]
call fcn.00403260
lea ecx, [ebp - 0x154]
call fcn.00424110
lea ecx, [ebp - 0x3c]
call fcn.0046fdb0
lea ecx, [ebp - 0x54]
call fcn.00403260
lea ecx, [ebp - 0x1dc]
call fcn.00424110
xor eax, eax
jmp 0x46da97
call fcn.00403260
lea ecx, [ebp - 0x84]
call fcn.00403260
lea ecx, [ebp - 0x9c]
call fcn.00403260
lea ecx, [ebp - 0x28]
call fcn.00403260
lea ecx, [ebp - 0x154]
call fcn.00424110
lea ecx, [ebp - 0x3c]
call fcn.0046fdb0
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0
call fcn.00403260
mov esi, dword [ebp - 0x27c]
mov edi, dword [ebp - 0x280]
cmp byte [esi + 0xa4], 0
je 0x46d912
cmp edi, 0x2d
je 0x46d912
cmp edi, 8
je 0x46d912
cmp edi, 0x2e
je 0x46d912
cmp edi, 0x39
ja 0x46d9c0
cmp edi, 0x30
jb 0x46d9c0
mov eax, dword [esi + 0x20]
cmp word [eax], 0
je 0x46d965
push ecx
push edi
lea ecx, [esi + 0x1c]
call fcn.0042a100
test eax, eax
js 0x46d965
mov ecx, dword [esi + 0x14]
mov eax, dword [ecx]
cmp eax, vtable.UiLib::CEditUI.0
jne 0x46d93a
mov eax, dword [ecx + 0x40]
jmp 0x46d93f
mov eax, dword [eax + 0x1c]
call eax
push ecx
push 0
push 0
push str.forbidwords
push dword [esi + 0x14]
mov ecx, eax
call fcn.004229a0
lea ecx, [ebp - 0x1dc]
call fcn.00424110
xor eax, eax
jmp 0x46da97
xorps xmm0, xmm0
mov dword [ebp - 0x2a4], 5
movups xmmword [ebp - 0x290], xmm0
mov word [ebp - 0x28c], di
movups xmmword [ebp - 0x2a0], xmm0
call fcn.00427d90
mov word [ebp - 0x28a], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x14]
lea edx, [ebp - 0x2a4]
mov dword [ebp - 0x298], eax
mov dword [ebp - 0x29c], ecx
push edx
mov eax, dword [ecx]
call dword [eax + 0x184]
cmp byte [ebp - 0x2a0], 0
je 0x46d9d2
lea ecx, [ebp - 0x1dc]
call fcn.00424110
xor eax, eax
jmp 0x46da97
lea ecx, [ebp - 0x1dc]
call fcn.00424110
jmp 0x46d9ed
cmp eax, 0x2133
je 0x46da16
cmp eax, 0x2138
je 0x46da16
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x46d435
push dword [ebp + 0x10]
push edi
push dword [ebp + 8]
push dword [esi + 4]
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_CallWindowProcW]
jmp 0x46da97
push 1
push edi
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esi + 0x14]
mov edx, dword [eax + 0xc2c]
mov eax, edx
shr eax, 8
movzx ecx, al
movzx eax, dl
shl eax, 8
or ecx, eax
shr edx, 0x10
shl ecx, 8
movzx eax, dl
or ecx, eax
push ecx
push edi
call dword [sym.imp.GDI32.dll_SetTextColor]
cmp dword [esi + 0x18], 0
jne 0x46da94
mov edx, dword [esi + 0x14]
cmp byte [edx + 0xd70], 0
jne 0x46da65
mov edx, dword [edx + 0x1a28]
jmp 0x46da6b
mov edx, dword [edx + 0x5c8]
test edx, edx
je 0x46dab4
mov eax, edx
shr eax, 8
movzx ecx, al
movzx eax, dl
shl eax, 8
or ecx, eax
shr edx, 0x10
shl ecx, 8
movzx eax, dl
or ecx, eax
push ecx
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00493122
mov esp, ebp
pop ebp
ret 0xc
push 5
call dword [sym.imp.GDI32.dll_GetStockObject]
jmp 0x46da97