Function at 0x50f444
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 0x50fc88
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004588b4
mov eax, dword [ebp - 8]
cmp dword [eax + 0xc], 0
jne 0x50fc6a
mov byte [ebp - 0x27], 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x278]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x274]
mov eax, dword [ebp - 4]
call fcn.004c313c
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x3c5]
mov ebx, dword [ebp - 0x10]
cmp eax, ebx
jg 0x50fc6a
cmp dword [ebp - 0xc], 0
jl 0x50fc6a
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004fbb34
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c8]
call fcn.004f8ec8
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x12c]
dec eax
mov esi, dword [ebp - 0xc]
cmp eax, esi
jne 0x50f565
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xb8]
cmp dword [eax + 0x1c], 0
je 0x50f565
mov ebx, dword [ebp - 0x10]
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004fbb34
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c8]
call fcn.004f8ec8
mov eax, dword [eax + 0xb8]
mov eax, dword [eax + 0x1c]
lea edx, [ebp - 0x3c]
call fcn.004535e4
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
add eax, 0x38
call fcn.00404314
lea eax, [ebp - 0x4c]
push eax
mov ecx, esi
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0050dd1c
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 0x50fc6a
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x12c]
dec eax
cmp eax, dword [ebp - 0xc]
jne 0x50f588
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xb8]
call fcn.004f52dc
test al, al
jne 0x50f5be
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x3c6]
cmp eax, dword [ebp - 0xc]
jg 0x50fc6a
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2d0]
cmp byte [eax + 0x15], 0
je 0x50fc6a
mov eax, dword [ebp - 0x14]
call fcn.004f8138
test al, al
je 0x50fc6a
mov eax, dword [0x51c248]
mov eax, dword [eax]
call fcn.004617d0
test eax, eax
jne 0x50fc6a
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jl 0x50fc6a
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.0050dd1c
mov eax, dword [ebp - 4]
mov edi, dword [eax + 0x274]
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x6c]
test al, al
je 0x50f63a
mov eax, dword [ebp - 4]
call fcn.00455f1c
mov edx, eax
sub edx, dword [ebp - 0x2f]
sub edx, dword [ebp - 0x37]
lea eax, [ebp - 0x37]
xor ecx, ecx
call fcn.00406ac8
mov eax, dword [ebp - 4]
call fcn.00455f1c
mov edi, eax
mov eax, dword [ebp - 4]
sub edi, dword [eax + 0x274]
mov eax, dword [ebp - 0x14]
call fcn.004f61f8
add eax, dword [ebp - 0x37]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x12c]
dec eax
cmp ebx, eax
jne 0x50f7c9
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xb8]
call fcn.004f5310
cmp eax, 2
jle 0x50f697
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xb8]
call fcn.004f5310
sub eax, 2
sub dword [ebp - 0x2f], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xb8]
call fcn.004f5310
sub eax, 2
sub dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0x4ce], 1
jne 0x50f6fa
mov edx, esi
mov eax, dword [ebp - 4]
call fcn.004fbb34
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x44c]
mov eax, dword [edx + eax*8]
mov edx, dword [eax + 0x20]
lea eax, [ebp - 0x24]
call fcn.00404358
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x3c5]
sub esi, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44c]
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 + 0x278]
jg 0x50fc6a
jmp 0x50f70b
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xb8]
call fcn.004f4be0
mov eax, dword [ebp - 4]
cmp byte [eax + 0x4ce], 1
je 0x50f733
mov eax, dword [ebp - 4]
call fcn.00507614
test eax, eax
jne 0x50f733
mov eax, dword [ebp - 4]
call fcn.00507634
test eax, eax
jne 0x50f733
xor eax, eax
jmp 0x50f735
mov al, 1
mov byte [ebp - 0x25], al
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xb8]
call fcn.004f4bb8
mov byte [ebp - 0x26], al
mov eax, dword [ebp - 4]
cmp dword [eax + 0x2f4], 0
jne 0x50f76a
mov dl, 1
mov eax, dword [0x427ea8]
call fcn.0042961c
mov edx, dword [ebp - 4]
mov dword [edx + 0x2f4], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xb8]
call fcn.004f4c08
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2f4]
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x2f4]
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 + 0xb8]
call fcn.004f5530
cmp al, 1
jne 0x50fabe
mov byte [ebp - 0x25], 0
lea eax, [ebp - 0x37]
call fcn.004ede68
jmp 0x50fabe
mov eax, dword [ebp - 4]
call fcn.005116e0
mov edx, dword [ebp - 4]
movzx esi, byte [edx + 0x3c6]
add eax, esi
cmp ebx, eax
jge 0x50fa04
mov byte [ebp - 0x27], 1
mov edx, ebx
sub edx, esi
mov eax, dword [ebp - 4]
call fcn.00509830
xor eax, eax
push ebp
push 0x50f9fd
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 0x14]
call fcn.0050f374
mov eax, dword [ebp - 0x14]
call fcn.004f81bc
test al, al
je 0x50f851
mov eax, dword [ebp - 0x14]
call fcn.004f61f8
mov ebx, eax
add ebx, dword [ebp - 0x37]
mov eax, dword [ebp - 0x14]
call fcn.004f8810
sub ebx, eax
mov dword [ebp - 0x1c], ebx
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x2f]
jge 0x50f842
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x2f], eax
cmp edi, dword [ebp - 0x2f]
jle 0x50f85f
lea eax, [ebp - 0x24]
call fcn.004042c0
jmp 0x50f85f
mov eax, dword [ebp - 0x14]
call fcn.004f61f8
add eax, dword [ebp - 0x37]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4d0]
xor edx, edx
call fcn.00512cd8
cmp eax, dword [ebp - 0x14]
jne 0x50f87f
mov eax, dword [ebp - 4]
call fcn.0050bde8
add dword [ebp - 0x37], eax
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x50], 0
je 0x50f8a3
mov eax, dword [ebp - 0x14]
call fcn.004f8cb0
test al, al
je 0x50f8a3
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x50]
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 0x50f8b9
lea eax, [ebp - 0x24]
call fcn.004042c0
mov eax, dword [ebp - 0x14]
call fcn.004f5f38
mov byte [ebp - 0x26], al
mov eax, dword [ebp - 0x14]
call fcn.004f6d00
add al, 0xfc
sub al, 2
jae 0x50f8d6
mov byte [ebp - 0x26], 0
mov eax, dword [ebp - 0x14]
call fcn.004f6a2c
test al, al
je 0x50f8ee
mov eax, dword [ebp - 4]
cmp byte [eax + 0x409], 0
jne 0x50f8f2
xor eax, eax
jmp 0x50f8f4
mov al, 1
mov byte [ebp - 0x25], al
mov eax, dword [ebp - 4]
cmp dword [eax + 0x2f4], 0
jne 0x50f918
mov dl, 1
mov eax, dword [0x427ea8]
call fcn.0042961c
mov edx, dword [ebp - 4]
mov dword [edx + 0x2f4], eax
mov eax, dword [ebp - 0x14]
call fcn.004f60d0
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2f4]
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x410]
mov eax, dword [ebp - 0x14]
call fcn.004f84b8
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x410]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x208]
mov eax, dword [eax + 0x14]
call fcn.00429fd4
mov dword [ebx + 8], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2f4]
mov dword [ebx + 0x14], eax
mov al, byte [0x50fc98]
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.00404314
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.0040364c
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x410]
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.00404358
mov al, byte [ebx + 4]
mov byte [ebp - 0x26], al
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x2f4]
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 0x50fabe
mov eax, dword [ebp - 4]
call fcn.00509884
ret
mov eax, dword [ebp - 4]
call fcn.005075e4
test eax, eax
jle 0x50fc6a
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24c]
dec eax
cmp eax, dword [ebp - 0xc]
jge 0x50fc6a
mov eax, dword [ebp - 4]
mov ebx, dword [ebp - 0xc]
mov edx, ebx
sub edx, dword [eax + 0x24c]
mov eax, dword [ebp - 0x14]
call fcn.004f8194
mov esi, eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x2f4], 0
jne 0x50fa60
mov dl, 1
mov eax, dword [0x427ea8]
call fcn.0042961c
mov edx, dword [ebp - 4]
mov dword [edx + 0x2f4], eax
mov eax, esi
call fcn.00512438
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2f4]
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x2f4]
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.00512418
mov byte [ebp - 0x26], al
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 4]
mov edx, ebx
sub edx, dword [eax + 0x24c]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x1a4]
cmp byte [ebp - 0x25], 0
je 0x50facb
mov ebx, 2
jmp 0x50facd
xor ebx, ebx
cmp byte [ebp - 0x27], 0
je 0x50fae5
mov eax, dword [ebp - 0x14]
call fcn.004f6d00
add al, 0xfc
sub al, 2
jae 0x50fae5
mov al, 1
jmp 0x50fb1b
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x300]
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.00458888
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x208]
mov ecx, ebx
call fcn.004ede80
mov edx, dword [ebp - 4]
cmp byte [edx + 0x298], 0
je 0x50fb2e
mov esi, 2
jmp 0x50fb33
mov esi, 1
mov edx, dword [ebp - 8]
mov edx, dword [edx + 8]
mov ebx, edx
test al, al
jne 0x50fb58
cmp byte [ebp - 0x26], 1
jne 0x50fc62
mov eax, dword [ebp - 0x1c]
sub eax, 2
cmp eax, dword [ebp - 0x2f]
jle 0x50fc62
lea eax, [ebx + 0x38]
mov edx, dword [ebp - 0x24]
call fcn.00404314
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 0x50fb81
je 0x50fba0
dec al
je 0x50fbc5
jmp 0x50fc06
lea ecx, [ebp - 0x54]
mov edx, dword [ebp - 0x33]
sub edx, esi
mov eax, dword [ebp - 0x37]
dec eax
call fcn.004069b4
mov eax, dword [ebp - 0x54]
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x50]
mov dword [ebx + 0xc], eax
jmp 0x50fc06
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.004069b4
mov eax, dword [ebp - 0x54]
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x50]
mov dword [ebx + 0xc], eax
jmp 0x50fc06
mov eax, dword [ebp - 0x1c]
inc eax
sub eax, dword [ebp - 0x18]
sub eax, 6
mov edx, dword [ebp - 0x18]
sar edx, 1
jns 0x50fbd9
adc edx, 0
add eax, edx
mov edx, dword [ebp - 0x1c]
sub edx, dword [ebp - 0x37]
sub edx, 4
sar edx, 1
jns 0x50fbeb
adc edx, 0
sub eax, edx
lea ecx, [ebp - 0x54]
mov edx, dword [ebp - 0x33]
sub edx, esi
call fcn.004069b4
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 0x50fc20
mov eax, dword [ebp - 4]
call fcn.00455f1c
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.00456030
mov eax, dword [ebp - 0x54]
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x50]
mov dword [ebx + 0xc], eax
mov eax, dword [0x4f945c]
mov dword [ebx + 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2f4]
mov dword [ebx + 0x3c], eax
cmp byte [ebp - 0x25], 0
je 0x50fc6a
mov eax, dword [ebp - 0x2f]
sub eax, dword [ebp - 0x37]
sub eax, 4
mov dword [ebx + 0x10], eax
jmp 0x50fc6a
lea eax, [ebx + 0x38]
call fcn.004042c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50fc8f
lea eax, [ebp - 0x3c]
call fcn.004042c0
lea eax, [ebp - 0x24]
call fcn.004042c0
ret