Function at 0x10004790
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x100256fb
push eax
mov dword fs:[0], esp
sub esp, 0x11c
push ebp
push edi
mov edi, 0x10
push edi
mov ebp, ecx
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x100047e9
mov al, byte [esp + 0x138]
test al, al
je 0x100047e9
cmp dword [esp + 0x134], 0x2d
jne 0x10004b47
push 0
push 0x5f
mov ecx, ebp
call fcn.10004790
jmp 0x10004b47
push ebx
mov ebx, dword [esp + 0x138]
lea eax, [ebx - 0xd]
cmp eax, 0x76
push esi
ja case.0x10004805.14
movzx eax, byte [eax + 0x10004b7c]
jmp dword [eax*4 + 0x10004b60]
mov eax, dword [ebp + 0x1240]
cmp eax, dword [ebp + 0x123c]
je 0x10004b45
dec eax
mov dword [ebp + 0x1240], eax
cmp byte [eax], 0
je 0x10004b45
mov edi, edi
mov cl, byte [eax + 1]
mov byte [eax], cl
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x10004830
jmp 0x10004b45
mov eax, dword [ebp + 0x1198]
test eax, eax
je 0x1000486a
lea esi, [ebp + 0x8d0]
mov ecx, esi
call fcn.10004280
mov ecx, esi
call fcn.10004280
mov dword [ebp + 0x1198], 0
mov edx, dword [ebp + 0x8d0]
lea ecx, [ebp + 0x8d0]
imul edx, edx, 0x1c
lea eax, [edx + ecx + 8]
cmp dword [eax + 0x18], edi
jb 0x10004887
mov edx, dword [eax + 4]
jmp 0x1000488a
lea edx, [eax + 4]
mov esi, dword [ebp + 0x123c]
mov al, byte [edx]
inc edx
mov byte [esi], al
inc esi
test al, al
jne 0x10004890
mov esi, dword [ebp + 0x123c]
mov eax, esi
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x100048a5
sub eax, edi
add esi, eax
mov dword [ebp + 0x1240], esi
call fcn.10004280
jmp 0x10004b45
mov eax, dword [ebp + 0x1198]
test eax, eax
jne 0x100048e8
lea esi, [ebp + 0x8d0]
mov ecx, esi
call fcn.100042a0
mov ecx, esi
call fcn.100042a0
mov dword [ebp + 0x1198], 1
mov eax, dword [ebp + 0x8d0]
imul eax, eax, 0x1c
mov ecx, dword [eax + ebp + 0x8f0]
cmp ecx, edi
lea eax, [eax + ebp + 0x8d8]
jb 0x10004908
mov ecx, dword [eax + 4]
jmp 0x1000490b
lea ecx, [eax + 4]
mov edx, dword [ebp + 0x123c]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x10004911
mov edx, dword [ebp + 0x123c]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10004926
sub eax, esi
add edx, eax
mov dword [ebp + 0x1240], edx
mov eax, dword [ebp + 0x8d0]
cmp eax, dword [ebp + 0x8d4]
je 0x10004b45
inc eax
cmp eax, 0x50
mov dword [ebp + 0x8d0], eax
jne 0x10004b45
mov dword [ebp + 0x8d0], 0
jmp 0x10004b45
mov eax, dword [ebp + 0x1240]
cmp eax, dword [ebp + 0x123c]
je 0x10004b45
dec eax
jmp 0x10004b3f
mov edx, dword [ebp + 0x123c]
mov eax, edx
lea esi, [eax + 1]
jmp 0x10004990
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10004990
mov ecx, dword [ebp + 0x1240]
sub eax, esi
add edx, eax
cmp ecx, edx
je 0x10004b45
inc ecx
mov dword [ebp + 0x1240], ecx
jmp 0x10004b45
mov eax, dword [ebp + 0x123c]
mov edi, 0x1002649c
mov esi, eax
mov ecx, 4
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x10004a08
mov eax, dword [ebp + 4]
test eax, eax
jne 0x100049ee
push str.b_aCONSOLE:_wCHAT_MODE_b
push ebp
mov dword [ebp + 4], 1
call fcn.100046b0
add esp, 8
jmp 0x10004aa9
push str.b_aCONSOLE:_wEXEC_MODE_b
push ebp
mov dword [ebp + 4], 0
call fcn.100046b0
add esp, 8
jmp 0x10004aa9
mov ecx, dword [ebp + 4]
test ecx, ecx
jne 0x10004a78
lea eax, [ebp + 0x119c]
push eax
push str.x_s
push ebp
call fcn.100046b0
mov eax, dword [ebp + 0x123c]
mov cl, byte [eax]
add esp, 0xc
test cl, cl
je 0x10004aa9
push eax
mov ecx, 0x1004afb8
call fcn.1000b2a0
mov ecx, dword [ebp + 0x123c]
push ecx
lea ecx, [esp + 0x14]
call fcn.10003c30
lea edx, [esp + 0x10]
lea esi, [ebp + 0x8d0]
push edx
mov ecx, esi
mov dword [esp + 0x138], 0
call fcn.10004670
lea ecx, [esp + 0x10]
call fcn.10010f50
mov eax, dword [esi + 4]
mov dword [esi], eax
jmp 0x10004aa9
cmp ecx, 1
jne 0x10004aa9
cmp byte [eax], 0x20
jne 0x10004a8b
mov cl, byte [eax + 1]
inc eax
cmp cl, 0x20
je 0x10004a82
push eax
lea ecx, [esp + 0x30]
push str.say___s_
push ecx
call fcn.1001642f
lea edx, [esp + 0x38]
push edx
call dword [0x1002f4d0]
add esp, 0x10
mov eax, dword [ebp + 0x123c]
mov byte [eax], 0
mov ecx, dword [ebp + 0x123c]
mov dword [ebp + 0x1240], ecx
jmp 0x10004b45
lea eax, [ebp + 0x119c]
mov ecx, eax
lea esi, [ecx + 1]
mov edi, edi
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x10004ad0
sub ecx, esi
cmp ecx, 0x9c
ja 0x10004b45
mov ecx, dword [ebp + 0x1240]
cmp byte [ecx], 0
jne 0x10004b03
mov byte [ecx], bl
mov eax, dword [ebp + 0x1240]
inc eax
mov dword [ebp + 0x1240], eax
mov ebp, eax
mov byte [ebp], 0
jmp 0x10004b45
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10004b06
sub eax, esi
lea eax, [eax + ebp + 0x119d]
cmp eax, ecx
jbe 0x10004b30
lea ebx, [ebx]
mov dl, byte [eax - 1]
mov byte [eax], dl
mov ecx, dword [ebp + 0x1240]
dec eax
cmp eax, ecx
ja 0x10004b20
mov eax, dword [ebp + 0x1240]
mov byte [eax], bl
mov eax, dword [ebp + 0x1240]
inc eax
mov dword [ebp + 0x1240], eax
pop esi
pop ebx
mov ecx, dword [esp + 0x124]
pop edi
pop ebp
mov dword fs:[0], ecx
add esp, 0x128
ret 8