Function at 0x4ffcb0
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x160
mov eax, dword [0x6ab100]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x6d97b0], 0
xorps xmm0, xmm0
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x120], ecx
mov dword [ebp - 0x11c], eax
movups xmmword [ebp - 0x14], xmm0
je 0x4fff76
cmp byte [ebp + 0x10], 0
push edi
je 0x4ffcff
push ecx
call fcn.005000c0
mov edi, eax
add esp, 4
test edi, edi
jne 0x4ffd1e
cmp ecx, 0x10
jne 0x4ffd17
push 3
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
mov ecx, eax
mov dword [ebp - 0x120], eax
movzx edi, byte [ecx + 0x62a558]
push ebx
push esi
push 1
push edi
call fcn.00500260
mov esi, edi
add esp, 8
and esi, 0x8000001f
jns 0x4ffd3a
dec esi
or esi, 0xffffffe0
inc esi
cmp byte [ebp + 0x14], 0
mov ebx, 1
je 0x4ffd65
mov eax, edi
mov byte [ebp - 0x115], bl
cdq
mov ecx, esi
and edx, 0x1f
add eax, edx
mov edx, ebx
sar eax, 5
shl edx, cl
test dword [eax*4 + 0x6d983c], edx
jne 0x4ffd6c
mov byte [ebp - 0x115], 0
mov eax, edi
cdq
and edx, 0x1f
add eax, edx
sar eax, 5
push 0x6d97b8
mov ecx, dword [eax*4 + 0x6d983c]
bts ecx, esi
mov dword [eax*4 + 0x6d983c], ecx
call fcn.004a16f0
add esp, 4
test al, al
je 0x4fff73
mov dword [ebp - 0x160], 0xa
call fcn.004801d0
mov esi, dword [ebp - 0x11c]
fstp qword [ebp - 0x158]
mov dword [ebp - 0x150], esi
mov dword [ebp - 0x14c], edi
mov dword [ebp - 0x148], 0
call fcn.00500370
mov eax, dword [0x6d985c]
push 0x6d97b8
mov dword [ebp - 0x144], eax
mov byte [ebp - 0x140], 0
call fcn.004a1020
add esp, 4
test edi, edi
jle 0x4ffe13
cmp byte [ebp - 0x115], 0
jne 0x4ffe13
lea eax, [ebp - 0x160]
push eax
push 0x6d97b8
call fcn.004a1630
add esp, 8
cmp edi, 0xd7
jge 0x4fff1a
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
setne cl
test eax, eax
je 0x4ffe57
mov al, byte [ebp - 0x103]
test al, al
je 0x4ffe57
test byte [0x6d985c], 2
mov edx, 0
movzx eax, al
cmovne eax, edx
mov byte [ebp - 0x103], al
mov esi, dword [ebp - 0x120]
lea eax, [ebp - 0x14]
push 0
push 8
push eax
xor edx, edx
lea eax, [ebp - 0x114]
test cl, cl
cmove eax, edx
push eax
push dword [ebp + 8]
push esi
call dword [sym.imp.USER32.dll_ToUnicode]
test eax, eax
jne 0x4ffeb9
cmp esi, 0x2e
jne 0x4ffebe
mov eax, 0x7f
mov dword [ebp - 0x160], 0xb
mov word [ebp - 0x14], ax
call fcn.00500370
mov eax, dword [0x6d985c]
xor esi, esi
mov dword [ebp - 0x144], eax
mov al, byte [ebp - 0x115]
mov byte [ebp - 0x140], al
jmp 0x4ffef0
cmp eax, 0xffffffff
je 0x4fff14
test eax, eax
mov dword [ebp - 0x160], 0xb
cmovne ebx, eax
call fcn.00500370
mov eax, dword [0x6d985c]
xor esi, esi
mov dword [ebp - 0x144], eax
mov al, byte [ebp - 0x115]
mov byte [ebp - 0x140], al
test ebx, ebx
jle 0x4fff14
nop
movzx eax, word [ebp + esi*2 - 0x14]
mov dword [ebp - 0x148], eax
lea eax, [ebp - 0x160]
push eax
push 0x6d97b8
call fcn.004a1630
inc esi
add esp, 8
cmp esi, ebx
jl 0x4ffef0
mov esi, dword [ebp - 0x11c]
push 0x6d97b8
call fcn.004a10e0
add esp, 4
test edi, edi
je 0x4fff73
cmp byte [ebp + 0x14], 0
jne 0x4fff73
call fcn.004801c0
mov ecx, dword [eax + 0x28]
test ecx, ecx
je 0x4fff73
cmp edi, ecx
jne 0x4fff73
mov ecx, dword [eax + 0x2c]
and ecx, dword [0x6d985c]
cmp ecx, dword [eax + 0x2c]
jne 0x4fff73
cmp dword [eax + 0x24], esi
jne 0x4fff6a
call fcn.0047fc60
pop esi
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005e8cbe
mov esp, ebp
pop ebp
ret
push esi
call fcn.0047fba0
add esp, 4
pop esi
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005e8cbe
mov esp, ebp
pop ebp
ret