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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x64fc38
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x6e1c7c]
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 0x4e5575
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x10
call edi
test ax, ax
js 0x4e5572
cmp byte [esi + 0x44e], 0
je 0x4e57d2
cmp byte [esi + 0x44f], 0
je 0x4e5549
push 0x11
call edi
test ax, ax
js 0x4e5556
cmp byte [esi + 0x44f], 0
jne 0x4e57d2
push 0x11
call edi
test ax, ax
js 0x4e57d2
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x4e5805
push 0
push 0
push 0x2d
push esi
call fcn.004c0c20
jmp 0x4e5805
mov eax, dword [ebp - 0x70]
cmp byte [esi + 0x454], 0
je 0x4e57d2
cmp dword [eax + 0x18], 0x56
jne 0x4e57d2
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x4e57d2
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.004e7750
mov edi, dword [ebp - 0x18]
test edi, edi
je 0x4e577d
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 0x4e5623
movzx edi, word [esi]
lea eax, [edi - 0x30]
cmp ax, 9
ja 0x4e561b
push edi
lea ecx, [ebp - 0x40]
call fcn.004c1db0
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
mov edi, dword [ebp - 0x18]
add esi, 2
jmp 0x4e55f0
cmp dword [ebp - 0x30], 0
jne 0x4e56a6
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x4e5669
mov ecx, dword [ebp - 0x40]
lea edx, [eax*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4e5659
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4e5822
push edx
push ecx
call fcn.0060223e
mov edx, dword [ebp - 0x14]
add esp, 8
mov ecx, dword [ebp - 0x28]
cmp edx, 8
jb 0x4e5805
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4e5697
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4e5827
push edx
push ecx
call fcn.0060223e
add esp, 8
jmp 0x4e5805
lea ecx, [ebp - 0x40]
call fcn.004e7910
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x88]
call fcn.00456990
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.00509c30
lea ecx, [ebp - 0x68]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
call fcn.00508ef0
mov ecx, dword [ebp - 0x44]
test ecx, ecx
je 0x4e573c
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 0x4e577a
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4e5770
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4e582c
push edx
push ecx
call fcn.0060223e
add esp, 8
mov esi, dword [ebp - 0x6c]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4e57be
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4e57b4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4e5831
push edx
push ecx
call fcn.0060223e
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 0x4e5836
mov ecx, dword [esi + 0x448]
test ecx, ecx
je 0x4e5805
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.006021fd
mov esp, ebp
pop ebp
ret 4
call fcn.00621ffe
call fcn.00621ffe
call fcn.00621ffe
call fcn.00621ffe
push 0
push edx
push edi
push 0x100
mov ecx, esi
call eax
jmp 0x4e5805