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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ae7e0
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x6244f8]
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.00570de0
mov esi, dword [ebp + 0xc]
add esp, 0xc
cmp esi, 3
jne 0x48f5a6
call fcn.0053955f
mov ecx, eax
test ecx, ecx
je 0x48f763
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
push 0x5bbe20
mov ecx, ebx
mov dword [ebp - 4], 0
call fcn.00404e26
test al, al
jne 0x48f6ef
push 0
push 0x5bbe20
mov ecx, ebx
call fcn.004054b5
jmp 0x48f6ef
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.0053955f
mov ecx, eax
test ecx, ecx
je 0x48f763
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.00404e26
test al, al
jne 0x48f63c
lea ecx, [ebp - 0x78]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x48f620
sub ecx, edx
lea eax, [ebp - 0x78]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x7c]
call fcn.004054b5
mov esi, dword [ebp - 0x7c]
mov dword [ebp - 4], 2
mov edi, dword [esi - 0xc]
test edi, edi
je 0x48f6c2
js 0x48f759
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x48f670
push edi
lea ecx, [ebp - 0x7c]
call fcn.004053a9
mov esi, dword [ebp - 0x7c]
lea eax, [edi + 1]
push eax
push esi
call fcn.0057b343
add esp, 8
cmp edi, dword [esi - 8]
jg 0x48f759
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 0x48f6c2
test edi, edi
js 0x48f759
cmp edi, eax
jg 0x48f759
movzx ebx, word [esi + edi*2]
push ebx
call dword [sym.imp.USER32.dll_IsCharLowerW]
test eax, eax
jne 0x48f70d
mov eax, dword [esi - 0xc]
inc edi
cmp edi, eax
jl 0x48f698
mov ebx, dword [ebp - 0x80]
add esi, 0xfffffff0
push esi
call fcn.00405d05
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 0x48f6ef
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.0056e41f
mov esp, ebp
pop ebp
ret
push ebx
call fcn.00490670
mov ebx, dword [esi - 0xc]
add esp, 4
movzx eax, ax
mov dword [ebp - 0x84], eax
cmp edi, ebx
jge 0x48f759
cmp dword [esi - 4], 1
jle 0x48f73e
push ebx
lea ecx, [ebp - 0x7c]
call fcn.00404f64
mov esi, dword [ebp - 0x7c]
mov eax, dword [ebp - 0x84]
mov word [esi + edi*2], ax
test ebx, ebx
js 0x48f759
cmp ebx, dword [esi - 8]
jg 0x48f759
xor eax, eax
mov dword [esi - 0xc], ebx
mov word [esi + ebx*2], ax
jmp 0x48f6bf
push 0x80070057
call fcn.00404e00
push 0x80004005
call fcn.00404e00
int3