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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x61edf8
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x6a8c7c]
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 0x4b8a85
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x10
call edi
test ax, ax
js 0x4b8a82
cmp byte [esi + 0x44e], 0
je 0x4b8ce2
cmp byte [esi + 0x44f], 0
je 0x4b8a59
push 0x11
call edi
test ax, ax
js 0x4b8a66
cmp byte [esi + 0x44f], 0
jne 0x4b8ce2
push 0x11
call edi
test ax, ax
js 0x4b8ce2
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x4b8d15
push 0
push 0
push 0x2d
push esi
call fcn.00494110
jmp 0x4b8d15
mov eax, dword [ebp - 0x70]
cmp byte [esi + 0x454], 0
je 0x4b8ce2
cmp dword [eax + 0x18], 0x56
jne 0x4b8ce2
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x4b8ce2
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.004bac60
mov edi, dword [ebp - 0x18]
test edi, edi
je 0x4b8c8d
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 0x4b8b33
movzx edi, word [esi]
lea eax, [edi - 0x30]
cmp ax, 9
ja 0x4b8b2b
push edi
lea ecx, [ebp - 0x40]
call fcn.004952a0
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
mov edi, dword [ebp - 0x18]
add esi, 2
jmp 0x4b8b00
cmp dword [ebp - 0x30], 0
jne 0x4b8bb6
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x4b8b79
mov ecx, dword [ebp - 0x40]
lea edx, [eax*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4b8b69
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b8d32
push edx
push ecx
call fcn.005d588d
mov edx, dword [ebp - 0x14]
add esp, 8
mov ecx, dword [ebp - 0x28]
cmp edx, 8
jb 0x4b8d15
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4b8ba7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b8d37
push edx
push ecx
call fcn.005d588d
add esp, 8
jmp 0x4b8d15
lea ecx, [ebp - 0x40]
call fcn.004bae20
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x88]
call fcn.004565b0
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.0044e3d0
mov byte [ebp - 4], 2
call fcn.004dd320
lea ecx, [ebp - 0x68]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
call fcn.004dc5e0
mov ecx, dword [ebp - 0x44]
test ecx, ecx
je 0x4b8c4c
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 0x4b8c8a
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4b8c80
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b8d3c
push edx
push ecx
call fcn.005d588d
add esp, 8
mov esi, dword [ebp - 0x6c]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4b8cce
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4b8cc4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b8d41
push edx
push ecx
call fcn.005d588d
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 0x4b8d46
mov ecx, dword [esi + 0x448]
test ecx, ecx
je 0x4b8d15
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.005d584c
mov esp, ebp
pop ebp
ret 4
call fcn.005f564e
call fcn.005f564e
call fcn.005f564e
call fcn.005f564e
push 0
push edx
push edi
push 0x100
mov ecx, esi
call eax
jmp 0x4b8d15