Function at 0x46a9fc
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 0x46aa1f
mov byte [ebp - 5], 0
jmp 0x46ae82
call fcn.0047bbf0
test al, al
je 0x46aa4b
cmp esi, 0x201
je 0x46aa40
cmp esi, 0x203
je 0x46aa40
cmp esi, 0x100
jne 0x46aa4b
mov eax, dword [ebx + 0x234]
call fcn.00469dc4
cmp byte [ebx + 5], 0
je 0x46ab41
cmp esi, 0x201
je 0x46aa65
cmp esi, 0x203
jne 0x46aad3
mov eax, dword [ebp + 8]
call fcn.00407484
movsx edx, ax
lea ecx, [ebp - 0xd]
movsx eax, word [ebp + 8]
call fcn.00419e88
mov edx, dword [ebx + 0x208]
mov eax, dword [ebp - 0xd]
cmp edx, eax
jg 0x46ab41
add edx, dword [ebx + 0x218]
cmp eax, edx
jge 0x46ab41
mov eax, dword [ebp - 9]
cmp eax, dword [ebx + 0x20c]
jl 0x46ab41
mov eax, dword [ebx + 0x20c]
add eax, dword [ebx + 0x220]
cmp eax, dword [ebp - 9]
jle 0x46ab41
mov byte [ebx + 7], 1
call fcn.0047bb30
push eax
call sub.user32.dll_SetCapture
jmp 0x46ae82
cmp esi, 0x202
jne 0x46ab41
cmp byte [ebx + 7], 0
je 0x46ab41
mov eax, dword [ebp + 8]
call fcn.00407484
movsx edx, ax
lea ecx, [ebp - 0xd]
movsx eax, word [ebp + 8]
call fcn.00419e88
mov edx, dword [ebx + 0x208]
mov eax, dword [ebp - 0xd]
cmp edx, eax
jg 0x46ab41
add edx, dword [ebx + 0x218]
cmp eax, edx
jge 0x46ab41
mov eax, dword [ebp - 9]
cmp eax, dword [ebx + 0x20c]
jl 0x46ab41
mov eax, dword [ebx + 0x20c]
add eax, dword [ebx + 0x220]
cmp eax, dword [ebp - 9]
jle 0x46ab41
call sub.user32.dll_ReleaseCapture
mov byte [ebx + 7], 0
mov al, byte [ebx + 6]
xor al, 1
mov byte [ebx + 6], al
jmp 0x46ae82
cmp byte [ebx + 6], 0
je 0x46ab50
mov byte [ebp - 5], 0
jmp 0x46ae82
cmp dword [0x4f21d8], 0
je 0x46ab8c
mov eax, dword [0x4f21d8]
cmp ebx, dword [eax + 0x40]
jne 0x46ab8c
mov eax, dword [0x4f21d8]
mov edx, dword [eax]
call dword [edx + 8]
test al, al
je 0x46ab8c
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, esi
mov eax, dword [0x4f21d8]
mov edi, dword [eax]
call dword [edi + 0x24]
test al, al
jne 0x46ae82
mov eax, esi
cmp eax, 0x100
jge 0x46aba9
sub eax, 3
je 0x46abdf
sub eax, 2
je 0x46abdf
sub eax, 0x17
je 0x46abfc
jmp 0x46ae7e
add eax, 0xffffff00
sub eax, 2
jb 0x46ac4d
add eax, 0xfffffffe
sub eax, 2
jb 0x46ac4d
add eax, 0xffffff06
sub eax, 0xe
jb 0x46ad6f
sub eax, 7
je 0x46ae72
jmp 0x46ae7e
lea ecx, [ebp - 0x1c]
or edx, 0xffffffff
or eax, 0xffffffff
call fcn.00419e88
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.0046aef4
jmp 0x46ae7e
cmp dword [0x4f21d8], 0
je 0x46ae7e
mov eax, dword [0x4f21d8]
cmp ebx, dword [eax + 0x40]
jne 0x46ae7e
mov eax, dword [0x4f21d8]
mov edx, dword [eax]
call dword [edx + 8]
test al, al
je 0x46ae7e
cmp dword [ebp + 0xc], 0
je 0x46ac3e
mov eax, dword [0x4f21d8]
mov edx, dword [eax]
call dword [edx + 0x34]
jmp 0x46ae7e
mov eax, dword [0x4f21d8]
mov edx, dword [eax]
call dword [edx + 0x38]
jmp 0x46ae7e
cmp dword [0x4f21d8], 0
je 0x46ac89
mov eax, dword [0x4f21d8]
cmp ebx, dword [eax + 0x40]
jne 0x46ac89
mov eax, dword [0x4f21d8]
mov edx, dword [eax]
call dword [edx + 8]
test al, al
je 0x46ac89
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, esi
mov eax, dword [0x4f21d8]
mov edi, dword [eax]
call dword [edi + 0x28]
test al, al
jne 0x46ae82
cmp esi, 0x100
jne 0x46acd8
cmp dword [0x4f21d8], 0
jne 0x46acd8
mov eax, dword [ebx + 0x248]
call fcn.004055f4
dec eax
test eax, eax
jl 0x46acd8
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 0x46acd2
mov eax, edi
mov edx, dword [eax]
call dword [edx + 0x44]
jmp 0x46ae82
inc dword [ebp - 0x14]
dec eax
jne 0x46acb2
cmp esi, 0x100
jne 0x46ae7e
cmp byte [ebx + 0x26d], 0
jne 0x46acf6
mov byte [ebp - 5], 0
jmp 0x46ae82
mov eax, dword [ebp + 0xc]
sub eax, 9
je 0x46ad4b
add eax, 0xffffffe4
sub eax, 2
jb 0x46ad2d
sub eax, 2
jae 0x46ae7e
cmp dword [0x4f21d8], 0
je 0x46ae7e
mov dl, 1
mov eax, ebx
call fcn.0046d27c
mov byte [ebp - 5], al
jmp 0x46ae82
cmp dword [0x4f21d8], 0
je 0x46ae7e
xor edx, edx
mov eax, ebx
call fcn.0046d27c
mov byte [ebp - 5], al
jmp 0x46ae82
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.0046d27c
mov byte [ebp - 5], al
jmp 0x46ae82
cmp byte [ebx + 0x26e], 0
jne 0x46ad81
mov byte [ebp - 5], 0
jmp 0x46ae82
mov eax, dword [ebp + 8]
call fcn.00407484
movsx edx, ax
lea ecx, [ebp - 0xd]
movsx eax, word [ebp + 8]
call fcn.00419e88
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 0x46adb9
mov eax, dword [ebx + 0x220]
sub dword [ebp - 9], eax
cmp dword [0x4f21d8], 0
je 0x46adf9
mov eax, dword [0x4f21d8]
cmp ebx, dword [eax + 0x40]
jne 0x46adf9
mov eax, dword [0x4f21d8]
mov edx, dword [eax]
call dword [edx + 8]
test al, al
je 0x46adf9
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0xd]
mov edx, esi
mov eax, dword [0x4f21d8]
mov edi, dword [eax]
call dword [edi + 0x2c]
test al, al
jne 0x46ae82
lea edx, [ebp - 0xd]
mov eax, ebx
call fcn.0046ae90
mov edi, eax
test edi, edi
je 0x46ae2e
mov eax, edi
mov edx, dword [eax]
call dword [edx + 8]
test al, al
je 0x46ae2e
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 0x46ae82
jmp 0x46ae5a
cmp esi, 0x201
jne 0x46ae5a
cmp dword [0x4f21d8], 0
je 0x46ae5a
mov eax, dword [0x4f21d8]
cmp ebx, dword [eax + 0x40]
jne 0x46ae5a
mov eax, dword [0x4f21d8]
mov edx, dword [eax]
call dword [edx + 0x38]
xor eax, eax
mov dword [0x4f21d8], eax
sub esi, 0x200
jne 0x46ae7e
lea edx, [ebp - 0xd]
mov eax, ebx
call fcn.0046aef4
mov byte [ebp - 5], 0
jmp 0x46ae82
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 4]
je 0x46ae7e
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