Function at 0x140274590
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x108
lea rcx, [rsp + 0x28]
call qword [sym.imp.USER32.dll_GetCursorPos]
mov rax, qword [rsp + 0x120]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x120]
call qword [rax + COleVariant::operator=]
and eax, 1
test eax, eax
je 0x140274a1a
mov rax, qword [rsp + 0x120]
movzx eax, byte [rax + 0x1c0]
test eax, eax
jne 0x140274601
call qword [sym.imp.USER32.dll_GetCapture]
mov rcx, rax
call sub.mfc90u.dll_CDaoDatabase::Execute
cmp rax, qword [rsp + 0x120]
je 0x140274641
mov rax, qword [rsp + 0x120]
movzx eax, byte [rax + 0x1c0]
test eax, eax
je 0x14027462c
call qword [sym.imp.USER32.dll_GetCapture]
mov rcx, rax
call sub.mfc90u.dll_CDaoDatabase::Execute
cmp rax, qword [rsp + 0x120]
jne 0x140274641
mov ecx, 1
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
and eax, 0x8000
test eax, eax
jne 0x140274676
mov rax, qword [rsp + 0x120]
cmp dword [rax + reloc.mfc90u.dll_AfxInitExtensionModule], 0
jne 0x140274676
call qword [sym.imp.USER32.dll_ReleaseCapture]
mov rdx, qword [rsp + 0x120]
mov byte [rdx + 0x1c0], 0
mov rax, qword [rsp + 0x120]
mov byte [rax + 0x3b8], 0
mov rax, qword [rsp + 0x120]
movzx eax, byte [rax + 0x3b8]
test eax, eax
je 0x140274a18
lea rdx, [rsp + 0x58]
mov rcx, qword [rsp + 0x120]
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_GetWindowRect]
mov rax, qword [rsp + 0x120]
movzx eax, byte [rax + 0x3b9]
test eax, eax
jne 0x140274704
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x78], rax
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x58]
call qword [sym.imp.USER32.dll_PtInRect]
cmp eax, 1
jne 0x1402746e3
mov dword [rsp + 0xf8], 1
jmp 0x1402746ee
mov dword [rsp + 0xf8], 0
mov rcx, qword [rsp + 0x120]
movzx eax, byte [rsp + 0xf8]
mov byte [rcx + 0x3b9], al
lea rdi, [rsp + 0xe8]
mov rsi, qword [rsp + 0x120]
add rsi, 0x1b0
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea rdi, [rsp + 0x40]
lea rsi, [rsp + 0xe8]
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x120]
mov rax, qword [rax + 0x1e8]
mov qword [rsp + 0x88], rax
mov ecx, dword [rsp + 0x8c]
mov eax, dword [rsp + 0x2c]
sub eax, ecx
mov dword [rsp + 0xc4], eax
mov ecx, dword [rsp + 0x88]
mov eax, dword [rsp + 0x28]
sub eax, ecx
mov dword [rsp + 0xc0], eax
mov eax, dword [rsp + 0xc0]
mov dword [rsp + 0x90], eax
mov eax, dword [rsp + 0xc4]
mov dword [rsp + 0x94], eax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + 0x120]
mov rax, qword [rsp + 0x28]
mov qword [rcx + 0x1e8], rax
mov rax, qword [rsp + 0x120]
mov rax, qword [rax + 0x1c8]
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x120]
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_ClientToScreen]
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0xa0], rax
mov ecx, dword [rsp + 0xa4]
mov eax, dword [rsp + 0x2c]
sub eax, ecx
mov dword [rsp + 0xcc], eax
mov ecx, dword [rsp + 0xa0]
mov eax, dword [rsp + 0x28]
sub eax, ecx
mov dword [rsp + 0xc8], eax
mov eax, dword [rsp + 0xc8]
mov dword [rsp + 0xa8], eax
mov eax, dword [rsp + 0xcc]
mov dword [rsp + 0xac], eax
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x38], rax
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x120]
call fcn.140146090
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0xd0], eax
mov ecx, dword [rsp + 0xd0]
call sub.MSVCR90.dll_labs
mov dword [rsp + 0xd4], eax
mov eax, dword [0x1404e8ff8]
cmp dword [rsp + 0xd4], eax
jg 0x1402748cb
mov eax, dword [rsp + 0x3c]
mov dword [rsp + 0xd8], eax
mov ecx, dword [rsp + 0xd8]
call sub.MSVCR90.dll_labs
mov dword [rsp + 0xdc], eax
mov eax, dword [0x1404e8ffc]
cmp dword [rsp + 0xdc], eax
jle 0x140274a13
mov rax, qword [rsp + 0x120]
movzx eax, byte [rax + 0x3b9]
test eax, eax
je 0x140274a13
mov rax, qword [rsp + 0x120]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x120]
call qword [rax + reloc.mfc90u.dll_CInternetException::CInternetException]
test eax, eax
je 0x140274969
mov rcx, qword [rsp + 0x120]
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_GetParent]
mov rcx, rax
call sub.mfc90u.dll_CDaoDatabase::Execute
mov qword [rsp + 0xe0], rax
call fcn.1401a9ff0
mov rdx, qword [rsp + 0xe0]
mov rcx, rax
call sub.mfc90u.dll_AfxCheckError
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
je 0x140274964
mov rax, qword [rsp + 0x68]
mov rax, qword [rax]
xor r9d, r9d
mov r8d, 0xffffffff
mov edx, 1
mov rcx, qword [rsp + 0x68]
call qword [rax + reloc.mfc90u.dll_CUIntArray::CUIntArray]
jmp 0x1402749f5
lea rdi, [rsp + 0xb0]
mov rsi, qword [rsp + 0x120]
add rsi, reloc.mfc90u.dll_CDataSourceControl::CDataSourceControl
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x120]
mov rax, qword [rax]
mov r9b, 1
mov r8d, 1
lea rdx, [rsp + 0xb0]
mov rcx, qword [rsp + 0x120]
call qword [rax + 0x3d0]
mov rax, qword [rsp + 0x120]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x120]
call qword [rax + CToolBarCtrl::~CToolBarCtrl]
mov rdx, rax
lea rcx, [0x1404e65a8]
call fcn.1400f7980
mov qword [rsp + 0x70], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x70]
lea rcx, [0x1404e65a8]
call fcn.1400f8a50
mov rax, qword [rsp + 0x120]
mov byte [rax + 0x3b8], 0
mov rax, qword [rsp + 0x120]
mov byte [rax + 0x3b9], 0
jmp 0x140274aad
jmp 0x140274a6b
mov rax, qword [rsp + 0x120]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x120]
call qword [rax + COleVariant::operator=]
and eax, 2
test eax, eax
je 0x140274a6b
mov rax, qword [rsp + 0x120]
movzx eax, byte [rax + 0x3b8]
test eax, eax
je 0x140274a6b
mov r8, qword [rsp + 0x130]
mov edx, dword [rsp + 0x128]
mov rcx, qword [rsp + 0x120]
call fcn.140143a70
jmp 0x140274aad
mov rax, qword [rsp + 0x130]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x20]
mov rcx, qword [rsp + 0x120]
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_ClientToScreen]
mov rax, qword [rsp + 0x120]
mov rax, qword [rax]
mov rdx, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x120]
call qword [rax + CIPAddressCtrl::CreateEx]
add rsp, 0x108
pop rdi
pop rsi
ret