Function at 0x4e15d0
Capabilities:
Log keystrokes via polling

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x69d44b
push eax
mov eax, dword [0x21ebef8]
mov dword fs:[0], esp
mov edx, dword [eax + 0x408]
sub esp, 8
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [eax + 0x404]
shl ecx, 8
mov cl, byte [ecx + eax + 0x20]
shl edx, 8
cmp cl, byte [edx + eax + 0x20]
push edi
je 0x4e1716
test cl, cl
jns 0x4e1716
mov ecx, 0x21ec34c
call fcn.00520ff0
cmp ax, 0x12
je 0x4e163d
mov ecx, 0x21ec34c
call fcn.00521ef0
test al, al
jne 0x4e1716
push 0xd
call dword [sym.imp.user32.dll_GetAsyncKeyState]
mov eax, dword [esi + 0x8e6c]
xor ebp, ebp
cmp eax, ebp
je 0x4e16a9
mov dword [0x703c18], ebp
mov ecx, 0x21ec34c
mov dword [esi + 0x8e6c], ebp
call fcn.00520fb0
push ebp
mov ecx, 0x21ec34c
call fcn.00521a50
mov ecx, 0x21ec34c
call fcn.00522220
push eax
push 0x6a9d2c
add esi, 0x8e24
push esi
call fcn.005b8b8d
add esp, 0xc
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
cmp dword [esi + 0x8e70], ebp
je 0x4e1718
mov dword [0x703c18], ebp
mov ecx, 0x21ec34c
mov dword [esi + 0x8e70], ebp
call fcn.00520fb0
push ebp
mov ecx, 0x21ec34c
call fcn.00521a50
mov ecx, 0x21ec34c
lea edi, [esi + 0x8e39]
call fcn.00522220
push eax
push 0x6a9d2c
push edi
call fcn.005b8b8d
mov eax, dword [esi + 0x8e1c]
push edi
push eax
call fcn.0058acb0
add esp, 0x14
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
xor ebp, ebp
mov eax, dword [0x21ebf00]
mov edi, 1
cmp eax, edi
mov dword [esp + 0x14], ebp
jne 0x4e1a0d
cmp dword [0x21ebf04], ebp
jne 0x4e1a0d
mov eax, dword [esi + 4]
mov ecx, dword [0x706454]
lea edx, [eax + 0x3e]
cmp ecx, edx
mov edx, dword [0x706458]
jl 0x4e17af
add eax, 0xe0
cmp ecx, eax
jg 0x4e17af
mov eax, dword [esi + 8]
lea ecx, [eax + 0x2e]
cmp edx, ecx
jl 0x4e17af
add eax, 0x41
cmp edx, eax
jg 0x4e17af
mov dword [0x84efa8], ebp
mov dword [0x703c18], edi
mov dword [esi + 0x8e6c], edi
xor edx, edx
lea eax, [esi + 0x8e24]
mov dword [eax], edx
mov dword [eax + 4], edx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], edx
push edi
mov ecx, 0x21ec34c
mov byte [eax + 0x14], dl
call fcn.00521a50
mov ecx, 0x21ec34c
call fcn.00523c40
jmp 0x4e184c
cmp dword [esi + 0x8e6c], ebp
je 0x4e17f7
mov dword [0x703c18], ebp
mov ecx, 0x21ec34c
mov dword [esi + 0x8e6c], ebp
call fcn.00520fb0
push ebp
mov ecx, 0x21ec34c
call fcn.00521a50
mov ecx, 0x21ec34c
call fcn.00522220
push eax
lea ecx, [esi + 0x8e24]
push 0x6a9d2c
push ecx
call fcn.005b8b8d
add esp, 0xc
cmp dword [esi + 0x8e70], ebp
je 0x4e1858
mov dword [0x703c18], ebp
mov ecx, 0x21ec34c
mov dword [esi + 0x8e70], ebp
call fcn.00520fb0
push ebp
mov ecx, 0x21ec34c
call fcn.00521a50
mov ecx, 0x21ec34c
lea edi, [esi + 0x8e39]
call fcn.00522220
push eax
push 0x6a9d2c
push edi
call fcn.005b8b8d
mov edx, dword [esi + 0x8e1c]
push edi
push edx
call fcn.0058acb0
add esp, 0x14
cmp dword [esi + 0x8e70], ebp
jne 0x4e1a0d
mov ecx, dword [0x21e69e4]
xor ebx, ebx
mov dword [esp + 0x10], ebp
cmp ecx, ebp
jne 0x4e186c
xor eax, eax
jmp 0x4e1876
mov eax, dword [0x21e69e8]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jge 0x4e1a0d
cmp ecx, ebp
jne 0x4e1886
xor eax, eax
jmp 0x4e1890
mov eax, dword [0x21e69e8]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jge 0x4e1a07
lea eax, [ecx + ebx*4]
mov dword [0x21e69f0], eax
mov edi, dword [eax]
cmp edi, ebp
je 0x4e1a07
mov eax, dword [esp + 0x14]
fld dword [esi + 0x1438]
inc eax
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fcomp st(1)
fnstsw ax
fstp st(0)
test ah, 5
jnp 0x4e1a07
mov eax, dword [esi + 4]
lea edx, [eax + 0x25]
cmp dword [0x706454], edx
jl 0x4e1939
mov edx, dword [0x706454]
add eax, 0x12e
cmp edx, eax
jg 0x4e1939
mov edx, dword [esp + 0x10]
mov eax, dword [esi + 8]
add eax, edx
lea edx, [eax + 0x70]
cmp dword [0x706458], edx
jl 0x4e1939
mov edx, dword [0x706458]
add eax, 0x84
cmp edx, eax
jg 0x4e1939
push 0x447a0000
push 0x21f1d38
push 0x1e
push ebp
mov ecx, 0x21efa50
call fcn.0052a5b0
mov eax, dword [edi]
cmp eax, dword [0x8507f4]
je 0x4e1933
mov dword [esi + 0x8e1c], eax
mov ecx, dword [0x21e69e4]
mov eax, dword [esi + 4]
lea edx, [eax + 0xfe]
cmp dword [0x706454], edx
jl 0x4e19f5
mov edx, dword [0x706454]
add eax, 0x10e
cmp edx, eax
jg 0x4e19f5
mov edx, dword [esp + 0x10]
mov eax, dword [esi + 8]
add eax, edx
lea edx, [eax + 0x6e]
cmp dword [0x706458], edx
jl 0x4e19f5
mov edx, dword [0x706458]
add eax, 0x7e
cmp edx, eax
jg 0x4e19f5
mov eax, dword [edi]
cmp eax, dword [0x8507f4]
je 0x4e1996
mov dword [esi + 0x8e1c], eax
mov eax, dword [0x706454]
add eax, 0xfffffed4
cmp eax, ebp
jge 0x4e19a6
xor eax, eax
mov dword [esi + 0x8e74], eax
mov eax, dword [0x706458]
mov dword [esi + 0x8e78], eax
mov edx, 1
mov dword [0x703c18], edx
mov dword [esi + 0x8e70], edx
xor eax, eax
mov ecx, 0xc
lea edi, [esi + 0x8e39]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push edx
mov ecx, 0x21ec34c
stosb byte es:[edi], al
call fcn.00521a50
mov ecx, 0x21ec34c
call fcn.00523c40
mov ecx, dword [0x21e69e4]
mov eax, dword [esp + 0x10]
add eax, 0x17
cmp eax, 0x142
mov dword [esp + 0x10], eax
jg 0x4e1a0d
inc ebx
jmp 0x4e1864
lea eax, [esi + 0x8e24]
mov dword [esp + 0x10], eax
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4e1a20
sub eax, edx
lea ebx, [esi + 0x7ac8]
mov dword [esp + 0x14], eax
mov ecx, ebx
je 0x4e1a3b
push 1
jmp 0x4e1a3c
push ebp
call fcn.00516a50
cmp dword [esi + 0x8e1c], ebp
lea ebp, [esi + 0x7f9c]
mov ecx, ebp
je 0x4e1a55
push 1
jmp 0x4e1a57
push 0
call fcn.00516a50
mov eax, dword [0x21e69e4]
test eax, eax
jne 0x4e1a6b
mov dword [esp + 0x14], eax
jmp 0x4e1a7a
mov ecx, dword [0x21e69e8]
sub ecx, eax
sar ecx, 2
mov dword [esp + 0x14], ecx
fild dword [esp + 0x14]
push 0x41600000
push ecx
lea edi, [esi + 0x53c]
mov ecx, edi
fstp dword [esp]
call fcn.0051a440
mov edx, dword [esi + 0x10]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 8]
push 0x42f00000
push 0
push edx
mov edx, dword [esi + 4]
push eax
push ecx
push edx
mov ecx, edi
call fcn.0051a5e0
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
push eax
push ecx
mov ecx, edi
call fcn.0051ada0
test ah, 2
jne 0x4e1c3e
mov edx, dword [esi + 8]
mov eax, dword [esi + 4]
push edx
push eax
lea ecx, [esi + 0x4a80]
call fcn.00516c20
test eax, eax
je 0x4e1b05
push 1
mov ecx, 0x84f768
call fcn.004ccdb0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
mov ecx, dword [esi + 8]
mov edx, dword [esi + 4]
push ecx
push edx
lea ecx, [esi + 0x5428]
call fcn.00516c20
test eax, eax
je 0x4e1b40
push 2
mov ecx, 0x84f768
call fcn.004ccdb0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
push eax
push ecx
mov ecx, ebx
call fcn.00516c20
test eax, eax
je 0x4e1b8b
mov esi, dword [esp + 0x10]
push esi
call fcn.0058ac20
add esp, 4
xor edx, edx
mov dword [esi], edx
mov dword [esi + 4], edx
mov dword [esi + 8], edx
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], edx
pop edi
mov byte [esi + 0x14], dl
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
push eax
push ecx
mov ecx, ebp
call fcn.00516c20
test eax, eax
je 0x4e1c56
mov edx, dword [esi + 0x8e1c]
push edx
mov ecx, 0x84f768
call fcn.004c7520
test eax, eax
je 0x4e1c3e
mov ecx, dword [esi + 0x8e80]
test ecx, ecx
jne 0x4e1c3e
add eax, 4
push eax
push 0x704b80
call fcn.0041b140
push 0xa40
call fcn.005b8072
mov edi, eax
add esp, 0xc
mov dword [esp + 0x14], edi
test edi, edi
mov dword [esp + 0x20], 0
je 0x4e1c36
push 0x1c5
call fcn.0041b230
add esp, 4
push eax
push 0xff
push 0xff
push 0xff
push 1
mov ecx, edi
call fcn.004bc830
pop edi
mov dword [esi + 0x8e80], eax
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
xor eax, eax
mov dword [esi + 0x8e80], eax
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret