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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x456d10]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], edx
mov edx, ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x24], eax
mov eax, dword [eax]
push esi
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0xc], eax
movzx ecx, word [ecx + eax*2]
push edi
xor edi, edi
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], edi
cmp ecx, 0x1b
jne 0x413420
xor cl, cl
mov dword [ebp - 0x14], 2
mov byte [ebp - 0xd], cl
mov ecx, 1
mov edi, edi
lea esi, [edi + edi*4]
inc eax
mov word [edx + esi*4], cx
mov edi, 1
lea ecx, [esi + 1]
mov word [edx + esi*4 + 8], di
lea ecx, [edx + ecx*4]
mov byte [edx + esi*4 + 0xe], 0
mov dword [ecx], 1
xor edi, edi
push ecx
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0xc], eax
mov word [edx + esi*4 + 0xe], di
mov dword [edx + esi*4 + 0x10], edi
movzx eax, word [ecx + eax*2]
and eax, 0xff
push eax
call fcn.00420ae0
mov edi, dword [ebp - 0x1c]
add esp, 8
test byte [0x47ba40], 0x80
mov edx, dword [ebp - 0x18]
je 0x41330b
or dword [edx + esi*4 + 0x10], 0x10
mov al, byte [0x47ba44]
test al, al
jns 0x41331e
or dword [edx + esi*4 + 0x10], 2
mov al, byte [0x47ba44]
test byte [0x47ba42], 0x80
je 0x413331
or dword [edx + esi*4 + 0x10], 8
mov al, byte [0x47ba44]
cmp word [edx + esi*4 + 0xa], 0x12
jne 0x41335f
cmp dword [edx + esi*4 + 4], 0
je 0x413353
or al, 0x80
mov cl, 1
mov byte [0x47ba44], al
or dword [edx + esi*4 + 0x10], 2
mov byte [ebp - 0xd], cl
jmp 0x413362
and al, 0x7f
mov byte [0x47ba44], al
and dword [edx + esi*4 + 0x10], 0xfffffffd
mov cl, byte [ebp - 0xd]
cmp word [edx + esi*4 + 0xa], 0x11
jne 0x413390
cmp dword [edx + esi*4 + 4], 0
je 0x413384
or byte [0x47ba42], 0x80
mov cl, 1
or dword [edx + esi*4 + 0x10], 8
mov byte [ebp - 0xd], cl
jmp 0x413390
and byte [0x47ba42], 0x7f
and dword [edx + esi*4 + 0x10], 0xfffffff7
cmp word [edx + esi*4 + 0xa], 0x10
jne 0x4133be
cmp dword [edx + esi*4 + 4], 0
je 0x4133b2
or byte [0x47ba40], 0x80
mov cl, 1
or dword [edx + esi*4 + 0x10], 0x10
mov byte [ebp - 0xd], cl
jmp 0x4133be
and byte [0x47ba40], 0x7f
and dword [edx + esi*4 + 0x10], 0xffffffef
mov eax, dword [ebp - 0xc]
inc edi
inc eax
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0xc], eax
test cl, cl
je 0x4133f7
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x20]
lea eax, [edi + edi*4]
lea ecx, [edx + eax*4]
lea edx, [ebp - 8]
call fcn.00413260
mov eax, dword [ebp - 0xc]
add esp, 8
add edi, dword [ebp - 8]
inc eax
mov edx, dword [ebp - 0x18]
xor cl, cl
mov dword [ebp - 0x1c], edi
mov byte [ebp - 0xd], cl
dec dword [ebp - 0x14]
mov ecx, 1
jne 0x4132b0
mov edx, dword [ebp - 0x24]
dec eax
mov dword [edx], eax
mov eax, dword [ebp - 0x28]
mov dword [eax], edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004265fb
mov esp, ebp
pop ebp
ret
mov esi, ecx
mov dword [0x47bb38], edi
mov eax, 8
mov dword [ebp - 0x20], esi
cmp si, word [0x457a68]
je 0x41343c
movzx eax, si
push eax
call dword [sym.imp.USER32.dll_VkKeyScanW]
movzx ecx, ax
xor edx, edx
mov dword [ebp - 0x14], edx
cmp cx, 0xffff
jne 0x413455
xor ecx, ecx
jmp 0x413463
mov eax, 8
cmp cx, ax
cmove esi, eax
mov dword [ebp - 0x20], esi
mov eax, ecx
sar eax, 8
cmp al, 0xff
je 0x4134b3
test ecx, 0x100
jne 0x41347d
test byte [0x47ba40], 0x80
je 0x413485
mov edx, 0x10
mov dword [ebp - 0x14], edx
test ecx, 0x200
jne 0x413496
test byte [0x47ba42], 0x80
je 0x41349c
or edx, 8
mov dword [ebp - 0x14], edx
test ecx, 0x400
jne 0x4134ad
test byte [0x47ba44], 0x80
je 0x4134b3
or edx, 2
mov dword [ebp - 0x14], edx
and edx, 0x100
mov dword [ebp - 0x30], edx
mov edx, 1
je 0x4134f5
mov eax, dword [ebp - 0x18]
mov edi, 1
mov dword [ebp - 0x1c], edi
mov word [eax], dx
mov dword [eax + 4], edx
mov edx, 0x2a
mov word [eax + 0xc], dx
xor edx, edx
mov byte [eax + 0xe], 0
mov dword [eax + 8], 0x100001
mov word [eax + 0xe], dx
mov dword [eax + 0x10], 0x10
mov edx, dword [ebp - 0x18]
lea eax, [edi + edi*4]
mov edi, dword [sym.imp.USER32.dll_MapVirtualKeyA]
lea esi, [edx + eax*4]
mov eax, 1
mov word [esi], ax
mov dword [esi + 4], eax
mov word [esi + 8], ax
mov eax, ecx
and ecx, 0xff
and eax, 0xff
push 0
push ecx
mov dword [ebp - 8], eax
mov word [esi + 0xa], ax
mov dword [ebp - 0x2c], ecx
call edi
mov ecx, dword [ebp - 0x18]
mov word [esi + 0xc], ax
mov eax, dword [ebp - 0x20]
mov word [esi + 0xe], ax
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
push 0
push dword [ebp - 0x2c]
lea eax, [eax + eax*4]
lea esi, [ecx + eax*4]
mov eax, 1
mov dword [esi + 4], 0
mov word [esi], ax
mov word [esi + 8], ax
mov eax, dword [ebp - 8]
mov word [esi + 0xa], ax
call edi
mov ecx, dword [ebp - 0x1c]
mov word [esi + 0xc], ax
inc ecx
cmp dword [ebp - 0x30], 0
mov eax, dword [ebp - 0x20]
mov word [esi + 0xe], ax
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x10], eax
je 0x4135c6
mov edx, dword [ebp - 0x18]
lea eax, [ecx + ecx*4]
mov esi, 1
mov word [edx + eax*4], si
mov esi, 0x2a
mov word [edx + eax*4 + 0xc], si
xor esi, esi
mov byte [edx + eax*4 + 0xe], 0
inc ecx
mov dword [edx + eax*4 + 4], 0
mov dword [edx + eax*4 + 8], 0x100001
mov word [edx + eax*4 + 0xe], si
mov dword [edx + eax*4 + 0x10], esi
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0xc]
pop edi
pop esi
mov dword [edx], eax
mov eax, dword [ebp - 0x28]
mov dword [eax], ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004265fb
mov esp, ebp
pop ebp
ret