Function at 0x4165a0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
sub esp, 0x100
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 0x18]
cmp eax, dword [esi + 0x42ec]
jne 0x4165db
cmp edi, dword [esi + 0x42f0]
jne 0x4165db
mov ecx, 0x3c00
test word [esi + 0x42c0], cx
jne 0x4165db
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x20
mov ecx, dword [esi + 0x424c]
push ebx
push 0
mov dword [esi + 0x42ec], eax
mov dword [esi + 0x42f0], edi
call fcn.0042ffd0
test byte [esi + 0x42c0], 0x80
mov ebx, dword [sym.imp.USER32.dll_GetKeyState]
je 0x416625
push 1
call ebx
mov edx, 0x8000
and ax, dx
mov ecx, edx
cmp ax, cx
je 0x416625
mov ecx, esi
call fcn.00406ac0
mov byte [esi + 0x42c4], 1
test byte [esi + 0x42c0], 0x30
je 0x416647
call fcn.0049fcb0
test al, al
je 0x4166f0
mov edx, 0xc3cc
and word [esi + 0x42c0], dx
test byte [esi + 0x42c0], 3
je 0x416665
call fcn.0049fcb0
test al, al
je 0x416665
mov ecx, 0xc3cc
and word [esi + 0x42c0], cx
movzx eax, word [esi + 0x42c0]
test eax, 0x3c00
je 0x416692
mov edx, dword [0x50b3a0]
cmp byte [edx + 0x11283], 0
jne 0x416750
and eax, 0xc3ff
mov word [esi + 0x42c0], ax
test byte [esi + 0x42c0], 3
mov eax, dword [0x50b3a0]
mov dl, byte [eax + 0x1127d]
mov ecx, 0
setne cl
test dl, cl
je 0x41696d
call fcn.004a2460
test al, al
jne 0x416968
cmp dword [esi + 0x43a8], 0
jne 0x4167bd
push 0
push str.DnD:_Drag_n_Drop_is_null
mov ecx, esi
call fcn.00415da0
xor eax, eax
cmp byte [esi + 0x42c3], al
pop ebx
pop edi
sete al
pop esi
mov esp, ebp
pop ebp
ret 0x20
movzx eax, word [esi + 0x42c0]
test al, 0x10
je 0x41670d
test byte [ebp + 0x14], 1
jne 0x41670d
and eax, 0xffee
mov word [esi + 0x42c0], ax
movzx eax, word [esi + 0x42c0]
test al, 0x20
je 0x41672a
test byte [ebp + 0x14], 2
jne 0x41672a
and eax, 0xffdd
mov word [esi + 0x42c0], ax
mov eax, 0xc3ff
and word [esi + 0x42c0], ax
movzx eax, word [esi + 0x42c0]
test al, 0x30
je 0x416665
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x20
push 1
call ebx
mov ecx, 0x8000
and ax, cx
mov edx, ecx
cmp ax, dx
je 0x41677a
pop ebx
mov eax, 0xc3ff
and word [esi + 0x42c0], ax
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x20
mov eax, dword [ebp + 0x24]
cmp ax, word [esi + 0x42ca]
jne 0x416797
mov cx, word [ebp + 0x26]
cmp cx, word [esi + 0x42cc]
je 0x416a49
mov edx, dword [0x50b3a0]
cmp byte [edx + 0x11283], 1
jne 0x416a49
push eax
mov ecx, esi
call fcn.0040ad40
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x20
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x1c]
mov edx, dword [esi + 0x4360]
push 5
push eax
mov eax, dword [esi + 0x435c]
push ecx
push edx
push eax
mov ecx, esi
mov byte [esi + 0x42c3], 1
call fcn.00405b10
test al, al
jne 0x4166dc
mov ecx, esi
call fcn.00406800
test al, al
jne 0x4166dc
mov ecx, esi
call fcn.0040cc80
test al, al
jne 0x4166dc
movzx eax, word [esi + 0x42c0]
test al, 0x40
je 0x416872
push 5
and eax, 0xffbf
mov ecx, edi
shr ecx, 0x10
movsx edx, cx
mov ecx, dword [esi + 0x4368]
push edx
mov edx, dword [esi + 0x4364]
mov word [esi + 0x42c0], ax
movsx eax, di
push eax
mov eax, dword [esi + 0x4360]
push ecx
mov ecx, dword [esi + 0x435c]
push edx
push eax
push ecx
lea edx, [ebp - 0x100]
push str.Right_drag_started__MOUSE_R_LOCKED_cleared:_cursor_i__i__Rcursor_i__i__Now_i__i__MinDelta_i
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x24
push 1
push 1
lea eax, [ebp - 0x100]
push eax
mov ecx, esi
call fcn.00405130
mov cl, byte [esi + 0x42c0]
xor edx, edx
and cl, 1
cmp cl, 1
sete dl
mov eax, str.Left_drag_about_to_start
mov edi, edx
test edi, edi
jne 0x416893
mov eax, str.Right_drag_about_to_start
push 1
push 1
push eax
mov ecx, esi
call fcn.00405130
push 0
call fcn.0049fe30
add esp, 4
push 0
mov ecx, esi
test al, al
jne 0x4168e5
push str.DnD:_not_file_panel
call fcn.00415da0
mov ecx, dword [ebp + 0x14]
push 0
mov eax, 0xffcc
and word [esi + 0x42c0], ax
mov eax, dword [ebp + 0x1c]
push 0
push eax
push eax
push ecx
mov byte [esi + 0x42c3], 0
push 0x202
jmp 0x416a3a
mov edx, 0xffce
and word [esi + 0x42c0], dx
cmp dword [esi + 0x43a8], 0
je 0x41694c
push str.DnD:_Drag_n_Drop_starting
call fcn.00415da0
test edi, edi
je 0x416910
mov eax, dword [esi + 0x42c6]
jmp 0x416916
mov eax, dword [esi + 0x42dc]
mov ecx, dword [esi + 0x43a8]
push eax
xor eax, eax
test edi, edi
sete al
push eax
call fcn.0042bd90
push 0
lea ecx, [esi + 0x45c8]
push ecx
mov ecx, esi
call fcn.00415da0
pop ebx
pop edi
mov byte [esi + 0x42c3], 0
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x20
push str.DnD:_Drag_n_Drop_is_null
call fcn.00415da0
pop ebx
pop edi
mov byte [esi + 0x42c3], 0
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x20
mov eax, dword [0x50b3a0]
cmp byte [eax + 0x123a], 0
jne 0x4166dc
cmp byte [eax + 0x11265], 0
je 0x4166dc
movzx edx, word [esi + 0x42c0]
test dl, 0x40
je 0x4166dc
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x1c]
push 3
push eax
mov eax, dword [esi + 0x4368]
push ecx
mov ecx, dword [esi + 0x4364]
push eax
push ecx
mov ecx, esi
call fcn.00405b10
test al, al
jne 0x416a49
and edx, 0xff9d
cmp dword [esi + 0x73fc], 0
mov word [esi + 0x42c0], dx
je 0x4169db
mov ecx, esi
call fcn.00406460
mov edx, edi
shr edx, 0x10
push 3
movsx eax, dx
mov edx, dword [esi + 0x4368]
push eax
mov eax, dword [esi + 0x4364]
movsx ecx, di
push ecx
push edx
push eax
lea ecx, [ebp - 0x100]
push str.Mouse_was_moved__MOUSE_R_LOCKED_cleared:_Rcursor_i__i__Now_i__i__MinDelta_i
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x1c
push 1
push 1
lea edx, [ebp - 0x100]
push edx
mov ecx, esi
call fcn.00405130
movsx eax, word [esi + 0x42de]
movsx ecx, word [esi + 0x42dc]
push 0
push 0
push eax
push ecx
push 0
push 0x204
mov ecx, dword [ebp + 8]
call fcn.004a4a70
mov ecx, eax
call fcn.004809b0
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x20