Function at 0x43a266
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
sub esp, 0xc
cmp dword [0x51cdd4], 5
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
push edi
jl 0x43a2ac
mov eax, dword [esi + 0x828]
cmp word [eax], 0
jne 0x43a28c
lea eax, [esi + 0xd90]
mov ecx, dword [esp + 0x2c]
push dword [ecx]
mov ecx, dword [esp + 0x2c]
push dword [ecx]
push dword [esp + 0x2c]
push eax
push str.GetNodeColors__s__0x_08x__0x_06X__0x_06X_...
push 5
call fcn.00451479
add esp, 0x18
cmp dword [0x510680], 0
je 0x43a2f4
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 1
call edi
mov ebp, 0x8000
mov ecx, ebp
test cx, ax
jne 0x43a2d4
push 2
call edi
test bp, ax
je 0x43a2f4
push dword [0x5106a4]
call fcn.00435894
test eax, eax
je 0x43a2f4
cmp eax, dword [esi + 8]
jne 0x43a2ef
or dword [esp + 0x24], 0x11
jmp 0x43a2f4
and dword [esp + 0x24], 0xffffffee
mov eax, dword [esp + 0x28]
mov eax, dword [eax]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x2c]
mov eax, dword [eax]
xor ebp, ebp
or edi, 0xffffffff
mov dword [esp + 0x14], eax
mov ebx, edi
mov dword [esp + 0x10], ebp
cmp dword [esi + 0x1188], ebp
je 0x43a34a
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
sub edi, dword [esi + 0x1184]
cmp dword [0x51cdd4], 5
jl 0x43a374
push edi
push dword [esi + 0x1188]
push str._pTNI__JustArrivedRemoved_i_age_u
push 5
call fcn.00451479
add esp, 0x10
jmp 0x43a374
cmp dword [0x51cdd4], 5
jl 0x43a37d
mov eax, dword [esi + 0x1148]
cmp eax, ebp
je 0x43a362
mov eax, dword [eax + 0x48]
jmp 0x43a364
xor eax, eax
push eax
push str._pTNI__JustArrivedRemoved0__nCompanionPorts_i
push 5
call fcn.00451479
add esp, 0xc
cmp edi, 0xffffffff
jne 0x43a4cb
cmp dword [0x510760], ebp
je 0x43a4cb
mov eax, dword [esi + 0x1148]
cmp eax, ebp
je 0x43a4cb
cmp dword [eax + 0x48], ebp
jle 0x43a4cb
push dword [0x511008]
call fcn.00436535
mov ebp, eax
cmp esi, ebp
je 0x43a4cb
mov eax, dword [esi + 0x1148]
push dword [eax + 0x48]
push str.node_to_color_has__i_companion_ports
push 5
call fcn.00451479
add esp, 0xc
test byte [esp + 0x24], 1
jne 0x43a4cb
test ebp, ebp
je 0x43a4cb
mov eax, dword [ebp + 0x1148]
test eax, eax
je 0x43a4cb
mov eax, dword [eax + 0x48]
test eax, eax
je 0x43a4cb
push eax
push str.selected_node_has__i_companion_ports
push 5
call fcn.00451479
mov eax, dword [ebp + 0x1148]
mov ecx, dword [eax + 0x48]
add esp, 0xc
xor edx, edx
test ecx, ecx
jle 0x43a4cb
add eax, 0x38
cmp dword [eax], esi
je 0x43a430
inc edx
add eax, 4
cmp edx, ecx
jl 0x43a41f
jmp 0x43a4cb
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 5
mov edi, eax
sub edi, dword [0x51100c]
pop ebp
cmp dword [0x51cdd4], ebp
jl 0x43a45f
push edi
lea eax, [esi + 0xd90]
push eax
push str.companion_highlight_for__s___selAge_u
push ebp
call fcn.00451479
add esp, 0x10
mov edx, dword [0x510760]
mov ecx, dword [0x510750]
xor eax, eax
inc eax
cmp edx, eax
je 0x43a483
cmp edx, 2
jne 0x43a4cb
mov edx, dword [0x510754]
add edx, ecx
cmp edi, edx
jae 0x43a4cb
mov edx, dword [esi + 0x1148]
cmp dword [edx + 4], 2
mov edx, dword [0x510680]
jne 0x43a49e
mov ebx, dword [edx*4 + 0x510784]
jmp 0x43a4a5
mov ebx, dword [edx*4 + 0x51078c]
cmp edi, ecx
sbb ecx, ecx
inc ecx
inc ecx
mov dword [esi + 0x118c], ecx
cmp dword [0x51cdd4], ebp
mov dword [0x510744], eax
jl 0x43a4cb
push str.set_g_AnyTreeItemColoredtrue___companion_
push ebp
call fcn.00451479
pop ecx
pop ecx
xor ebp, ebp
cmp dword [0x510680], ebp
jne 0x43a515
test byte [esp + 0x24], 0x10
jne 0x43a545
test byte [esp + 0x24], 1
je 0x43a545
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
mov ecx, dword [esp + 0x28]
cmp eax, dword [ecx]
jne 0x43a515
cmp dword [0x51cdd4], 5
mov eax, dword [0x51079c]
mov dword [esp + 0x20], eax
jl 0x43a515
push eax
push str.changed_default_bkcolor_to_0x_X_bc_selected_no_focused
push 5
call fcn.00451479
add esp, 0xc
cmp dword [0x510680], 1
jne 0x43a545
test byte [esp + 0x24], 0x10
je 0x43a52c
mov eax, dword [0x510798]
jmp 0x43a538
test byte [esp + 0x24], 1
je 0x43a545
mov eax, dword [0x5107a0]
mov dword [esp + 0x20], eax
mov eax, dword [0x4a7afc]
mov dword [esp + 0x14], eax
cmp dword [esi + 8], ebp
jne 0x43a551
xor eax, eax
jmp 0x43aab6
cmp edi, 0xffffffff
jne 0x43a58b
lea eax, [esi + 0x1190]
cmp dword [eax], ebp
je 0x43a562
mov dword [eax], ebp
add esi, 0x118c
cmp dword [esi], ebp
je 0x43a56e
mov dword [esi], ebp
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
cmp eax, dword [ecx]
je 0x43a54a
mov dword [ecx], eax
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x14]
mov dword [eax], ecx
jmp 0x43aab3
mov eax, dword [esp + 0x24]
and eax, 1
mov dword [esp + 0x18], eax
je 0x43a672
cmp dword [0x510758], ebp
jne 0x43a672
cmp dword [0x51cdd4], 5
jl 0x43a5bf
push str._node_is_selected_and_bHighlightSelItemfalse____no_hilight
push 5
call fcn.00451479
pop ecx
pop ecx
cmp dword [esi + 0x1188], 2
jne 0x43a643
mov eax, dword [esi + 0x1154]
cmp eax, ebp
je 0x43a5d7
cmp dword [eax + 0xc], ebp
jne 0x43a643
mov eax, dword [0x510750]
cmp edi, eax
jbe 0x43a643
add eax, 0x3e8
cmp edi, eax
jae 0x43a643
lea edi, [esi + 0x24]
cmp word [edi], bp
je 0x43a643
xor eax, eax
mov word [edi], ax
mov word [esi + 0x428], ax
mov word [esi + 0x86c], ax
mov word [esi + 0xa70], ax
mov word [esi + 0xe44], ax
lea eax, [esi + 0xd90]
push eax
lea ebp, [esi + 0x82c]
push str.__s_
push ebp
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ecx, esi
mov dword [esi + 0x828], edi
call fcn.00407c96
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
cmp eax, dword [ecx]
je 0x43a54a
mov dword [ecx], eax
cmp dword [0x510680], 0
je 0x43aab3
mov eax, dword [0x4a7afc]
mov ecx, dword [esp + 0x2c]
mov dword [ecx], eax
jmp 0x43aab3
cmp dword [esi + 0x1188], ebp
jne 0x43a683
cmp dword [0x510760], 2
jne 0x43a6ac
mov eax, dword [0x510750]
cmp edi, eax
jae 0x43a6d3
cmp dword [0x51cdd4], 5
jl 0x43a854
push 0
push eax
push edi
push str._age___u____HighlightDuration___u______u__
push 5
call fcn.00451479
add esp, 0x14
push 5
pop ebp
cmp dword [0x51cdd4], ebp
jl 0x43a854
mov eax, dword [esi + 0x1154]
test eax, eax
jne 0x43a80e
push str._pTNI__pDeviceInfo_is_NULL
jmp 0x43a823
mov ecx, dword [0x510754]
lea ebp, [ecx + eax]
cmp edi, ebp
jae 0x43a749
mov ecx, edi
sub ecx, eax
mov eax, ecx
imul eax, eax, 0x64
xor edx, edx
div dword [0x510754]
cmp dword [0x51cdd4], 5
mov dword [esp + 0x10], eax
jl 0x43a717
push eax
push dword [0x510754]
push ecx
push ebp
push edi
push str._age___u____HighlightDurationFadingDuration___u_____100_u__u_u__
push 5
call fcn.00451479
add esp, 0x1c
lea eax, [esi + 0x1190]
cmp dword [eax], 1
jne 0x43a76d
cmp dword [esi + 0x18], 8
mov dword [eax], 2
jne 0x43a76d
mov eax, dword [esi + 0x1154]
test eax, eax
je 0x43a73e
cmp dword [eax + 8], 0x2d
jne 0x43a76d
push 0
mov ecx, esi
call fcn.0040bce8
jmp 0x43a76d
cmp dword [0x51cdd4], 5
mov dword [esp + 0x10], 0x64
jl 0x43a778
push 0x64
push ebp
push edi
push str._age___u____HighlightDurationFadingDuration___u______u__
push 5
call fcn.00451479
add esp, 0x14
cmp dword [esp + 0x10], 0x64
jne 0x43a6ac
push str.set_pTNI__JustArrivedRemoved__JUST_0
push 4
call fcn.00451479
mov eax, dword [esp + 0x30]
xor edx, edx
pop ecx
pop ecx
mov ecx, dword [esp + 0x20]
mov dword [esi + 0x1188], edx
mov dword [esi + 0x1184], edx
mov dword [esi + 0x118c], edx
mov dword [esi + 0x1190], edx
cmp ecx, dword [eax]
jne 0x43a7df
cmp dword [0x51cdd4], 5
jl 0x43a54a
mov eax, dword [esi + 0x828]
cmp word [eax], dx
jne 0x43a7ca
lea eax, [esi + 0xd90]
push eax
push str._fading_finished____unchanged_colors____return_false___s_
push 5
call fcn.00451479
add esp, 0xc
jmp 0x43a54a
mov edx, dword [esp + 0x2c]
mov dword [eax], ecx
mov ecx, dword [esp + 0x14]
mov dword [edx], ecx
cmp dword [0x51cdd4], 5
jl 0x43aab3
push dword [eax]
push str._fading_finished____return_true_bc_crBack0x_X
push 5
call fcn.00451479
add esp, 0xc
jmp 0x43aab3
mov ecx, dword [0x512c64]
push eax
call fcn.0040121c
test eax, eax
jne 0x43a82d
push str._pTNI__pDeviceInfo_is_invalid
push ebp
call fcn.00451479
pop ecx
pop ecx
jmp 0x43a854
mov edi, dword [esi + 0x1154]
mov ecx, dword [0x512c64]
push edi
call fcn.004011ae
push eax
push dword [edi + 8]
push dword [edi + 0xc]
push str._IsPresent_i_Prob_u_IsSrDev_i
push ebp
call fcn.00451479
add esp, 0x14
mov eax, dword [0x510680]
xor edi, edi
cmp eax, 1
jg 0x43a973
cmp dword [esi + 0x1188], edi
je 0x43a973
mov eax, dword [esi + 0x1154]
cmp eax, edi
je 0x43a8a8
mov eax, dword [eax + 8]
cmp eax, edi
je 0x43a889
cmp dword [esi + 0x11ac], edi
jne 0x43a8ba
push eax
call fcn.0044fdd2
test eax, eax
jne 0x43a8ba
push dword [esi + 0x1154]
mov ecx, dword [0x512c64]
call fcn.004011ae
test eax, eax
jne 0x43a8ba
mov eax, dword [esi + 0x1154]
cmp eax, edi
jne 0x43a8e6
cmp dword [esi + 0x11ac], edi
je 0x43a8e2
cmp dword [0x51cdd4], 5
jl 0x43a8d1
push str._cyan
push 5
call fcn.00451479
pop ecx
pop ecx
mov eax, dword [0x510680]
mov ebx, dword [eax*4 + 0x51077c]
jmp 0x43a973
cmp eax, edi
je 0x43a950
mov ecx, dword [0x512c64]
push eax
call fcn.0040121c
test eax, eax
je 0x43a950
mov esi, dword [esi + 0x1154]
cmp dword [esi + 0xc], edi
je 0x43a950
cmp dword [esi + 8], edi
je 0x43a92b
cmp dword [0x51cdd4], 5
jl 0x43a91d
push str._yellow
push 5
call fcn.00451479
pop ecx
pop ecx
mov eax, dword [0x510680]
mov ebx, dword [eax*4 + 0x510774]
jmp 0x43a973
cmp dword [0x51cdd4], 5
jl 0x43a942
push str._green
push 5
call fcn.00451479
pop ecx
pop ecx
mov eax, dword [0x510680]
mov ebx, dword [eax*4 + 0x510764]
jmp 0x43a973
cmp dword [0x51cdd4], 5
jl 0x43a967
push str._red
push 5
call fcn.00451479
pop ecx
pop ecx
mov eax, dword [0x510680]
mov ebx, dword [eax*4 + 0x51076c]
cmp ebx, 0xffffffff
je 0x43a54a
cmp eax, edi
jne 0x43aa35
cmp dword [0x510758], edi
je 0x43aa35
push dword [esp + 0x24]
push str.A_uItemState0x_X
push 5
pop esi
push esi
call fcn.00451479
add esp, 0xc
cmp dword [esp + 0x18], edi
je 0x43aa35
push 0x46e258
push esi
call fcn.00451479
pop ecx
pop ecx
push 0xe
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
call fcn.0044c25b
test eax, eax
je 0x43aa35
cmp dword [0x51cdd4], esi
jl 0x43a9e5
push ebx
push str.make_dark_0x_08X
push esi
call fcn.00451479
add esp, 0xc
mov cl, bl
cmp bl, 0x96
jb 0x43a9ef
sub cl, 0x16
mov eax, ebx
shr eax, 8
cmp al, 0x96
jb 0x43a9fa
add al, 0xd4
shr ebx, 0x10
mov dl, bl
cmp dl, 0x96
jb 0x43aa07
add dl, 0xdf
movzx ebx, dl
shl ebx, 8
movzx eax, al
or ebx, eax
movzx eax, cl
shl ebx, 8
or ebx, eax
cmp dword [0x51cdd4], 5
jl 0x43aa33
push ebx
push str.made_dark_0x_08X
push 5
call fcn.00451479
add esp, 0xc
xor edi, edi
push dword [esp + 0x20]
push dword [esp + 0x14]
push ebx
call fcn.0042d480
mov ecx, dword [esp + 0x28]
mov dword [ecx], eax
cmp dword [0x510680], edi
je 0x43aa5c
mov eax, dword [0x4a7afc]
mov edx, dword [esp + 0x2c]
mov dword [edx], eax
cmp dword [0x51cdd4], 5
jl 0x43aa7f
push dword [ecx]
push dword [esp + 0x24]
push dword [esp + 0x18]
push ebx
push str._bg0x_06X____i_____0x_06X_____0x_06X
push 5
call fcn.00451479
add esp, 0x18
cmp dword [0x51068c], edi
jne 0x43aab3
push 1
push dword [0x51069c]
call fcn.0042a40c
mov eax, dword [0x4a7b18]
push 0x433d6f
add eax, 0x64
push eax
push 0x92025971
push dword [0x51069c]
call dword [sym.imp.USER32.dll_SetTimer]
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x10