Function at 0x464930
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov byte [ebp - 5], 1
cmp byte [ebx + 4], 0
jne 0x464953
mov byte [ebp - 5], 0
jmp 0x464db6
call fcn.00475b24
test al, al
je 0x46497f
cmp esi, 0x201
je 0x464974
cmp esi, 0x203
je 0x464974
cmp esi, 0x100
jne 0x46497f
mov eax, dword [ebx + 0x234]
call fcn.00463d04
cmp byte [ebx + 5], 0
je 0x464a75
cmp esi, 0x201
je 0x464999
cmp esi, 0x203
jne 0x464a07
mov eax, dword [ebp + 8]
call fcn.00407894
movsx edx, ax
lea ecx, [ebp - 0xd]
movsx eax, word [ebp + 8]
call fcn.00419f48
mov edx, dword [ebx + 0x208]
mov eax, dword [ebp - 0xd]
cmp edx, eax
jg 0x464a75
add edx, dword [ebx + 0x218]
cmp eax, edx
jge 0x464a75
mov eax, dword [ebp - 9]
cmp eax, dword [ebx + 0x20c]
jl 0x464a75
mov eax, dword [ebx + 0x20c]
add eax, dword [ebx + 0x220]
cmp eax, dword [ebp - 9]
jle 0x464a75
mov byte [ebx + 7], 1
call fcn.00475a64
push eax
call sub.user32.dll_SetCapture
jmp 0x464db6
cmp esi, 0x202
jne 0x464a75
cmp byte [ebx + 7], 0
je 0x464a75
mov eax, dword [ebp + 8]
call fcn.00407894
movsx edx, ax
lea ecx, [ebp - 0xd]
movsx eax, word [ebp + 8]
call fcn.00419f48
mov edx, dword [ebx + 0x208]
mov eax, dword [ebp - 0xd]
cmp edx, eax
jg 0x464a75
add edx, dword [ebx + 0x218]
cmp eax, edx
jge 0x464a75
mov eax, dword [ebp - 9]
cmp eax, dword [ebx + 0x20c]
jl 0x464a75
mov eax, dword [ebx + 0x20c]
add eax, dword [ebx + 0x220]
cmp eax, dword [ebp - 9]
jle 0x464a75
call sub.user32.dll_ReleaseCapture
mov byte [ebx + 7], 0
mov al, byte [ebx + 6]
xor al, 1
mov byte [ebx + 6], al
jmp 0x464db6
cmp byte [ebx + 6], 0
je 0x464a84
mov byte [ebp - 5], 0
jmp 0x464db6
cmp dword [0x4ec884], 0
je 0x464ac0
mov eax, dword [0x4ec884]
cmp ebx, dword [eax + 0x40]
jne 0x464ac0
mov eax, dword [0x4ec884]
mov edx, dword [eax]
call dword [edx + 8]
test al, al
je 0x464ac0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, esi
mov eax, dword [0x4ec884]
mov edi, dword [eax]
call dword [edi + 0x24]
test al, al
jne 0x464db6
mov eax, esi
cmp eax, 0x100
jge 0x464add
sub eax, 3
je 0x464b13
sub eax, 2
je 0x464b13
sub eax, 0x17
je 0x464b30
jmp 0x464db2
add eax, 0xffffff00
sub eax, 2
jb 0x464b81
add eax, 0xfffffffe
sub eax, 2
jb 0x464b81
add eax, 0xffffff06
sub eax, 0xe
jb 0x464ca3
sub eax, 7
je 0x464da6
jmp 0x464db2
lea ecx, [ebp - 0x1c]
or edx, 0xffffffff
or eax, 0xffffffff
call fcn.00419f48
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.00464e28
jmp 0x464db2
cmp dword [0x4ec884], 0
je 0x464db2
mov eax, dword [0x4ec884]
cmp ebx, dword [eax + 0x40]
jne 0x464db2
mov eax, dword [0x4ec884]
mov edx, dword [eax]
call dword [edx + 8]
test al, al
je 0x464db2
cmp dword [ebp + 0xc], 0
je 0x464b72
mov eax, dword [0x4ec884]
mov edx, dword [eax]
call dword [edx + 0x34]
jmp 0x464db2
mov eax, dword [0x4ec884]
mov edx, dword [eax]
call dword [edx + 0x38]
jmp 0x464db2
cmp dword [0x4ec884], 0
je 0x464bbd
mov eax, dword [0x4ec884]
cmp ebx, dword [eax + 0x40]
jne 0x464bbd
mov eax, dword [0x4ec884]
mov edx, dword [eax]
call dword [edx + 8]
test al, al
je 0x464bbd
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, esi
mov eax, dword [0x4ec884]
mov edi, dword [eax]
call dword [edi + 0x28]
test al, al
jne 0x464db6
cmp esi, 0x100
jne 0x464c0c
cmp dword [0x4ec884], 0
jne 0x464c0c
mov eax, dword [ebx + 0x248]
call fcn.00405b38
dec eax
test eax, eax
jl 0x464c0c
inc eax
mov dword [ebp - 0x14], 0
mov edx, dword [ebx + 0x248]
mov ecx, dword [ebp - 0x14]
mov edi, dword [edx + ecx*4]
mov edx, dword [edi + 0xc]
cmp edx, dword [ebp + 0xc]
jne 0x464c06
mov eax, edi
mov edx, dword [eax]
call dword [edx + 0x44]
jmp 0x464db6
inc dword [ebp - 0x14]
dec eax
jne 0x464be6
cmp esi, 0x100
jne 0x464db2
cmp byte [ebx + 0x26d], 0
jne 0x464c2a
mov byte [ebp - 5], 0
jmp 0x464db6
mov eax, dword [ebp + 0xc]
sub eax, 9
je 0x464c7f
add eax, 0xffffffe4
sub eax, 2
jb 0x464c61
sub eax, 2
jae 0x464db2
cmp dword [0x4ec884], 0
je 0x464db2
mov dl, 1
mov eax, ebx
call fcn.004671b0
mov byte [ebp - 5], al
jmp 0x464db6
cmp dword [0x4ec884], 0
je 0x464db2
xor edx, edx
mov eax, ebx
call fcn.004671b0
mov byte [ebp - 5], al
jmp 0x464db6
push 0x10
call sub.user32.dll_GetKeyState
movsx eax, ax
test ah, 0x80
setne al
mov edx, eax
xor dl, 1
mov eax, ebx
call fcn.004671b0
mov byte [ebp - 5], al
jmp 0x464db6
cmp byte [ebx + 0x26e], 0
jne 0x464cb5
mov byte [ebp - 5], 0
jmp 0x464db6
mov eax, dword [ebp + 8]
call fcn.00407894
movsx edx, ax
lea ecx, [ebp - 0xd]
movsx eax, word [ebp + 8]
call fcn.00419f48
mov eax, dword [ebx + 0x210]
sub dword [ebp - 0xd], eax
mov eax, dword [ebx + 0x214]
sub dword [ebp - 9], eax
cmp byte [ebx + 5], 0
je 0x464ced
mov eax, dword [ebx + 0x220]
sub dword [ebp - 9], eax
cmp dword [0x4ec884], 0
je 0x464d2d
mov eax, dword [0x4ec884]
cmp ebx, dword [eax + 0x40]
jne 0x464d2d
mov eax, dword [0x4ec884]
mov edx, dword [eax]
call dword [edx + 8]
test al, al
je 0x464d2d
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0xd]
mov edx, esi
mov eax, dword [0x4ec884]
mov edi, dword [eax]
call dword [edi + 0x2c]
test al, al
jne 0x464db6
lea edx, [ebp - 0xd]
mov eax, ebx
call fcn.00464dc4
mov edi, eax
test edi, edi
je 0x464d62
mov eax, edi
mov edx, dword [eax]
call dword [edx + 8]
test al, al
je 0x464d62
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0xd]
mov edx, esi
mov eax, edi
mov edi, dword [eax]
call dword [edi + 0x2c]
test al, al
jne 0x464db6
jmp 0x464d8e
cmp esi, 0x201
jne 0x464d8e
cmp dword [0x4ec884], 0
je 0x464d8e
mov eax, dword [0x4ec884]
cmp ebx, dword [eax + 0x40]
jne 0x464d8e
mov eax, dword [0x4ec884]
mov edx, dword [eax]
call dword [edx + 0x38]
xor eax, eax
mov dword [0x4ec884], eax
sub esi, 0x200
jne 0x464db2
lea edx, [ebp - 0xd]
mov eax, ebx
call fcn.00464e28
mov byte [ebp - 5], 0
jmp 0x464db6
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 4]
je 0x464db2
mov byte [ebx + 7], 0
mov byte [ebp - 5], 0
mov al, byte [ebp - 5]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8