Function at 0x410550
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x4d61d4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebx + 0x1c], 0
mov edx, dword [ebx + 0x14]
mov eax, dword [ebx + 0x18]
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x44], edx
mov ecx, dword [ebx + 0x10]
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], eax
jne 0x410cb2
mov esi, dword [ebx + 0xc]
cmp esi, 1
jne 0x4105f8
lea eax, [ebp - 0x30]
mov dword [edi + 0x28], esi
push eax
mov dword [edi + 0x40], esi
xorps xmm0, xmm0
push dword [edi + 4]
movaps xmmword [ebp - 0x30], xmm0
call dword [sym.imp.USER32.dll_GetClientRect]
movups xmm0, xmmword [ebp - 0x30]
push 0
sub esp, 0x10
mov ecx, edi
mov eax, esp
neg ecx
sbb ecx, ecx
push 0xffffffffffffffff
movups xmmword [eax], xmm0
lea eax, [edi + 0x24]
and ecx, eax
push ecx
push dword [edi + 4]
mov ecx, dword [edi + 0x44]
call fcn.0043d4f0
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x10]
mov ecx, dword [edi + 0x24]
lea eax, [edi + 0x24]
push esi
push 0
push eax
call dword [ecx + 0x20]
jmp 0x410714
cmp esi, 2
jne 0x410692
cmp dword [edi + 0x4c], 0
mov eax, dword [sym.imp.USER32.dll_IsWindow]
mov dword [edi + 0x28], 1
je 0x410659
push dword [edi + 4]
call eax
test eax, eax
je 0x41064c
mov ecx, dword [edi + 0x48]
mov eax, dword [ecx]
mov dword [ebp - 0x34], eax
cmp eax, ecx
je 0x41064c
nop dword [eax + eax]
push dword [eax + 0x10]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
lea ecx, [ebp - 0x34]
call fcn.0040d840
mov eax, dword [ebp - 0x34]
cmp eax, dword [edi + 0x48]
jne 0x410630
lea ecx, [edi + 0x48]
call fcn.00411000
mov eax, dword [sym.imp.USER32.dll_IsWindow]
push dword [edi + 0x50]
call eax
test eax, eax
je 0x41066b
push dword [edi + 0x50]
call dword [sym.imp.USER32.dll_DestroyWindow]
lea ecx, [edi + 0x54]
mov dword [edi + 0x50], 0
call fcn.0040e390
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x14]
mov eax, dword [edi + 0x44]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xa8]
jmp 0x410714
cmp esi, 5
jne 0x4106e8
movsx ecx, dx
mov eax, edx
shr eax, 0x10
sub esp, 0x10
mov dword [ebp - 0x28], ecx
mov ecx, dword [edi + 0x44]
cwde
mov dword [ebp - 0x24], eax
mov eax, esp
mov dword [edi + 0x28], 1
mov edx, dword [ecx]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
movaps xmm0, xmmword [ebp - 0x30]
push ecx
movups xmmword [eax], xmm0
call dword [edx + 0xac]
mov edx, dword [edi]
sub esp, 0x10
movaps xmm0, xmmword [ebp - 0x30]
mov eax, esp
mov ecx, edi
movups xmmword [eax], xmm0
call dword [edx + 0x18]
jmp 0x410714
cmp esi, 0x113
jne 0x4107c8
mov eax, dword [edi + 0x44]
push dword [ebp - 0x3c]
mov dword [edi + 0x28], 1
push eax
mov ecx, dword [eax]
call dword [ecx + 0xb0]
mov eax, dword [edi]
mov ecx, edi
push dword [ebp - 0x3c]
call dword [eax + 0x1c]
mov ecx, dword [ebp - 0x38]
mov dword [ecx], 0
cmp dword [edi + 0x28], 0
jne 0x4109d7
mov ecx, dword [ebp - 0x44]
movzx edx, cx
mov eax, edx
cmp esi, 0x2a1
jne 0x410b15
mov eax, ecx
movsx edx, dx
shr eax, 0x10
movsx esi, ax
mov dword [ebp - 0x34], eax
mov eax, dword [edi + 0x44]
push esi
push edx
push dword [ebp - 0x3c]
mov dword [edi + 0x28], 1
mov ecx, dword [eax]
push eax
mov dword [ebp - 0x40], edx
call dword [ecx + 0xc0]
mov eax, dword [edi]
mov ecx, edi
push esi
push dword [ebp - 0x40]
push dword [ebp - 0x3c]
call dword [eax + 0x24]
mov esi, dword [ebp - 0x38]
mov dword [esi], 0
cmp dword [edi + 0x28], 0
jne 0x4109d7
mov ecx, dword [ebp - 0x44]
mov eax, dword [ebx + 0xc]
cmp eax, 0x2a3
jne 0x410b2b
cmp dword [edi + 0x40], 0
mov dword [edi + 0x28], 1
jne 0x4107bd
mov eax, dword [edi + 0x44]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc4]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x28]
mov dword [edi + 0x40], 1
mov dword [esi], 0
jmp 0x410c98
cmp esi, 0x84
jne 0x410934
mov eax, edx
movsx ecx, dx
shr eax, 0x10
cwde
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x18], eax
mov eax, dword [edi + 0x18]
mov dword [edi + 0x28], 1
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x34], 0
test eax, eax
je 0x41081b
push dword [eax + 0xc]
push dword [eax + 8]
push dword [eax + 4]
push dword [edi + 4]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_CallWindowProcW]
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x18]
jmp 0x41081e
mov eax, dword [ebp - 0x40]
mov edx, dword [edi]
push eax
push ecx
mov ecx, edi
call dword [edx + 0x40]
cmp dword [ebp - 0x34], 1
jne 0x410918
cmp dword [edi + 0x68], 0
je 0x410918
lea eax, [ebp - 0x1c]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ScreenToClient]
mov ecx, dword [edi + 0x44]
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
mov eax, dword [ecx]
push ecx
call dword [eax + 0xf4]
test eax, eax
je 0x41086f
mov ecx, dword [eax]
push eax
call dword [ecx + 0x84]
test eax, eax
je 0x410918
push 1
mov dword [ebp - 0x34], 2
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test eax, 0x8000
je 0x4108ad
cmp dword [edi + 0x58], 0
jne 0x4108b3
push 1
push 0
push 0x3401
mov dword [edi + 0x58], 1
mov dword [edi + 0x5c], 0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x4108c7
cmp dword [edi + 0x58], 0
je 0x4108c7
cmp dword [edi + 0x5c], 0
jne 0x4108c7
mov dword [edi + 0x58], 0
mov dword [edi + 0x5c], 1
push 2
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test eax, 0x8000
je 0x4108fe
cmp dword [edi + 0x60], 0
jne 0x410904
push 1
push 1
push 0x3401
mov dword [edi + 0x60], 1
mov dword [edi + 0x5c], 0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x410918
cmp dword [edi + 0x60], 0
je 0x410918
cmp dword [edi + 0x5c], 0
jne 0x410918
mov dword [edi + 0x60], 0
mov dword [edi + 0x5c], 1
mov ecx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x34]
mov dword [ecx], eax
cmp dword [edi + 0x28], 0
je 0x410727
mov eax, 1
jmp 0x410cb4
cmp esi, 0x20
jne 0x4109ac
mov ecx, dword [edi + 0x44]
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x44]
shr eax, 0x10
push eax
mov eax, dword [ebp - 0x44]
movzx eax, ax
push eax
push dword [ebp - 0x3c]
mov dword [edi + 0x28], 1
mov dword [ebp - 0x34], 0
mov edx, dword [ecx]
push ecx
call dword [edx + 0xb8]
cmp dword [ebp - 0x34], 0
je 0x410973
lea edx, [esi - 0x1f]
jmp 0x410993
mov eax, dword [edi + 0x18]
xor edx, edx
test eax, eax
je 0x410993
push dword [eax + 0xc]
push dword [eax + 8]
push dword [eax + 4]
push dword [edi + 4]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_CallWindowProcW]
mov edx, eax
mov ecx, dword [ebp - 0x38]
mov dword [ecx], edx
cmp dword [edi + 0x28], 0
je 0x410727
mov eax, 1
jmp 0x410cb4
cmp esi, 0x14
jne 0x4109bf
mov dword [eax], 1
lea eax, [esi - 0x13]
jmp 0x410cb4
cmp esi, 0xf
jne 0x4109e1
lea eax, [ebp - 0x34]
push eax
push edx
push ecx
push esi
mov ecx, edi
call fcn.0040f5e0
mov ecx, dword [ebp - 0x38]
mov dword [ecx], eax
mov eax, 1
jmp 0x410cb4
cmp esi, 0x318
jne 0x4109f2
lea eax, [ebp - 0x34]
push eax
push edx
push ecx
push esi
jmp 0x4109cb
cmp esi, 0x3400
jne 0x410a35
push 0
call fcn.0043cf10
mov esi, dword [ebp - 0x44]
add esp, 4
push 0
push esi
push dword [edi + 4]
call dword [sym.imp.USER32.dll_InvalidateRect]
test esi, esi
je 0x410a22
push 0x10
push esi
call fcn.00439e29
add esp, 8
mov ecx, dword [ebp - 0x38]
mov eax, 1
mov dword [ecx], 0
jmp 0x410cb4
lea eax, [esi - 0x200]
cmp eax, 0xe
ja 0x410a8b
mov eax, dword [edi + 4]
xorps xmm0, xmm0
push dword [edi + 0x50]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], edx
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 0x18], 0
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x410a7f
lea eax, [ebp - 0x30]
push eax
push 0
push 0x407
push dword [edi + 0x50]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x44]
mov dword [ecx], 1
cmp esi, 0x200
jne 0x410727
movzx eax, dx
mov dword [ebp - 0x40], eax
mov dword [edi + 0x28], 1
movsx edi, ax
mov eax, edx
shr eax, 0x10
movsx esi, ax
mov eax, dword [ebp - 0x34]
push esi
push edi
push dword [ebp - 0x3c]
mov eax, dword [eax + 0x44]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xbc]
mov ecx, dword [ebp - 0x34]
push esi
push edi
push dword [ebp - 0x3c]
mov eax, dword [ecx]
mov edi, ecx
call dword [eax + 0x20]
cmp dword [edi + 0x40], 0
je 0x410ae6
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x54]
mov dword [edi + 0x40], 0
mov esi, dword [ebp - 0x38]
mov eax, dword [ebp - 0x40]
movzx eax, ax
mov dword [esi], 0
cmp dword [edi + 0x28], 0
jne 0x4109d7
mov ecx, dword [ebp - 0x44]
movsx edx, ax
mov eax, ecx
shr eax, 0x10
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x34], eax
jmp 0x410788
mov esi, dword [ebp - 0x38]
movsx edx, ax
mov eax, ecx
shr eax, 0x10
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x34], eax
jmp 0x410788
cmp eax, 0x201
jne 0x410b79
push dword [edi + 4]
shr ecx, 0x10
mov dword [edi + 0x28], 1
movsx esi, cx
call dword [sym.imp.USER32.dll_SetCapture]
mov eax, dword [edi + 0x44]
lea edx, [ebp - 0x34]
push edx
push esi
push dword [ebp - 0x40]
mov dword [ebp - 0x34], 1
push dword [ebp - 0x3c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc8]
mov eax, dword [edi]
mov ecx, edi
push esi
push dword [ebp - 0x40]
push dword [ebp - 0x3c]
call dword [eax + 0x2c]
jmp 0x410c8f
cmp eax, 0x202
jne 0x410bc5
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x34]
push edx
mov edx, dword [ebp - 0x40]
movsx esi, ax
mov eax, dword [edi + 0x44]
push esi
push edx
push dword [ebp - 0x3c]
mov dword [edi + 0x28], 1
mov dword [ebp - 0x34], 1
mov ecx, dword [eax]
push eax
call dword [ecx + 0xcc]
mov eax, dword [edi]
mov ecx, edi
push esi
push dword [ebp - 0x40]
push dword [ebp - 0x3c]
call dword [eax + 0x30]
call dword [sym.imp.USER32.dll_ReleaseCapture]
jmp 0x410c8f
cmp eax, 0x203
jne 0x410c0b
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x34]
push edx
mov edx, dword [ebp - 0x40]
movsx esi, ax
mov eax, dword [edi + 0x44]
push esi
push edx
push dword [ebp - 0x3c]
mov dword [edi + 0x28], 1
mov dword [ebp - 0x34], 1
mov ecx, dword [eax]
push eax
call dword [ecx + 0xd0]
mov eax, dword [edi]
mov ecx, edi
push esi
push dword [ebp - 0x40]
push dword [ebp - 0x3c]
call dword [eax + 0x34]
jmp 0x410c8f
cmp eax, 0x204
jne 0x410c4e
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x34]
push edx
mov edx, dword [ebp - 0x40]
movsx esi, ax
mov eax, dword [edi + 0x44]
push esi
push edx
push dword [ebp - 0x3c]
mov dword [edi + 0x28], 1
mov dword [ebp - 0x34], 1
mov ecx, dword [eax]
push eax
call dword [ecx + 0xd4]
mov eax, dword [edi]
mov ecx, edi
push esi
push dword [ebp - 0x40]
push dword [ebp - 0x3c]
call dword [eax + 0x38]
jmp 0x410c8f
cmp eax, 0x205
jne 0x410ca5
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x34]
push edx
mov edx, dword [ebp - 0x40]
movsx esi, ax
mov eax, dword [edi + 0x44]
push esi
push edx
push dword [ebp - 0x3c]
mov dword [edi + 0x28], 1
mov dword [ebp - 0x34], 1
mov ecx, dword [eax]
push eax
call dword [ecx + 0xd8]
mov eax, dword [edi]
mov ecx, edi
push esi
push dword [ebp - 0x40]
push dword [ebp - 0x3c]
call dword [eax + 0x3c]
mov ecx, dword [ebp - 0x38]
mov dword [ecx], 0
cmp dword [edi + 0x28], 0
je 0x410cb2
mov eax, 1
jmp 0x410cb4
cmp eax, 0x31a
jne 0x410cb2
mov dword [esi], 0
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0043a373
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x18