Function at 0x621f54
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff40
push ebx
xor ebx, ebx
mov dword [ebp - 0xc0], ebx
mov dword [ebp - 0xbc], ebx
mov dword [ebp - 0xb4], ebx
mov dword [ebp - 0xb8], ebx
mov dword [ebp - 0xb0], ebx
mov dword [ebp - 0xa8], ebx
mov dword [ebp - 0xac], ebx
mov dword [ebp - 0xa4], ebx
mov dword [ebp - 0x58], ebx
mov byte [ebp - 6], cl
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00407340
xor eax, eax
push ebp
push 0x622610
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 1
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x18], 0xffffffff
xor eax, eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
call fcn.004080c4
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
je 0x621fec
mov eax, dword [ebp - 0x44]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x14], eax
mov edx, 0x713848
mov eax, dword [ebp - 0x2c]
call fcn.00424b1c
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x622018
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 4]
call fcn.0040763c
jmp 0x6225c4
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
call sub.user32.dll_GetKeyboardLayout
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
jg 0x6225c4
mov eax, dword [ebp - 0x2c]
push eax
call sub.kernel32.dll_lstrlenW_1
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x30], 0
jne 0x62204c
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x4c], eax
jmp 0x62205c
mov eax, dword [ebp - 0x30]
sub eax, dword [ebp - 0x2c]
sar eax, 1
jns 0x622059
adc eax, 0
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jle 0x622074
mov dword [ebp - 0x18], 0xffffffff
xor eax, eax
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x24]
add edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
call fcn.00408248
mov eax, dword [ebp - 0x10]
inc eax
push eax
mov eax, dword [ebp - 0x2c]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
call fcn.004080c4
mov edx, dword [ebp - 0x24]
add edx, edx
add eax, edx
push eax
call sub.kernel32.dll_lstrcpynW_1
mov eax, dword [ebp - 0x10]
add dword [ebp - 0x24], eax
cmp dword [ebp - 0x30], 0
je 0x6225ac
lea eax, [ebp - 0xa0]
xor ecx, ecx
mov edx, 0x40
call fcn.00405008
mov eax, dword [ebp - 0x30]
add eax, 2
mov al, byte [eax]
mov byte [ebp - 0x35], al
mov eax, dword [ebp - 0x30]
add eax, 4
mov al, byte [eax]
mov byte [ebp - 0x36], al
test byte [ebp - 0x36], 2
seta byte [ebp - 0x3d]
test byte [ebp - 0x36], 4
seta byte [ebp - 0x3e]
cmp byte [ebp - 0x36], 0x2d
jne 0x6221ff
cmp byte [ebp - 5], 0
je 0x622179
mov al, byte [ebp - 0x35]
sub al, 0x4c
je 0x62210f
dec al
je 0x622129
sub al, 5
je 0x622143
sub al, 0xad
je 0x62215d
jmp 0x62216b
push 0x622620
lea eax, [ebp - 0xa0]
push eax
mov eax, dword [0x718500]
mov eax, dword [eax]
call eax
jmp 0x62254d
push 0x622648
lea eax, [ebp - 0xa0]
push eax
mov eax, dword [0x718500]
mov eax, dword [eax]
call eax
jmp 0x62254d
push 0x622674
lea eax, [ebp - 0xa0]
push eax
mov eax, dword [0x718500]
mov eax, dword [eax]
call eax
jmp 0x62254d
mov word [ebp - 0xa0], 0xd
jmp 0x62254d
mov word [ebp - 0xa0], 0
jmp 0x62254d
mov dword [ebp - 0x18], 0xffffffff
xor eax, eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
je 0x6221a4
mov eax, dword [ebp - 0x54]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x20], eax
mov al, byte [ebp - 0x35]
sub al, 0x4c
je 0x6221b7
sub al, 0xb3
je 0x6221c5
jmp 0x6221f1
mov word [ebp - 0xa0], 0x20
jmp 0x62254d
cmp dword [ebp - 0x20], 0
jle 0x62254d
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov edx, dword [ebp - 0x20]
cmp word [eax + edx*2 - 2], 0xd
je 0x62254d
mov word [ebp - 0xa0], 0xd
jmp 0x62254d
mov word [ebp - 0xa0], 0
jmp 0x62254d
cmp byte [ebp - 5], 0
je 0x6224aa
mov word [ebp - 0xa0], 0x5b
cmp byte [ebp - 0x3d], 0
je 0x62222d
push 0x62269c
lea eax, [ebp - 0xa0]
push eax
mov eax, dword [0x718500]
mov eax, dword [eax]
call eax
cmp byte [ebp - 0x3e], 0
je 0x622248
push 0x6226a8
lea eax, [ebp - 0xa0]
push eax
mov eax, dword [0x718500]
mov eax, dword [eax]
call eax
xor eax, eax
mov al, byte [ebp - 0x35]
cmp eax, 0x13
jg 0x622263
je 0x62228f
sub eax, 9
je 0x6222c0
sub eax, 4
je 0x6222da
jmp 0x62230e
sub eax, 0x20
je 0x6222f4
sub eax, 0xc
jne 0x62230e
push 0x6226b4
lea eax, [ebp - 0xa0]
push eax
mov eax, dword [0x718500]
mov eax, dword [eax]
call eax
jmp 0x6224a0
lea edx, [ebp - 0xa4]
mov eax, 0x6226dc
call fcn.005fcff0
mov eax, dword [ebp - 0xa4]
call fcn.004080c4
push eax
lea eax, [ebp - 0xa0]
push eax
mov eax, dword [0x718500]
mov eax, dword [eax]
call eax
jmp 0x6224a0
push 0x6226f8
lea eax, [ebp - 0xa0]
push eax
mov eax, dword [0x718500]
mov eax, dword [eax]
call eax
jmp 0x6224a0
push 0x622704
lea eax, [ebp - 0xa0]
push eax
mov eax, dword [0x718500]
mov eax, dword [eax]
call eax
jmp 0x6224a0
push 0x622714
lea eax, [ebp - 0xa0]
push eax
mov eax, dword [0x718500]
mov eax, dword [eax]
call eax
jmp 0x6224a0
mov eax, dword [ebp - 0x3c]
push eax
push 0
xor eax, eax
mov al, byte [ebp - 0x35]
push eax
call sub.user32.dll_MapVirtualKeyExW
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x62242f
push 0x20
lea eax, [ebp - 0xa0]
push eax
call sub.kernel32.dll_lstrlenW_1
lea eax, [ebp + eax*2 - 0xa0]
push eax
xor eax, eax
mov al, byte [ebp - 0x36]
shl eax, 0x18
mov edx, dword [ebp - 0x34]
shl edx, 0x10
or eax, edx
push eax
call sub.user32.dll_GetKeyNameTextW
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jle 0x6223bc
test byte [ebp - 0x36], 8
jbe 0x6223a2
test byte [ebp - 0x36], 0x10
jbe 0x62237c
lea eax, [ebp - 0x58]
mov edx, 0x622730
call fcn.00407684
jmp 0x622389
lea eax, [ebp - 0x58]
mov edx, 0x622744
call fcn.00407684
mov eax, dword [ebp - 0x58]
call fcn.004080c4
push eax
lea eax, [ebp - 0xa0]
push eax
mov eax, dword [0x718500]
mov eax, dword [eax]
call eax
push 0x62274c
lea eax, [ebp - 0xa0]
push eax
mov eax, dword [0x718500]
mov eax, dword [eax]
call eax
jmp 0x6224a0
lea eax, [ebp - 0xac]
xor edx, edx
mov dl, byte [ebp - 0x35]
call fcn.004080dc
mov eax, dword [ebp - 0xac]
lea edx, [ebp - 0xa8]
call fcn.00422f98
cmp dword [ebp - 0xa8], 0
je 0x622424
lea eax, [ebp - 0xb0]
xor edx, edx
mov dl, byte [ebp - 0x35]
call fcn.004080dc
lea eax, [ebp - 0xb0]
mov edx, 0x62275c
call fcn.004082c8
mov eax, dword [ebp - 0xb0]
call fcn.004080c4
push eax
lea eax, [ebp - 0xa0]
push eax
mov eax, dword [0x718500]
mov eax, dword [eax]
call eax
jmp 0x6224a0
mov word [ebp - 0xa0], 0x20
jmp 0x6224a0
lea eax, [ebp - 0xb8]
xor edx, edx
mov dl, byte [ebp - 0x35]
call fcn.004080dc
mov eax, dword [ebp - 0xb8]
lea edx, [ebp - 0xb4]
call fcn.00422f98
cmp dword [ebp - 0xb4], 0
je 0x622497
lea eax, [ebp - 0xbc]
xor edx, edx
mov dl, byte [ebp - 0x35]
call fcn.004080dc
lea eax, [ebp - 0xbc]
mov edx, 0x62275c
call fcn.004082c8
mov eax, dword [ebp - 0xbc]
call fcn.004080c4
push eax
lea eax, [ebp - 0xa0]
push eax
mov eax, dword [0x718500]
mov eax, dword [eax]
call eax
jmp 0x6224a0
mov word [ebp - 0xa0], 0x20
mov eax, dword [ebp + 0x10]
inc dword [eax]
jmp 0x62254d
mov eax, dword [ebp - 0x10]
add dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 0
je 0x6224cf
mov eax, dword [ebp - 0x60]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x20], eax
mov al, byte [ebp - 0x35]
sub al, 8
je 0x6224ea
dec al
je 0x622533
sub al, 4
je 0x622533
sub al, 0x13
je 0x622533
jmp 0x622544
cmp byte [ebp - 6], 0
jne 0x62254d
cmp dword [ebp - 0x18], 0xffffffff
jne 0x6224fc
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jle 0x62254d
dec dword [ebp - 0x24]
dec dword [ebp - 0x18]
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0
jle 0x62254d
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov edx, dword [ebp - 0x20]
movzx eax, word [eax + edx*2 - 2]
sub eax, 9
je 0x62254d
sub eax, 4
je 0x62254d
sub eax, 0x13
je 0x62254d
mov eax, dword [ebp + 0x10]
dec dword [eax]
jmp 0x62254d
xor eax, eax
mov al, byte [ebp - 0x35]
mov word [ebp - 0xa0], ax
inc dword [ebp - 0x1c]
jmp 0x62254d
mov word [ebp - 0xa0], 0
lea eax, [ebp - 0xa0]
push eax
call sub.kernel32.dll_lstrlenW_1
mov dword [ebp - 0x28], eax
mov edx, dword [ebp - 0x24]
add edx, dword [ebp - 0x28]
mov eax, dword [ebp + 8]
call fcn.00408248
mov eax, dword [ebp - 0x28]
inc eax
push eax
lea eax, [ebp - 0xa0]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
call fcn.004080c4
mov edx, dword [ebp - 0x24]
add edx, edx
add eax, edx
push eax
call sub.kernel32.dll_lstrcpynW_1
mov eax, dword [ebp - 0x28]
add dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x30]
add eax, 8
mov dword [ebp - 0x2c], eax
mov edx, 0x713848
mov eax, dword [ebp - 0x2c]
call fcn.00424b1c
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0xc]
add eax, 4
add eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
jle 0x622032
lea edx, [ebp - 0xc0]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
call fcn.00422f98
mov edx, dword [ebp - 0xc0]
mov eax, dword [ebp + 8]
call fcn.0040763c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x622617
lea eax, [ebp - 0xc0]
mov edx, 8
call fcn.004072bc
lea eax, [ebp - 0x58]
call fcn.0040725c
lea eax, [ebp - 4]
call fcn.0040725c
ret