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

Disassembly:
sub esp, 0xc
cmp dword [0x51adac], 5
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
push edi
jl 0x43905e
mov eax, dword [esi + 0x828]
cmp word [eax], 0
jne 0x43903e
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.0044fe2e
add esp, 0x18
cmp dword [0x50e660], 0
je 0x4390a6
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 1
call edi
mov ebp, 0x8000
mov ecx, ebp
test cx, ax
jne 0x439086
push 2
call edi
test bp, ax
je 0x4390a6
push dword [0x50e684]
call fcn.00434a58
test eax, eax
je 0x4390a6
cmp eax, dword [esi + 8]
jne 0x4390a1
or dword [esp + 0x24], 0x11
jmp 0x4390a6
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 0x4390fc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
sub edi, dword [esi + 0x1184]
cmp dword [0x51adac], 5
jl 0x439126
push edi
push dword [esi + 0x1188]
push str._pTNI__JustArrivedRemoved_i_age_u
push 5
call fcn.0044fe2e
add esp, 0x10
jmp 0x439126
cmp dword [0x51adac], 5
jl 0x43912f
mov eax, dword [esi + 0x1148]
cmp eax, ebp
je 0x439114
mov eax, dword [eax + 0x48]
jmp 0x439116
xor eax, eax
push eax
push str._pTNI__JustArrivedRemoved0__nCompanionPorts_i
push 5
call fcn.0044fe2e
add esp, 0xc
cmp edi, 0xffffffff
jne 0x43927d
cmp dword [0x50e740], ebp
je 0x43927d
mov eax, dword [esi + 0x1148]
cmp eax, ebp
je 0x43927d
cmp dword [eax + 0x48], ebp
jle 0x43927d
push dword [0x50efe8]
call fcn.0043577c
mov ebp, eax
cmp esi, ebp
je 0x43927d
mov eax, dword [esi + 0x1148]
push dword [eax + 0x48]
push str.node_to_color_has__i_companion_ports
push 5
call fcn.0044fe2e
add esp, 0xc
test byte [esp + 0x24], 1
jne 0x43927d
test ebp, ebp
je 0x43927d
mov eax, dword [ebp + 0x1148]
test eax, eax
je 0x43927d
mov eax, dword [eax + 0x48]
test eax, eax
je 0x43927d
push eax
push str.selected_node_has__i_companion_ports
push 5
call fcn.0044fe2e
mov eax, dword [ebp + 0x1148]
mov ecx, dword [eax + 0x48]
add esp, 0xc
xor edx, edx
test ecx, ecx
jle 0x43927d
add eax, 0x38
cmp dword [eax], esi
je 0x4391e2
inc edx
add eax, 4
cmp edx, ecx
jl 0x4391d1
jmp 0x43927d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 5
mov edi, eax
sub edi, dword [0x50efec]
pop ebp
cmp dword [0x51adac], ebp
jl 0x439211
push edi
lea eax, [esi + 0xd90]
push eax
push str.companion_highlight_for__s___selAge_u
push ebp
call fcn.0044fe2e
add esp, 0x10
mov edx, dword [0x50e740]
mov ecx, dword [0x50e730]
xor eax, eax
inc eax
cmp edx, eax
je 0x439235
cmp edx, 2
jne 0x43927d
mov edx, dword [0x50e734]
add edx, ecx
cmp edi, edx
jae 0x43927d
mov edx, dword [esi + 0x1148]
cmp dword [edx + 4], 2
mov edx, dword [0x50e660]
jne 0x439250
mov ebx, dword [edx*4 + 0x50e764]
jmp 0x439257
mov ebx, dword [edx*4 + 0x50e76c]
cmp edi, ecx
sbb ecx, ecx
inc ecx
inc ecx
mov dword [esi + 0x118c], ecx
cmp dword [0x51adac], ebp
mov dword [0x50e724], eax
jl 0x43927d
push str.set_g_AnyTreeItemColoredtrue___companion_
push ebp
call fcn.0044fe2e
pop ecx
pop ecx
xor ebp, ebp
cmp dword [0x50e660], ebp
jne 0x4392c7
test byte [esp + 0x24], 0x10
jne 0x4392f7
test byte [esp + 0x24], 1
je 0x4392f7
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
mov ecx, dword [esp + 0x28]
cmp eax, dword [ecx]
jne 0x4392c7
cmp dword [0x51adac], 5
mov eax, dword [0x50e77c]
mov dword [esp + 0x20], eax
jl 0x4392c7
push eax
push str.changed_default_bkcolor_to_0x_X_bc_selected_no_focused
push 5
call fcn.0044fe2e
add esp, 0xc
cmp dword [0x50e660], 1
jne 0x4392f7
test byte [esp + 0x24], 0x10
je 0x4392de
mov eax, dword [0x50e778]
jmp 0x4392ea
test byte [esp + 0x24], 1
je 0x4392f7
mov eax, dword [0x50e780]
mov dword [esp + 0x20], eax
mov eax, dword [0x4a5af4]
mov dword [esp + 0x14], eax
cmp dword [esi + 8], ebp
jne 0x439303
xor eax, eax
jmp 0x439861
cmp edi, 0xffffffff
jne 0x43933d
lea eax, [esi + 0x1190]
cmp dword [eax], ebp
je 0x439314
mov dword [eax], ebp
add esi, 0x118c
cmp dword [esi], ebp
je 0x439320
mov dword [esi], ebp
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
cmp eax, dword [ecx]
je 0x4392fc
mov dword [ecx], eax
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x14]
mov dword [eax], ecx
jmp 0x43985e
mov eax, dword [esp + 0x24]
and eax, 1
mov dword [esp + 0x18], eax
je 0x439424
cmp dword [0x50e738], ebp
jne 0x439424
cmp dword [0x51adac], 5
jl 0x439371
push str._node_is_selected_and_bHighlightSelItemfalse____no_hilight
push 5
call fcn.0044fe2e
pop ecx
pop ecx
cmp dword [esi + 0x1188], 2
jne 0x4393f5
mov eax, dword [esi + 0x1154]
cmp eax, ebp
je 0x439389
cmp dword [eax + 8], ebp
jne 0x4393f5
mov eax, dword [0x50e730]
cmp edi, eax
jbe 0x4393f5
add eax, 0x3e8
cmp edi, eax
jae 0x4393f5
lea edi, [esi + 0x24]
cmp word [edi], bp
je 0x4393f5
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.00407b32
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
cmp eax, dword [ecx]
je 0x4392fc
mov dword [ecx], eax
cmp dword [0x50e660], 0
je 0x43985e
mov eax, dword [0x4a5af4]
mov ecx, dword [esp + 0x2c]
mov dword [ecx], eax
jmp 0x43985e
cmp dword [esi + 0x1188], ebp
jne 0x439435
cmp dword [0x50e740], 2
jne 0x43945e
mov eax, dword [0x50e730]
cmp edi, eax
jae 0x439485
cmp dword [0x51adac], 5
jl 0x4395f9
push 0
push eax
push edi
push str._age___u____HighlightDuration___u______u__
push 5
call fcn.0044fe2e
add esp, 0x14
push 5
pop ebp
cmp dword [0x51adac], ebp
jl 0x4395f9
mov eax, dword [esi + 0x1154]
test eax, eax
jne 0x4395b0
push str._pTNI__pDeviceInfo_is_NULL
jmp 0x4395c5
mov ecx, dword [0x50e734]
lea ebp, [ecx + eax]
cmp edi, ebp
jae 0x4394eb
mov ecx, edi
sub ecx, eax
mov eax, ecx
imul eax, eax, 0x64
xor edx, edx
div dword [0x50e734]
cmp dword [0x51adac], 5
mov dword [esp + 0x10], eax
jl 0x4394c9
push eax
push dword [0x50e734]
push ecx
push ebp
push edi
push str._age___u____HighlightDurationFadingDuration___u_____100_u__u_u__
push 5
call fcn.0044fe2e
add esp, 0x1c
lea eax, [esi + 0x1190]
cmp dword [eax], 1
jne 0x43950f
cmp dword [esi + 0x18], 8
mov dword [eax], 2
jne 0x43950f
push 1
mov ecx, esi
call fcn.0040b963
jmp 0x43950f
cmp dword [0x51adac], 5
mov dword [esp + 0x10], 0x64
jl 0x43951a
push 0x64
push ebp
push edi
push str._age___u____HighlightDurationFadingDuration___u______u__
push 5
call fcn.0044fe2e
add esp, 0x14
cmp dword [esp + 0x10], 0x64
jne 0x43945e
push str.set_pTNI__JustArrivedRemoved__JUST_0
push 4
call fcn.0044fe2e
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 0x439581
cmp dword [0x51adac], 5
jl 0x4392fc
mov eax, dword [esi + 0x828]
cmp word [eax], dx
jne 0x43956c
lea eax, [esi + 0xd90]
push eax
push str._fading_finished____unchanged_colors____return_false___s_
push 5
call fcn.0044fe2e
add esp, 0xc
jmp 0x4392fc
mov edx, dword [esp + 0x2c]
mov dword [eax], ecx
mov ecx, dword [esp + 0x14]
mov dword [edx], ecx
cmp dword [0x51adac], 5
jl 0x43985e
push dword [eax]
push str._fading_finished____return_true_bc_crBack0x_X
push 5
call fcn.0044fe2e
add esp, 0xc
jmp 0x43985e
mov ecx, dword [0x510c44]
push eax
call fcn.0040121c
test eax, eax
jne 0x4395cf
push str._pTNI__pDeviceInfo_is_invalid
push ebp
call fcn.0044fe2e
pop ecx
pop ecx
jmp 0x4395f9
mov edi, dword [esi + 0x1154]
mov ecx, dword [0x510c44]
push edi
call fcn.004011ae
push eax
push dword [edi + 0x3a74]
push dword [edi + 8]
push str._IsPresent_i_Prob_u_IsSrDev_i
push ebp
call fcn.0044fe2e
add esp, 0x14
mov eax, dword [0x50e660]
xor edi, edi
cmp eax, 1
jg 0x43971e
cmp dword [esi + 0x1188], edi
je 0x43971e
mov eax, dword [esi + 0x1154]
cmp eax, edi
je 0x439650
mov eax, dword [eax + 0x3a74]
cmp eax, edi
je 0x439631
cmp dword [esi + 0x11ac], edi
jne 0x439662
push eax
call fcn.0044e8cb
test eax, eax
jne 0x439662
push dword [esi + 0x1154]
mov ecx, dword [0x510c44]
call fcn.004011ae
test eax, eax
jne 0x439662
mov eax, dword [esi + 0x1154]
cmp eax, edi
jne 0x43968e
cmp dword [esi + 0x11ac], edi
je 0x43968a
cmp dword [0x51adac], 5
jl 0x439679
push str._cyan
push 5
call fcn.0044fe2e
pop ecx
pop ecx
mov eax, dword [0x50e660]
mov ebx, dword [eax*4 + 0x50e75c]
jmp 0x43971e
cmp eax, edi
je 0x4396fb
mov ecx, dword [0x510c44]
push eax
call fcn.0040121c
test eax, eax
je 0x4396fb
mov esi, dword [esi + 0x1154]
cmp dword [esi + 8], edi
je 0x4396fb
cmp dword [esi + 0x3a74], edi
je 0x4396d6
cmp dword [0x51adac], 5
jl 0x4396c8
push str._yellow
push 5
call fcn.0044fe2e
pop ecx
pop ecx
mov eax, dword [0x50e660]
mov ebx, dword [eax*4 + 0x50e754]
jmp 0x43971e
cmp dword [0x51adac], 5
jl 0x4396ed
push str._green
push 5
call fcn.0044fe2e
pop ecx
pop ecx
mov eax, dword [0x50e660]
mov ebx, dword [eax*4 + 0x50e744]
jmp 0x43971e
cmp dword [0x51adac], 5
jl 0x439712
push str._red
push 5
call fcn.0044fe2e
pop ecx
pop ecx
mov eax, dword [0x50e660]
mov ebx, dword [eax*4 + 0x50e74c]
cmp ebx, 0xffffffff
je 0x4392fc
cmp eax, edi
jne 0x4397e0
cmp dword [0x50e738], edi
je 0x4397e0
push dword [esp + 0x24]
push str.A_uItemState0x_X
push 5
pop esi
push esi
call fcn.0044fe2e
add esp, 0xc
cmp dword [esp + 0x18], edi
je 0x4397e0
push 0x46cc30
push esi
call fcn.0044fe2e
pop ecx
pop ecx
push 0xe
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
call fcn.0044ad59
test eax, eax
je 0x4397e0
cmp dword [0x51adac], esi
jl 0x439790
push ebx
push str.make_dark_0x_08X
push esi
call fcn.0044fe2e
add esp, 0xc
mov cl, bl
cmp bl, 0x96
jb 0x43979a
sub cl, 0x16
mov eax, ebx
shr eax, 8
cmp al, 0x96
jb 0x4397a5
add al, 0xd4
shr ebx, 0x10
mov dl, bl
cmp dl, 0x96
jb 0x4397b2
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 [0x51adac], 5
jl 0x4397de
push ebx
push str.made_dark_0x_08X
push 5
call fcn.0044fe2e
add esp, 0xc
xor edi, edi
push dword [esp + 0x20]
push dword [esp + 0x14]
push ebx
call fcn.0042cc00
mov ecx, dword [esp + 0x28]
mov dword [ecx], eax
cmp dword [0x50e660], edi
je 0x439807
mov eax, dword [0x4a5af4]
mov edx, dword [esp + 0x2c]
mov dword [edx], eax
cmp dword [0x51adac], 5
jl 0x43982a
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.0044fe2e
add esp, 0x18
cmp dword [0x50e66c], edi
jne 0x43985e
push 1
push dword [0x50e67c]
call fcn.00429b9a
mov eax, dword [0x4a5b10]
push 0x432f30
add eax, 0x64
push eax
push 0x92025971
push dword [0x50e67c]
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