Function at 0x4728ec
Capabilities:
Log keystrokes via input method manager
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff98
push ebx
mov byte [ebp - 0x12], cl
mov byte [ebp - 0x11], dl
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call sym.LookAtLan.exe__Tb2item_TTBView_ValidatePositions_qqrv
cmp byte [ebp - 0x12], 0
je 0x472916
mov eax, dword [ebp - 4]
or byte [eax + 0x92], 0x40
jmp 0x472920
mov eax, dword [ebp - 4]
and byte [eax + 0x92], 0xbf
mov eax, dword [ebp - 4]
or byte [eax + 0x92], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xb4]
call fcn.00521ee0
call sym.LookAtLan.exe__Tb2item_TBBeginCapture_qqrxui
xor eax, eax
push ebp
push 0x4731a0
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x473150
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov dword [ebp - 0x10], eax
mov byte [ebp - 0xc], 0
mov byte [ebp - 0xb], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
cmp byte [ebp - 0x11], 0
je 0x4729d2
call sub.USER32.DLL_GetMessagePos
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
lea edx, [ebp - 0x54]
call fcn.00550ed4
lea edx, [ebp - 0x54]
lea ecx, [ebp - 0x1c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x8c]
call sym.LookAtLan.exe__Tb2item_TTBItemViewer_ScreenToClient_qqrrx14Windows_TPoint
mov eax, dword [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x8c]
mov ecx, dword [ebp - 0x1c]
mov dl, byte [0x4731b0]
mov ebx, dword [eax]
call dword [ebx + 0x24]
cmp byte [ebp - 0xb], 0
je 0x4729ce
call fcn.0055d758
call fcn.0055d758
jmp 0x4731a7
mov byte [ebp - 0xc], 0
mov eax, dword [ebp - 4]
test byte [eax + 0x92], 0x40
je 0x4729e9
mov dl, byte [ebp + 0x10]
mov eax, dword [ebp - 4]
call sym.LookAtLan.exe__Tb2item_TTBView_OpenChildPopup_qqrxo
mov byte [ebp - 0x13], 1
jmp 0x47312b
cmp byte [ebp - 0x13], 0
jne 0x4729fd
call sub.USER32.DLL_WaitMessage
mov byte [ebp - 0x13], 0
jmp 0x473107
mov eax, dword [ebp - 0x48]
sub eax, 0x201
je 0x472a19
sub eax, 3
jne 0x472b12
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 0x40]
call fcn.00550ed4
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x4c]
push eax
call sub.USER32.DLL_ClientToScreen
lea eax, [ebp - 0x1c]
mov dl, 1
call fcn.0051a730
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov edx, dword [sym.LookAtLan.exe__Tb2item_TTBPopupWindow_]
call fcn.0055d098
test al, al
je 0x472a69
mov eax, dword [ebp - 0x20]
mov edx, dword [eax + 0x1fc]
mov eax, dword [ebp - 4]
call sym.LookAtLan.exe__Tb2item_TTBView_ContainsView_qqrp15Tb2item_TTBView
test al, al
jne 0x472b12
mov eax, dword [ebp - 4]
cmp byte [eax + 0x50], 0
jne 0x472ab8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xb4]
cmp eax, dword [ebp - 0x20]
jne 0x472ab8
lea ecx, [ebp - 0x54]
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xb4]
call fcn.0051b89c
push dword [ebp - 0x50]
push dword [ebp - 0x54]
lea edx, [ebp - 0x68]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xb4]
mov ecx, dword [eax]
call dword [ecx + 0x40]
lea eax, [ebp - 0x68]
push eax
call sub.USER32.DLL_PtInRect
test eax, eax
jne 0x472ac7
call fcn.0055d758
call fcn.0055d758
jmp 0x4731a7
cmp dword [ebp - 0x48], 0x201
jne 0x472b12
push ebp
lea eax, [ebp - 0x1c]
mov dl, 1
call fcn.0047232c
pop ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x8c], 0
je 0x472b03
mov eax, dword [ebp - 4]
cmp byte [eax + 0x68], 0
je 0x472b03
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x8c]
mov eax, dword [eax + 0x18]
test byte [eax + 0x54], 0x10
je 0x472b12
call fcn.0055d758
call fcn.0055d758
jmp 0x4731a7
push 3
push 0
push 0
push 0
lea eax, [ebp - 0x4c]
push eax
call sub.USER32.DLL_PeekMessageA
test eax, eax
je 0x473107
mov eax, dword [ebp - 0x48]
cmp eax, 0x113
jg 0x472b53
je 0x472d17
sub eax, 0x7b
je case.0x472e82.512
add eax, 0xffffff7b
sub eax, 9
jb 0x472b71
jmp 0x4730bf
sub eax, 0x118
je case.0x472e82.512
add eax, 0xffffff18
sub eax, 0xb
jb 0x472e6b
jmp 0x4730bf
mov eax, dword [0x5ae3ec]
mov eax, dword [eax]
call fcn.0051047c
push 1
call sub.USER32.DLL_GetKeyState
test ax, ax
jl 0x472b9f
cmp byte [ebp + 0xc], 0
je 0x472b9b
push 2
call sub.USER32.DLL_GetKeyState
test ax, ax
jl 0x472b9f
xor eax, eax
jmp 0x472ba1
mov al, 1
mov byte [ebp - 0x26], al
mov eax, dword [ebp - 0x48]
sub eax, 0x100
je 0x472bc6
sub eax, 2
je 0x472c3a
sub eax, 2
je 0x472bc6
sub eax, 2
je 0x472c3a
jmp case.0x472e82.512
cmp dword [ebp - 0x44], 0xe5
jne 0x472bdb
mov eax, dword [ebp - 0x4c]
push eax
call sub.IMM32.DLL_ImmGetVirtualKey
mov dword [ebp - 0x44], eax
cmp byte [ebp - 0x26], 0
je 0x472beb
cmp dword [ebp - 0x44], 0x70
jne case.0x472e82.512
mov ax, word [ebp - 0x44]
mov word [ebp - 0x28], ax
push ebp
mov eax, dword [ebp - 0x40]
call fcn.00506f5c
push eax
push ebp
call fcn.00472264
pop ecx
lea edx, [ebp - 0x28]
pop ecx
call fcn.00472660
pop ecx
test al, al
je 0x472c21
call fcn.0055d758
call fcn.0055d758
jmp 0x4731a7
cmp word [ebp - 0x28], 0
je case.0x472e82.512
lea eax, [ebp - 0x4c]
push eax
call sub.USER32.DLL_TranslateMessage
jmp case.0x472e82.512
cmp byte [ebp - 0x26], 0
jne case.0x472e82.512
push ebp
call fcn.00472264
pop ecx
mov dword [ebp - 0x24], eax
push 0
lea eax, [ebp - 0x25]
push eax
mov ecx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x24]
mov edx, dword [eax + 0x8c]
mov eax, dword [ebp - 0x24]
call sym.LookAtLan.exe__Tb2item_TTBView_NextSelectableWithAccel_qqrp21Tb2item_TTBItemViewercoro
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x472ccd
mov eax, dword [ebp - 0x44]
sub eax, 0x20
je 0x472c7e
sub eax, 0xd
jne 0x472cc1
mov eax, dword [ebp - 4]
cmp byte [eax + 0x50], 0
jne 0x472cc1
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 4]
jne 0x472cc1
call sub.USER32.DLL_GetActiveWindow
test eax, eax
je 0x472cc1
mov eax, dword [ebp - 8]
mov byte [eax], 2
call sub.USER32.DLL_GetActiveWindow
mov edx, dword [ebp - 8]
mov dword [edx + 4], eax
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x44]
mov dword [eax + 8], edx
call fcn.0055d758
call fcn.0055d758
jmp 0x4731a7
push 0
call sub.USER32.DLL_MessageBeep
jmp case.0x472e82.512
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x24]
call sym.LookAtLan.exe__Tb2item_TTBView_SetSelected_qqrp21Tb2item_TTBItemViewer
cmp byte [ebp - 0x25], 0
je 0x472d0a
mov word [ebp - 0x28], 0xd
push ebp
lea edx, [ebp - 0x28]
mov cl, byte [0x4731b0]
mov eax, dword [ebp - 0x24]
call fcn.00472660
pop ecx
test al, al
je 0x472d0a
call fcn.0055d758
call fcn.0055d758
jmp 0x4731a7
mov eax, dword [ebp - 0x24]
call sym.LookAtLan.exe__Tb2item_TTBView_ScrollSelectedIntoView_qqrv
jmp case.0x472e82.512
cmp dword [ebp - 0x4c], 0
je 0x472e5d
mov eax, dword [ebp - 0x4c]
cmp eax, dword [0x5aeb30]
jne 0x472e5d
mov edx, dword [ebp - 0x44]
dec edx
mov eax, dword [0x5aeb2c]
call fcn.005451fc
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x94]
cmp eax, dword [ebp - 0x44]
jne 0x472dbb
mov eax, dword [ebp - 0x24]
add eax, 0x98
call fcn.0046ded8
mov eax, dword [ebp - 0x24]
add eax, 0x94
call fcn.0046ded8
mov eax, dword [ebp - 0x24]
call sym.LookAtLan.exe__Tb2item_TTBView_CloseChildPopups_qqrv
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x8c]
mov edx, dword [ebp - 0x24]
cmp eax, dword [edx + 0x6c]
je case.0x472e82.512
mov eax, dword [ebp - 0x24]
cmp dword [eax + 0x8c], 0
je case.0x472e82.512
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x8c]
mov eax, dword [eax + 0x18]
cmp byte [eax + 0x32], 0
je case.0x472e82.512
xor edx, edx
mov eax, dword [ebp - 0x24]
call sym.LookAtLan.exe__Tb2item_TTBView_OpenChildPopup_qqrxo
jmp case.0x472e82.512
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x98]
cmp eax, dword [ebp - 0x44]
jne 0x472de3
mov eax, dword [ebp - 0x24]
add eax, 0x98
call fcn.0046ded8
mov eax, dword [ebp - 0x24]
call sym.LookAtLan.exe__Tb2item_TTBView_CloseChildPopups_qqrv
jmp case.0x472e82.512
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x9c]
cmp eax, dword [ebp - 0x44]
jne 0x472e1e
mov eax, dword [ebp - 0x24]
cmp byte [eax + 0x91], 0
je 0x472e0c
xor edx, edx
mov eax, dword [ebp - 0x24]
call sym.LookAtLan.exe__Tb2item_TTBView_Scroll_qqro
jmp case.0x472e82.512
mov eax, dword [ebp - 0x24]
add eax, 0x9c
call fcn.0046ded8
jmp case.0x472e82.512
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0xa0]
cmp eax, dword [ebp - 0x44]
jne case.0x472e82.512
mov eax, dword [ebp - 0x24]
cmp byte [eax + 0x90], 0
je 0x472e4b
mov dl, 1
mov eax, dword [ebp - 0x24]
call sym.LookAtLan.exe__Tb2item_TTBView_Scroll_qqro
jmp case.0x472e82.512
mov eax, dword [ebp - 0x24]
add eax, 0xa0
call fcn.0046ded8
jmp case.0x472e82.512
lea eax, [ebp - 0x4c]
push eax
call sub.USER32.DLL_DispatchMessageA
jmp case.0x472e82.512
mov eax, dword [ebp - 0x48]
add eax, 0xfffffe00
cmp eax, 0xa
ja case.0x472e82.512
mov al, byte [eax + 0x472e89]
jmp dword [eax*4 + 0x472e94]
mov eax, dword [ebp - 0x38]
cmp eax, dword [0x5aeb20]
jne 0x472ebe
mov eax, dword [ebp - 0x34]
cmp eax, dword [0x5aeb24]
je 0x472ed7
mov eax, dword [ebp - 0x38]
mov dword [0x5aeb20], eax
mov eax, dword [ebp - 0x34]
mov dword [0x5aeb24], eax
push ebp
call fcn.00472714
pop ecx
push ebp
lea edx, [ebp - 0x30]
lea eax, [ebp - 0x24]
call fcn.0047257c
pop ecx
test al, al
je case.0x472e82.512
lea ecx, [ebp - 0x1c]
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0x30]
call sym.LookAtLan.exe__Tb2item_TTBItemViewer_ScreenToClient_qqrrx14Windows_TPoint
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x30]
mov ebx, dword [eax]
call dword [ebx + 0x28]
jmp case.0x472e82.512
push ebp
lea edx, [ebp - 0x30]
lea eax, [ebp - 0x24]
call fcn.0047257c
pop ecx
test al, al
je case.0x472e82.512
lea ecx, [ebp - 0x1c]
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0x30]
call sym.LookAtLan.exe__Tb2item_TTBItemViewer_ScreenToClient_qqrrx14Windows_TPoint
mov eax, dword [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
movsx edx, word [ebp - 0x42]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x30]
mov ebx, dword [eax]
call dword [ebx + 0x30]
jmp case.0x472e82.512
cmp dword [ebp - 0x48], 0x204
setne al
or al, byte [ebp + 0xc]
je case.0x472e82.512
mov eax, dword [0x5ae3ec]
mov eax, dword [eax]
call fcn.0051047c
mov byte [ebp - 0xc], 0
mov eax, dword [ebp - 4]
and byte [eax + 0x92], 0xef
push ebp
lea eax, [ebp - 0x38]
mov dl, 1
call fcn.0047232c
pop ecx
push ebp
lea edx, [ebp - 0x30]
lea eax, [ebp - 0x24]
call fcn.0047257c
pop ecx
test al, al
je case.0x472e82.512
cmp dword [ebp - 0x48], 0x203
je 0x472fb1
mov al, byte [0x4731b0]
mov byte [ebp - 0x29], al
jmp 0x472fb9
mov al, byte [0x4731b4]
mov byte [ebp - 0x29], al
lea ecx, [ebp - 0x1c]
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0x30]
call sym.LookAtLan.exe__Tb2item_TTBItemViewer_ScreenToClient_qqrrx14Windows_TPoint
mov eax, dword [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x1c]
mov dl, byte [ebp - 0x29]
mov eax, dword [ebp - 0x30]
mov ebx, dword [eax]
call dword [ebx + 0x24]
cmp byte [ebp - 0xb], 0
je 0x472ff2
call fcn.0055d758
call fcn.0055d758
jmp 0x4731a7
call sub.USER32.DLL_GetMessagePos
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
lea edx, [ebp - 0x54]
call fcn.00550ed4
mov eax, dword [ebp - 0x54]
mov dword [0x5aeb20], eax
mov eax, dword [ebp - 0x50]
mov dword [0x5aeb24], eax
jmp case.0x472e82.512
cmp dword [ebp - 0x48], 0x202
sete al
or al, byte [ebp + 0xc]
je case.0x472e82.512
push ebp
lea eax, [ebp - 0x38]
xor edx, edx
call fcn.0047232c
pop ecx
push ebp
lea edx, [ebp - 0x30]
lea eax, [ebp - 0x24]
call fcn.0047257c
pop ecx
test al, al
jne 0x47308a
cmp dword [ebp - 0x24], 0
je 0x473063
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 4]
jne case.0x472e82.512
mov eax, dword [ebp - 4]
cmp byte [eax + 0x51], 0
je case.0x472e82.512
mov eax, dword [ebp - 4]
test byte [eax + 0x92], 0x10
jne 0x47307e
call fcn.0055d758
call fcn.0055d758
jmp 0x4731a7
mov eax, dword [ebp - 4]
and byte [eax + 0x92], 0xef
jmp case.0x472e82.512
lea ecx, [ebp - 0x1c]
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0x30]
call sym.LookAtLan.exe__Tb2item_TTBItemViewer_ScreenToClient_qqrrx14Windows_TPoint
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x30]
mov ebx, dword [eax]
call dword [ebx + 0x2c]
cmp byte [ebp - 0xb], 0
je case.0x472e82.512
call fcn.0055d758
call fcn.0055d758
jmp 0x4731a7
lea eax, [ebp - 0x4c]
push eax
call sub.USER32.DLL_DispatchMessageA
cmp dword [0x5aeb20], 0x80000000
jne 0x473100
call sub.USER32.DLL_GetMessagePos
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
lea edx, [ebp - 0x54]
call fcn.00550ed4
mov eax, dword [ebp - 0x54]
mov dword [0x5aeb20], eax
mov eax, dword [ebp - 0x50]
mov dword [0x5aeb24], eax
push ebp
call fcn.00472714
pop ecx
push ebp
call fcn.00472844
pop ecx
push ebp
call fcn.00472644
pop ecx
test al, al
je 0x47312b
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x4c]
push eax
call sub.USER32.DLL_PeekMessageA
test eax, eax
jne 0x472a06
push ebp
call fcn.00472644
pop ecx
test al, al
jne 0x4729f2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x473157
mov eax, dword [ebp - 4]
call sym.LookAtLan.exe__Tb2item_TTBView_CancelCapture_qqrv
ret
pop ebx
mov esp, ebp
pop ebp
ret 0xc