Function at 0x4915a3
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, 0x105
push edi
mov edi, ecx
xor ecx, ecx
inc ecx
mov edx, dword [esi + 4]
mov dword [ebp - 4], ecx
cmp edx, eax
ja 0x491845
je 0x49175a
cmp edx, 0xa8
ja 0x491621
cmp edx, 0xa7
jae 0x491604
cmp edx, 0x7b
je 0x491650
cmp edx, 0xa0
jbe 0x491945
cmp edx, 0xa2
jbe 0x491604
lea eax, [edx - 0xa4]
cmp eax, ecx
ja 0x491945
push dword [esi]
movsx eax, word [esi + 0xe]
movsx ecx, word [esi + 0xc]
push eax
push ecx
push edx
lea ecx, [edi + 0x134]
call fcn.0048f2d4
jmp 0x49193d
sub edx, 0x100
je 0x4916cb
sub edx, 4
jne 0x491945
mov ecx, dword [edi + 0x230]
test ecx, ecx
je 0x491650
push dword [esi + 0xc]
push dword [esi + 8]
push edi
call fcn.00500858
test eax, eax
jne 0x4916af
call fcn.00416677
xor ebx, ebx
cmp dword [eax + 0x1a4], ebx
jne 0x491680
call fcn.00416677
cmp dword [eax + 0x1a0], ebx
jne 0x491680
call fcn.00416677
mov dword [eax + 0x1a0], 1
call fcn.00452c9d
mov eax, dword [0x5f65c4]
test eax, eax
je 0x4916b7
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4916b7
cmp dword [esi + 8], 0x12
jne 0x4916b7
mov ecx, dword [0x5f65c4]
push ebx
push ebx
push 0x10
push dword [ecx + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
xor eax, eax
inc eax
jmp 0x49194d
push ebx
push dword [esi + 8]
lea ecx, [edi + 0x134]
call fcn.0048f004
jmp 0x49193d
push esi
call fcn.0048db2e
test eax, eax
jne 0x4916eb
lea eax, [ebp - 4]
push eax
push dword [esi + 8]
lea ecx, [edi + 0x134]
call fcn.0048f004
test eax, eax
jne 0x4916af
cmp dword [esi + 8], 0x1b
jne 0x491749
xor ebx, ebx
cmp dword [edi + 0x204], ebx
je 0x491707
push edi
lea ecx, [edi + 0x1ec]
call fcn.005124e1
mov ecx, dword [edi + 0x3f0]
test ecx, ecx
je 0x491720
cmp dword [ecx + 8], ebx
je 0x491720
cmp dword [ecx + 4], ebx
je 0x491720
call fcn.004f4dc0
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.0042bf00
push eax
push 0x5a9264
call fcn.00431fdc
pop ecx
pop ecx
test eax, eax
je 0x491749
push ebx
push ebx
push 0x1f
push dword [eax + 0x20]
jmp 0x4916a9
cmp dword [ebp - 4], 0
jne 0x491945
xor eax, eax
jmp 0x49194d
mov ecx, dword [edi + 0x230]
test ecx, ecx
je 0x491778
push dword [esi + 0xc]
push dword [esi + 8]
push edi
call fcn.00500991
test eax, eax
jne 0x4916af
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
push 0x10
mov dword [ebp - 0x10], eax
call dword [sym.imp.USER32.dll_GetKeyState]
push dword [edi + 0x20]
cwde
mov dword [ebp - 0x14], eax
call sub.IMM32.dll_ImmGetContext
xor ebx, ebx
mov dword [ebp - 8], eax
test eax, eax
je 0x4917b7
push eax
call sub.IMM32.dll_ImmGetOpenStatus
test eax, eax
mov eax, dword [ebp - 8]
je 0x4917b7
mov dword [ebp - 0xc], 1
jmp 0x4917c0
mov ecx, ebx
mov dword [ebp - 0xc], ecx
test eax, eax
je 0x4917cc
push eax
push dword [edi + 0x20]
call sub.IMM32.dll_ImmReleaseContext
mov ecx, dword [ebp - 0xc]
cmp dword [edi + 0x1e0], ebx
je 0x49182a
cmp dword [esi + 8], 0x12
je 0x4917f3
cmp dword [esi + 8], 0x79
jne 0x49182a
mov eax, 0x8000
test dword [ebp - 0x10], eax
jne 0x49182a
test dword [ebp - 0x14], eax
jne 0x49182a
test ecx, ecx
jne 0x49182a
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call fcn.0042bf00
mov ecx, dword [edi + 0x1e0]
cmp ecx, eax
jne 0x49180d
mov ecx, edi
jmp 0x491820
cmp dword [esi + 8], 0x12
je 0x491820
test dword [esi + 0xc], 0x20000000
jne 0x4916af
call fcn.00431664
jmp 0x4916af
mov eax, dword [0x5f65c4]
test eax, eax
je 0x491945
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
jmp 0x49193d
cmp edx, 0x200
je 0x491906
cmp edx, 0x201
je 0x4918a3
cmp edx, 0x203
jbe 0x491945
cmp edx, 0x205
jbe 0x4918a3
cmp edx, 0x206
jbe 0x491945
cmp edx, 0x208
jbe 0x4918a3
cmp edx, 0x20a
jne 0x491945
push dword [esi + 0xc]
lea ecx, [edi + 0x134]
push dword [esi + 8]
call fcn.0048fa14
jmp 0x49193d
movsx eax, word [esi + 0xc]
push dword [esi]
mov dword [ebp - 0x18], eax
movsx eax, word [esi + 0xe]
mov dword [ebp - 0x14], eax
call fcn.0042bf00
mov ebx, eax
test ebx, ebx
je 0x4918d7
push dword [esi]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4918d7
lea eax, [ebp - 0x18]
push eax
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_ClientToScreen]
push dword [esi]
lea ecx, [edi + 0x134]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [esi + 4]
call fcn.0048f2d4
test eax, eax
jne 0x4916af
push dword [esi]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x491945
jmp 0x4916af
movsx eax, word [esi + 0xc]
push dword [esi]
mov dword [ebp - 0x18], eax
movsx eax, word [esi + 0xe]
mov dword [ebp - 0x14], eax
call fcn.0042bf00
test eax, eax
je 0x49192c
lea ecx, [ebp - 0x18]
push ecx
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_ClientToScreen]
push dword [ebp - 0x14]
lea ecx, [edi + 0x134]
push dword [ebp - 0x18]
call fcn.0048f923
test eax, eax
jne 0x4916af
push esi
mov ecx, edi
call fcn.004d16cf
pop edi
pop esi
pop ebx
leave
ret 4