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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
lea eax, [esp + 0x10]
push ebx
push esi
push edi
push 1
push 0
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x41e420
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, dword [sym.imp.USER32.dll_ToUnicode]
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
mov eax, dword [esp + 0x20]
cmp eax, 0x200
ja 0x41e2c0
je 0x41e200
sub eax, 0x100
je 0x41e1b5
dec eax
jne case.0x41e2ce.515
mov eax, dword [esp + 0x24]
cmp eax, 0x14
je 0x41e18e
mov byte [eax + esi], 0xff
mov ecx, dword [0x509bb0]
test ecx, ecx
je case.0x41e2ce.515
mov edx, dword [ecx + 0x1c]
test edx, edx
je case.0x41e2ce.515
test eax, eax
jne 0x41e1ad
mov eax, dword [ecx]
push eax
call edx
jmp 0x41e3f7
push 0x10
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x14
movzx edi, ax
call dword [sym.imp.USER32.dll_GetKeyState]
movzx eax, ax
test ax, ax
je 0x41e1db
test di, di
je 0x41e1e6
mov byte [esi + 0x14], 0
jmp 0x41e1ea
test di, di
jne 0x41e1e6
mov byte [esi + 0x14], 0
jmp 0x41e1ea
mov byte [esi + 0x14], 1
push dword [esp + 0x24]
mov ecx, esi
call fcn.0041dfd0
mov edi, dword [sym.imp.USER32.dll_ToUnicode]
jmp case.0x41e2ce.515
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x10], eax
lea eax, [esp + 0xc]
push eax
push dword [ebx]
call dword [sym.imp.USER32.dll_ScreenToClient]
cmp byte [ebx + 0x10], 0
je 0x41e273
cmp byte [ebx + 0x98], 0
je 0x41e273
movd xmm1, dword [esp + 0xc]
movd xmm2, dword [esp + 0x10]
movss xmm0, dword [ebx + 0x8c]
cvtdq2ps xmm1, xmm1
cvtdq2ps xmm2, xmm2
subss xmm1, dword [ebx + 0x90]
subss xmm2, dword [ebx + 0x94]
divss xmm1, xmm0
divss xmm2, xmm0
cvttss2si ecx, xmm1
cvttss2si edx, xmm2
jmp 0x41e27b
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov eax, dword [esi + 0x114]
mov dword [esi + 0x11c], eax
mov eax, dword [esi + 0x118]
mov dword [esi + 0x120], eax
mov dword [esi + 0x114], ecx
mov dword [esi + 0x118], edx
mov eax, dword [0x509bd0]
test eax, eax
je case.0x41e2ce.515
mov ecx, dword [eax + 0x1c]
test ecx, ecx
je case.0x41e2ce.515
push dword [eax]
call ecx
jmp 0x41e3f7
add eax, 0xfffffdff
cmp eax, 7
ja case.0x41e2ce.515
jmp dword [eax*4 + 0x41e42c]
mov dword [esi + 0x10c], 1
mov al, byte [esi + 1]
cmp al, 0x78
jle 0x41e2ed
mov eax, 2
jmp 0x41e2f5
inc al
mov byte [esi + 1], al
movsx eax, al
push 1
push 6
mov byte [esi + 1], al
lea eax, [esi + 0x100]
push eax
push esi
push 0
push 1
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
push eax
push 1
call edi
mov eax, dword [0x509be0]
test eax, eax
je case.0x41e2ce.515
mov eax, dword [eax + 0x1c]
test eax, eax
je case.0x41e2ce.515
push 1
jmp 0x41e3f5
mov byte [esi + 1], 0xff
mov eax, dword [0x509bb0]
jmp 0x41e318
mov dword [esi + 0x10c], 2
mov al, byte [esi + 2]
cmp al, 0x78
jle 0x41e355
mov eax, 2
jmp 0x41e35d
inc al
mov byte [esi + 2], al
movsx eax, al
push 1
push 6
mov byte [esi + 2], al
lea eax, [esi + 0x100]
push eax
push esi
push 0
push 2
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
push eax
push 2
call edi
mov eax, dword [0x509be0]
test eax, eax
je case.0x41e2ce.515
mov eax, dword [eax + 0x1c]
test eax, eax
je case.0x41e2ce.515
push 2
jmp 0x41e3f5
mov byte [esi + 2], 0xff
mov eax, dword [0x509bb0]
jmp 0x41e380
mov dword [esi + 0x10c], 4
mov al, byte [esi + 4]
cmp al, 0x78
jle 0x41e3b2
mov eax, 2
jmp 0x41e3ba
inc al
mov byte [esi + 4], al
movsx eax, al
push 1
push 6
mov byte [esi + 4], al
lea eax, [esi + 0x100]
push eax
push esi
push 0
push 4
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
push eax
push 4
call edi
mov eax, dword [0x509be0]
jmp 0x41e3e8
mov byte [esi + 4], 0xff
mov eax, dword [0x509bb0]
test eax, eax
je case.0x41e2ce.515
mov eax, dword [eax + 0x1c]
test eax, eax
je case.0x41e2ce.515
push 4
call eax
add esp, 4
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 1
push 0
push 0
push 0
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
jne 0x41e153
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret