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

Disassembly:
push rbp
push r15
mov rax, recvfrom
sub rsp, 8
mov qword [rsp], 0
dec rax
jne 0x140020153
sub rsp, 0x28
call fcn.1400bc5a0
push rcx
sub rsp, 0x28
call main
add rsp, 0x28
pop rcx
push rax
push rcx
sub rsp, 0x20
call main
add rsp, 0x20
pop rcx
push rax
push rcx
sub rsp, 0x28
call main
add rsp, 0x28
pop rcx
push rax
sub rsp, 8
push rcx
sub rsp, 0x28
call main
add rsp, 0x28
pop rcx
push rax
push 0x4e
pop rcx
pop rdx
sub rsp, 0x20
call fcn.14009cd54
add rsp, 0x28
push rax
call fcn.1400bc440
mov rdx, rax
pop rax
add qword [rsp], rdx
pop rcx
sub rsp, 0x20
call fcn.14002b221
add rsp, 0x28
call fcn.1400bc470
push rcx
sub rsp, 0x20
call main
add rsp, 0x20
pop rcx
push rax
movabs rcx, 0x140273a68
sub rsp, 0x20
call fcn.1400bc260
add rsp, 0x20
mov rcx, qword [0x1404bc090]
sub rsp, 0x20
call fcn.1400bc260
add rsp, 0x20
pop rcx
sub rsp, 8
call fcn.1400bc4a0
add rsp, 8
mov rcx, rax
pop rdx
push rcx
mov rcx, rdx
sub rsp, 0x20
call fcn.1400bc4a0
add rsp, 0x20
pop rcx
mov rdx, rax
call fcn.1400bc3b0
or rax, rax
je 0x1400202bb
push rcx
sub rsp, 0x28
call main
add rsp, 0x28
pop rcx
push rax
sub rsp, 8
push rcx
sub rsp, 0x28
call main
add rsp, 0x28
pop rcx
push rax
push reloc.SHELL32.dll_IsNetDrive
pop rcx
pop rdx
sub rsp, 0x20
call fcn.14009cd54
add rsp, 0x28
call fcn.1400bc470
mov rcx, qword [0x1404bc118]
pop rdx
push rcx
mov rcx, rdx
sub rsp, 0x20
call fcn.1400bc4a0
add rsp, 0x20
pop rcx
mov rdx, rax
call fcn.1400bc3b0
or rax, rax
jne 0x1400202bb
jmp 0x140020cb1
push 1
pop rcx
call fcn.1400165a3
mov r9, 7
movabs r8, 0x140280578
lea rdx, [rsp + 0x28]
mov rcx, gethostname
call fcn.1400b380c
mov qword [rsp + 0x38], 0
jmp 0x1400202f3
push 0x4d
pop rcx
call fcn.1400a3a24
cmp rax, qword [rsp + 0x38]
jl 0x1400207b5
push qword [rsp + 0x38]
push 0x4d
pop rcx
pop rdx
call fcn.14009d05c
mov r15, rax
and r15, 1
and r15, r15
je 0x1400207aa
push rcx
sub rsp, 0x28
call main
add rsp, 0x28
pop rcx
push rax
push rcx
sub rsp, 0x20
call main
add rsp, 0x20
pop rcx
push rax
push rcx
sub rsp, 0x28
call main
add rsp, 0x28
pop rcx
push rax
sub rsp, 8
push rcx
sub rsp, 0x28
call main
add rsp, 0x28
pop rcx
push rax
push 0
push qword [rsp + 0x68]
push 0x4d
pop rcx
pop rdx
pop r8
pop r9
sub rsp, 0x20
call fcn.1400a3a6c
add rsp, 0x28
push rax
call fcn.1400bc440
mov rdx, rax
pop rax
add qword [rsp], rdx
pop rcx
sub rsp, 0x20
call fcn.14002b221
add rsp, 0x28
lea rcx, [rsp + 0x48]
pop rdx
call fcn.1400bc2d0
push rcx
sub rsp, 0x28
call main
add rsp, 0x28
pop rcx
push rax
sub rsp, 8
push rcx
sub rsp, 0x28
call main
add rsp, 0x28
pop rcx
push rax
push reloc.SHELL32.dll_IsNetDrive
pop rcx
pop rdx
sub rsp, 0x20
call fcn.14009cd54
add rsp, 0x28
call fcn.1400bc470
mov rcx, qword [0x1404bc118]
pop rdx
push rcx
mov rcx, rdx
sub rsp, 0x20
call fcn.1400bc4a0
add rsp, 0x20
pop rcx
mov rdx, rax
call fcn.1400bc3b0
or rax, rax
je 0x140020479
push rcx
sub rsp, 0x28
call main
add rsp, 0x28
pop rcx
push rax
movabs rcx, str.SELECT_key__Description__Lic__Blocked__ActivCount__Comment_FROM_keys_WHERE_key
sub rsp, 0x28
call fcn.1400bc260
add rsp, 0x28
mov rcx, qword [rsp + 0x48]
sub rsp, 0x28
call fcn.1400bc260
add rsp, 0x28
movabs rcx, 0x140271830
sub rsp, 0x28
call fcn.1400bc260
add rsp, 0x28
lea rcx, [rsp + 0x50]
pop rdx
call fcn.1400bc2d0
jmp 0x1400204fd
push rcx
sub rsp, 0x28
call main
add rsp, 0x28
pop rcx
push rax
movabs rcx, str.SELECT_key__Description__Lic__Blocked__ActivCount__Comment_FROM_keys_WHERE_Blocked_AND__key
sub rsp, 0x28
call fcn.1400bc260
add rsp, 0x28
mov rcx, qword [rsp + 0x48]
sub rsp, 0x28
call fcn.1400bc260
add rsp, 0x28
movabs rcx, str._OR_Description
sub rsp, 0x28
call fcn.1400bc260
add rsp, 0x28
mov rcx, qword [rsp + 0x48]
sub rsp, 0x28
call fcn.1400bc260
add rsp, 0x28
movabs rcx, 0x140277c3c
sub rsp, 0x28
call fcn.1400bc260
add rsp, 0x28
lea rcx, [rsp + 0x50]
pop rdx
call fcn.1400bc2d0
push qword [rsp + 0x48]
push qword [0x1404bc258]
pop rcx
pop rdx
call fcn.1400ac408
mov r15, rax
and r15, r15
je 0x1400207aa
push qword [0x1404bc258]
pop rcx
call fcn.1400ac484
and rax, rax
je 0x14002079e
push rcx
sub rsp, 0x28
call main
add rsp, 0x28
pop rcx
push rax
sub rsp, 8
push rcx
sub rsp, 0x28
call main
add rsp, 0x28
pop rcx
push rax
push 0
push qword [0x1404bc258]
pop rcx
pop rdx
pop r8
sub rsp, 0x20
call fcn.1400ac4b8
add rsp, 0x28
lea rcx, [rsp + 0x58]
pop rdx
call fcn.1400bc2d0
push rcx
sub rsp, 0x28
call main
add rsp, 0x28
pop rcx
push rax
sub rsp, 8
push rcx
sub rsp, 0x28
call main
add rsp, 0x28
pop rcx
push rax
push 1
push qword [0x1404bc258]
pop rcx
pop rdx
pop r8
sub rsp, 0x20
call fcn.1400ac4b8
add rsp, 0x28
lea rcx, [rsp + 0x60]
pop rdx
call fcn.1400bc2d0
push rcx
sub rsp, 0x28
call main
add rsp, 0x28
pop rcx
push rax
sub rsp, 8
push rcx
sub rsp, 0x28
call main
add rsp, 0x28
pop rcx
push rax
push 2
push qword [0x1404bc258]
pop rcx
pop rdx
pop r8
sub rsp, 0x20
call fcn.1400ac4b8
add rsp, 0x28
lea rcx, [rsp + 0x68]
pop rdx
call fcn.1400bc2d0
push rcx
sub rsp, 0x28
call main
add rsp, 0x28
pop rcx
push rax
sub rsp, 8
push rcx
sub rsp, 0x28
call main
add rsp, 0x28
pop rcx
push rax
push 3
push qword [0x1404bc258]
pop rcx
pop rdx
pop r8
sub rsp, 0x20
call fcn.1400ac4b8
add rsp, 0x28
lea rcx, [rsp + 0x70]
pop rdx
call fcn.1400bc2d0
push rcx
sub rsp, 0x28
call main
add rsp, 0x28
pop rcx
push rax
sub rsp, 8
push rcx
sub rsp, 0x28
call main
add rsp, 0x28
pop rcx
push rax
push 4
push qword [0x1404bc258]
pop rcx
pop rdx
pop r8
sub rsp, 0x20
call fcn.1400ac4b8
add rsp, 0x28
lea rcx, [rsp + 0x78]
pop rdx
call fcn.1400bc2d0
push rcx
sub rsp, 0x28
call main
add rsp, 0x28
pop rcx
push rax
sub rsp, 8
push rcx
sub rsp, 0x28
call main
add rsp, 0x28
pop rcx
push rax
push 5
push qword [0x1404bc258]
pop rcx
pop rdx
pop r8
sub rsp, 0x20
call fcn.1400ac4b8
add rsp, 0x28
lea rcx, [rsp + 0x80]
pop rdx
call fcn.1400bc2d0
push qword [rsp + 0x68]
movabs rcx, 0x140271064
pop rdx
call fcn.1400bc3b0
or rax, rax
je 0x140020725
push qword [rsp + 0x50]
pop rcx
call fcn.140020d63
and rax, rax
je 0x140020725
mov rax, 1
jmp 0x140020728
xor rax, rax
and rax, rax
je 0x140020794
push qword [rsp + 0x28]
pop rcx
call fcn.1400b38ec
mov rcx, qword [rsp + 0x50]
push rcx
sub rsp, 0x28
call main
add rsp, 0x28
pop rcx
push rax
sub rsp, 0x28
call fcn.1400bc260
add rsp, 0x28
mov rbp, qword [rsp + 0x38]
lea rcx, [rbp + 0x10]
pop rdx
call fcn.1400bc2d0
mov rcx, qword [rsp + 0x58]
push rcx
sub rsp, 0x28
call main
add rsp, 0x28
pop rcx
push rax
sub rsp, 0x28
call fcn.1400bc260
add rsp, 0x28
lea rcx, [rbp + 0x18]
pop rdx
call fcn.1400bc2d0
call fcn.14002bcda
jmp 0x14002051a
push qword [0x1404bc258]
pop rcx
call fcn.1400ac500
inc qword [rsp + 0x38]
jno 0x1400202f3
push qword [rsp + 0x28]
pop rcx
call fcn.1400b39c0
mov r15, rax
and r15, r15
jle 0x140020c6b
movabs rax, str.Block_key:
push rax
pop rcx
call fcn.1400144f0
movabs rax, str.Begin_Transaction
push rax
push qword [0x1404bc258]
pop rcx
pop rdx
call fcn.1400ac2d4
mov r15, rax
and r15, r15
jne 0x140020896
push rcx
sub rsp, 0x28
call main
add rsp, 0x28
pop rcx
push rax
sub rsp, 8
push rcx
sub rsp, 0x28
call main
add rsp, 0x28
pop rcx
push rax
movabs rcx, str.Add_link_error
sub rsp, 0x28
call fcn.1400bc260
add rsp, 0x28
push rcx
sub rsp, 0x20
call main
add rsp, 0x20
pop rcx
push rax
push rcx
sub rsp, 0x28
call main
add rsp, 0x28
pop rcx
push rax
pop rcx
sub rsp, 0x20
call fcn.1400ac338
add rsp, 0x20
pop rax
push rax
call fcn.1400bc440
mov rdx, rax
pop rax
add qword [rsp], rdx
pop rcx
sub rsp, 0x20
call fcn.1400349f8
add rsp, 0x28
pop rcx
push rax
sub rsp, 0x28
call fcn.14004b97c
add rsp, 0x28
pop rax
push 0
push 0x68
pop rcx
pop rdx
call fcn.14009aee8
mov qword [rsp + 0x80], 0
mov rcx, qword [rsp + 0x28]
call fcn.1400b39c8
mov rcx, qword [rsp + 0x28]
call fcn.1400b39dc
or rax, rax
je 0x140020ba0
mov rbp, qword [rsp + 0x30]
push qword [rbp + 0x10]
mov rax, qword [0x1404bc258]
mov rax, rax
push rax
pop rcx
pop rdx
call fcn.14002681b
mov rbp, qword [rsp + 0x30]
push qword [rbp + 0x10]
pop rcx
call fcn.1400144f0
mov r15, qword [rsp + 0x80]
inc r15
mov qword [rsp + 0x80], r15
push rcx
sub rsp, 0x28
call main
add rsp, 0x28
pop rcx
push rax
sub rsp, 8
push rcx
sub rsp, 0x28
call main
add rsp, 0x28
pop rcx
push rax
movabs rcx, reloc.SHELL32.dll_IsNetDrive
sub rsp, 0x28
call fcn.1400bc260
add rsp, 0x28
push rcx
sub rsp, 0x20
call main
add rsp, 0x20
pop rcx
push rax
push rcx
sub rsp, 0x28
call main
add rsp, 0x28
pop rcx
push rax
push qword [rsp + 0xa8]
pop rcx
pop rdx
sub rsp, 0x20
call fcn.1400b9000
add rsp, 0x20
pop rax
call fcn.1400bc470
push 0x68
push rax
call fcn.1400bc440
mov rdx, rax
pop rax
add qword [rsp + 8], rdx
pop rcx
pop rdx
sub rsp, 0x20
call fcn.14009cc78
add rsp, 0x28
pop rcx
push rax
sub rsp, 0x28
call fcn.14004b97c
add rsp, 0x28
pop rax
push 0x4d
pop rcx
call fcn.1400a3a24
mov qword [rsp + 0x38], rax
jmp 0x1400209c7
xor rax, rax
cmp rax, qword [rsp + 0x38]
jg 0x140020b78
push qword [rsp + 0x38]
push 0x4d
pop rcx
pop rdx
call fcn.14009d05c
mov r15, rax
and r15, 1
and r15, r15
je 0x140020b68
push rcx
sub rsp, 0x28
call main
add rsp, 0x28
pop rcx
push rax
sub rsp, 8
push rcx
sub rsp, 0x28
call main
add rsp, 0x28
pop rcx
push rax
push 0
push qword [rsp + 0x58]
push 0x4d
pop rcx
pop rdx
pop r8
pop r9
sub rsp, 0x20
call fcn.1400a3a6c
add rsp, 0x28
call fcn.1400bc470
mov rbp, qword [rsp + 0x38]
mov rcx, qword [rbp + 0x10]
pop rdx
push rcx
mov rcx, rdx
sub rsp, 0x20
call fcn.1400bc4a0
add rsp, 0x20
pop rcx
mov rdx, rax
call fcn.1400bc3b0
or rax, rax
jne 0x140020b47
push rcx
sub rsp, 0x28
call main
add rsp, 0x28
pop rcx
push rax
sub rsp, 8
mov rbp, qword [rsp + 0x40]
push qword [rbp + 0x18]
push rcx
sub rsp, 0x20
call main
add rsp, 0x20
pop rcx
push rax
sub rsp, 8
push rcx
sub rsp, 0x20
call main
add rsp, 0x20
pop rcx
push rax
push rcx
sub rsp, 0x28
call main
add rsp, 0x28
pop rcx
push rax
sub rsp, 8
push rcx
sub rsp, 0x28
call main
add rsp, 0x28
pop rcx
push rax
push 0
push qword [rsp + 0x88]
push 0x4d
pop rcx
pop rdx
pop r8
pop r9
sub rsp, 0x20
call fcn.1400a3a6c
add rsp, 0x28
push rax
call fcn.1400bc440
mov rdx, rax
pop rax
add qword [rsp], rdx
pop rcx
sub rsp, 0x20
call fcn.14002b221
add rsp, 0x30
push rax
call fcn.1400bc440
mov rdx, rax
pop rax
add qword [rsp], rdx
pop rcx
pop rdx
sub rsp, 0x20
call fcn.1400b8e10
add rsp, 0x28
pop rcx
push rax
sub rsp, 0x28
call fcn.14004b97c
add rsp, 0x28
pop rax
mov r15, rax
and r15, r15
jg 0x140020b47
jmp 0x140020b50
mov rax, 1
jmp 0x140020b53
xor rax, rax
and rax, rax
je 0x140020b68
push qword [rsp + 0x38]
push 0x4d
pop rcx
pop rdx
call fcn.1400a3acc
call fcn.14002bcda
dec qword [rsp + 0x38]
jno 0x1400209c7
push 0x1b
pop rcx
call sub.USER32.dll_GetKeyState
mov r15, rax
cmp r15, 1
jle 0x140020b9b
call fcn.1400a6d8c
mov r15, rax
and r15, r15
jne 0x140020b9b
jmp 0x140020ba0
jmp 0x1400208bd
movabs rax, str.Commit
push rax
push qword [0x1404bc258]
pop rcx
pop rdx
call fcn.1400ac2d4
mov r15, rax
and r15, r15
jne 0x140020c5a
push rcx
sub rsp, 0x28
call main
add rsp, 0x28
pop rcx
push rax
sub rsp, 8
push rcx
sub rsp, 0x28
call main
add rsp, 0x28
pop rcx
push rax
movabs rcx, str.Add_link_error
sub rsp, 0x28
call fcn.1400bc260
add rsp, 0x28
push rcx
sub rsp, 0x20
call main
add rsp, 0x20
pop rcx
push rax
push rcx
sub rsp, 0x28
call main
add rsp, 0x28
pop rcx
push rax
pop rcx
sub rsp, 0x20
call fcn.1400ac338
add rsp, 0x20
pop rax
push rax
call fcn.1400bc440
mov rdx, rax
pop rax
add qword [rsp], rdx
pop rcx
sub rsp, 0x20
call fcn.1400349f8
add rsp, 0x28
pop rcx
push rax
sub rsp, 0x28
call fcn.14004b97c
add rsp, 0x28
pop rax
movabs rax, 0x140271064
push rax
pop rcx
call fcn.1400144f0
push qword [rsp + 0x28]
pop rcx
call fcn.1400b3a18
push 0x4d
pop rcx
call fcn.14009ce1c
push qword [0x1404bc258]
pop rcx
call fcn.14001beb3
push 0
pop rcx
call fcn.1400165a3
movabs rax, 0x140271064
push rax
push 0x68
pop rcx
pop rdx
call fcn.14009cc78
xor rax, rax
push rax
mov rcx, qword [rsp + 0x78]
sub rsp, 0x28
call fcn.1400bc6b0
add rsp, 0x28
mov rcx, qword [rsp + 0x68]
sub rsp, 0x28
call fcn.1400bc6b0
add rsp, 0x28
mov rcx, qword [rsp + 0x48]
sub rsp, 0x28
call fcn.1400bc6b0
add rsp, 0x28
mov rcx, qword [rsp + 0x60]
sub rsp, 0x28
call fcn.1400bc6b0
add rsp, 0x28
mov rcx, qword [rsp + 0x50]
sub rsp, 0x28
call fcn.1400bc6b0
add rsp, 0x28
mov rcx, qword [rsp + 0x80]
sub rsp, 0x28
call fcn.1400bc6b0
add rsp, 0x28
mov rcx, qword [rsp + 0x58]
sub rsp, 0x28
call fcn.1400bc6b0
add rsp, 0x28
mov rcx, qword [rsp + 0x70]
sub rsp, 0x28
call fcn.1400bc6b0
add rsp, 0x28
push qword [rsp + 0x30]
pop rcx
sub rsp, 0x28
call fcn.1400b3a18
add rsp, 0x28
pop rax
add rsp, 0x88
pop r15
pop rbp
ret