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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x43a688
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0x58
cmp eax, 0x20
push ebx
push ebp
push esi
push edi
mov esi, ecx
jb 0x41921c
cmp eax, 0x7e
jbe 0x419232
cmp eax, 0xa0
jb 0x4195aa
cmp eax, 0xff
ja 0x4195aa
push eax
call dword [sym.imp.USER32.dll_VkKeyScanA]
cmp ax, 0xffff
mov dword [esp + 0x10], eax
jne 0x419261
mov eax, dword [esp + 0x78]
push eax
push str.ignoring_unrecognised_Latin_1_keysym__d_n
push 8
push 0x44b018
call fcn.004024a0
add esp, 0x10
jmp 0x4196d3
mov esi, dword [esp + 0x80]
xor ebx, ebx
mov dword [esp + 0x28], 0x11
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x30], bl
mov byte [esp + 0x31], bl
mov dword [esp + 0x34], esi
mov dword [esp + 0x70], ebx
mov dword [esp + 0x18], 0x12
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x20], bl
mov byte [esp + 0x21], bl
mov dword [esp + 0x24], esi
mov dword [esp + 0x38], 0x10
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x40], bl
mov byte [esp + 0x41], bl
mov dword [esp + 0x44], esi
mov dword [esp + 0x58], 0xa0
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x60], bl
mov byte [esp + 0x61], bl
mov dword [esp + 0x64], esi
mov dword [esp + 0x48], 0xa1
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x50], bl
mov byte [esp + 0x51], bl
mov dword [esp + 0x54], esi
mov cl, byte [esp + 0x7c]
mov byte [esp + 0x70], 4
cmp cl, bl
je 0x41947b
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
xor ecx, ecx
mov cl, ah
test cl, 2
mov byte [esp + 0x80], cl
je 0x419348
push 0x11
call edi
test ah, 0x80
jne 0x419348
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x28]
push ecx
push edx
push eax
call fcn.004196f0
mov ecx, dword [esp + 0x34]
push ecx
push str.fake__d_down_n
push 9
push 0x44b018
call fcn.004024a0
add esp, 0x1c
mov byte [esp + 0x30], 1
test byte [esp + 0x80], 4
je 0x419390
mov edx, dword [esp + 0x18]
push edx
call edi
test ah, 0x80
jne 0x419390
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
push eax
push ecx
push edx
call fcn.004196f0
mov eax, dword [esp + 0x24]
push eax
push str.fake__d_down_n
push 9
push 0x44b018
call fcn.004024a0
add esp, 0x1c
mov byte [esp + 0x20], 1
test byte [esp + 0x80], 1
je 0x4193d0
push 0x10
call edi
test ah, 0x80
jne 0x41947b
push ebx
push esi
push 0x10
call fcn.004196f0
push 0x10
push str.fake__d_down_n
push 9
push 0x44b018
call fcn.004024a0
add esp, 0x1c
mov byte [esp + 0x40], 1
jmp 0x41947b
call fcn.004222a0
test eax, eax
je 0x41940d
push 0x10
call edi
test ah, 0x80
je 0x41947b
push 2
push esi
push 0x10
call fcn.004196f0
push 0x10
push str.fake__d_up_n
push 9
push 0x44b018
call fcn.004024a0
add esp, 0x1c
mov byte [esp + 0x41], 1
jmp 0x41947b
push 0xa0
call edi
test ah, 0x80
je 0x419444
push 2
push esi
push 0xa0
call fcn.004196f0
push 0xa0
push str.fake__d_up_n
push 9
push 0x44b018
call fcn.004024a0
add esp, 0x1c
mov byte [esp + 0x61], 1
push 0xa1
call edi
test ah, 0x80
je 0x41947b
push 2
push esi
push 0xa1
call fcn.004196f0
push 0xa1
push str.fake__d_up_n
push 9
push 0x44b018
call fcn.004024a0
add esp, 0x1c
mov byte [esp + 0x51], 1
mov ecx, dword [esp + 0x7c]
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x78]
and ecx, 0xff
and edi, 0xff
push ecx
push edi
push eax
push eax
push str.latin_1_key:_keysym__d_0x_x__vkCode_0x_x_down__d_n
push 9
push 0x44b018
call fcn.004024a0
add esp, 0x1c
cmp esi, ebx
je 0x4194bb
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx + 0x1e8]
mov eax, dword [esp + 0x7c]
push ebx
neg al
sbb eax, eax
and al, 0xfe
add eax, 2
push eax
push ebx
push edi
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
push eax
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.USER32.dll_keybd_event]
mov al, byte [esp + 0x51]
mov byte [esp + 0x70], 3
cmp al, bl
je 0x419510
push ebx
push esi
push 0xa1
call fcn.004196f0
push 0xa1
push str.fake__d_down_n
push 9
push 0x44b018
call fcn.004024a0
add esp, 0x1c
mov al, byte [esp + 0x61]
mov byte [esp + 0x70], 2
cmp al, bl
je 0x419542
push ebx
push esi
push 0xa0
call fcn.004196f0
push 0xa0
push str.fake__d_down_n
push 9
push 0x44b018
call fcn.004024a0
add esp, 0x1c
mov al, byte [esp + 0x40]
mov byte [esp + 0x70], 1
cmp al, bl
je 0x419562
push 2
push esi
push 0x10
call fcn.004196f0
push 0x10
push str.fake__d_up_n
jmp 0x419578
cmp byte [esp + 0x41], bl
je 0x419587
push ebx
push esi
push 0x10
call fcn.004196f0
push 0x10
push str.fake__d_down_n
push 9
push 0x44b018
call fcn.004024a0
add esp, 0x1c
lea ecx, [esp + 0x18]
mov byte [esp + 0x70], bl
call fcn.00419730
lea ecx, [esp + 0x28]
mov dword [esp + 0x70], 0xffffffff
call fcn.00419730
jmp 0x4196d3
mov edi, dword [esi + 4]
lea ecx, [esp + 0x78]
lea edx, [esp + 0x14]
push ecx
push edx
mov ecx, esi
call fcn.00419ad0
cmp dword [eax], edi
jne 0x4195e0
mov eax, dword [esp + 0x78]
push eax
push str.ignoring_unknown_keysym__d_n
push 8
push 0x44b018
call fcn.004024a0
add esp, 0x10
jmp 0x4196d3
lea ecx, [esp + 0x78]
push ecx
mov ecx, esi
call fcn.00419920
mov dl, byte [eax]
lea edi, [esi + 0x10]
lea eax, [esp + 0x78]
mov ecx, edi
push eax
mov byte [esp + 0x14], dl
xor ebx, ebx
xor ebp, ebp
call fcn.00419960
cmp byte [eax], bl
je 0x41960e
mov ebp, 1
mov eax, dword [esp + 0x7c]
cmp al, bl
jne 0x419619
or ebp, 2
mov esi, dword [esp + 0x10]
and eax, 0xff
lea ecx, [esp + 0x78]
push eax
push ecx
mov ecx, edi
and esi, 0xff
call fcn.00419960
xor edx, edx
mov dl, byte [eax]
mov eax, dword [esp + 0x7c]
push edx
push esi
push eax
push eax
push str.keyboard_key:_keysym__d_0x_x__vkCode_0x_x_ext__d_down__d_n
push 9
push 0x44b018
call fcn.004024a0
mov al, byte [esp + 0x9c]
add esp, 0x20
cmp al, bl
je 0x41968f
cmp byte [esp + 0x10], 0x2e
jne 0x41968f
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x11
call edi
test ah, 0x80
je 0x41968f
push 0x12
call edi
test ah, 0x80
je 0x41968f
call fcn.004222b0
test eax, eax
je 0x41968f
call fcn.00422640
jmp 0x4196d3
call fcn.004222a0
test eax, eax
je 0x4196bd
sub esi, 0xa1
je 0x4196b8
sub esi, 2
je 0x4196b1
sub esi, 2
jne 0x4196bd
mov byte [esp + 0x10], 0x12
jmp 0x4196bd
mov byte [esp + 0x10], 0x11
jmp 0x4196bd
mov byte [esp + 0x10], 0x10
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x10]
push ebp
push eax
push ecx
call fcn.004196f0
add esp, 0xc
mov ecx, dword [esp + 0x68]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x64
ret 0xc