Function at 0x41af80
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x479292
mov eax, dword fs:[0]
push eax
sub esp, 0x98
push ebx
push esi
push edi
mov eax, dword [0x4eec64]
xor eax, esp
push eax
lea eax, [esp + 0xa8]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 0x34]
xor esi, esi
mov byte [edi + 0xc4], 0
mov byte [esp + 0x17], 0
cmp eax, esi
je 0x41afcc
mov dword [edi + 0x2c], eax
mov eax, dword [edi + 0x30]
cmp eax, esi
je 0x41afd6
mov dword [edi + 0x2c], eax
mov ebx, dword [ebp + 8]
mov ecx, dword [ebx + 4]
mov eax, ecx
cmp eax, 0x117
mov dword [0x4f4830], esi
jg 0x41b073
je 0x41b033
cmp eax, 0x1c
je case.0x41b08a.514
cmp eax, 0x21
jne case.default.0x41b08a
mov esi, dword [0x4f4c4c]
test esi, esi
je 0x41b024
mov eax, dword [edi]
mov edx, dword [eax + 0x14]
mov ecx, edi
call edx
cmp esi, dword [eax + 0x58]
je 0x41b024
mov ecx, esi
mov edx, edi
call fcn.0041da90
mov dword [0x4f4c4c], 0
jmp case.default.0x41b08a
push 0x17
mov byte [0x4f4834], 0
call dword [sym.imp.USER32.dll_GetSystemMetrics]
neg eax
sbb eax, eax
neg eax
inc eax
push eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
jbe 0x41b068
mov edx, dword [ebx + 8]
mov dword [0x4f4838], edx
jmp case.default.0x41b08a
mov dword [0x4f4838], esi
jmp case.default.0x41b08a
sub eax, 0x11f
cmp eax, 0xeb
ja case.default.0x41b08a
movzx eax, byte [eax + 0x41b874]
jmp dword [eax*4 + 0x41b84c]
mov ecx, edi
lea esi, [esp + 0x28]
call fcn.0041a350
mov dword [esp + 0xb0], 0
mov dword [edi + 0x2c], 0
movsx ecx, word [ebx + 0xc]
movsx edx, word [ebx + 0xe]
mov dword [esp + 0x18], ecx
push 0xd
fild dword [esp + 0x1c]
mov dword [esp + 0x1c], edx
lea ecx, [esp + 0x24]
lea eax, [esp + 0x48]
fstp dword [esp + 0x14]
fild dword [esp + 0x1c]
fstp dword [esp + 0x1c]
fld dword [esp + 0x14]
fstp dword [esp + 0x24]
fld dword [esp + 0x1c]
fstp dword [esp + 0x28]
call fcn.0041a2a0
mov byte [esp + 0xb0], 1
mov ecx, dword [edi + 0xa8]
test ecx, ecx
je 0x41b131
lea esi, [edi + 0x2c]
push esi
lea eax, [esp + 0x48]
push eax
call fcn.004146e0
cmp eax, 0xf4240
jne 0x41b131
cmp dword [esi], 0
mov byte [esp + 0x17], 1
je 0x41b131
mov eax, dword [edi + 0x28]
test eax, eax
je 0x41b137
mov eax, dword [eax + 0x58]
push eax
call dword [sym.imp.USER32.dll_SetCapture]
jmp 0x41b137
call dword [sym.imp.USER32.dll_ReleaseCapture]
lea eax, [esp + 0x28]
mov dword [esp + 0xb0], 0xffffffff
call fcn.00402220
jmp 0x41b746
mov ecx, edi
lea esi, [esp + 0x28]
call fcn.0041a350
mov dword [esp + 0xb0], 2
mov dword [edi + 0x2c], 0
movsx ecx, word [ebx + 0xc]
movsx edx, word [ebx + 0xe]
mov dword [esp + 0x10], ecx
push 1
lea ecx, [esp + 0x24]
fild dword [esp + 0x14]
mov dword [esp + 0x14], edx
lea eax, [esp + 0x48]
fstp dword [esp + 0x1c]
fild dword [esp + 0x14]
fstp dword [esp + 0x14]
fld dword [esp + 0x1c]
fstp dword [esp + 0x24]
fld dword [esp + 0x14]
fstp dword [esp + 0x28]
call fcn.0041a2a0
mov byte [esp + 0xb0], 3
mov ecx, dword [edi + 0xa8]
test ecx, ecx
je 0x41b1cc
lea eax, [edi + 0x2c]
push eax
lea eax, [esp + 0x48]
push eax
call fcn.004146e0
cmp dword [edi + 0x2c], 0
je 0x41b137
mov eax, dword [edi + 0x28]
test eax, eax
je 0x41b1e7
mov eax, dword [eax + 0x58]
push eax
call dword [sym.imp.USER32.dll_SetCapture]
mov byte [esp + 0x17], 1
jmp 0x41b137
mov ecx, edi
lea esi, [esp + 0x28]
call fcn.0041a350
mov dword [esp + 0xb0], 4
mov dword [edi + 0x34], 0
movsx ecx, word [ebx + 0xc]
movsx edx, word [ebx + 0xe]
mov dword [esp + 0x10], ecx
push 7
lea ecx, [esp + 0x24]
fild dword [esp + 0x14]
mov dword [esp + 0x14], edx
lea eax, [esp + 0x48]
fstp dword [esp + 0x1c]
fild dword [esp + 0x14]
fstp dword [esp + 0x14]
fld dword [esp + 0x1c]
fstp dword [esp + 0x24]
fld dword [esp + 0x14]
fstp dword [esp + 0x28]
call fcn.0041a2a0
mov byte [esp + 0xb0], 5
mov ecx, dword [edi + 0xa8]
test ecx, ecx
je 0x41b26d
lea eax, [edi + 0x34]
push eax
lea eax, [esp + 0x48]
push eax
call fcn.004146e0
cmp dword [edi + 0x34], 0
je 0x41b137
mov eax, dword [edi + 0x28]
test eax, eax
je 0x41b1e7
mov eax, dword [eax + 0x58]
push eax
call dword [sym.imp.USER32.dll_SetCapture]
mov byte [esp + 0x17], 1
jmp 0x41b137
cmp ecx, 0x204
sete byte [esp + 0x33]
lea eax, [edi + 0x10]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edi
cmp dword [edi + 8], esi
je 0x41b2ba
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
jmp 0x41b2c3
mov edx, dword [edi]
mov eax, dword [edx + 8]
mov ecx, edi
call eax
mov dword [esp + 0xb0], 6
cmp dword [ebx + 4], 0x1c
jne 0x41b327
cmp dword [ebx + 8], 0
je 0x41b2eb
mov esi, dword [edi + 0xb0]
test esi, esi
je 0x41b2f0
call fcn.0041d610
jmp 0x41b2f0
call fcn.0041a310
cmp dword [edi + 0x2c], 0
jne 0x41b327
lea eax, [esp + 0x20]
mov dword [esp + 0xb0], 0xffffffff
call fcn.00402220
mov eax, 0xf4240
mov ecx, dword [esp + 0xa8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.USER32.dll_ReleaseCapture]
cmp dword [edi + 0x2c], 0
lea esi, [edi + 0x2c]
je 0x41b39c
movsx ecx, word [ebx + 0xc]
movsx edx, word [ebx + 0xe]
mov dword [esp + 0x10], ecx
push 4
lea ecx, [esp + 0x1c]
fild dword [esp + 0x14]
mov dword [esp + 0x14], edx
lea eax, [esp + 0x48]
fstp dword [esp + 0x1c]
fild dword [esp + 0x14]
fstp dword [esp + 0x14]
fld dword [esp + 0x1c]
fstp dword [esp + 0x1c]
fld dword [esp + 0x14]
fstp dword [esp + 0x20]
call fcn.0041a2a0
push esi
lea eax, [esp + 0x48]
mov byte [esp + 0xb4], 7
mov ecx, dword [esi]
push eax
call fcn.004146e0
cmp eax, 0xf4240
jne 0x41b396
mov byte [esp + 0x17], 1
mov dword [esi], 0
cmp byte [esp + 0x33], 0
je 0x41b428
lea esi, [edi + 0x30]
mov dword [esi], 0
movsx ecx, word [ebx + 0xc]
movsx edx, word [ebx + 0xe]
mov dword [esp + 0x10], ecx
push 5
lea ecx, [esp + 0x1c]
fild dword [esp + 0x14]
mov dword [esp + 0x14], edx
lea eax, [esp + 0x48]
fstp dword [esp + 0x1c]
fild dword [esp + 0x14]
fstp dword [esp + 0x14]
fld dword [esp + 0x1c]
fstp dword [esp + 0x1c]
fld dword [esp + 0x14]
fstp dword [esp + 0x20]
call fcn.0041a2a0
mov byte [esp + 0xb0], 8
mov ecx, dword [edi + 0xa8]
test ecx, ecx
je 0x41b40c
push esi
lea eax, [esp + 0x48]
push eax
call fcn.004146e0
mov eax, dword [esi]
test eax, eax
je 0x41b428
mov edx, dword [edi]
push eax
mov eax, dword [edx + 0x3c]
push ebx
mov ecx, edi
mov dword [esi], 0
call eax
mov byte [esp + 0x17], 1
mov dword [esp + 0xb0], 0xffffffff
cmp dword [edi + 8], 0
je 0x41b448
lea eax, [edi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x41b746
mov edx, dword [edi]
mov eax, dword [edx + 0xc]
mov ecx, edi
call eax
jmp 0x41b746
mov ecx, edi
lea esi, [esp + 0x28]
call fcn.0041a350
mov dword [esp + 0xb0], 9
call dword [sym.imp.USER32.dll_ReleaseCapture]
cmp dword [edi + 0x34], 0
je 0x41b137
movsx ecx, word [ebx + 0xc]
movsx edx, word [ebx + 0xe]
mov dword [esp + 0x10], ecx
push 8
lea ecx, [esp + 0x24]
fild dword [esp + 0x14]
mov dword [esp + 0x14], edx
lea eax, [esp + 0x48]
fstp dword [esp + 0x1c]
fild dword [esp + 0x14]
fstp dword [esp + 0x14]
fld dword [esp + 0x1c]
fstp dword [esp + 0x24]
fld dword [esp + 0x14]
fstp dword [esp + 0x28]
call fcn.0041a2a0
lea esi, [edi + 0x34]
push esi
lea eax, [esp + 0x48]
mov byte [esp + 0xb4], 0xa
mov ecx, dword [esi]
push eax
call fcn.004146e0
cmp eax, 0xf4240
jne 0x41b4df
mov byte [esp + 0x17], 1
mov dword [esi], 0
jmp 0x41b137
call fcn.00403460
test al, al
jne case.default.0x41b08a
push 0x17
call dword [sym.imp.USER32.dll_GetSystemMetrics]
neg eax
sbb eax, eax
add eax, 2
push eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
seta al
test al, al
jne case.default.0x41b08a
mov ecx, edi
lea esi, [esp + 0x34]
call fcn.0041a350
mov dword [esp + 0xb0], 0xb
movsx edx, word [ebx + 0xa]
mov dword [esp + 0x10], edx
movsx eax, word [ebx + 0xe]
fild dword [esp + 0x10]
movsx ecx, word [ebx + 0xc]
fdiv qword [0x490318]
mov dword [esp + 0x24], eax
mov eax, dword [edi + 0x28]
mov dword [esp + 0x20], ecx
fstp dword [esp + 0x10]
test eax, eax
je 0x41b572
mov eax, dword [eax + 0x58]
lea edx, [esp + 0x20]
push edx
push eax
call dword [sym.imp.USER32.dll_ScreenToClient]
fild dword [esp + 0x20]
push ecx
lea ecx, [esp + 0x2c]
lea eax, [esp + 0x48]
fstp dword [esp + 0x2c]
fild dword [esp + 0x28]
fstp dword [esp + 0x30]
fld dword [esp + 0x14]
fstp dword [esp]
call fcn.0041a240
mov byte [esp + 0xb0], 0xc
mov ecx, dword [edi + 0xa8]
test ecx, ecx
je 0x41b5c4
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x48]
push eax
call fcn.004146e0
cmp eax, 0xf4240
jne 0x41b5c4
mov byte [esp + 0x17], 1
lea eax, [esp + 0x34]
mov dword [esp + 0xb0], 0xffffffff
call fcn.00402220
jmp case.0x41b08a.288
mov ecx, edi
lea esi, [esp + 0x20]
call fcn.0041a350
mov dword [esp + 0xb0], 0xd
cmp dword [edi + 0x2c], 0
je 0x41b676
movsx ecx, word [ebx + 0xc]
movsx edx, word [ebx + 0xe]
mov dword [esp + 0x10], ecx
push 3
lea ecx, [esp + 0x2c]
fild dword [esp + 0x14]
mov dword [esp + 0x14], edx
lea eax, [esp + 0x48]
fstp dword [esp + 0x1c]
fild dword [esp + 0x14]
fstp dword [esp + 0x14]
fld dword [esp + 0x1c]
fstp dword [esp + 0x2c]
fld dword [esp + 0x14]
fstp dword [esp + 0x30]
call fcn.0041a2a0
lea eax, [edi + 0x2c]
push eax
lea ecx, [esp + 0x48]
mov byte [esp + 0xb4], 0xe
push ecx
mov ecx, dword [eax]
call fcn.004146e0
cmp eax, 0xf4240
jne 0x41b66e
mov eax, esi
mov dword [esp + 0xb0], 0xffffffff
call fcn.00402220
jmp 0x41b781
mov byte [esp + 0xb0], 0xd
cmp dword [edi + 0xa8], 0
je 0x41b6ee
movsx edx, word [ebx + 0xc]
movsx eax, word [ebx + 0xe]
mov dword [esp + 0x10], edx
push 2
lea ecx, [esp + 0x2c]
fild dword [esp + 0x14]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x48]
fstp dword [esp + 0x1c]
fild dword [esp + 0x14]
fstp dword [esp + 0x14]
fld dword [esp + 0x1c]
fstp dword [esp + 0x2c]
fld dword [esp + 0x14]
fstp dword [esp + 0x30]
call fcn.0041a2a0
lea eax, [edi + 0x2c]
push eax
lea edx, [esp + 0x48]
mov byte [esp + 0xb4], 0xf
mov ecx, dword [edi + 0xa8]
push edx
call fcn.004146e0
cmp eax, 0xf4240
jne 0x41b6e6
mov byte [esp + 0x17], 1
mov byte [esp + 0xb0], 0xd
mov edx, dword [edi]
lea eax, [esp + 0x94]
mov byte [edi + 0xc5], 0
movsx esi, word [ebx + 0xe]
movsx ebx, word [ebx + 0xc]
push eax
mov eax, dword [edx + 0x14]
mov ecx, edi
call eax
mov ecx, eax
call fcn.00405050
cmp ebx, dword [eax]
jl 0x41b72c
cmp ebx, dword [eax + 8]
jge 0x41b72c
cmp esi, dword [eax + 4]
jl 0x41b72c
cmp esi, dword [eax + 0xc]
jge 0x41b72c
mov bl, 1
jmp 0x41b72e
xor bl, bl
lea eax, [esp + 0x20]
mov dword [esp + 0xb0], 0xffffffff
call fcn.00402220
test bl, bl
je case.0x41b08a.288
cmp byte [edi + 0xc4], 0
jne case.0x41b08a.288
cmp byte [edi + 0xc5], 0
jne case.0x41b08a.288
push 0x7f00
push 0
mov byte [edi + 0xc5], 1
mov byte [edi + 0xc4], 1
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
cmp byte [esp + 0x17], 0
je case.default.0x41b08a
fldz
mov ebx, dword [edi]
or esi, 0xffffffff
mov ecx, esi
push ecx
fstp dword [esp]
push 1
push 1
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov edx, esi
mov dword [eax + 4], edx
mov edx, dword [ebx + 0x4c]
mov dword [eax + 8], esi
mov dword [eax + 0xc], ecx
mov ecx, edi
mov dword [esp + 0x5c], esi
call edx
mov eax, 0xf4241
mov ecx, dword [esp + 0xa8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [0x4f4838], esi
je case.default.0x41b08a
cmp dword [ebx + 8], 2
jne case.default.0x41b08a
call fcn.00403460
test al, al
jne case.default.0x41b08a
cmp byte [0x4f4834], al
je 0x41b826
push 0
push str.32768
push 0
push 0
call dword [sym.imp.USER32.dll_FindWindowExA]
mov esi, eax
test esi, esi
je 0x41b826
mov edi, dword [sym.imp.USER32.dll_PostMessageA]
push 0x11c0001
push 0xd
push pe_nt_image_headers32
push esi
call edi
push 0xc11c0001
push 0xd
push 0x101
push esi
call edi
mov dword [0x4f4838], 0
jmp case.default.0x41b08a
mov ecx, 0x8000
test word [ebx + 0xa], cx
seta dl
mov byte [0x4f4834], dl
jmp case.default.0x41b08a