Function at 0x5077e0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ab116
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x160
push esi
push edi
mov eax, dword [0x60f074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x1c], esi
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebx + 8]
cmp eax, 0x205
jne 0x507933
cmp byte [esi + 0xf0], 0
je 0x5079d8
mov byte [esi + 0xf0], 0
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov ecx, dword [ebx + 0x10]
lea edi, [esi + 0x1c]
movsx eax, cx
mov dword [ebp - 0x28], eax
mov eax, ecx
shr eax, 0x10
mov ecx, edi
cwde
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x28]
push 1
push eax
mov eax, dword [edi]
push 0
mov dword [ebp - 0x20], edi
mov eax, dword [eax + 0x28]
call eax
push eax
call dword [sym.imp.USER32.dll_MapWindowPoints]
movzx ecx, word [ebp - 0x24]
movzx eax, word [ebp - 0x28]
shl ecx, 0x10
or ecx, eax
mov eax, dword [edi]
push ecx
push 0
push 0x84
mov eax, dword [eax + 0x28]
mov ecx, edi
call eax
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov edi, eax
cmp edi, 2
je 0x5078b8
cmp edi, 3
jne 0x5079db
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x1c], eax
mov eax, dword [ecx]
mov eax, dword [eax + 0x28]
call eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetThreadLocale]
and eax, 0x3ff
dec eax
cmp eax, 0x5f
ja case.0x5078e8.2
movzx ecx, byte [eax + 0x507cd0]
jmp dword [ecx*4 + 0x507cc8]
mov edi, 0x10a
jmp 0x5078fb
mov edi, 0x102
push 0
push esi
call dword [sym.imp.USER32.dll_GetSystemMenu]
push 0
push esi
push 0
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push edi
push eax
call dword [sym.imp.USER32.dll_TrackPopupMenu]
test eax, eax
je 0x507caf
push 0
push eax
push 0x112
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x507caf
cmp eax, 0xa1
jne 0x5079b2
mov eax, dword [esi + 0x1c]
lea ecx, [esi + 0x1c]
mov eax, dword [eax + 8]
call eax
mov ecx, dword [eax + 0x64]
test ecx, ecx
je 0x507954
cmp ecx, 2
sete al
jmp 0x50795e
mov ecx, dword [eax + 0x14]
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
call eax
test al, al
jne 0x5079d8
mov edi, dword [ebx + 0xc]
cmp edi, 8
jb 0x5079db
cmp edi, 9
jbe 0x50798b
cmp edi, 0x14
jne 0x5079db
mov eax, dword [esi + 0x1c]
lea ecx, [esi + 0x1c]
mov eax, dword [eax + 8]
call eax
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x80]
jmp 0x5079db
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
call esi
and eax, 0x80
shr eax, 4
push 0x10
or edi, eax
call esi
mov esi, dword [ebp - 0x1c]
and eax, 0x80
shr eax, 5
or edi, eax
jmp 0x5079db
cmp eax, 0xa4
jne 0x5079d8
mov edi, dword [ebx + 0xc]
cmp edi, 2
je 0x5079c6
cmp edi, 3
jne 0x5079db
mov eax, dword [esi + 0x1c]
lea ecx, [esi + 0x1c]
mov byte [esi + 0xf0], 1
call dword [eax + 0x54]
jmp 0x5079db
mov edi, dword [ebx + 0xc]
mov eax, dword [esi + 0x10]
sub esp, 0x1c
mov ecx, dword [ebx + 0x10]
mov dword [ebp - 0x44], eax
mov eax, dword [ebx + 8]
mov dword [ebp - 0x40], eax
movsx eax, cx
mov dword [ebp - 0x30], eax
mov eax, ecx
mov dword [ebp - 0x38], ecx
shr eax, 0x10
movsx ecx, ax
mov eax, esp
mov dword [ebp - 0x3c], edi
movups xmm0, xmmword [ebp - 0x44]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x1c], ecx
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x34]
movq qword [eax + 0x10], xmm0
mov dword [eax + 0x18], ecx
lea ecx, [ebp - 0x80]
call fcn.0050c830
test dword [ebp - 0x58], 0x20000
jne 0x507a45
mov ecx, dword [esi + 0x24]
test ecx, ecx
je 0x507a45
push dword [ebx + 0x10]
mov eax, dword [ecx]
push edi
push dword [ebx + 8]
call dword [eax + 0x14]
mov eax, dword [ebp - 0x64]
cmp eax, 4
jne 0x507adc
mov eax, dword [esi + 0x1c]
lea ecx, [esi + 0x1c]
mov eax, dword [eax + 0x5c]
call eax
test al, al
jne 0x507ad9
cmp dword [ebx + 8], 0xa0
mov ecx, 0x12
mov eax, 2
cmove eax, ecx
mov ecx, esi
push eax
call fcn.00509020
mov ecx, dword [esi + 0x4c]
lea edx, [ebp - 0x80]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x58]
call eax
mov byte [ebp - 0x12], al
lea ecx, [ebp - 0x11]
mov byte [ebp - 0x11], 0
mov dword [esi + 0xf8], ecx
test al, al
jne 0x507c8b
cmp dword [ebx + 8], 0xa1
jne 0x507c8b
cmp edi, 3
je 0x507c8b
mov eax, dword [esi + 0x1c]
lea ecx, [esi + 0x1c]
mov eax, dword [eax + 8]
call eax
mov ecx, dword [eax + 0x64]
test ecx, ecx
je 0x507b5d
cmp ecx, 2
sete al
jmp 0x507b67
mov eax, dword [ebp - 0x64]
cmp eax, 6
jne 0x507aea
mov dword [esi + 0x58], 0
jmp 0x507a7c
cmp eax, 9
jne 0x507a7c
push dword [ebx + 0x10]
mov ecx, dword [esi + 0x10]
mov edx, edi
call fcn.0052b0e0
add esp, 4
test al, al
jne 0x507caf
movups xmm0, xmmword [ebp - 0x44]
mov ecx, dword [ebp - 0x1c]
sub esp, 0x1c
mov eax, esp
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x34]
movq qword [eax + 0x10], xmm0
mov dword [eax + 0x18], ecx
lea ecx, [ebp - 0x170]
call fcn.0050c830
mov ecx, dword [esi + 0x4c]
lea edx, [ebp - 0x170]
shr edi, 0x10
movsx eax, di
mov dword [ebp - 0x138], eax
mov eax, dword [ecx]
push edx
mov eax, dword [eax + 0x58]
call eax
test al, al
jne 0x507caf
mov eax, 1
jmp 0x507cb1
mov ecx, dword [eax + 0x14]
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
call eax
test al, al
jne 0x507c0a
push esi
lea ecx, [ebp - 0x28]
call fcn.005045a0
push dword [ebx + 0x10]
mov dword [ebp - 4], 0
lea ecx, [esi + 0x1c]
mov eax, dword [ecx]
push edi
push 0xa1
mov eax, dword [eax + 0x28]
call eax
push eax
call dword [sym.imp.USER32.dll_DefWindowProcW]
cmp byte [ebp - 0x11], 0
mov byte [ebp - 0x12], 1
je 0x507bd6
push 4
push 0x73a
push str.f:my_lab_tabexplorerextab_masterlibrary_viewwidget_native_widget_win.cpp
lea ecx, [ebp - 0x130]
call fcn.0046c100
mov ecx, 2
mov byte [ebp - 4], 1
mov dword [ebp - 0x18], ecx
mov edx, str.Check_failed:__destroyed.
mov dword [ebp - 0x20], ecx
lea ecx, [eax + 8]
call fcn.00403840
mov eax, dword [ebp - 0x18]
test al, 2
je 0x507bee
and eax, 0xfffffffd
lea ecx, [ebp - 0x130]
mov dword [ebp - 0x18], eax
call fcn.0046c520
mov dword [ebp - 4], 2
cmp byte [ebp - 0x24], 0
je 0x507c03
mov ecx, dword [ebp - 0x28]
call fcn.00509580
mov dword [ebp - 4], 0xffffffff
cmp byte [ebp - 0x11], 0
je 0x507c8b
sub esp, 8
mov dword [ebp - 0x130], 4
lea ecx, [ebp - 0x128]
call fcn.0040bae0
mov dword [ebp - 4], 3
mov dword [ebp - 0x8c], str.f:my_lab_tabexplorerextab_masterlibrary_viewwidget_native_widget_win.cpp
mov dword [ebp - 0x88], 0x73d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x84], eax
push 0x73d
push str.f:my_lab_tabexplorerextab_masterlibrary_viewwidget_native_widget_win.cpp
lea ecx, [ebp - 0x130]
mov byte [ebp - 4], 4
call fcn.0046c190
mov dword [ebp - 4], 5
lea ecx, [ebp - 0x128]
mov eax, dword [ebp - 0x18]
mov edx, str.Check_failed:__destroyed.
or eax, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x20], eax
call fcn.00403840
mov ecx, dword [ebp - 0x18]
test cl, 4
je 0x507c9e
lea ecx, [ebp - 0x130]
call fcn.0046c520
movzx eax, byte [ebp - 0x12]
mov dword [esi + 0xf8], 0
mov dword [esi + 0x20], eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc