Function at 0x50dec8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x50e70c
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004558e0
mov eax, dword [ebp - 8]
cmp dword [eax + 0xc], 0
jne 0x50e6ee
mov byte [ebp - 0x27], 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x26c]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x268]
mov eax, dword [ebp - 4]
call fcn.004bc9a0
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x405]
mov ebx, dword [ebp - 0x10]
cmp eax, ebx
jg 0x50e6ee
cmp dword [ebp - 0xc], 0
jl 0x50e6ee
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004fa824
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2ec]
call fcn.004f8b2c
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x134]
dec eax
mov esi, dword [ebp - 0xc]
cmp eax, esi
jne 0x50dfe9
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xc0]
cmp dword [eax + 0x1c], 0
je 0x50dfe9
mov ebx, dword [ebp - 0x10]
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004fa824
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2ec]
call fcn.004f8b2c
mov eax, dword [eax + 0xc0]
mov eax, dword [eax + 0x1c]
lea edx, [ebp - 0x3c]
call fcn.00450618
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
add eax, 0x38
call fcn.0040489c
lea eax, [ebp - 0x4c]
push eax
mov ecx, esi
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0050c8a8
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
lea esi, [ebp - 0x4c]
lea edi, [eax + 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jmp 0x50e6ee
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x134]
dec eax
cmp eax, dword [ebp - 0xc]
jne 0x50e00c
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xc0]
call fcn.004f4de8
test al, al
jne 0x50e042
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x406]
cmp eax, dword [ebp - 0xc]
jg 0x50e6ee
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2f4]
cmp byte [eax + 0x15], 0
je 0x50e6ee
mov eax, dword [ebp - 0x14]
call fcn.004f7d90
test al, al
je 0x50e6ee
mov eax, dword [0x5aa558]
mov eax, dword [eax]
call fcn.0045e81c
test eax, eax
jne 0x50e6ee
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jl 0x50e6ee
lea eax, [ebp - 0x37]
push eax
mov ebx, dword [ebp - 0xc]
mov ecx, ebx
mov esi, dword [ebp - 0x10]
mov edx, esi
mov eax, dword [ebp - 4]
call fcn.0050c8a8
mov eax, dword [ebp - 4]
mov edi, dword [eax + 0x268]
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x6c]
test al, al
je 0x50e0be
mov eax, dword [ebp - 4]
call fcn.00452f50
mov edx, eax
sub edx, dword [ebp - 0x2f]
sub edx, dword [ebp - 0x37]
lea eax, [ebp - 0x37]
xor ecx, ecx
call fcn.0040722c
mov eax, dword [ebp - 4]
call fcn.00452f50
mov edi, eax
mov eax, dword [ebp - 4]
sub edi, dword [eax + 0x268]
mov eax, dword [ebp - 0x14]
call fcn.004f5d04
add eax, dword [ebp - 0x37]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x134]
dec eax
cmp ebx, eax
jne 0x50e24d
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xc0]
call fcn.004f4e1c
cmp eax, 2
jle 0x50e11b
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xc0]
call fcn.004f4e1c
sub eax, 2
sub dword [ebp - 0x2f], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xc0]
call fcn.004f4e1c
sub eax, 2
sub dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0x516], 1
jne 0x50e17e
mov edx, esi
mov eax, dword [ebp - 4]
call fcn.004fa824
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x490]
mov eax, dword [edx + eax*8]
mov edx, dword [eax + 0x20]
lea eax, [ebp - 0x24]
call fcn.004048e0
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x405]
sub esi, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x490]
mov eax, dword [eax + esi*8]
push dword [eax + 0x10]
mov eax, dword [ebp - 0x2b]
pop edx
sub eax, edx
inc eax
mov dword [ebp - 0x33], eax
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x26c]
jg 0x50e6ee
jmp 0x50e18f
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xc0]
call fcn.004f46ec
mov eax, dword [ebp - 4]
cmp byte [eax + 0x516], 1
je 0x50e1b7
mov eax, dword [ebp - 4]
call fcn.00506178
test eax, eax
jne 0x50e1b7
mov eax, dword [ebp - 4]
call fcn.00506198
test eax, eax
jne 0x50e1b7
xor eax, eax
jmp 0x50e1b9
mov al, 1
mov byte [ebp - 0x25], al
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xc0]
call fcn.004f46c4
mov byte [ebp - 0x26], al
mov eax, dword [ebp - 4]
cmp dword [eax + 0x31c], 0
jne 0x50e1ee
mov dl, 1
mov eax, dword [0x42a2f0]
call fcn.0042ba88
mov edx, dword [ebp - 4]
mov dword [edx + 0x31c], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xc0]
call fcn.004f4714
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x31c]
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x31c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x208]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xc0]
call fcn.004f503c
cmp al, 1
jne 0x50e542
mov byte [ebp - 0x25], 0
lea eax, [ebp - 0x37]
call fcn.004ec8e4
jmp 0x50e542
mov eax, dword [ebp - 4]
call fcn.0050fec4
mov edx, dword [ebp - 4]
movzx esi, byte [edx + 0x406]
add eax, esi
cmp ebx, eax
jge 0x50e488
mov byte [ebp - 0x27], 1
mov edx, ebx
sub edx, esi
mov eax, dword [ebp - 4]
call fcn.005081bc
xor eax, eax
push ebp
push 0x50e481
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 0x14]
call fcn.0050ddf8
mov eax, dword [ebp - 0x14]
call fcn.004f7e14
test al, al
je 0x50e2d5
mov eax, dword [ebp - 0x14]
call fcn.004f5d04
mov ebx, eax
add ebx, dword [ebp - 0x37]
mov eax, dword [ebp - 0x14]
call fcn.004f8474
sub ebx, eax
mov dword [ebp - 0x1c], ebx
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x2f]
jge 0x50e2c6
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x2f], eax
cmp edi, dword [ebp - 0x2f]
jle 0x50e2e3
lea eax, [ebp - 0x24]
call fcn.00404848
jmp 0x50e2e3
mov eax, dword [ebp - 0x14]
call fcn.004f5d04
add eax, dword [ebp - 0x37]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x518]
xor edx, edx
call fcn.00511550
cmp eax, dword [ebp - 0x14]
jne 0x50e303
mov eax, dword [ebp - 4]
call fcn.0050a88c
add dword [ebp - 0x37], eax
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x54], 0
je 0x50e327
mov eax, dword [ebp - 0x14]
call fcn.004f8914
test al, al
je 0x50e327
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x54]
mov eax, dword [eax + 0x34]
add eax, 5
add dword [ebp - 0x37], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x28]
cmp eax, dword [ebp - 0x37]
jge 0x50e33d
lea eax, [ebp - 0x24]
call fcn.00404848
mov eax, dword [ebp - 0x14]
call fcn.004f5a44
mov byte [ebp - 0x26], al
mov eax, dword [ebp - 0x14]
call fcn.004f67f4
add al, 0xfc
sub al, 2
jae 0x50e35a
mov byte [ebp - 0x26], 0
mov eax, dword [ebp - 0x14]
call fcn.004f6524
test al, al
je 0x50e372
mov eax, dword [ebp - 4]
cmp byte [eax + 0x44d], 0
jne 0x50e376
xor eax, eax
jmp 0x50e378
mov al, 1
mov byte [ebp - 0x25], al
mov eax, dword [ebp - 4]
cmp dword [eax + 0x31c], 0
jne 0x50e39c
mov dl, 1
mov eax, dword [0x42a2f0]
call fcn.0042ba88
mov edx, dword [ebp - 4]
mov dword [edx + 0x31c], eax
mov eax, dword [ebp - 0x14]
call fcn.004f5bdc
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x31c]
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x454]
mov eax, dword [ebp - 0x14]
call fcn.004f8110
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x454]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x208]
mov eax, dword [eax + 0x14]
call fcn.0042c440
mov dword [ebx + 8], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x31c]
mov dword [ebx + 0x14], eax
mov al, byte [0x50e71c]
mov byte [ebx + 0x24], al
mov al, byte [ebp - 0x26]
mov byte [ebx + 4], al
lea eax, [ebx + 0x28]
mov edx, dword [ebp - 0x24]
call fcn.0040489c
mov eax, dword [ebp - 0x10]
mov dword [ebx + 0x10], eax
mov eax, dword [ebp - 0xc]
mov dword [ebx + 0x20], eax
lea eax, [ebx + 8]
push eax
mov al, byte [ebx + 0x24]
push eax
mov ecx, dword [ebx + 0x14]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
mov si, 0xff91
call fcn.00403b20
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x454]
xor edx, edx
mov eax, dword [ebp - 0x14]
mov esi, dword [eax]
call dword [esi + 0x70]
lea eax, [ebp - 0x24]
mov edx, dword [ebx + 0x28]
call fcn.004048e0
mov al, byte [ebx + 4]
mov byte [ebp - 0x26], al
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x31c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x208]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50e542
mov eax, dword [ebp - 4]
call fcn.00508210
ret
mov eax, dword [ebp - 4]
call fcn.00506148
test eax, eax
jle 0x50e6ee
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x294]
dec eax
cmp eax, dword [ebp - 0xc]
jge 0x50e6ee
mov eax, dword [ebp - 4]
mov ebx, dword [ebp - 0xc]
mov edx, ebx
sub edx, dword [eax + 0x294]
mov eax, dword [ebp - 0x14]
call fcn.004f7dec
mov esi, eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x31c], 0
jne 0x50e4e4
mov dl, 1
mov eax, dword [0x42a2f0]
call fcn.0042ba88
mov edx, dword [ebp - 4]
mov dword [edx + 0x31c], eax
mov eax, esi
call fcn.00510cb0
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x31c]
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x31c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x208]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
call dword [ecx + 8]
mov al, byte [esi + 0x31]
mov byte [ebp - 0x25], al
mov eax, esi
call fcn.00510c90
mov byte [ebp - 0x26], al
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 4]
mov edx, ebx
sub edx, dword [eax + 0x294]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x1b0]
cmp byte [ebp - 0x25], 0
je 0x50e54f
mov ebx, 2
jmp 0x50e551
xor ebx, ebx
cmp byte [ebp - 0x27], 0
je 0x50e569
mov eax, dword [ebp - 0x14]
call fcn.004f67f4
add al, 0xfc
sub al, 2
jae 0x50e569
mov al, 1
jmp 0x50e59f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x32c]
push eax
mov eax, dword [ebp - 0x24]
push eax
lea eax, [ebp - 0x37]
push eax
mov al, byte [ebp - 0x25]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 4]
call fcn.004558b4
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x208]
mov ecx, ebx
call fcn.004ec8fc
mov edx, dword [ebp - 4]
cmp byte [edx + 0x254], 0
je 0x50e5b2
mov esi, 2
jmp 0x50e5b7
mov esi, 1
mov edx, dword [ebp - 8]
mov edx, dword [edx + 8]
mov ebx, edx
test al, al
jne 0x50e5dc
cmp byte [ebp - 0x26], 1
jne 0x50e6e6
mov eax, dword [ebp - 0x1c]
sub eax, 2
cmp eax, dword [ebp - 0x2f]
jle 0x50e6e6
lea eax, [ebx + 0x38]
mov edx, dword [ebp - 0x24]
call fcn.0040489c
push esi
lea edi, [ebx + 0x18]
lea esi, [ebp - 0x37]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
mov al, byte [ebp - 0x26]
sub al, 1
jb 0x50e605
je 0x50e624
dec al
je 0x50e649
jmp 0x50e68a
lea ecx, [ebp - 0x54]
mov edx, dword [ebp - 0x33]
sub edx, esi
mov eax, dword [ebp - 0x37]
dec eax
call fcn.00407118
mov eax, dword [ebp - 0x54]
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x50]
mov dword [ebx + 0xc], eax
jmp 0x50e68a
lea ecx, [ebp - 0x54]
mov edx, dword [ebp - 0x33]
sub edx, esi
mov eax, dword [ebp - 0x1c]
inc eax
sub eax, dword [ebp - 0x18]
sub eax, 7
call fcn.00407118
mov eax, dword [ebp - 0x54]
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x50]
mov dword [ebx + 0xc], eax
jmp 0x50e68a
mov eax, dword [ebp - 0x1c]
inc eax
sub eax, dword [ebp - 0x18]
sub eax, 6
mov edx, dword [ebp - 0x18]
sar edx, 1
jns 0x50e65d
adc edx, 0
add eax, edx
mov edx, dword [ebp - 0x1c]
sub edx, dword [ebp - 0x37]
sub edx, 4
sar edx, 1
jns 0x50e66f
adc edx, 0
sub eax, edx
lea ecx, [ebp - 0x54]
mov edx, dword [ebp - 0x33]
sub edx, esi
call fcn.00407118
mov eax, dword [ebp - 0x54]
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x50]
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x6c]
test al, al
je 0x50e6a4
mov eax, dword [ebp - 4]
call fcn.00452f50
sub eax, dword [ebx + 8]
mov dword [ebx + 8], eax
lea ecx, [ebp - 0x54]
lea edx, [ebx + 8]
mov eax, dword [ebp - 4]
call fcn.00453064
mov eax, dword [ebp - 0x54]
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x50]
mov dword [ebx + 0xc], eax
mov eax, dword [0x4f90bc]
mov dword [ebx + 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x31c]
mov dword [ebx + 0x3c], eax
cmp byte [ebp - 0x25], 0
je 0x50e6ee
mov eax, dword [ebp - 0x2f]
sub eax, dword [ebp - 0x37]
sub eax, 4
mov dword [ebx + 0x10], eax
jmp 0x50e6ee
lea eax, [ebx + 0x38]
call fcn.00404848
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50e713
lea eax, [ebp - 0x3c]
call fcn.00404848
lea eax, [ebp - 0x24]
call fcn.00404848
ret