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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
mov eax, dword [0x504608]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
push 1
push 0
push 0
push 0
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.user32.dll_PeekMessageA]
test eax, eax
je 0x41ea9d
mov edi, dword [sym.imp.user32.dll_ToUnicode]
mov edi, edi
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.user32.dll_TranslateMessage]
mov eax, dword [esp + 0x24]
cmp eax, 0x200
ja 0x41e93d
je 0x41e87d
sub eax, 0x100
je 0x41e832
dec eax
jne case.0x41e94b.515
mov eax, dword [esp + 0x28]
cmp eax, 0x14
je 0x41e80b
mov byte [esi + eax], 0xff
mov ecx, dword [0x508bc0]
test ecx, ecx
je case.0x41e94b.515
mov edx, dword [ecx + 0x1c]
test edx, edx
je case.0x41e94b.515
test eax, eax
jne 0x41e82a
mov eax, dword [ecx]
push eax
call edx
jmp 0x41ea74
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 0x41e858
test di, di
je 0x41e863
mov byte [esi + 0x14], 0
jmp 0x41e867
test di, di
jne 0x41e863
mov byte [esi + 0x14], 0
jmp 0x41e867
mov byte [esi + 0x14], 1
push dword [esp + 0x28]
mov ecx, esi
call fcn.0041e640
mov edi, dword [sym.imp.user32.dll_ToUnicode]
jmp case.0x41e94b.515
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.user32.dll_GetCursorPos]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
push eax
push dword [ebx]
call dword [sym.imp.user32.dll_ScreenToClient]
cmp byte [ebx + 0x10], 0
je 0x41e8f0
cmp byte [ebx + 0x98], 0
je 0x41e8f0
movd xmm1, dword [esp + 0x18]
movd xmm2, dword [esp + 0x1c]
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 0x41e8f8
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
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 [0x508be0]
test eax, eax
je case.0x41e94b.515
mov ecx, dword [eax + 0x1c]
test ecx, ecx
je case.0x41e94b.515
push dword [eax]
call ecx
jmp 0x41ea74
add eax, 0xfffffdff
cmp eax, 7
ja case.0x41e94b.515
jmp dword [eax*4 + 0x41eab4]
mov dword [esi + 0x10c], 1
mov al, byte [esi + 1]
cmp al, 0x78
jle 0x41e96a
mov eax, 2
jmp 0x41e972
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 [0x508bf0]
test eax, eax
je case.0x41e94b.515
mov eax, dword [eax + 0x1c]
test eax, eax
je case.0x41e94b.515
push 1
jmp 0x41ea72
mov byte [esi + 1], 0xff
mov eax, dword [0x508bc0]
jmp 0x41e995
mov dword [esi + 0x10c], 2
mov al, byte [esi + 2]
cmp al, 0x78
jle 0x41e9d2
mov eax, 2
jmp 0x41e9da
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 [0x508bf0]
test eax, eax
je case.0x41e94b.515
mov eax, dword [eax + 0x1c]
test eax, eax
je case.0x41e94b.515
push 2
jmp 0x41ea72
mov byte [esi + 2], 0xff
mov eax, dword [0x508bc0]
jmp 0x41e9fd
mov dword [esi + 0x10c], 4
mov al, byte [esi + 4]
cmp al, 0x78
jle 0x41ea2f
mov eax, 2
jmp 0x41ea37
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 [0x508bf0]
jmp 0x41ea65
mov byte [esi + 4], 0xff
mov eax, dword [0x508bc0]
test eax, eax
je case.0x41e94b.515
mov eax, dword [eax + 0x1c]
test eax, eax
je case.0x41e94b.515
push 4
call eax
add esp, 4
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.user32.dll_DispatchMessageA]
push 1
push 0
push 0
push 0
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.user32.dll_PeekMessageA]
test eax, eax
jne 0x41e7d0
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0049a134
mov esp, ebp
pop ebp
ret