Function at 0x40c3e0
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 8
mov eax, 0x41b948
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
test ebp, ebp
push edi
jne 0x40c3f9
mov eax, 0x41b94c
mov esi, dword [esp + 0x1c]
push eax
push esi
push str.D:SMC_srcconsole_vncwinvnc_vncKeymap.cpp_:
push 9
push 0x41d688
call fcn.00401950
add esp, 0x14
mov eax, 0x415770
cmp dword [eax], esi
je 0x40c6d7
add eax, 4
cmp eax, 0x41577c
jl 0x40c418
xor ecx, ecx
mov eax, 0x415784
cmp dword [eax], esi
je 0x40c521
add eax, 8
inc ecx
cmp eax, 0x415a6c
jl 0x40c431
push esi
call dword [sym.imp.USER32.dll_VkKeyScanA]
xor ebx, ebx
mov dword [esp + 0x10], eax
mov bl, ah
and eax, 0xff
cmp eax, 0xffffffff
je 0x40c6d7
mov ebp, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x14
call ebp
test ah, 0x80
je 0x40c473
xor bl, 1
mov byte [esp + 0x1c], bl
call fcn.00411c20
test eax, eax
je 0x40c5cb
push 0xa0
call ebp
mov si, ax
push 0xa1
shr esi, 0xf
and esi, 1
call ebp
shr eax, 0xf
and eax, 1
push 0
push 0xa1
mov dword [esp + 0x1c], eax
call fcn.0040c340
push 0
push 0xa0
call fcn.0040c340
mov ebx, dword [esp + 0x2c]
and ebx, 0xff
mov edx, ebx
and edx, 1
push edx
push 0x10
call fcn.0040c340
add esp, 0x18
push 0xa2
call ebp
mov di, ax
shr edi, 0xf
and edi, 1
jne 0x40c4fc
mov eax, ebx
and eax, 2
push eax
push 0xa2
call fcn.0040c340
add esp, 8
push 0xa4
call ebp
shr eax, 0xf
and eax, 1
mov dword [esp + 0x1c], eax
jne 0x40c62f
and ebx, 4
push ebx
push 0xa4
jmp 0x40c627
mov ebx, dword [ecx*8 + 0x415780]
call fcn.00411c20
test eax, eax
je 0x40c578
push str.D:SMC_srcconsole_vncwinvnc_vncKeymap.cpp_:_IsWinNT_in_keymap_n
push 9
push 0x41d688
call fcn.00401950
add esp, 0xc
test ebp, ebp
je 0x40c578
cmp ebx, 0x2e
jne 0x40c578
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x11
call edi
mov si, ax
push 0x12
shr esi, 0xf
and esi, 1
call edi
shr eax, 0xf
and eax, 1
test esi, esi
je 0x40c578
test eax, eax
je 0x40c578
call fcn.00411f60
call fcn.00411c10
test eax, eax
je case.0x40c593.20
lea eax, [ebx - 0x11]
cmp eax, 0x94
ja case.0x40c593.20
xor ecx, ecx
mov cl, byte [eax + 0x40c6f4]
jmp dword [ecx*4 + 0x40c6e4]
mov ebx, 0x10
jmp case.0x40c593.20
mov ebx, 0x11
jmp case.0x40c593.20
mov ebx, 0x12
neg ebp
sbb ebp, ebp
and ebp, 0xfffffffe
add ebp, 2
push ebp
push ebx
call fcn.0040c310
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
push 0x10
call ebp
mov ebx, dword [esp + 0x1c]
mov si, ax
and ebx, 0xff
mov ecx, ebx
and ecx, 1
shr esi, 0xf
push ecx
push 0x10
and esi, 1
call fcn.0040c340
add esp, 8
push 0x11
call ebp
mov di, ax
shr edi, 0xf
and edi, 1
jne 0x40c611
mov edx, ebx
and edx, 2
push edx
push 0x11
call fcn.0040c340
add esp, 8
push 0x12
call ebp
shr eax, 0xf
and eax, 1
mov dword [esp + 0x1c], eax
jne 0x40c62f
and ebx, 4
push ebx
push 0x12
call fcn.0040c340
add esp, 8
push 0x10
call ebp
test ah, 0x80
mov eax, 0x41b948
jne 0x40c642
mov eax, 0x41b94c
push eax
push str.D:SMC_srcconsole_vncwinvnc_vncKeymap.cpp_:_
push 9
push 0x41d688
call fcn.00401950
mov eax, dword [esp + 0x30]
neg eax
sbb eax, eax
and al, 0xfe
add eax, 2
push eax
mov eax, dword [esp + 0x24]
push eax
call fcn.0040c310
add esp, 0x18
call fcn.00411c20
test eax, eax
push esi
je 0x40c6b9
push 0xa0
call fcn.0040c340
mov ecx, dword [esp + 0x1c]
push ecx
push 0xa1
call fcn.0040c340
push edi
push 0xa2
call fcn.0040c340
mov edx, dword [esp + 0x34]
push edx
push 0xa4
call fcn.0040c340
add esp, 0x20
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
push 0x10
call fcn.0040c340
push edi
push 0x11
call fcn.0040c340
mov eax, dword [esp + 0x2c]
push eax
push 0x12
call fcn.0040c340
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8