Function at 0x501170
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, ecx
push edi
push 0
mov eax, dword [esi + 0x12c]
push 0
push 0x37eb
push eax
call dword [0x5237a4]
test eax, eax
jne 0x5013ee
mov ecx, esi
call fcn.00503e70
cmp eax, 0x32
jge 0x5011b7
mov dword [esi + 0x114], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
mov ebx, dword [esp + 0x20]
mov eax, dword [esi + 0x350]
mov ecx, ebx
mov dword [esi + 0xf4], 1
shr ecx, 0x10
movsx edi, bx
movsx ebp, cx
mov dword [esi + 0xc0], edi
mov dword [esi + 0xc4], ebp
test eax, eax
je 0x501237
push ebp
lea edx, [esi + 0x358]
push edi
push edx
call dword [0x5238ac]
test eax, eax
je 0x501237
mov eax, dword [esi]
push 0xffffffffffffffff
mov ecx, esi
mov byte [esi + 0x1f4], 2
call dword [eax + 0x34]
mov ecx, esi
call fcn.00501520
mov eax, dword [esp + 0x1c]
mov edx, dword [esi]
push ebx
push eax
mov ecx, esi
call dword [edx + 0x60]
call dword [0x523364]
mov ecx, esi
mov dword [esi + 0x50], eax
call fcn.00501730
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
push 0x80000002
lea ecx, [esi + 4]
call fcn.0050a9e0
cmp dword [esi + 0x10c], 0xffffffff
jne 0x50128b
mov edi, dword [esp + 0x1c]
mov edx, dword [esi]
push ebx
push edi
mov ecx, esi
call dword [edx + 0x70]
cmp edi, 4
jne 0x5013ee
mov eax, dword [esi + 8]
push eax
push eax
call dword [0x5237c4]
push eax
mov eax, dword [esi + 0x12c]
push 0x37e9
push eax
call dword [0x5237a4]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
mov ecx, dword [esi + 8]
push ecx
call dword [0x523938]
lea ecx, [esi + 0x28]
call fcn.005058e0
mov eax, dword [esi + 0x10c]
push ebp
mov edx, eax
push edi
shl edx, 7
add edx, eax
mov eax, dword [esi + 0xfc]
lea ecx, [eax + edx*4 + 0x1a8]
push ecx
call dword [0x5238ac]
test eax, eax
je 0x5013ee
mov edx, dword [esi]
mov ebx, 4
push 0xffffffffffffffff
mov ecx, esi
mov byte [esi + 0x1f4], bl
call dword [edx + 0x34]
mov eax, dword [esi + 0x10c]
mov edx, dword [esi + 0xfc]
mov ecx, eax
shl ecx, 7
add ecx, eax
cmp byte [edx + ecx*4 + 0x44], 0
jne 0x5012ff
cmp dword [esp + 0x1c], ebx
jmp 0x50125d
cmp dword [esi + 0x110], 0xffffffff
jne 0x50130e
mov dword [esi + 0x110], eax
mov edx, dword [esi]
mov ebx, 1
push eax
mov ecx, esi
mov dword [esi + 0x114], ebx
call dword [edx + 0x34]
mov eax, dword [esi + 0x7c]
test eax, eax
je 0x50139e
push 0x32
call dword [0x5233a8]
lea eax, [esp + 0x10]
push eax
call dword [0x5238b0]
mov edx, dword [esi + 8]
lea ecx, [esp + 0x10]
push ecx
push edx
call dword [0x523880]
mov eax, dword [esi + 0xc0]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
sub eax, ecx
mov ecx, dword [esi + 0xc4]
sub ecx, edx
test eax, eax
jge 0x501368
neg eax
test ecx, ecx
jge 0x50136e
neg ecx
mov edx, dword [esi + 0x110]
cmp edx, dword [esi + 0x10c]
jne 0x5013ce
cmp eax, ecx
jle 0x5013ce
push ebx
call dword [0x523744]
shr eax, 8
test al, al
je 0x5013ce
mov dword [esi + 0xbc], ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
mov eax, dword [esi + 0x10c]
mov edx, dword [esi + 0xfc]
mov ecx, eax
shl ecx, 7
add ecx, eax
test byte [edx + ecx*4 + 0x48], 2
je 0x5013ce
mov eax, dword [esi + 8]
push 0
push 0x96
push 0x100
push eax
call dword [0x523888]
mov ebx, dword [esp + 0x1c]
cmp ebx, 5
je 0x5013e4
mov eax, dword [esp + 0x20]
mov edx, dword [esi]
push eax
push ebx
mov ecx, esi
call dword [edx + 0x60]
push ebx
push ebp
push edi
mov ecx, esi
call fcn.00503e90
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8