Function at 0x5150cb
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push 0x1c
call fcn.00554b78
add esp, 4
mov dword [ebp - 4], eax
mov ebx, eax
mov edi, eax
xor eax, eax
mov ecx, 7
rep stosd dword es:[edi], eax
add ebx, 0x10
push ebx
push 0x38
call fcn.00554b78
add esp, 4
pop ebx
mov dword [ebx], eax
mov edi, eax
mov esi, 0x58a7b9
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
push ebx
mov ebx, edi
mov ecx, 0xc
push ecx
push ebx
push 8
call fcn.00554b78
add esp, 4
pop ebx
push ebx
mov dword [ebx], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
push ebx
push 0xc
call fcn.00554b78
add esp, 4
pop ebx
push ebx
mov dword [ebx], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
pop ebx
pop ebx
pop ecx
add ebx, 4
dec ecx
jne 0x515118
pop ebx
mov dword [ebp - 8], 0
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 0x24
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebx]
and eax, 1
xor eax, 1
test eax, eax
je 0x515234
mov ebx, dword [ebp + 0x14]
cmp dword [ebx], 7
je 0x515220
mov ebx, dword [ebp + 0x14]
cmp dword [ebx], 8
je 0x515220
mov ebx, dword [ebp + 0x14]
cmp dword [ebx], 0x20a
je 0x515220
mov ebx, dword [ebp + 0x14]
cmp dword [ebx], 0x200
jl 0x5151dd
mov ebx, dword [ebp + 0x14]
cmp dword [ebx], 0x205
jg 0x5151dd
mov eax, 1
jmp 0x5151e2
mov eax, 0
test eax, eax
jne 0x515220
mov ebx, dword [ebp + 0x14]
cmp dword [ebx], 0x100
jl 0x51520f
mov ebx, dword [ebp + 0x14]
cmp dword [ebx], 0x102
jg 0x51520f
mov eax, 1
jmp 0x515214
mov eax, 0
test eax, eax
jne 0x515220
xor eax, eax
jmp 0x515225
mov eax, 1
test eax, eax
je 0x515234
mov eax, 1
jmp 0x515239
mov eax, 0
test eax, eax
je 0x515951
mov ebx, dword [ebp - 4]
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 0x18
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0xc]
mov dword [ebx], eax
mov ebx, dword [ebp - 4]
add ebx, 4
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 0x1c
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0xc]
mov dword [ebx], eax
mov ebx, dword [ebp + 0x14]
cmp dword [ebx], 0x102
je 0x5152a8
mov ebx, dword [ebp + 0x14]
cmp dword [ebx], 7
je 0x5152a8
mov ebx, dword [ebp + 0x14]
cmp dword [ebx], 8
je 0x5152a8
mov eax, 1
jmp 0x5152ad
mov eax, 0
test eax, eax
je 0x51542c
mov dword [ebp - 0xc], esp
push 0x11
call dword [sym.imp.user32.dll_GetKeyState]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x5152d9
push 6
call fcn.00554b84
add esp, 4
mov dword [ebp - 0x10], eax
push 0x80000301
push 0
push 0x4000
mov eax, dword [ebp - 0x10]
cwde
push 0x80000301
push 0
push eax
push 2
mov ebx, 0xc4
call fcn.00555360
add esp, 0x1c
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x51531a
mov dword [ebp - 8], 1
mov dword [ebp - 0xc], esp
push 0x10
call dword [sym.imp.user32.dll_GetKeyState]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x51533e
push 6
call fcn.00554b84
add esp, 4
mov dword [ebp - 0x10], eax
push 0x80000301
push 0
push 0x4000
mov eax, dword [ebp - 0x10]
cwde
push 0x80000301
push 0
push eax
push 2
mov ebx, 0xc4
call fcn.00555360
add esp, 0x1c
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x5153a3
push 0x80000301
push 0
push 2
push 0x80000301
push 0
push dword [ebp - 8]
push 2
mov ebx, 0xc8
call fcn.00555bd0
add esp, 0x1c
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push 0x12
call dword [sym.imp.user32.dll_GetKeyState]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x5153c7
push 6
call fcn.00554b84
add esp, 4
mov dword [ebp - 0x10], eax
push 0x80000301
push 0
push 0x4000
mov eax, dword [ebp - 0x10]
cwde
push 0x80000301
push 0
push eax
push 2
mov ebx, 0xc4
call fcn.00555360
add esp, 0x1c
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x51542c
push 0x80000301
push 0
push 4
push 0x80000301
push 0
push dword [ebp - 8]
push 2
mov ebx, 0xc8
call fcn.00555bd0
add esp, 0x1c
mov dword [ebp - 8], eax
mov ebx, dword [ebp + 0x14]
cmp dword [ebx], 0x200
jl 0x515451
mov ebx, dword [ebp + 0x14]
cmp dword [ebx], 0x205
jg 0x515451
mov eax, 1
jmp 0x515456
mov eax, 0
test eax, eax
je 0x5155be
mov ebx, dword [ebp + 0x14]
cmp dword [ebx], 0x200
jne 0x515484
mov ebx, dword [ebp - 4]
add ebx, 8
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
mov dword [ebx], 0xfffffffa
jmp 0x5154ae
mov ebx, dword [ebp - 4]
add ebx, 8
mov dword [ebp - 0xc], ebx
fld qword [0x58a7a9]
mov ebx, dword [ebp + 0x14]
fild dword [ebx]
fstp qword [ebp - 0x14]
fsub qword [ebp - 0x14]
fstp qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
call fcn.0050fbd9
mov ebx, dword [ebp - 0xc]
mov dword [ebx], eax
mov ebx, dword [ebp - 4]
add ebx, 0xc
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
mov dword [ebx], 3
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx + 0x10]
call fcn.0051033e
mov eax, 0
cmp eax, ecx
jl 0x5154e1
push 1
call fcn.00554b84
add esp, 4
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
mov ebx, dword [ebx]
mov dword [ebp - 0xc], ebx
push 0x80000301
push 0
push 0xffff
push 0x80000301
push 0
mov ebx, dword [ebp + 0x1c]
push dword [ebx]
push 2
mov ebx, 0xc4
call fcn.00555360
add esp, 0x1c
cdq
mov ebx, dword [ebp - 0xc]
mov dword [ebx], eax
mov dword [ebx + 4], edx
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx + 0x10]
call fcn.0051033e
mov eax, 1
cmp eax, ecx
jl 0x515541
push 1
call fcn.00554b84
add esp, 4
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
mov ebx, dword [ebx]
mov dword [ebp - 0xc], ebx
push 0x80000301
push 0
push 0x10
push 0x80000301
push 0
mov ebx, dword [ebp + 0x1c]
push dword [ebx]
push 2
mov ebx, 0x9fc
call fcn.00555cf0
add esp, 0x1c
cdq
mov ebx, dword [ebp - 0xc]
mov dword [ebx], eax
mov dword [ebx + 4], edx
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx + 0x10]
call fcn.0051033e
mov eax, 2
cmp eax, ecx
jl 0x5155a1
push 1
call fcn.00554b84
add esp, 4
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
mov ebx, dword [ebx]
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp - 8]
cdq
mov ebx, dword [ebp - 0xc]
mov dword [ebx], eax
mov dword [ebx + 4], edx
jmp 0x51589a
mov ebx, dword [ebp + 0x14]
cmp dword [ebx], 7
je 0x5155da
mov ebx, dword [ebp + 0x14]
cmp dword [ebx], 8
je 0x5155da
xor eax, eax
jmp 0x5155df
mov eax, 1
test eax, eax
je 0x515651
mov ebx, dword [ebp - 4]
add ebx, 8
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp + 0x14]
fild dword [ebx]
fstp qword [ebp - 0x14]
fld qword [ebp - 0x14]
fchs
fstp qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
call fcn.0050fbd9
mov ebx, dword [ebp - 0xc]
mov dword [ebx], eax
push dword [ebp + 0xc]
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x88]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x44]
mov ebx, dword [ebp - 0xc]
push ebx
mov eax, dword [ebx]
call dword [eax]
call fcn.00554b7e
add esp, 4
mov eax, 1
jmp 0x51595b
mov ebx, dword [ebp + 0x14]
cmp dword [ebx], 0x100
je 0x515673
mov ebx, dword [ebp + 0x14]
cmp dword [ebx], 0x101
je 0x515673
xor eax, eax
jmp 0x515678
mov eax, 1
test eax, eax
je 0x515735
mov ebx, dword [ebp - 4]
add ebx, 8
mov dword [ebp - 0xc], ebx
fld qword [0x58a7b1]
mov ebx, dword [ebp + 0x14]
fild dword [ebx]
fstp qword [ebp - 0x14]
fsub qword [ebp - 0x14]
fstp qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
call fcn.0050fbd9
mov ebx, dword [ebp - 0xc]
mov dword [ebx], eax
mov ebx, dword [ebp - 4]
add ebx, 0xc
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
mov dword [ebx], 2
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx + 0x10]
call fcn.0051033e
mov eax, 0
cmp eax, ecx
jl 0x5156dd
push 1
call fcn.00554b84
add esp, 4
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
mov ebx, dword [ebx]
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp + 0x18]
mov eax, dword [ebx]
cdq
mov ebx, dword [ebp - 0xc]
mov dword [ebx], eax
mov dword [ebx + 4], edx
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx + 0x10]
call fcn.0051033e
mov eax, 1
cmp eax, ecx
jl 0x515718
push 1
call fcn.00554b84
add esp, 4
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
mov ebx, dword [ebx]
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp - 8]
cdq
mov ebx, dword [ebp - 0xc]
mov dword [ebx], eax
mov dword [ebx + 4], edx
jmp 0x51589a
mov ebx, dword [ebp + 0x14]
cmp dword [ebx], 0x102
jne 0x5157a8
mov ebx, dword [ebp - 4]
add ebx, 8
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
mov dword [ebx], 0xfffffff5
mov ebx, dword [ebp - 4]
add ebx, 0xc
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
mov dword [ebx], 1
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx + 0x10]
call fcn.0051033e
mov eax, 0
cmp eax, ecx
jl 0x515789
push 1
call fcn.00554b84
add esp, 4
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
mov ebx, dword [ebx]
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp + 0x18]
mov eax, dword [ebx]
cdq
mov ebx, dword [ebp - 0xc]
mov dword [ebx], eax
mov dword [ebx + 4], edx
jmp 0x51589a
mov ebx, dword [ebp + 0x14]
cmp dword [ebx], 0x20a
jne 0x51589a
mov ebx, dword [ebp - 4]
add ebx, 8
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
mov dword [ebx], 0xfffffff4
mov ebx, dword [ebp - 4]
add ebx, 0xc
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
mov dword [ebx], 2
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx + 0x10]
call fcn.0051033e
mov eax, 0
cmp eax, ecx
jl 0x5157fc
push 1
call fcn.00554b84
add esp, 4
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
mov ebx, dword [ebx]
mov dword [ebp - 0xc], ebx
push 0x80000301
push 0
push 0x10
push 0x80000301
push 0
mov ebx, dword [ebp + 0x18]
push dword [ebx]
push 2
mov ebx, 0x9fc
call fcn.00555cf0
add esp, 0x1c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
mov eax, 0
setg al
test eax, eax
je 0x515853
mov eax, 1
jmp 0x515858
mov eax, 0xffffffff
cdq
mov ebx, dword [ebp - 0xc]
mov dword [ebx], eax
mov dword [ebx + 4], edx
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx + 0x10]
call fcn.0051033e
mov eax, 1
cmp eax, ecx
jl 0x515882
push 1
call fcn.00554b84
add esp, 4
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
mov ebx, dword [ebx]
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp - 8]
cdq
mov ebx, dword [ebp - 0xc]
mov dword [ebx], eax
mov dword [ebx + 4], edx
push dword [ebp + 0xc]
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x88]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x44]
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 0xc]
push ebx
mov eax, dword [ebx]
call dword [eax]
call fcn.00554b7e
add esp, 4
cmp dword [ebp - 0x10], 0
je 0x5158fc
mov ebx, dword [ebp - 4]
add ebx, 0x14
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebx]
and eax, 1
xor eax, 1
test eax, eax
jne 0x5158fc
xor eax, eax
jmp 0x515901
mov eax, 1
test eax, eax
je 0x515913
mov eax, 1
jmp 0x51595b
mov ebx, dword [ebp + 0x14]
cmp dword [ebx], 0x102
jne 0x515935
mov ebx, dword [ebp - 4]
add ebx, 0x18
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebx]
mov ebx, dword [ebp + 0x18]
mov dword [ebx], eax
mov ebx, dword [ebp - 4]
add ebx, 0x18
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
cmp dword [ebx], 0
mov eax, 0
setne al
jmp 0x51595b
mov eax, 1
jmp 0x51595b
push eax
mov ebx, dword [ebp - 4]
push ebx
add ebx, 0x10
push ebx
mov ebx, dword [ebx]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x515981
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x51597d
imul eax, dword [ebx]
jmp 0x515972
mov ecx, eax
test ecx, ecx
je 0x5159a9
push ecx
push ebx
mov ebx, dword [ebx]
push ebx
push ebx
mov ebx, dword [ebx]
push ebx
call fcn.00554b7e
add esp, 4
pop ebx
call fcn.00554b7e
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x515987
call fcn.00554b7e
add esp, 4
pop ebx
call fcn.00554b7e
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x18