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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5de480
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x65eb68]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x78]
push 0x32
push 0
push eax
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x84], ebx
call fcn.0059dbb0
mov esi, dword [ebp + 0xc]
add esp, 0xc
cmp esi, 3
jne 0x4b7a56
call fcn.0056500f
mov ecx, eax
test ecx, ecx
je 0x4b7c13
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
push 0x5ecc50
mov ecx, ebx
mov dword [ebp - 4], 0
call fcn.00404e34
test al, al
jne 0x4b7b9f
push 0
push 0x5ecc50
mov ecx, ebx
call fcn.00405684
jmp 0x4b7b9f
push 0x32
lea eax, [ebp - 0x78]
push eax
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push 0
push esi
call dword [sym.imp.USER32.dll_MapVirtualKeyExW]
mov ecx, eax
mov edx, 0xe
shl ecx, 0x10
lea eax, [esi - 0x21]
cmp edx, eax
sbb eax, eax
and eax, 0xff000000
add eax, 0x1000001
or ecx, eax
push ecx
call dword [sym.imp.USER32.dll_GetKeyNameTextW]
call fcn.0056500f
mov ecx, eax
test ecx, ecx
je 0x4b7c13
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x78]
mov dword [ebp - 4], 1
push eax
lea ecx, [ebp - 0x7c]
call fcn.00404e34
test al, al
jne 0x4b7aec
lea ecx, [ebp - 0x78]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4b7ad0
sub ecx, edx
lea eax, [ebp - 0x78]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x7c]
call fcn.00405684
mov esi, dword [ebp - 0x7c]
mov dword [ebp - 4], 2
mov edi, dword [esi - 0xc]
test edi, edi
je 0x4b7b72
js 0x4b7c09
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x4b7b20
push edi
lea ecx, [ebp - 0x7c]
call fcn.00405578
mov esi, dword [ebp - 0x7c]
lea eax, [edi + 1]
push eax
push esi
call fcn.005a9a33
add esp, 8
cmp edi, dword [esi - 8]
jg 0x4b7c09
xor eax, eax
mov dword [esi - 0xc], edi
mov word [esi + edi*2], ax
xor edi, edi
mov eax, dword [esi - 0xc]
test eax, eax
jle 0x4b7b72
test edi, edi
js 0x4b7c09
cmp edi, eax
jg 0x4b7c09
movzx ebx, word [esi + edi*2]
push ebx
call dword [sym.imp.USER32.dll_IsCharLowerW]
test eax, eax
jne 0x4b7bbd
mov eax, dword [esi - 0xc]
inc edi
cmp edi, eax
jl 0x4b7b48
mov ebx, dword [ebp - 0x80]
add esi, 0xfffffff0
push esi
call fcn.00405ebd
add eax, 0x10
mov dword [ebp - 4], 0xffffffff
mov dword [ebx], eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4b7b9f
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00599f9c
mov esp, ebp
pop ebp
ret
push ebx
call fcn.004b8b20
mov ebx, dword [esi - 0xc]
add esp, 4
movzx eax, ax
mov dword [ebp - 0x84], eax
cmp edi, ebx
jge 0x4b7c09
cmp dword [esi - 4], 1
jle 0x4b7bee
push ebx
lea ecx, [ebp - 0x7c]
call fcn.00404fa7
mov esi, dword [ebp - 0x7c]
mov eax, dword [ebp - 0x84]
mov word [esi + edi*2], ax
test ebx, ebx
js 0x4b7c09
cmp ebx, dword [esi - 8]
jg 0x4b7c09
xor eax, eax
mov dword [esi - 0xc], ebx
mov word [esi + ebx*2], ax
jmp 0x4b7b6f
push 0x80070057
call fcn.00404e0e
push 0x80004005
call fcn.00404e0e
int3