Function at 0x4e2ab0
Capabilities:
Get thread local storage value
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x64cd88
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x6ddc7c]
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 - 0x6c], esi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x70], eax
cmp dword [eax + 0x18], 0xd
jne 0x4e2b55
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x10
call edi
test ax, ax
js 0x4e2b52
cmp byte [esi + 0x44e], 0
je 0x4e2db2
cmp byte [esi + 0x44f], 0
je 0x4e2b29
push 0x11
call edi
test ax, ax
js 0x4e2b36
cmp byte [esi + 0x44f], 0
jne 0x4e2db2
push 0x11
call edi
test ax, ax
js 0x4e2db2
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x4e2de5
push 0
push 0
push 0x2d
push esi
call fcn.004be200
jmp 0x4e2de5
mov eax, dword [ebp - 0x70]
cmp byte [esi + 0x454], 0
je 0x4e2db2
cmp dword [eax + 0x18], 0x56
jne 0x4e2db2
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x4e2db2
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], eax
call fcn.004e4d30
mov edi, dword [ebp - 0x18]
test edi, edi
je 0x4e2d5d
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov byte [ebp - 4], 1
lea esi, [ebp - 0x28]
mov edx, dword [ebp - 0x14]
cmp edx, 8
mov ecx, dword [ebp - 0x28]
cmovae esi, ecx
nop
cmp edx, 8
lea eax, [ebp - 0x28]
cmovae eax, ecx
lea eax, [eax + edi*2]
cmp esi, eax
je 0x4e2c03
movzx edi, word [esi]
lea eax, [edi - 0x30]
cmp ax, 9
ja 0x4e2bfb
push edi
lea ecx, [ebp - 0x40]
call fcn.004bf390
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
mov edi, dword [ebp - 0x18]
add esi, 2
jmp 0x4e2bd0
cmp dword [ebp - 0x30], 0
jne 0x4e2c86
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x4e2c49
mov ecx, dword [ebp - 0x40]
lea edx, [eax*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4e2c39
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4e2e02
push edx
push ecx
call fcn.005ff7fe
mov edx, dword [ebp - 0x14]
add esp, 8
mov ecx, dword [ebp - 0x28]
cmp edx, 8
jb 0x4e2de5
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4e2c77
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4e2e07
push edx
push ecx
call fcn.005ff7fe
add esp, 8
jmp 0x4e2de5
lea ecx, [ebp - 0x40]
call fcn.004e4ef0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x88]
call fcn.004561f0
movups xmm0, xmmword [ebp - 0x88]
xor eax, eax
mov dword [ebp - 0x68], vtable.std::_Func_impl_no_alloc_class__lambda_f4db2b5e5f90277a4a6a073f2481a264___void___.0
mov word [ebp - 0x88], ax
lea ecx, [ebp - 0x88]
movups xmmword [ebp - 0x64], xmm0
lea eax, [ebp - 0x68]
movq xmm0, qword [ebp - 0x78]
movq qword [ebp - 0x54], xmm0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 7
mov dword [ebp - 0x44], eax
call fcn.0044e3b0
mov byte [ebp - 4], 2
call fcn.00507210
lea ecx, [ebp - 0x68]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
call fcn.005064d0
mov ecx, dword [ebp - 0x44]
test ecx, ecx
je 0x4e2d1c
mov edx, dword [ecx]
lea eax, [ebp - 0x68]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [ebp - 0x44], 0
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x4e2d5a
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4e2d50
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4e2e0c
push edx
push ecx
call fcn.005ff7fe
add esp, 8
mov esi, dword [ebp - 0x6c]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4e2d9e
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4e2d94
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4e2e11
push edx
push ecx
call fcn.005ff7fe
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov edi, dword [ebp - 0x70]
mov eax, dword [esi]
mov edx, dword [edi + 0x1c]
mov eax, dword [eax + 0x1dc]
mov edi, dword [edi + 0x18]
cmp eax, method.ui::RichEdit.1.virtual_476
jne 0x4e2e16
mov ecx, dword [esi + 0x448]
test ecx, ecx
je 0x4e2de5
mov ecx, dword [ecx + 0xc]
push 0
push edx
push edi
mov eax, dword [ecx]
push 0x100
call dword [eax + 0xc]
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.005ff7bd
mov esp, ebp
pop ebp
ret 4
call fcn.0061f5be
call fcn.0061f5be
call fcn.0061f5be
call fcn.0061f5be
push 0
push edx
push edi
push 0x100
mov ecx, esi
call eax
jmp 0x4e2de5