Function at 0x461907
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 0x461ba9
je 0x461abe
cmp edx, 0xa8
ja 0x461985
cmp edx, 0xa7
jae 0x461968
cmp edx, 0x7b
je 0x4619b4
cmp edx, 0xa0
jbe 0x461ca9
cmp edx, 0xa2
jbe 0x461968
lea eax, [edx - 0xa4]
cmp eax, ecx
ja 0x461ca9
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.00451f57
jmp 0x461ca1
sub edx, 0x100
je 0x461a2f
sub edx, 4
jne 0x461ca9
mov ecx, dword [edi + 0x230]
test ecx, ecx
je 0x4619b4
push dword [esi + 0xc]
push dword [esi + 8]
push edi
call fcn.004db65e
test eax, eax
jne 0x461a13
call fcn.0042a379
xor ebx, ebx
cmp dword [eax + 0x1a4], ebx
jne 0x4619e4
call fcn.0042a379
cmp dword [eax + 0x1a0], ebx
jne 0x4619e4
call fcn.0042a379
mov dword [eax + 0x1a0], 1
call fcn.0044c1a5
mov eax, dword [0x7c775c]
test eax, eax
je 0x461a1b
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x461a1b
cmp dword [esi + 8], 0x12
jne 0x461a1b
mov ecx, dword [0x7c775c]
push ebx
push ebx
push 0x10
push dword [ecx + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
xor eax, eax
inc eax
jmp 0x461cb1
push ebx
push dword [esi + 8]
lea ecx, [edi + 0x134]
call fcn.00451c87
jmp 0x461ca1
push esi
call fcn.0045026e
test eax, eax
jne 0x461a4f
lea eax, [ebp - 4]
push eax
push dword [esi + 8]
lea ecx, [edi + 0x134]
call fcn.00451c87
test eax, eax
jne 0x461a13
cmp dword [esi + 8], 0x1b
jne 0x461aad
xor ebx, ebx
cmp dword [edi + 0x204], ebx
je 0x461a6b
push edi
lea ecx, [edi + 0x1ec]
call fcn.004d5cdf
mov ecx, dword [edi + 0x3f0]
test ecx, ecx
je 0x461a84
cmp dword [ecx + 8], ebx
je 0x461a84
cmp dword [ecx + 4], ebx
je 0x461a84
call fcn.004f5131
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.004302a1
push eax
push 0x5b2678
call fcn.0042d5fd
pop ecx
pop ecx
test eax, eax
je 0x461aad
push ebx
push ebx
push 0x1f
push dword [eax + 0x20]
jmp 0x461a0d
cmp dword [ebp - 4], 0
jne 0x461ca9
xor eax, eax
jmp 0x461cb1
mov ecx, dword [edi + 0x230]
test ecx, ecx
je 0x461adc
push dword [esi + 0xc]
push dword [esi + 8]
push edi
call fcn.004db797
test eax, eax
jne 0x461a13
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 0x461b1b
push eax
call sub.IMM32.dll_ImmGetOpenStatus
test eax, eax
mov eax, dword [ebp - 8]
je 0x461b1b
mov dword [ebp - 0xc], 1
jmp 0x461b24
mov ecx, ebx
mov dword [ebp - 0xc], ecx
test eax, eax
je 0x461b30
push eax
push dword [edi + 0x20]
call sub.IMM32.dll_ImmReleaseContext
mov ecx, dword [ebp - 0xc]
cmp dword [edi + 0x1e0], ebx
je 0x461b8e
cmp dword [esi + 8], 0x12
je 0x461b57
cmp dword [esi + 8], 0x79
jne 0x461b8e
mov eax, 0x8000
test dword [ebp - 0x10], eax
jne 0x461b8e
test dword [ebp - 0x14], eax
jne 0x461b8e
test ecx, ecx
jne 0x461b8e
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call fcn.004302a1
mov ecx, dword [edi + 0x1e0]
cmp ecx, eax
jne 0x461b71
mov ecx, edi
jmp 0x461b84
cmp dword [esi + 8], 0x12
je 0x461b84
test dword [esi + 0xc], 0x20000000
jne 0x461a13
call fcn.0046555e
jmp 0x461a13
mov eax, dword [0x7c775c]
test eax, eax
je 0x461ca9
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
jmp 0x461ca1
cmp edx, 0x200
je 0x461c6a
cmp edx, 0x201
je 0x461c07
cmp edx, 0x203
jbe 0x461ca9
cmp edx, 0x205
jbe 0x461c07
cmp edx, 0x206
jbe 0x461ca9
cmp edx, 0x208
jbe 0x461c07
cmp edx, 0x20a
jne 0x461ca9
push dword [esi + 0xc]
lea ecx, [edi + 0x134]
push dword [esi + 8]
call fcn.00452697
jmp 0x461ca1
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.004302a1
mov ebx, eax
test ebx, ebx
je 0x461c3b
push dword [esi]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x461c3b
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.00451f57
test eax, eax
jne 0x461a13
push dword [esi]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x461ca9
jmp 0x461a13
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.004302a1
test eax, eax
je 0x461c90
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.004525a6
test eax, eax
jne 0x461a13
push esi
mov ecx, edi
call fcn.00438005
pop edi
pop esi
pop ebx
leave
ret 4