Function at 0x40d5d0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4478f0
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x45a1cc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x30], edi
cmp dword [ebp + 0x1c], 0
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x34], eax
jne 0x40de0b
mov esi, dword [ebp + 0xc]
cmp esi, 1
jne 0x40d67a
lea eax, [ebp - 0x20]
mov dword [edi + 0x28], esi
push eax
push dword [edi + 4]
xorps xmm0, xmm0
movups xmmword [ebp - 0x20], xmm0
call dword [sym.imp.USER32.dll_GetClientRect]
movups xmm0, xmmword [ebp - 0x20]
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.00402750
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 0x40d7d9
cmp esi, 2
jne 0x40d758
mov eax, dword [sym.imp.USER32.dll_IsWindow]
mov dword [edi + 0x28], 1
cmp dword [edi + 0x4c], 0
je 0x40d714
push dword [edi + 4]
call eax
test eax, eax
je 0x40d707
mov eax, dword [edi + 0x48]
mov esi, dword [eax]
cmp esi, eax
je 0x40d707
nop word [eax + eax]
push dword [esi + 0x10]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
cmp byte [esi + 0xd], 0
jne 0x40d702
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
jne 0x40d6e3
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x40d702
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x40d6d5
jmp 0x40d702
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x40d700
nop dword [eax]
cmp esi, dword [eax + 8]
jne 0x40d700
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x40d6f0
mov esi, eax
cmp esi, dword [edi + 0x48]
jne 0x40d6b0
lea ecx, [edi + 0x48]
call fcn.0040de30
mov eax, dword [sym.imp.USER32.dll_IsWindow]
push dword [edi + 0x50]
call eax
test eax, eax
je 0x40d731
push dword [edi + 0x50]
call dword [sym.imp.USER32.dll_DestroyWindow]
test eax, eax
je 0x40d731
mov dword [edi + 0x50], 0
lea ecx, [edi + 0x54]
mov dword [edi + 0x50], 0
call fcn.00403570
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 0x40d7d9
cmp esi, 5
jne 0x40d7ae
movsx ecx, dx
mov eax, edx
shr eax, 0x10
sub esp, 0x10
mov dword [ebp - 0x18], ecx
mov ecx, dword [edi + 0x44]
cwde
mov dword [ebp - 0x14], eax
mov eax, esp
mov dword [edi + 0x28], 1
mov edx, dword [ecx]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
movups xmm0, xmmword [ebp - 0x20]
push ecx
movups xmmword [eax], xmm0
call dword [edx + 0xac]
movups xmm0, xmmword [ebp - 0x20]
mov edx, dword [edi]
sub esp, 0x10
mov eax, esp
mov ecx, edi
movups xmmword [eax], xmm0
call dword [edx + 0x18]
jmp 0x40d7d9
cmp esi, 0x113
jne 0x40d85f
mov eax, dword [edi + 0x44]
mov esi, dword [ebp - 0x38]
mov dword [edi + 0x28], 1
push esi
mov ecx, dword [eax]
push eax
call dword [ecx + 0xb0]
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x1c]
mov ecx, dword [ebp - 0x34]
mov dword [ecx], 0
cmp dword [edi + 0x28], 0
jne 0x40da63
mov esi, dword [ebp - 0x40]
mov eax, dword [ebp + 0xc]
movzx ecx, si
movzx edx, cx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x14], edx
cmp eax, 0x2a1
jne 0x40db97
mov eax, esi
mov dword [edi + 0x28], 1
shr eax, 0x10
movsx esi, ax
mov eax, dword [ebp - 0x30]
push esi
movsx edi, cx
push edi
mov eax, dword [eax + 0x44]
push dword [ebp - 0x38]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc0]
mov ecx, dword [ebp - 0x30]
push esi
push edi
push dword [ebp - 0x38]
mov eax, dword [ecx]
mov edi, ecx
call dword [eax + 0x24]
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x14]
movzx edx, ax
mov dword [ecx], 0
cmp dword [edi + 0x28], 0
jne 0x40da63
mov esi, dword [ebp - 0x40]
jmp 0x40dd30
cmp esi, 0x84
jne 0x40d9bf
mov eax, edx
movsx ecx, dx
shr eax, 0x10
xor esi, esi
cwde
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x14], eax
mov eax, dword [edi + 0x18]
mov dword [edi + 0x28], 1
mov dword [ebp - 0x18], ecx
test eax, eax
je 0x40d8ac
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 - 0x18]
mov esi, eax
mov eax, dword [ebp - 0x14]
jmp 0x40d8af
mov eax, dword [ebp - 0x3c]
mov edx, dword [edi]
push eax
push ecx
mov ecx, edi
call dword [edx + 0x40]
cmp esi, 1
jne 0x40d9a6
cmp dword [edi + 0x68], 0
je 0x40d9a6
lea eax, [ebp - 0x18]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [edi + 0x44]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xf4]
test eax, eax
je 0x40d8ff
mov ecx, dword [eax]
push eax
call dword [ecx + 0x84]
test eax, eax
je 0x40d9a6
push 1
mov esi, 2
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test eax, 0x8000
je 0x40d93b
cmp dword [edi + 0x58], 0
jne 0x40d941
push 1
push 0
push 0x3401
push dword [edi + 4]
mov dword [edi + 0x58], 1
mov dword [edi + 0x5c], 0
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x40d955
cmp dword [edi + 0x58], 0
je 0x40d955
cmp dword [edi + 0x5c], 0
jne 0x40d955
mov dword [edi + 0x58], 0
mov dword [edi + 0x5c], 1
push 2
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test eax, 0x8000
je 0x40d98c
cmp dword [edi + 0x60], 0
jne 0x40d992
push 1
push 1
push 0x3401
push dword [edi + 4]
mov dword [edi + 0x60], 1
mov dword [edi + 0x5c], 0
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x40d9a6
cmp dword [edi + 0x60], 0
je 0x40d9a6
cmp dword [edi + 0x5c], 0
jne 0x40d9a6
mov dword [edi + 0x60], 0
mov dword [edi + 0x5c], 1
mov ecx, dword [ebp - 0x34]
mov dword [ecx], esi
cmp dword [edi + 0x28], 0
je 0x40d7ec
mov eax, 1
jmp 0x40de0d
cmp esi, 0x20
jne 0x40da38
mov ecx, dword [edi + 0x44]
mov esi, edx
mov dword [edi + 0x28], 1
lea edi, [ebp - 0x3c]
push edi
shr esi, 0x10
push esi
movzx eax, dx
push eax
push dword [ebp - 0x38]
mov dword [ebp - 0x3c], 0
mov edx, dword [ecx]
push ecx
call dword [edx + 0xb8]
cmp dword [ebp - 0x3c], 0
mov edi, dword [ebp - 0x30]
je 0x40d9ff
mov edx, 1
jmp 0x40da1f
mov eax, dword [edi + 0x18]
xor edx, edx
test eax, eax
je 0x40da1f
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 - 0x34]
mov dword [ecx], edx
cmp dword [edi + 0x28], 0
je 0x40d7ec
mov eax, 1
jmp 0x40de0d
cmp esi, 0x14
jne 0x40da4b
mov dword [eax], 1
lea eax, [esi - 0x13]
jmp 0x40de0d
cmp esi, 0xf
jne 0x40da6d
lea eax, [ebp - 0x3c]
push eax
push edx
push ecx
push esi
mov ecx, edi
call fcn.0040b150
mov ecx, dword [ebp - 0x34]
mov dword [ecx], eax
mov eax, 1
jmp 0x40de0d
cmp esi, 0x318
jne 0x40da7e
lea eax, [ebp - 0x3c]
push eax
push edx
push ecx
push esi
jmp 0x40da57
cmp esi, 0x3400
jne 0x40dac1
push 0
call fcn.00402320
mov esi, dword [ebp - 0x40]
add esp, 4
push 0
push esi
push dword [edi + 4]
call dword [sym.imp.USER32.dll_InvalidateRect]
test esi, esi
je 0x40daae
push 0x10
push esi
call fcn.0041bd66
add esp, 8
mov ecx, dword [ebp - 0x34]
mov eax, 1
mov dword [ecx], 0
jmp 0x40de0d
lea eax, [esi - 0x200]
cmp eax, 0xe
ja 0x40db17
mov eax, dword [edi + 4]
xorps xmm0, xmm0
push dword [edi + 0x50]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], edx
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x14], 0
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40db0b
lea eax, [ebp - 0x2c]
push eax
push 0
push 0x407
push dword [edi + 0x50]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x40]
mov dword [ecx], 1
cmp esi, 0x200
jne 0x40d7ec
movzx eax, dx
mov ecx, eax
mov dword [edi + 0x28], 1
movsx edi, ax
mov eax, edx
shr eax, 0x10
movsx esi, ax
mov eax, dword [ebp - 0x30]
push esi
push edi
push dword [ebp - 0x38]
mov eax, dword [eax + 0x44]
mov dword [ebp - 0x3c], ecx
push eax
mov ecx, dword [eax]
call dword [ecx + 0xbc]
mov ecx, dword [ebp - 0x30]
push esi
push edi
push dword [ebp - 0x38]
mov eax, dword [ecx]
mov edi, ecx
call dword [eax + 0x20]
cmp dword [edi + 0x40], 0
je 0x40db74
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x54]
mov dword [edi + 0x40], 0
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x3c]
movzx edx, ax
mov dword [ecx], 0
cmp dword [edi + 0x28], 0
je 0x40d857
mov eax, 1
jmp 0x40de0d
cmp eax, 0x2a3
jne 0x40dbe8
cmp dword [edi + 0x40], 0
mov dword [edi + 0x28], 1
jne 0x40dbc8
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 edx, dword [ebp - 0x14]
mov dword [edi + 0x40], 1
mov ecx, dword [ebp - 0x34]
movzx edx, dx
mov dword [ecx], 0
cmp dword [edi + 0x28], 0
je 0x40dd30
mov eax, 1
jmp 0x40de0d
movzx edx, dx
cmp eax, 0x201
jne 0x40dd2d
mov eax, dword [ebp - 0x14]
mov dword [edi + 0x28], 1
movsx edi, ax
mov eax, esi
shr eax, 0x10
movsx esi, ax
mov eax, dword [ebp - 0x30]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SetCapture]
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x14]
push edx
push esi
push edi
mov eax, dword [eax + 0x44]
push dword [ebp - 0x38]
mov dword [ebp - 0x14], 1
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc8]
mov ecx, dword [ebp - 0x30]
push esi
push edi
push dword [ebp - 0x38]
mov eax, dword [ecx]
mov edi, ecx
call dword [eax + 0x2c]
mov ecx, dword [ebp - 0x34]
mov dword [ecx], 0
cmp dword [edi + 0x28], 0
jne 0x40da63
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x3c]
cmp eax, 0x203
jne 0x40ddaf
mov eax, dword [ebp - 0x40]
shr eax, 0x10
movsx esi, ax
mov eax, dword [ebp - 0x30]
mov dword [edi + 0x28], 1
movsx edi, dx
lea edx, [ebp - 0x14]
push edx
mov eax, dword [eax + 0x44]
push esi
push edi
push dword [ebp - 0x38]
mov dword [ebp - 0x14], 1
mov ecx, dword [eax]
push eax
call dword [ecx + 0xd0]
mov ecx, dword [ebp - 0x30]
push esi
push edi
push dword [ebp - 0x38]
mov eax, dword [ecx]
mov edi, ecx
call dword [eax + 0x34]
mov ecx, dword [ebp - 0x34]
mov dword [ecx], 0
cmp dword [edi + 0x28], 0
jne 0x40da63
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x3c]
cmp eax, 0x205
jne 0x40ddfe
mov eax, dword [ebp - 0x40]
shr eax, 0x10
movsx esi, ax
mov eax, dword [ebp - 0x30]
mov dword [edi + 0x28], 1
movsx edi, dx
lea edx, [ebp - 0x40]
push edx
mov eax, dword [eax + 0x44]
push esi
push edi
push dword [ebp - 0x38]
mov dword [ebp - 0x40], 1
mov ecx, dword [eax]
push eax
call dword [ecx + 0xd8]
mov ecx, dword [ebp - 0x30]
push esi
push edi
push dword [ebp - 0x38]
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x30]
mov dword [ecx], 0
cmp dword [eax + 0x28], 0
je 0x40de0b
mov eax, 1
jmp 0x40de0d
mov ecx, dword [ebp - 0x34]
movzx eax, dx
movzx edx, ax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x3c], edx
cmp eax, 0x202
jne 0x40dc5e
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x3c]
mov dword [edi + 0x28], 1
movsx edi, ax
mov eax, esi
shr eax, 0x10
movsx esi, ax
mov eax, dword [ebp - 0x30]
push edx
push esi
push edi
mov eax, dword [eax + 0x44]
push dword [ebp - 0x38]
mov dword [ebp - 0x3c], 1
push eax
mov ecx, dword [eax]
call dword [ecx + 0xcc]
mov ecx, dword [ebp - 0x30]
push esi
push edi
push dword [ebp - 0x38]
mov eax, dword [ecx]
mov edi, ecx
call dword [eax + 0x30]
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x14]
movzx edx, ax
mov dword [ecx], 0
cmp dword [edi + 0x28], 0
jne 0x40da63
mov eax, dword [ebp + 0xc]
cmp eax, 0x204
jne 0x40dcc3
mov esi, dword [ebp - 0x40]
mov eax, dword [ebp - 0x30]
mov dword [edi + 0x28], 1
movsx edi, dx
lea edx, [ebp - 0x3c]
push edx
mov eax, dword [eax + 0x44]
shr esi, 0x10
movsx esi, si
push esi
push edi
push dword [ebp - 0x38]
mov dword [ebp - 0x3c], 1
mov ecx, dword [eax]
push eax
call dword [ecx + 0xd4]
mov ecx, dword [ebp - 0x30]
push esi
push edi
push dword [ebp - 0x38]
mov eax, dword [ecx]
call dword [eax + 0x38]
jmp 0x40dd0d
cmp eax, 0x31a
jne 0x40de0b
mov dword [ecx], 0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041c009
mov esp, ebp
pop ebp
ret 0x18