Function at 0x42e4fc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, 0x509a70
cmp dword [0x4f2d3c], 0
je 0x42edde
push 0
push 0x509a8c
mov eax, dword [ebp + 8]
push eax
call fcn.004eb0a8
mov dword [0x509a6c], eax
cmp dword [0x509a6c], 0
je 0x42edde
mov edx, dword [0x509a6c]
cmp dword [edx + 0x4b8], 0
je 0x42edde
push 0x10
call sub.USER32.dll_GetKeyState
test ax, ax
jge 0x42e562
mov dword [0x509a74], 1
jmp 0x42e56a
xor ecx, ecx
mov dword [0x509a74], ecx
push 0x11
call sub.USER32.dll_GetKeyState
test ax, ax
jge 0x42e582
mov dword [0x509a78], 1
jmp 0x42e589
xor eax, eax
mov dword [0x509a78], eax
mov edx, dword [0x4f2d2c]
mov dword [0x4f2d1c], edx
mov ecx, dword [0x4f2d30]
mov dword [0x4f2d20], ecx
mov eax, dword [0x4f2d34]
mov dword [0x4f2d24], eax
mov edx, dword [0x4f2d38]
mov dword [0x4f2d28], edx
mov ecx, dword [0x4f2d28]
cmp ecx, dword [0x4f2d20]
jne 0x42e5d6
mov eax, dword [0x4f2d24]
cmp eax, dword [0x4f2d1c]
jle 0x42edde
mov edx, dword [0x4f2d28]
cmp edx, dword [0x4f2d20]
jg 0x42edde
cmp dword [0x4f2d1c], 0
jl 0x42edde
cmp dword [0x4f2d20], 0
jl 0x42edde
cmp dword [0x4f2d24], 0
jl 0x42edde
cmp dword [0x4f2d28], 0
jl 0x42edde
mov ecx, dword [0x509a6c]
mov eax, dword [ecx + 0x4c4]
mov edx, dword [0x509a6c]
sub eax, dword [edx + 0x4c8]
mov dword [0x509a84], eax
mov ecx, dword [0x509a6c]
mov eax, dword [ecx + 0x4b8]
mov edx, dword [eax + 0x34]
mov dword [edi], edx
jmp 0x42e669
mov ecx, dword [0x509a6c]
mov edx, dword [ecx + 0x4b8]
mov eax, dword [edi]
cmp edx, eax
je 0x42e672
mov ecx, dword [eax + 0x34]
mov dword [edi], ecx
dec dword [0x509a84]
cmp dword [0x509a84], 0
jg 0x42e64c
cmp dword [edi], 0
je 0x42edde
mov eax, 0x64
mov dword [0x509aa4], eax
mov edx, dword [0x509aa4]
push edx
call fcn.0040c55c
pop ecx
mov dword [0x509a64], eax
test eax, eax
jne 0x42e6a7
push 0
call sub.USER32.dll_MessageBeep
jmp 0x42edde
mov edx, dword [0x509a6c]
mov ecx, dword [edx + 0x678]
mov dword [0x509a9c], ecx
mov eax, dword [0x509a6c]
cmp dword [eax + 0x4f4], 1
je 0x42e6df
mov edx, dword [0x509a6c]
cmp dword [edx + 0x4f4], 2
jne 0x42e6f2
cmp dword [0x4fb064], 1
jne 0x42e6f2
mov ecx, dword [0x509a6c]
mov eax, dword [ecx + 0x678]
dec eax
add dword [0x509a9c], eax
mov edx, dword [0x509a98]
sub edx, dword [0x509a9c]
dec edx
mov dword [0x509a80], edx
xor ecx, ecx
mov dword [0x509a84], ecx
jmp 0x42e741
mov eax, dword [0x509a9c]
sub dword [0x509a80], eax
neg eax
cmp eax, dword [0x509a80]
jg 0x42e74f
mov edx, dword [0x509a6c]
mov ecx, dword [edx + 0x4b8]
mov eax, dword [edi]
cmp ecx, eax
je 0x42e74f
mov edx, dword [eax + 0x34]
mov dword [edi], edx
inc dword [0x509a84]
mov ecx, dword [0x509a84]
cmp ecx, dword [0x4f2d20]
jl 0x42e70f
mov eax, dword [edi]
mov edx, dword [eax + 4]
mov dword [0x509aa0], edx
mov byte [0x515718], 0
mov ecx, dword [0x509a64]
mov byte [ecx], 0
xor eax, eax
mov dword [0x509ab0], eax
mov dword [0x509aac], eax
mov dword [0x509aa8], eax
mov edx, dword [edi]
mov ecx, dword [edx + 0x18]
mov dword [0x509ab4], ecx
mov eax, dword [0x4f29c4]
mov dword [0x509ab8], eax
xor edx, edx
mov dword [0x509abc], edx
xor ecx, ecx
mov dword [0x509ac0], ecx
jmp 0x42ed96
mov eax, dword [ebx + 4]
cmp eax, dword [0x509aa0]
je 0x42e7e7
xor edx, edx
mov dword [0x509ab0], edx
mov dword [0x509aac], edx
mov dword [0x509aa8], edx
mov eax, dword [ebx + 0x18]
mov dword [0x509ab4], eax
mov ecx, dword [0x4f29c4]
mov dword [0x509ab8], ecx
xor eax, eax
mov dword [0x509abc], eax
xor edx, edx
mov dword [0x509ac0], edx
mov ecx, dword [0x509a84]
cmp ecx, dword [0x4f2d20]
jne 0x42ea2f
mov dword [0x509ac0], 1
mov eax, dword [ebx]
push edi
mov edi, eax
mov esi, 0x515aff
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xchg edi, esi
mov eax, edi
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
push 0x515aff
call fcn.00401318
pop ecx
mov ebx, eax
mov dword [0x509a7c], ebx
cmp ebx, dword [0x4f2d1c]
jge 0x42e84c
mov dword [0x4f2d1c], ebx
mov eax, dword [0x509a84]
cmp eax, dword [0x4f2d28]
jne 0x42e87c
cmp ebx, dword [0x4f2d24]
jge 0x42e867
mov dword [0x4f2d24], ebx
mov edx, dword [0x4f2d24]
mov byte [edx + 0x515b00], 0
xor ecx, ecx
mov dword [0x509a84], ecx
mov eax, 0x515aff
add eax, dword [0x4f2d1c]
push edi
mov edi, eax
mov esi, 0x515718
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xchg edi, esi
mov eax, edi
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
cmp dword [0x509a78], 0
je 0x42ebae
mov ebx, dword [edi]
test ebx, ebx
je 0x42e8e3
mov eax, dword [0x509a6c]
cmp ebx, dword [eax + 0x4b8]
je 0x42e8e3
mov ebx, dword [ebx + 0x34]
mov edx, dword [edi]
mov ecx, dword [edx + 4]
cmp ecx, dword [ebx + 4]
je 0x42e8df
mov ebx, dword [ebx + 0x30]
jmp 0x42e8e3
test ebx, ebx
jne 0x42e8c0
test ebx, ebx
je 0x42e8ef
mov eax, dword [ebx + 0x18]
mov dword [0x509ab4], eax
test ebx, ebx
je 0x42ebae
xor esi, esi
mov eax, dword [ebx]
push eax
call fcn.00401318
pop ecx
mov dword [ebp - 4], eax
cmp esi, dword [ebp - 4]
jge 0x42ea17
cmp ebx, dword [edi]
jne 0x42e91e
cmp esi, dword [0x4f2d1c]
jge 0x42ea17
mov edx, dword [ebx]
xor ecx, ecx
mov cl, byte [edx + esi]
cmp ecx, 0xf
jg 0x42e93d
je 0x42e9de
sub ecx, 2
je 0x42e94c
dec ecx
je 0x42e98f
jmp 0x42ea0d
sub ecx, 0x16
je 0x42e97a
sub ecx, 9
je 0x42e963
jmp 0x42ea0d
mov eax, dword [0x509aa8]
cmp eax, 1
sbb edx, edx
neg edx
mov dword [0x509aa8], edx
jmp 0x42ea0d
mov ecx, dword [0x509aac]
cmp ecx, 1
sbb eax, eax
neg eax
mov dword [0x509aac], eax
jmp 0x42ea0d
mov edx, dword [0x509ab0]
cmp edx, 1
sbb ecx, ecx
neg ecx
mov dword [0x509ab0], ecx
jmp 0x42ea0d
mov eax, dword [0x4f29c4]
push eax
mov edx, dword [ebx + 0x18]
push edx
push 0x509ab8
push 0x509ab4
mov ecx, dword [ebx]
add ecx, esi
push ecx
call fcn.004bbf64
add esi, eax
test eax, eax
jne 0x42e9bc
xor eax, eax
mov dword [0x509abc], eax
jmp 0x42ea0d
cmp eax, 2
jg 0x42e9cd
mov dword [0x509abc], 1
jmp 0x42ea0d
cmp eax, 2
jle 0x42ea0d
mov dword [0x509abc], 2
jmp 0x42ea0d
xor edx, edx
mov dword [0x509ab0], edx
mov dword [0x509aac], edx
mov dword [0x509aa8], edx
mov eax, dword [ebx + 0x18]
mov dword [0x509ab4], eax
mov ecx, dword [0x4f29c4]
mov dword [0x509ab8], ecx
xor eax, eax
mov dword [0x509abc], eax
inc esi
cmp esi, dword [ebp - 4]
jl 0x42e90e
cmp ebx, dword [edi]
je 0x42ebae
mov ebx, dword [ebx + 0x30]
test ebx, ebx
jne 0x42e8f7
jmp 0x42ebae
mov edx, dword [edi]
mov ecx, dword [edx]
push edi
mov edi, ecx
mov esi, 0x515aff
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xchg edi, esi
mov eax, edi
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
mov eax, dword [0x509a84]
cmp eax, dword [0x4f2d28]
jne 0x42ea9b
push 0x515aff
call fcn.00401318
pop ecx
mov ebx, eax
mov dword [0x509a7c], ebx
cmp ebx, dword [0x4f2d24]
jge 0x42ea87
mov dword [0x4f2d24], ebx
mov eax, dword [0x4f2d24]
mov byte [eax + 0x515b00], 0
xor edx, edx
mov dword [0x509a84], edx
cmp dword [0x509a74], 0
jne 0x42eb8b
mov ecx, dword [edi]
mov eax, dword [ecx + 4]
cmp eax, dword [0x509aa0]
jne 0x42eb8b
mov edx, dword [edi]
mov eax, dword [edx + 0xc]
test eax, eax
jle 0x42eb60
mov dword [0x509a7c], eax
mov dword [0x509a88], 0x515aff
jmp 0x42eae7
dec dword [0x509a7c]
cmp al, 0x20
jne 0x42eafc
inc dword [0x509a88]
mov edx, dword [0x509a88]
mov al, byte [edx]
test al, al
je 0x42eafc
cmp dword [0x509a7c], 0
jg 0x42ead7
mov edx, dword [0x509a88]
cmp byte [edx], 0
je 0x42eb35
mov ecx, dword [0x509a88]
push edi
mov esi, 0x515718
mov edi, ecx
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xchg edi, esi
mov eax, edi
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
jmp 0x42ebae
push edi
mov esi, 0x515718
mov edi, 0x515aff
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xchg edi, esi
mov eax, edi
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
jmp 0x42ebae
push edi
mov esi, 0x515718
mov edi, 0x515aff
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xchg edi, esi
mov eax, edi
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
jmp 0x42ebae
push edi
mov esi, 0x4f2d40
mov edi, 0x515718
mov eax, edi
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
pop edi
push 0x515aff
push 0x515718
call fcn.0040123c
add esp, 8
cmp dword [0x509a78], 0
je 0x42ecfc
cmp dword [0x509ac0], 0
je 0x42ed08
xor edx, edx
mov dword [0x509ac0], edx
mov byte [0x515aff], 0
cmp dword [0x509aa8], 0
je 0x42ec01
push 2
push 0x4f2d44
push 0x515aff
call fcn.00401318
pop ecx
add eax, 0x515aff
push eax
call sub.USER32.dll_wsprintfA
add esp, 0xc
cmp dword [0x509aac], 0
je 0x42ec2b
push 0x1f
push 0x4f2d48
push 0x515aff
call fcn.00401318
pop ecx
add eax, 0x515aff
push eax
call sub.USER32.dll_wsprintfA
add esp, 0xc
cmp dword [0x509ab0], 0
je 0x42ec55
push 0x16
push 0x4f2d4c
push 0x515aff
call fcn.00401318
pop ecx
add eax, 0x515aff
push eax
call sub.USER32.dll_wsprintfA
add esp, 0xc
cmp dword [0x509abc], 2
jne 0x42ec8e
mov ecx, dword [0x509ab8]
push ecx
mov eax, dword [0x509ab4]
push eax
push 3
push 0x4f2d50
push 0x515aff
call fcn.00401318
pop ecx
add eax, 0x515aff
push eax
call sub.USER32.dll_wsprintfA
add esp, 0x14
jmp 0x42ecbf
cmp dword [0x509abc], 1
jne 0x42ecbf
mov edx, dword [0x509ab4]
push edx
push 3
push 0x4f2d59
push 0x515aff
call fcn.00401318
pop ecx
add eax, 0x515aff
push eax
call sub.USER32.dll_wsprintfA
add esp, 0x10
push 0x515718
push 0x515aff
call fcn.0040123c
add esp, 8
push edi
mov esi, 0x515718
mov edi, 0x515aff
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xchg edi, esi
mov eax, edi
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
jmp 0x42ed08
push 0xf
push 0x515718
call fcn.004d7fb8
mov eax, dword [0x509a64]
push eax
call fcn.00401318
pop ecx
mov ebx, eax
push 0x515718
call fcn.00401318
pop ecx
add ebx, eax
add ebx, 0x14
mov dword [0x509a7c], ebx
cmp ebx, dword [0x509aa4]
jle 0x42ed6d
add dword [0x509a7c], 0x64
mov eax, dword [0x509a7c]
mov dword [0x509aa4], eax
mov edx, dword [0x509aa4]
push edx
mov ecx, dword [0x509a64]
push ecx
call fcn.0040c9f0
add esp, 8
mov ebx, eax
mov dword [0x509a68], ebx
test ebx, ebx
je 0x42edc8
mov dword [0x509a64], ebx
push 0x515718
mov eax, dword [0x509a64]
push eax
call fcn.0040123c
add esp, 8
mov eax, dword [edi]
mov edx, dword [eax + 4]
mov dword [0x509aa0], edx
mov ecx, dword [eax + 0x30]
mov dword [edi], ecx
dec dword [0x509a84]
mov ebx, dword [edi]
test ebx, ebx
je 0x42eda9
cmp dword [0x509a84], 0
jge 0x42e7a5
mov eax, dword [0x509a64]
push eax
call fcn.00401318
pop ecx
cmp eax, 1
jbe 0x42edc8
push 0
mov edx, dword [0x509a64]
push edx
call fcn.0041fc64
cmp dword [0x509a64], 0
je 0x42edde
mov ecx, dword [0x509a64]
push ecx
call fcn.0040c454
pop ecx
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4