Function at 0x413944
Capabilities:
Log keystrokes via polling
Reference sql statements

Disassembly:
push ebp
push ebx
mov edx, 0xc
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x41394b
call fcn.0048d6d0
push edx
call fcn.0048d530
pop edx
push eax
push edx
call fcn.0048d530
pop edx
push eax
push edx
call fcn.0048d530
pop edx
push eax
push 0x4e
call fcn.00473529
call fcn.0042e5e2
add dword [esp], edx
call fcn.0041a1cc
call fcn.0048d660
push edx
call fcn.0048d530
pop edx
push eax
mov edx, 0x5d1a70
push edx
call fcn.0048d570
mov edx, dword [0x8f9b78]
push edx
call fcn.0048d570
call fcn.0042e600
mov edx, eax
pop ecx
push ecx
call fcn.0042e600
mov ecx, eax
call fcn.0042e590
je 0x413a01
push edx
call fcn.0048d530
pop edx
push eax
push edx
call fcn.0048d530
pop edx
push eax
push 0x42
call fcn.00473529
call fcn.0048d660
mov edx, dword [0x8f9bbc]
pop ecx
push ecx
call fcn.0042e600
mov ecx, eax
call fcn.0042e590
jne 0x413a01
jmp 0x413fe7
push 1
call fcn.0040e3ec
push 7
push 0x5de54c
lea eax, [esp + 8]
push eax
push 0x1c
call fcn.00486c28
mov dword [esp + 8], 0
jmp 0x413a2e
push 0x4d
call fcn.00478744
cmp eax, dword [esp + 8]
jl 0x413d03
push dword [esp + 8]
push 0x4d
call fcn.00473779
mov ebx, eax
and ebx, 1
and ebx, ebx
je 0x413cf9
push edx
call fcn.0048d530
pop edx
push eax
push edx
call fcn.0048d530
pop edx
push eax
push edx
call fcn.0048d530
pop edx
push eax
push 0
push dword [esp + 0x18]
push 0x4d
call fcn.00478771
call fcn.0042e5e2
add dword [esp], edx
call fcn.0041a1cc
lea eax, [esp + 0x10]
push eax
call fcn.0048d5d0
push edx
call fcn.0048d530
pop edx
push eax
push edx
call fcn.0048d530
pop edx
push eax
push 0x42
call fcn.00473529
call fcn.0048d660
mov edx, dword [0x8f9bbc]
pop ecx
push ecx
call fcn.0042e600
mov ecx, eax
call fcn.0042e590
je 0x413b08
push edx
call fcn.0048d530
pop edx
push eax
mov edx, str.SELECT_key__Description__Lic__Blocked__ActivCount__Comment_FROM_keys_WHERE_key
push edx
call fcn.0048d570
mov edx, dword [esp + 0x10]
push edx
call fcn.0048d570
mov edx, 0x5cf830
push edx
call fcn.0048d570
lea eax, [esp + 0x14]
push eax
call fcn.0048d5d0
jmp 0x413b4f
push edx
call fcn.0048d530
pop edx
push eax
mov edx, 0x5dbb08
push edx
call fcn.0048d570
mov edx, dword [esp + 0x10]
push edx
call fcn.0048d570
mov edx, str._OR_Description
push edx
call fcn.0048d570
mov edx, dword [esp + 0x10]
push edx
call fcn.0048d570
mov edx, 0x5d5c64
push edx
call fcn.0048d570
lea eax, [esp + 0x14]
push eax
call fcn.0048d5d0
push dword [esp + 0x10]
push dword [0x8f9c5c]
call fcn.0047f11d
mov ebx, eax
and ebx, ebx
je 0x413cf9
push dword [0x8f9c5c]
call fcn.0047f12f
and eax, eax
je 0x413cee
push edx
call fcn.0048d530
pop edx
push eax
push edx
call fcn.0048d530
pop edx
push eax
push 0
push dword [0x8f9c5c]
call fcn.0047f157
lea eax, [esp + 0x18]
push eax
call fcn.0048d5d0
push edx
call fcn.0048d530
pop edx
push eax
push edx
call fcn.0048d530
pop edx
push eax
push 1
push dword [0x8f9c5c]
call fcn.0047f157
lea eax, [esp + 0x1c]
push eax
call fcn.0048d5d0
push edx
call fcn.0048d530
pop edx
push eax
push edx
call fcn.0048d530
pop edx
push eax
push 2
push dword [0x8f9c5c]
call fcn.0047f157
lea eax, [esp + 0x20]
push eax
call fcn.0048d5d0
push edx
call fcn.0048d530
pop edx
push eax
push edx
call fcn.0048d530
pop edx
push eax
push 3
push dword [0x8f9c5c]
call fcn.0047f157
lea eax, [esp + 0x24]
push eax
call fcn.0048d5d0
push edx
call fcn.0048d530
pop edx
push eax
push edx
call fcn.0048d530
pop edx
push eax
push 4
push dword [0x8f9c5c]
call fcn.0047f157
lea eax, [esp + 0x28]
push eax
call fcn.0048d5d0
push edx
call fcn.0048d530
pop edx
push eax
push edx
call fcn.0048d530
pop edx
push eax
push 5
push dword [0x8f9c5c]
call fcn.0047f157
lea eax, [esp + 0x2c]
push eax
call fcn.0048d5d0
push dword [esp + 0x20]
mov edx, 0x5cf064
pop ecx
call fcn.0042e590
je 0x413c9c
push dword [esp + 0x14]
call fcn.00414040
and eax, eax
je 0x413c9c
mov eax, 1
jmp 0x413c9e
xor eax, eax
and eax, eax
je 0x413ce4
push dword [esp]
call fcn.00486cba
mov edx, dword [esp + 0x14]
push edx
call fcn.0048d530
pop edx
push eax
push edx
call fcn.0048d570
mov ebp, dword [esp + 8]
lea eax, [ebp + 8]
push eax
call fcn.0048d5d0
mov edx, dword [esp + 0x18]
push edx
call fcn.0048d530
pop edx
push eax
push edx
call fcn.0048d570
lea eax, [ebp + 0xc]
push eax
call fcn.0048d5d0
call fcn.0041a887
jmp 0x413b68
push dword [0x8f9c5c]
call fcn.0047f184
inc dword [esp + 8]
jno 0x413a2e
push dword [esp]
call fcn.00486d58
mov ebx, eax
and ebx, ebx
jle 0x413fae
mov eax, str.Block_key:
push eax
call fcn.0040d182
mov eax, str.Begin_Transaction
push eax
push dword [0x8f9c5c]
call fcn.0047f005
mov ebx, eax
and ebx, ebx
jne 0x413d7a
push edx
call fcn.0048d530
pop edx
push eax
push edx
call fcn.0048d530
pop edx
push eax
mov edx, str.Add_link_error
push edx
call fcn.0048d570
push edx
call fcn.0048d530
pop edx
push eax
push edx
call fcn.0048d530
pop edx
push eax
call fcn.0047f041
pop eax
call fcn.0042e5e2
add dword [esp], edx
call fcn.004200c8
call fcn.0042e610
push 0
push 0x68
call fcn.00471d63
mov dword [esp + 0x2c], 0
push dword [esp]
call fcn.00486d62
push dword [esp]
call fcn.00486d77
or eax, eax
je 0x413f49
mov ebp, dword [esp + 4]
push dword [ebp + 8]
push dword [0x8f9c5c]
call fcn.004176d8
mov ebp, dword [esp + 4]
push dword [ebp + 8]
call fcn.0040d182
mov ebx, dword [esp + 0x2c]
inc ebx
mov dword [esp + 0x2c], ebx
push edx
call fcn.0048d530
pop edx
push eax
push edx
call fcn.0048d530
pop edx
push eax
mov edx, 0x5cfa2e
push edx
call fcn.0048d570
push edx
call fcn.0048d530
pop edx
push eax
push edx
call fcn.0048d530
pop edx
push eax
mov eax, dword [esp + 0x3c]
cdq
push edx
push eax
call fcn.0048ad90
pop eax
call fcn.0048d660
push 0x68
call fcn.0042e5e2
add dword [esp + 4], edx
call fcn.004734ac
call fcn.0042e610
push 0x4d
call fcn.00478744
mov dword [esp + 8], eax
jmp 0x413e35
xor eax, eax
cmp eax, dword [esp + 8]
jg 0x413f26
push dword [esp + 8]
push 0x4d
call fcn.00473779
mov ebx, eax
and ebx, 1
and ebx, ebx
je 0x413f17
push edx
call fcn.0048d530
pop edx
push eax
push edx
call fcn.0048d530
pop edx
push eax
push 0
push dword [esp + 0x14]
push 0x4d
call fcn.00478771
call fcn.0048d660
mov ebp, dword [esp + 8]
mov edx, dword [ebp + 8]
pop ecx
push ecx
call fcn.0042e600
mov ecx, eax
call fcn.0042e590
jne 0x413efc
push edx
call fcn.0048d530
pop edx
push eax
mov ebp, dword [esp + 8]
push dword [ebp + 0xc]
push edx
call fcn.0048d530
pop edx
push eax
push edx
call fcn.0048d530
pop edx
push eax
push edx
call fcn.0048d530
pop edx
push eax
push 0
push dword [esp + 0x20]
push 0x4d
call fcn.00478771
call fcn.0042e5e2
add dword [esp], edx
call fcn.0041a1cc
call fcn.0042e5e2
add dword [esp], edx
call fcn.0048ad20
call fcn.0042e610
mov ebx, eax
and ebx, ebx
jg 0x413efc
jmp 0x413f03
mov eax, 1
jmp 0x413f05
xor eax, eax
and eax, eax
je 0x413f17
push dword [esp + 8]
push 0x4d
call fcn.004787bd
call fcn.0041a887
dec dword [esp + 8]
jno 0x413e35
push 0x1b
call sub.USER32.dll_GetKeyState
mov ebx, eax
cmp ebx, 1
jle 0x413f44
call fcn.0047af05
mov ebx, eax
and ebx, ebx
jne 0x413f44
jmp 0x413f49
jmp 0x413d99
mov eax, str.Commit
push eax
push dword [0x8f9c5c]
call fcn.0047f005
mov ebx, eax
and ebx, ebx
jne 0x413fa3
push edx
call fcn.0048d530
pop edx
push eax
push edx
call fcn.0048d530
pop edx
push eax
mov edx, str.Add_link_error
push edx
call fcn.0048d570
push edx
call fcn.0048d530
pop edx
push eax
push edx
call fcn.0048d530
pop edx
push eax
call fcn.0047f041
pop eax
call fcn.0042e5e2
add dword [esp], edx
call fcn.004200c8
call fcn.0042e610
mov eax, 0x5cf064
push eax
call fcn.0040d182
push dword [esp]
call fcn.00486dab
push 0x4d
call fcn.004735b4
push dword [0x8f9c5c]
call fcn.00411392
push 0
call fcn.0040e3ec
mov eax, 0x5cf064
push eax
push 0x68
call fcn.004734ac
xor eax, eax
push dword [esp + 0x24]
call fcn.0048d760
push dword [esp + 0x1c]
call fcn.0048d760
push dword [esp + 0xc]
call fcn.0048d760
push dword [esp + 0x18]
call fcn.0048d760
push dword [esp + 0x10]
call fcn.0048d760
push dword [esp + 0x28]
call fcn.0048d760
push dword [esp + 0x14]
call fcn.0048d760
push dword [esp + 0x20]
call fcn.0048d760
push eax
push dword [esp + 4]
call fcn.00486dab
pop eax
add esp, 0x30
pop ebx
pop ebp
ret