Function at 0x419820
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46742d
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4b6100]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebp + 8], 0
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1c], eax
jne 0x419ab1
mov esi, dword [ebp + 0xc]
mov ecx, dword [sym.imp.USER32.dll_MapVirtualKeyW]
cmp esi, 0x105
je 0x419877
cmp esi, 0x101
jne 0x419946
movups xmm0, xmmword [eax]
push 1
psrldq xmm0, 4
movd eax, xmm0
push eax
call ecx
push eax
push dword [0x4ba184]
push dword [0x4ba180]
call fcn.00463fd0
mov edx, dword [0x4ba184]
cmp eax, edx
je 0x41993d
lea ecx, [eax + 4]
sub edx, ecx
push edx
push ecx
push eax
call sub.VCRUNTIME140.dll_memmove
sub dword [0x4ba184], 4
mov ecx, esp
mov dword [ebp - 0x18], esp
push 0x4ba180
call fcn.00419dc0
sub esp, 0xc
mov dword [ebp - 4], 0
mov edi, esp
mov dword [ebp - 0x14], edi
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov eax, dword [0x4b9d8c]
sub eax, dword [0x4b9d88]
sar eax, 2
test eax, eax
je 0x419931
push eax
mov ecx, edi
call fcn.00419f20
mov esi, dword [0x4b9d8c]
mov eax, dword [0x4b9d88]
sub esi, eax
mov edi, dword [edi]
push esi
push eax
push edi
call sub.VCRUNTIME140.dll_memmove
mov ecx, dword [ebp - 0x14]
add esp, 0xc
sar esi, 2
lea eax, [edi + esi*4]
mov esi, dword [ebp + 0xc]
mov dword [ecx + 4], eax
mov dword [ebp - 4], 0xffffffff
call fcn.00418f70
mov ecx, dword [sym.imp.USER32.dll_MapVirtualKeyW]
mov eax, dword [ebp - 0x1c]
cmp esi, 0x104
je 0x41995a
cmp esi, 0x100
jne 0x419ab1
movups xmm0, xmmword [eax]
push 1
psrldq xmm0, 4
movd eax, xmm0
push eax
call ecx
mov esi, eax
push esi
push dword [0x4ba184]
mov dword [ebp - 0x14], esi
push dword [0x4ba180]
call fcn.00463fd0
mov ecx, dword [0x4ba184]
cmp eax, ecx
jne 0x419a84
cmp ecx, dword [0x4ba188]
je 0x4199a3
mov dword [ecx], esi
add dword [0x4ba184], 4
jmp 0x4199b2
lea eax, [ebp - 0x14]
push eax
push ecx
mov ecx, 0x4ba180
call fcn.00405820
cmp esi, 0xd
jne 0x419a18
sub esp, 8
mov ecx, esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [0x4ba194]
test eax, eax
je 0x4199d6
lock inc dword [eax + 4]
mov eax, dword [0x4ba190]
mov dword [ecx], eax
mov eax, dword [0x4ba194]
mov dword [ecx + 4], eax
call fcn.0040b970
add esp, 8
test al, al
je 0x419a84
mov cl, byte [0x4b9d94]
mov eax, 0x4aca68
test cl, cl
mov edx, str.closed
sete byte [0x4b9d94]
test cl, cl
cmovne eax, edx
mov dword [ebp - 0x14], eax
jmp 0x419a6e
cmp esi, 0x1b
jne 0x419a84
cmp byte [0x4b9d94], 0
je 0x419a84
sub esp, 8
mov ecx, esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [0x4ba194]
test eax, eax
je 0x419a45
lock inc dword [eax + 4]
mov eax, dword [0x4ba190]
mov dword [ecx], eax
mov eax, dword [0x4ba194]
mov dword [ecx + 4], eax
call fcn.0040b970
add esp, 8
test al, al
je 0x419a84
mov byte [0x4b9d94], 0
mov dword [ebp - 0x14], str.closed
mov ecx, dword [0x4ba190]
lea eax, [ebp - 0x14]
push eax
push 0xa
push str.chatbox_
call fcn.00419e80
mov eax, dword [0x4b9d74]
cmp byte [eax + 1], 0
jne 0x419ab1
mov eax, dword [0x4ba18c]
mov al, byte [eax + 0x1a]
push eax
sub esp, 0xc
mov ecx, esp
push 0x4ba180
call fcn.00419dc0
push 0x4b9d88
call fcn.00418ce0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004640a7
mov esp, ebp
pop ebp
ret 0xc