Function at 0x5816b1d2
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
mov ebx, dword [ebp + 8]
or ebx, dword [0x581b2638]
push esi
push edi
xor edi, edi
mov eax, ebx
mov esi, ebx
and eax, 0x4000
and esi, 0x1000
mov dword [ebp - 0xc], eax
mov eax, ebx
and eax, 4
mov dword [ebp - 0x14], eax
mov eax, ebx
and eax, 0x2000
test bh, 0x80
mov dword [ebp - 0x10], eax
je 0x5816b21e
call dword [sym.imp.USER32.dll_InSendMessage]
test eax, eax
jne 0x5816b21e
and dword [ebp + 8], eax
jmp 0x5816b225
mov dword [ebp + 8], 2
and bx, 0xffb
cmp ebx, 1
jne 0x5816b2c2
call fcn.58148c41
test eax, eax
je 0x5816b2bb
cmp byte [0x581b263c], 0
jne 0x5816b2b4
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 3
call esi
test bl, al
jne 0x5816b27a
push 0x1b
call esi
test bl, al
je 0x5816b4f2
push 0x12
call esi
test ax, ax
jne 0x5816b2bb
push 0x11
call esi
test ax, ax
jne 0x5816b2bb
push 0x10
call esi
test ax, ax
jne 0x5816b2bb
mov edi, dword [ebp + 8]
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
or edi, 1
mov ebx, 0xa0
push edi
push 0x209
push ebx
lea eax, [ebp - 0x30]
push 0
push eax
call esi
test eax, eax
je 0x5816b2ad
push edi
push 0x209
push ebx
lea eax, [ebp - 0x30]
push 0
push eax
jmp 0x5816b298
mov byte [0x581b263c], 1
push 1
jmp 0x5816b4f1
xor edi, edi
jmp 0x5816b4f2
test esi, esi
jne 0x5816b2d4
call dword [sym.imp.USER32.dll_GetCapture]
test eax, eax
jne 0x5816b4cc
xor edi, edi
test edi, edi
jne 0x5816b4f2
push dword [ebp + 8]
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
xor eax, eax
push eax
push eax
push eax
lea eax, [ebp - 0x30]
push eax
call esi
test eax, eax
je 0x5816b4d3
mov eax, dword [ebp - 0x2c]
push 2
pop edi
xor ecx, ecx
cmp dword [0x581b267c], edi
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
jne 0x5816b2b4
cmp eax, 0x20
ja 0x5816b329
je 0x5816b3a5
cmp eax, 0xf
jne 0x5816b3b3
cmp dword [ebp - 0xc], ecx
jmp 0x5816b3a1
sub eax, 0xa0
je 0x5816b3a5
sub eax, 0x60
je 0x5816b39e
dec eax
je 0x5816b399
sub eax, 0x12
je 0x5816b353
sub eax, 5
je 0x5816b3dd
sub eax, 0xe8
je 0x5816b3a5
sub eax, edi
je 0x5816b399
jmp 0x5816b3b3
mov eax, dword [0x581ae554]
cmp eax, ecx
je 0x5816b373
push dword [ebp - 0x28]
push eax
push dword [0x581b2680]
call fcn.58141d39
add esp, 0xc
cmp eax, 0xffffffff
jne 0x5816b3b3
push dword [ebp - 0x28]
call dword [0x581b4548]
test eax, eax
pop ecx
je 0x5816b3e1
mov eax, dword [ebp + 8]
or al, 1
push eax
mov eax, 0x113
push eax
push eax
push dword [ebp - 0x30]
lea eax, [ebp - 0x30]
push eax
call esi
jmp 0x5816b3e8
cmp dword [ebp - 0x10], ecx
jmp 0x5816b3a1
cmp dword [ebp - 0x14], ecx
jne 0x5816b3b3
jmp 0x5816b3e8
cmp ebx, ecx
jne 0x5816b3dd
call dword [sym.imp.USER32.dll_GetCapture]
test eax, eax
je 0x5816b3dd
mov ecx, dword [ebp - 8]
xor eax, eax
cmp ecx, 0x113
je 0x5816b3d8
cmp ecx, 0x121
je 0x5816b3d8
cmp ecx, 0xa0
jb 0x5816b3d8
cmp ecx, 0x209
jbe 0x5816b3ed
push 1
pop edi
jmp 0x5816b3ed
test ebx, ebx
jne 0x5816b3e8
mov dword [ebp - 4], 1
push 1
xor edi, edi
pop eax
cmp dword [ebp - 4], 0
je 0x5816b429
mov eax, dword [ebp + 8]
or al, 1
push eax
lea eax, [ebp - 0x30]
push dword [ebp - 8]
push dword [ebp - 8]
push dword [ebp - 0x30]
push eax
call esi
test eax, eax
je 0x5816b2d6
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x5816b2d6
test eax, eax
je 0x5816b4d3
xor ebx, ebx
cmp dword [ebp - 0xc], ebx
je 0x5816b448
push dword [ebp + 8]
lea eax, [ebp - 0x30]
push 0xf
push 0xf
push ebx
push eax
call esi
mov edi, eax
cmp edi, ebx
jne 0x5816b4ad
mov esi, 0x581a1ec0
cmp esi, 0x581a1f00
jae 0x5816b4a9
push dword [ebp + 8]
lea eax, [ebp - 0x30]
push dword [esi + 4]
push dword [esi]
push ebx
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
mov edi, eax
cmp edi, ebx
je 0x5816b4a2
cmp dword [ebp - 0x2c], 0x113
jne 0x5816b4a2
mov eax, dword [0x581ae554]
cmp eax, ebx
je 0x5816b4a0
push dword [ebp - 0x28]
push eax
push dword [0x581b2680]
call fcn.58141d39
add esp, 0xc
cmp eax, 0xffffffff
je 0x5816b4a0
push 1
pop edi
jmp 0x5816b4a2
xor edi, edi
add esi, 8
cmp edi, ebx
je 0x5816b451
cmp edi, ebx
je 0x5816b4d3
mov eax, dword [ebp - 0x2c]
cmp eax, 0x113
je 0x5816b4d0
cmp eax, 0x121
je 0x5816b4d0
cmp eax, 0xa0
jb 0x5816b4d0
cmp eax, 0x209
ja 0x5816b4d0
push 2
jmp 0x5816b4d2
push 1
pop edi
test edi, edi
jne 0x5816b4f2
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 1
call esi
test ah, 0x80
jne 0x5816b4ef
push 2
call esi
test ah, 0x80
je 0x5816b4f2
push 2
pop edi
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret