Function at 0x3016dec5
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp dword [edi + 8], ebx
mov esi, ecx
jne 0x3016df04
mov eax, dword [edi + 0xc]
sub eax, ebx
je 0x3016df13
dec eax
jne 0x3016df04
push dword [edi + 0x14]
mov ecx, dword [esi + 0x84]
call main
cmp word [edi + 0x18], 0x1b
mov byte [edi + 4], 1
jne 0x3016df04
mov ecx, esi
call fcn.3016d630
push edi
mov ecx, esi
call main
pop edi
pop esi
pop ebx
leave
ret 4
mov dl, byte [esi + 0x7d]
test dl, dl
js 0x3016df1f
mov dword [ebp + 8], ebx
jmp 0x3016df32
mov ecx, dword [esi + 4]
mov eax, esi
jmp 0x3016df2b
mov eax, ecx
mov ecx, dword [eax + 4]
cmp ecx, ebx
jne 0x3016df26
mov dword [ebp + 8], eax
mov eax, dword [edi + 0x10]
dec eax
dec eax
je 0x3016e0cc
dec eax
je 0x3016df61
sub eax, 4
jne 0x3016df04
lea eax, [esi + 0x92]
cmp byte [eax], bl
je 0x3016df53
mov byte [eax], bl
jmp 0x3016df04
test dl, 0x40
jne 0x3016e058
jmp 0x3016e051
mov ecx, dword [ebp + 8]
cmp ecx, ebx
mov byte [esi + 0x91], bl
mov byte [esi + 0x92], bl
je 0x3016df0c
lea eax, [ebp - 0x10]
push eax
lea eax, [edi + 0x18]
push eax
push dword [edi]
call main
mov ecx, esi
call sym.OFFDIAG.exe_public:_int___thiscall_NetUI::Element::GetX_void_
mov ecx, esi
mov dword [ebp - 4], eax
call sym.OFFDIAG.exe_public:_int___thiscall_NetUI::Element::GetY_void_
mov ebx, eax
mov eax, dword [edi + 0x2c]
add eax, dword [ebp - 4]
add ebx, dword [edi + 0x30]
push eax
mov ecx, esi
call main
push ebx
mov ecx, esi
call main
mov ecx, dword [ebp + 8]
call sym.OFFDIAG.exe_public:_struct_HWND______thiscall_NetUI::Element::GetHostingHWND_void_
mov ebx, eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
push ebx
call dword [sym.imp.USER32.dll_ClientToScreen]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call dword [sym.imp.USER32.dll_WindowFromPoint]
cmp eax, ebx
je 0x3016e0a1
cmp byte [esi + 0x90], 0
jne 0x3016e0a8
push 1
push 0
mov ecx, esi
call main
push 1
push 0
mov ecx, esi
call main
or dword [ebp - 8], 0xffffffff
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
lea ebx, [esi + 0x84]
mov ecx, dword [ebx]
push eax
call main
mov ecx, dword [ebx]
call fcn.3016cfc6
mov ecx, dword [ebx]
call fcn.3016d0af
mov ecx, esi
call fcn.3016dc58
test al, al
jne 0x3016e051
mov ebx, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 1
call ebx
test ax, ax
jl 0x3016e061
push 2
call ebx
test ax, ax
jl 0x3016e061
mov ecx, esi
call fcn.3016d630
mov byte [edi + 4], 1
jmp 0x3016df04
lea eax, [esi + 0x88]
push eax
push dword [esi + 0x3c]
mov byte [esi + 0x91], 1
mov byte [esi + 0x92], 1
call main
push dword [0x302619d8]
mov ecx, esi
call main
push dword [0x302619dc]
mov ecx, esi
call main
mov byte [esi + 0x90], 1
jmp 0x3016e0a8
mov byte [esi + 0x90], 0
push dword [edi + 0x14]
add esi, 0x84
mov ecx, dword [esi]
call main
mov ecx, dword [esi]
lea eax, [ebp - 0x10]
push eax
call main
mov byte [edi + 4], 1
jmp 0x3016df0c
mov byte [edi + 4], 1
cmp byte [esi + 0x91], bl
je 0x3016e0fc
mov ebx, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 1
call ebx
test ax, ax
jl 0x3016e0f0
push 2
call ebx
test ax, ax
jge 0x3016e0fc
mov byte [esi + 0x91], 0
jmp 0x3016df0c
mov ecx, dword [esi + 0x84]
call fcn.3016cfc6
mov ecx, dword [esi + 0x84]
call fcn.3016d0af
test byte [esi + 0x7d], 0x40
jne 0x3016df0c
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x3016e132
lea eax, [ebp - 0x10]
push eax
lea eax, [edi + 0x18]
push eax
push dword [edi]
call main
push 0
mov ecx, esi
call main
mov ecx, dword [esi + 0x84]
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [esi + 0x84]
lea eax, [ebp - 0x10]
push eax
call main
push 1
mov ecx, esi
call sym.OFFDIAG.exe_public:_long_int___thiscall_NetUI::Node::Destroy_bool_
jmp 0x3016df0c