Function at 0x537e11
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, 0x105
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
mov esi, dword [edi + 4]
cmp esi, eax
ja 0x538087
je 0x537fb0
cmp esi, 0xa8
ja 0x537e8a
cmp esi, 0xa7
jae 0x537e6d
cmp esi, 0x7b
je 0x537ebe
cmp esi, 0xa0
jbe 0x537f1f
cmp esi, 0xa2
jbe 0x537e6d
lea eax, [esi - 0xa4]
cmp eax, 1
ja 0x537f1f
push dword [edi]
movsx ecx, word [edi + 0xe]
movsx edx, word [edi + 0xc]
push ecx
push edx
push esi
lea ecx, [ebx + 0x350]
call fcn.00561a89
jmp 0x537f1b
sub esi, 0x100
je 0x537f30
sub esi, 4
jne 0x537f1f
mov ecx, dword [ebx + 0x44c]
test ecx, ecx
je 0x537ebe
push dword [edi + 0xc]
push dword [edi + 8]
push ebx
call fcn.00595c5a
test eax, eax
je 0x537ebe
xor eax, eax
inc eax
jmp 0x537f27
call fcn.004ae056
xor esi, esi
cmp dword [eax + 0x1a4], esi
jne 0x537eee
call fcn.004ae056
cmp dword [eax + 0x1a0], esi
jne 0x537eee
call fcn.004ae056
mov dword [eax + 0x1a0], 1
call fcn.004f0b0b
call fcn.0050b6bc
test eax, eax
je 0x537f0c
cmp dword [edi + 8], 0x12
jne 0x537f0c
push esi
push esi
push 0x10
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x537eb9
push esi
push dword [edi + 8]
lea ecx, [ebx + 0x350]
call fcn.005617fc
test eax, eax
jne 0x537eb9
push edi
mov ecx, ebx
call fcn.005868db
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push edi
call fcn.005604ee
xor esi, esi
test eax, eax
jne 0x537f53
push esi
push dword [edi + 8]
lea ecx, [ebx + 0x350]
call fcn.005617fc
test eax, eax
jne 0x537eb9
cmp dword [edi + 8], 0x1b
jne 0x537f1f
cmp dword [ebx + 0x420], esi
je 0x537f6d
push ebx
lea ecx, [ebx + 0x408]
call fcn.005a2428
mov ecx, dword [ebx + 0x318]
test ecx, ecx
je 0x537f86
cmp dword [ecx + 8], esi
je 0x537f86
cmp dword [ecx + 4], esi
je 0x537f86
call fcn.00549e53
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.0048c8c6
push eax
push 0x649b00
call fcn.00493a4d
pop ecx
pop ecx
test eax, eax
je 0x537f1f
push esi
push esi
push 0x1f
jmp 0x537f01
mov ecx, dword [ebx + 0x44c]
test ecx, ecx
je 0x537fce
push dword [edi + 0xc]
push dword [edi + 8]
push ebx
call fcn.00595dab
test eax, eax
jne 0x537eb9
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
call esi
shr eax, 0xf
and eax, 1
push 0x10
mov dword [ebp - 8], eax
call esi
push dword [ebx + 0x20]
shr eax, 0xf
and eax, 1
mov dword [ebp - 0xc], eax
call sub.IMM32.dll_ImmGetContext
xor esi, esi
mov dword [ebp - 4], eax
test eax, eax
je 0x538010
push eax
call sub.IMM32.dll_ImmGetOpenStatus
mov dword [ebp + 8], 1
test eax, eax
jne 0x538013
mov dword [ebp + 8], esi
mov eax, dword [ebp - 4]
test eax, eax
je 0x538023
push eax
push dword [ebx + 0x20]
call sub.IMM32.dll_ImmReleaseContext
cmp dword [ebx + 0x3fc], esi
je 0x53807d
cmp dword [edi + 8], 0x12
je 0x538046
cmp dword [edi + 8], 0x79
jne 0x53807d
cmp dword [ebp - 8], esi
jne 0x53807d
cmp dword [ebp - 0xc], esi
jne 0x53807d
cmp dword [ebp + 8], esi
jne 0x53807d
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call fcn.0048c8c6
mov ecx, dword [ebx + 0x3fc]
cmp ecx, eax
jne 0x538060
mov ecx, ebx
jmp 0x538073
cmp dword [edi + 8], 0x12
je 0x538073
test dword [edi + 0xc], 0x20000000
jne 0x537eb9
call fcn.00492229
jmp 0x537eb9
call fcn.0050b6bc
jmp 0x537f1b
cmp esi, 0x200
je 0x53814e
cmp esi, 0x201
je 0x5380e5
cmp esi, 0x203
jbe 0x537f1f
cmp esi, 0x205
jbe 0x5380e5
cmp esi, 0x206
jbe 0x537f1f
cmp esi, 0x208
jbe 0x5380e5
cmp esi, 0x20a
jne 0x537f1f
push dword [edi + 0xc]
lea ecx, [ebx + 0x350]
push dword [edi + 8]
call fcn.00562141
jmp 0x537f1b
movsx eax, word [edi + 0xc]
push dword [edi]
mov dword [ebp - 0x10], eax
movsx eax, word [edi + 0xe]
mov dword [ebp - 0xc], eax
call fcn.0048c8c6
mov esi, dword [sym.imp.USER32.dll_IsWindow]
mov dword [ebp + 8], eax
test eax, eax
je 0x53811f
push dword [edi]
call esi
test eax, eax
je 0x53811f
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_ClientToScreen]
push dword [edi]
lea ecx, [ebx + 0x350]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [edi + 4]
call fcn.00561a89
test eax, eax
jne 0x537eb9
push dword [edi]
call esi
test eax, eax
jne 0x537f1f
jmp 0x537eb9
movsx eax, word [edi + 0xc]
push dword [edi]
mov dword [ebp - 0x10], eax
movsx eax, word [edi + 0xe]
mov dword [ebp - 0xc], eax
call fcn.0048c8c6
test eax, eax
je 0x538174
lea ecx, [ebp - 0x10]
push ecx
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_ClientToScreen]
push dword [ebp - 0xc]
lea ecx, [ebx + 0x350]
push dword [ebp - 0x10]
call fcn.00562059
jmp 0x537f1b