Function at 0x1400200d1
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 0x1400200db
sub rsp, 0x28
call fcn.1400bd990
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.14009cdb4
add rsp, 0x28
push rax
call fcn.1400bd830
mov rdx, rax
pop rax
add qword [rsp], rdx
pop rcx
sub rsp, 0x20
call fcn.14002b220
add rsp, 0x28
call fcn.1400bd860
push rcx
sub rsp, 0x20
call main
add rsp, 0x20
pop rcx
push rax
movabs rcx, 0x140275a68
sub rsp, 0x20
call fcn.1400bd650
add rsp, 0x20
mov rcx, qword [0x1404ba5cc]
sub rsp, 0x20
call fcn.1400bd650
add rsp, 0x20
pop rcx
sub rsp, 8
call fcn.1400bd890
add rsp, 8
mov rcx, rax
pop rdx
push rcx
mov rcx, rdx
sub rsp, 0x20
call fcn.1400bd890
add rsp, 0x20
pop rcx
mov rdx, rax
call fcn.1400bd7a0
or rax, rax
je 0x140020243
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.14009cdb4
add rsp, 0x28
call fcn.1400bd860
mov rcx, qword [0x1404ba654]
pop rdx
push rcx
mov rcx, rdx
sub rsp, 0x20
call fcn.1400bd890
add rsp, 0x20
pop rcx
mov rdx, rax
call fcn.1400bd7a0
or rax, rax
jne 0x140020243
jmp 0x140020c6f
push 1
pop rcx
call fcn.1400166fb
mov r9, 7
movabs r8, 0x140282518
lea rdx, [rsp + 0x28]
mov rcx, gethostname
call fcn.1400b4bfc
mov qword [rsp + 0x38], 0
jmp 0x14002027b
push 0x4d
pop rcx
call fcn.1400a3a84
cmp rax, qword [rsp + 0x38]
jl 0x14002076a
push qword [rsp + 0x38]
push 0x4d
pop rcx
pop rdx
call fcn.14009d0bc
mov r15, rax
and r15, 1
and r15, r15
je 0x14002075f
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.1400a3acc
add rsp, 0x28
push rax
call fcn.1400bd830
mov rdx, rax
pop rax
add qword [rsp], rdx
pop rcx
sub rsp, 0x20
call fcn.14002b220
add rsp, 0x28
lea rcx, [rsp + 0x48]
pop rdx
call fcn.1400bd6c0
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.14009cdb4
add rsp, 0x28
call fcn.1400bd860
mov rcx, qword [0x1404ba654]
pop rdx
push rcx
mov rcx, rdx
sub rsp, 0x20
call fcn.1400bd890
add rsp, 0x20
pop rcx
mov rdx, rax
call fcn.1400bd7a0
or rax, rax
je 0x140020401
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.1400bd650
add rsp, 0x28
mov rcx, qword [rsp + 0x48]
sub rsp, 0x28
call fcn.1400bd650
add rsp, 0x28
movabs rcx, 0x140273830
sub rsp, 0x28
call fcn.1400bd650
add rsp, 0x28
lea rcx, [rsp + 0x50]
pop rdx
call fcn.1400bd6c0
jmp 0x140020485
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.1400bd650
add rsp, 0x28
mov rcx, qword [rsp + 0x48]
sub rsp, 0x28
call fcn.1400bd650
add rsp, 0x28
movabs rcx, str._OR_Description
sub rsp, 0x28
call fcn.1400bd650
add rsp, 0x28
mov rcx, qword [rsp + 0x48]
sub rsp, 0x28
call fcn.1400bd650
add rsp, 0x28
movabs rcx, 0x140279c54
sub rsp, 0x28
call fcn.1400bd650
add rsp, 0x28
lea rcx, [rsp + 0x50]
pop rdx
call fcn.1400bd6c0
push qword [rsp + 0x48]
movsxd rax, dword [0x1404baa3c]
mov rax, rax
push rax
pop rcx
pop rdx
call fcn.1400ad7fc
mov r15, rax
and r15, r15
je 0x14002075f
movsxd rax, dword [0x1404baa3c]
mov rax, rax
push rax
pop rcx
call fcn.1400ad878
and rax, rax
je 0x14002074e
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
movsxd rax, dword [0x1404baa3c]
mov rax, rax
push rax
pop rcx
pop rdx
pop r8
sub rsp, 0x20
call fcn.1400ad8ac
add rsp, 0x28
lea rcx, [rsp + 0x58]
pop rdx
call fcn.1400bd6c0
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
movsxd rax, dword [0x1404baa3c]
mov rax, rax
push rax
pop rcx
pop rdx
pop r8
sub rsp, 0x20
call fcn.1400ad8ac
add rsp, 0x28
lea rcx, [rsp + 0x60]
pop rdx
call fcn.1400bd6c0
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
movsxd rax, dword [0x1404baa3c]
mov rax, rax
push rax
pop rcx
pop rdx
pop r8
sub rsp, 0x20
call fcn.1400ad8ac
add rsp, 0x28
lea rcx, [rsp + 0x68]
pop rdx
call fcn.1400bd6c0
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
movsxd rax, dword [0x1404baa3c]
mov rax, rax
push rax
pop rcx
pop rdx
pop r8
sub rsp, 0x20
call fcn.1400ad8ac
add rsp, 0x28
lea rcx, [rsp + 0x70]
pop rdx
call fcn.1400bd6c0
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
movsxd rax, dword [0x1404baa3c]
mov rax, rax
push rax
pop rcx
pop rdx
pop r8
sub rsp, 0x20
call fcn.1400ad8ac
add rsp, 0x28
lea rcx, [rsp + 0x78]
pop rdx
call fcn.1400bd6c0
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
movsxd rax, dword [0x1404baa3c]
mov rax, rax
push rax
pop rcx
pop rdx
pop r8
sub rsp, 0x20
call fcn.1400ad8ac
add rsp, 0x28
lea rcx, [rsp + 0x80]
pop rdx
call fcn.1400bd6c0
push qword [rsp + 0x68]
movabs rcx, 0x140273064
pop rdx
call fcn.1400bd7a0
or rax, rax
je 0x1400206d5
push qword [rsp + 0x50]
pop rcx
call fcn.140020d21
and rax, rax
je 0x1400206d5
mov rax, 1
jmp 0x1400206d8
xor rax, rax
and rax, rax
je 0x140020744
push qword [rsp + 0x28]
pop rcx
call fcn.1400b4cdc
mov rcx, qword [rsp + 0x50]
push rcx
sub rsp, 0x28
call main
add rsp, 0x28
pop rcx
push rax
sub rsp, 0x28
call fcn.1400bd650
add rsp, 0x28
mov rbp, qword [rsp + 0x38]
lea rcx, [rbp + 0x10]
pop rdx
call fcn.1400bd6c0
mov rcx, qword [rsp + 0x58]
push rcx
sub rsp, 0x28
call main
add rsp, 0x28
pop rcx
push rax
sub rsp, 0x28
call fcn.1400bd650
add rsp, 0x28
lea rcx, [rbp + 0x18]
pop rdx
call fcn.1400bd6c0
call fcn.14002bd10
jmp 0x1400204a7
movsxd rax, dword [0x1404baa3c]
mov rax, rax
push rax
pop rcx
call fcn.1400ad8f4
inc qword [rsp + 0x38]
jno 0x14002027b
push qword [rsp + 0x28]
pop rcx
call fcn.1400b4db0
mov r15, rax
and r15, r15
jle 0x140020c27
movabs rax, str.Block_key:
push rax
pop rcx
call fcn.14001464b
movabs rax, str.Begin_Transaction
push rax
movsxd rax, dword [0x1404baa3c]
mov rax, rax
push rax
pop rcx
pop rdx
call fcn.1400ad6c8
mov r15, rax
and r15, r15
jne 0x140020850
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.1400bd650
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.1400ad72c
add rsp, 0x20
pop rax
push rax
call fcn.1400bd830
mov rdx, rax
pop rax
add qword [rsp], rdx
pop rcx
sub rsp, 0x20
call fcn.1400349a0
add rsp, 0x28
pop rcx
push rax
sub rsp, 0x28
call fcn.14004bcd8
add rsp, 0x28
pop rax
push 0
push SQLConnectW
pop rcx
pop rdx
call fcn.14009af48
mov qword [rsp + 0x80], 0
mov rcx, qword [rsp + 0x28]
call fcn.1400b4db8
mov rcx, qword [rsp + 0x28]
call fcn.1400b4dcc
or rax, rax
je 0x140020b57
mov rbp, qword [rsp + 0x30]
push qword [rbp + 0x10]
movsxd rax, dword [0x1404baa3c]
push rax
pop rcx
pop rdx
call fcn.1400267ed
mov rbp, qword [rsp + 0x30]
push qword [rbp + 0x10]
pop rcx
call fcn.14001464b
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.1400bd650
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.1400ba3f0
add rsp, 0x20
pop rax
call fcn.1400bd860
push SQLConnectW
push rax
call fcn.1400bd830
mov rdx, rax
pop rax
add qword [rsp + 8], rdx
pop rcx
pop rdx
sub rsp, 0x20
call fcn.14009ccd8
add rsp, 0x28
pop rcx
push rax
sub rsp, 0x28
call fcn.14004bcd8
add rsp, 0x28
pop rax
push 0x4d
pop rcx
call fcn.1400a3a84
mov qword [rsp + 0x38], rax
jmp 0x14002097e
xor rax, rax
cmp rax, qword [rsp + 0x38]
jg 0x140020b2f
push qword [rsp + 0x38]
push 0x4d
pop rcx
pop rdx
call fcn.14009d0bc
mov r15, rax
and r15, 1
and r15, r15
je 0x140020b1f
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.1400a3acc
add rsp, 0x28
call fcn.1400bd860
mov rbp, qword [rsp + 0x38]
mov rcx, qword [rbp + 0x10]
pop rdx
push rcx
mov rcx, rdx
sub rsp, 0x20
call fcn.1400bd890
add rsp, 0x20
pop rcx
mov rdx, rax
call fcn.1400bd7a0
or rax, rax
jne 0x140020afe
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.1400a3acc
add rsp, 0x28
push rax
call fcn.1400bd830
mov rdx, rax
pop rax
add qword [rsp], rdx
pop rcx
sub rsp, 0x20
call fcn.14002b220
add rsp, 0x30
push rax
call fcn.1400bd830
mov rdx, rax
pop rax
add qword [rsp], rdx
pop rcx
pop rdx
sub rsp, 0x20
call fcn.1400ba200
add rsp, 0x28
pop rcx
push rax
sub rsp, 0x28
call fcn.14004bcd8
add rsp, 0x28
pop rax
mov r15, rax
and r15, r15
jg 0x140020afe
jmp 0x140020b07
mov rax, 1
jmp 0x140020b0a
xor rax, rax
and rax, rax
je 0x140020b1f
push qword [rsp + 0x38]
push 0x4d
pop rcx
pop rdx
call fcn.1400a3b2c
call fcn.14002bd10
dec qword [rsp + 0x38]
jno 0x14002097e
push SQLFreeHandle
pop rcx
call sub.USER32.dll_GetKeyState
mov r15, rax
cmp r15, 1
jle 0x140020b52
call fcn.1400a6dec
mov r15, rax
and r15, r15
jne 0x140020b52
jmp 0x140020b57
jmp 0x140020877
movabs rax, str.Commit
push rax
movsxd rax, dword [0x1404baa3c]
mov rax, rax
push rax
pop rcx
pop rdx
call fcn.1400ad6c8
mov r15, rax
and r15, r15
jne 0x140020c16
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.1400bd650
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.1400ad72c
add rsp, 0x20
pop rax
push rax
call fcn.1400bd830
mov rdx, rax
pop rax
add qword [rsp], rdx
pop rcx
sub rsp, 0x20
call fcn.1400349a0
add rsp, 0x28
pop rcx
push rax
sub rsp, 0x28
call fcn.14004bcd8
add rsp, 0x28
pop rax
movabs rax, 0x140273064
push rax
pop rcx
call fcn.14001464b
push qword [rsp + 0x28]
pop rcx
call fcn.1400b4e08
push 0x4d
pop rcx
call fcn.14009ce7c
movsxd rax, dword [0x1404baa3c]
push rax
pop rcx
call fcn.14001c02d
push 0
pop rcx
call fcn.1400166fb
movabs rax, 0x140273064
push rax
push SQLConnectW
pop rcx
pop rdx
call fcn.14009ccd8
xor rax, rax
push rax
mov rcx, qword [rsp + 0x78]
sub rsp, 0x28
call fcn.1400bdaa0
add rsp, 0x28
mov rcx, qword [rsp + 0x68]
sub rsp, 0x28
call fcn.1400bdaa0
add rsp, 0x28
mov rcx, qword [rsp + 0x48]
sub rsp, 0x28
call fcn.1400bdaa0
add rsp, 0x28
mov rcx, qword [rsp + 0x60]
sub rsp, 0x28
call fcn.1400bdaa0
add rsp, 0x28
mov rcx, qword [rsp + 0x50]
sub rsp, 0x28
call fcn.1400bdaa0
add rsp, 0x28
mov rcx, qword [rsp + 0x80]
sub rsp, 0x28
call fcn.1400bdaa0
add rsp, 0x28
mov rcx, qword [rsp + 0x58]
sub rsp, 0x28
call fcn.1400bdaa0
add rsp, 0x28
mov rcx, qword [rsp + 0x70]
sub rsp, 0x28
call fcn.1400bdaa0
add rsp, 0x28
push qword [rsp + 0x30]
pop rcx
sub rsp, 0x28
call fcn.1400b4e08
add rsp, 0x28
pop rax
add rsp, 0x88
pop r15
pop rbp
ret