Function at 0x5585e5
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
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 0x55888b
je 0x5587a1
cmp edx, 0xa8
ja 0x558662
cmp edx, 0xa7
jae 0x558645
cmp edx, 0x7b
je 0x558691
cmp edx, 0xa0
jbe 0x55898f
cmp edx, 0xa2
jbe 0x558645
lea eax, [edx - 0xa4]
cmp eax, ecx
ja 0x55898f
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.00589782
jmp 0x558987
sub edx, 0x100
je 0x55870f
sub edx, 4
jne 0x55898f
mov ecx, dword [edi + 0x230]
test ecx, ecx
je 0x558691
push dword [esi + 0xc]
push dword [esi + 8]
push edi
call fcn.005c15a3
test eax, eax
jne 0x5586f2
call fcn.004d622b
cmp dword [eax + 0x1a4], 0
jne 0x5586c1
call fcn.004d622b
cmp dword [eax + 0x1a0], 0
jne 0x5586c1
call fcn.004d622b
mov dword [eax + 0x1a0], 1
call fcn.0050b37a
mov eax, dword [0x6a09d0]
test eax, eax
je 0x5586fa
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x5586fa
cmp dword [esi + 8], 0x12
jne 0x5586fa
mov ecx, dword [0x6a09d0]
push 0
push 0
push 0x10
push dword [ecx + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
xor eax, eax
inc eax
jmp 0x558997
push 0
push dword [esi + 8]
lea ecx, [edi + 0x134]
call fcn.005894b2
jmp 0x558987
push esi
call fcn.00587ffc
test eax, eax
jne 0x55872f
lea eax, [ebp - 4]
push eax
push dword [esi + 8]
lea ecx, [edi + 0x134]
call fcn.005894b2
test eax, eax
jne 0x5586f2
cmp dword [esi + 8], 0x1b
jne 0x558790
cmp dword [edi + 0x204], 0
je 0x55874a
push edi
lea ecx, [edi + 0x1ec]
call fcn.005cfc4d
mov ecx, dword [edi + 0x3f0]
test ecx, ecx
je 0x558765
cmp dword [ecx + 8], 0
je 0x558765
cmp dword [ecx + 4], 0
je 0x558765
call fcn.0056e8fa
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.004b154c
push eax
push 0x64a390
call fcn.004b89d0
pop ecx
pop ecx
test eax, eax
je 0x558790
push 0
push 0
push 0x1f
push dword [eax + 0x20]
jmp 0x5586ec
cmp dword [ebp - 4], 0
jne 0x55898f
xor eax, eax
jmp 0x558997
mov ecx, dword [edi + 0x230]
test ecx, ecx
je 0x5587bf
push dword [esi + 0xc]
push dword [esi + 8]
push edi
call fcn.005c16dc
test eax, eax
jne 0x5586f2
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 - 0x18], eax
call sub.IMM32.dll_ImmGetContext
mov dword [ebp - 8], eax
test eax, eax
je 0x5587fc
push eax
call sub.IMM32.dll_ImmGetOpenStatus
test eax, eax
mov eax, dword [ebp - 8]
je 0x5587fc
mov dword [ebp - 0xc], 1
jmp 0x558805
xor ecx, ecx
mov dword [ebp - 0xc], ecx
test eax, eax
je 0x558811
push eax
push dword [edi + 0x20]
call sub.IMM32.dll_ImmReleaseContext
mov ecx, dword [ebp - 0xc]
cmp dword [edi + 0x1e0], 0
je 0x558870
cmp dword [esi + 8], 0x12
je 0x558839
cmp dword [esi + 8], 0x79
jne 0x558870
mov eax, 0x8000
test dword [ebp - 0x10], eax
jne 0x558870
test dword [ebp - 0x18], eax
jne 0x558870
test ecx, ecx
jne 0x558870
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call fcn.004b154c
mov ecx, dword [edi + 0x1e0]
cmp ecx, eax
jne 0x558853
mov ecx, edi
jmp 0x558866
cmp dword [esi + 8], 0x12
je 0x558866
test dword [esi + 0xc], 0x20000000
jne 0x5586f2
call fcn.004b6e65
jmp 0x5586f2
mov eax, dword [0x6a09d0]
test eax, eax
je 0x55898f
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
jmp 0x558987
cmp edx, 0x200
je 0x558950
cmp edx, 0x201
je 0x5588e9
cmp edx, 0x203
jbe 0x55898f
cmp edx, 0x205
jbe 0x5588e9
cmp edx, 0x206
jbe 0x55898f
cmp edx, 0x208
jbe 0x5588e9
cmp edx, 0x20a
jne 0x55898f
push dword [esi + 0xc]
lea ecx, [edi + 0x134]
push dword [esi + 8]
call fcn.00589ec9
jmp 0x558987
movsx eax, word [esi + 0xc]
push dword [esi]
mov dword [ebp - 0x14], eax
movsx eax, word [esi + 0xe]
mov dword [ebp - 0x10], eax
call fcn.004b154c
mov dword [ebp - 0x18], eax
test eax, eax
je 0x558921
push dword [esi]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x558921
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_ClientToScreen]
push dword [esi]
lea ecx, [edi + 0x134]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push dword [esi + 4]
call fcn.00589782
test eax, eax
jne 0x5586f2
push dword [esi]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x55898f
jmp 0x5586f2
movsx eax, word [esi + 0xc]
push dword [esi]
mov dword [ebp - 0x1c], eax
movsx eax, word [esi + 0xe]
mov dword [ebp - 0x18], eax
call fcn.004b154c
test eax, eax
je 0x558976
lea ecx, [ebp - 0x1c]
push ecx
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_ClientToScreen]
push dword [ebp - 0x18]
lea ecx, [edi + 0x134]
push dword [ebp - 0x1c]
call fcn.00589dd1
test eax, eax
jne 0x5586f2
push esi
mov ecx, edi
call fcn.0052ccf1
pop edi
pop esi
leave
ret 4