Function at 0x1004a9c0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x100dbc1c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0x1c], 0
mov edx, dword [ebp + 0x14]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x18]
mov ebx, ecx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x2c], edi
jne 0x1004b21f
mov esi, dword [ebp + 0xc]
cmp esi, 1
jne 0x1004aa50
lea eax, [ebp - 0x14]
mov dword [ebx + 0x28], esi
push eax
push dword [ebx + 4]
xorps xmm0, xmm0
movups xmmword [ebp - 0x14], xmm0
call dword [sym.imp.USER32.dll_GetClientRect]
movups xmm0, xmmword [ebp - 0x14]
push 0
sub esp, 0x10
mov ecx, ebx
mov eax, esp
neg ecx
sbb ecx, ecx
push 0xffffffffffffffff
movups xmmword [eax], xmm0
lea eax, [ebx + 0x24]
and ecx, eax
push ecx
push dword [ebx + 4]
mov ecx, dword [ebx + 0x44]
call fcn.1000c360
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x10]
mov ecx, dword [ebx + 0x24]
lea eax, [ebx + 0x24]
push esi
push 0
push eax
call dword [ecx + 0x20]
jmp 0x1004abad
cmp esi, 2
jne 0x1004ab2b
mov eax, dword [sym.imp.USER32.dll_IsWindow]
mov dword [ebx + 0x28], 1
cmp dword [ebx + 0x4c], 0
je 0x1004aae7
push dword [ebx + 4]
call eax
test eax, eax
je 0x1004aada
mov eax, dword [ebx + 0x48]
mov esi, dword [eax]
cmp esi, eax
je 0x1004aad7
nop dword [eax]
push dword [esi + 0x10]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_KillTimer]
cmp byte [esi + 0xd], 0
jne 0x1004aad2
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
jne 0x1004aab3
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x1004aad2
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x1004aaa5
jmp 0x1004aad2
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x1004aad0
nop dword [eax]
cmp esi, dword [eax + 8]
jne 0x1004aad0
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x1004aac0
mov esi, eax
cmp esi, dword [ebx + 0x48]
jne 0x1004aa80
mov esi, dword [ebp + 0xc]
lea ecx, [ebx + 0x48]
call fcn.1004b240
mov eax, dword [sym.imp.USER32.dll_IsWindow]
push dword [ebx + 0x50]
call eax
test eax, eax
je 0x1004ab04
push dword [ebx + 0x50]
call dword [sym.imp.USER32.dll_DestroyWindow]
test eax, eax
je 0x1004ab04
mov dword [ebx + 0x50], 0
lea ecx, [ebx + 0x54]
mov dword [ebx + 0x50], 0
call fcn.1000a6b0
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x14]
mov eax, dword [ebx + 0x44]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xa8]
jmp 0x1004abad
cmp esi, 5
jne 0x1004ab81
movsx ecx, dx
mov eax, edx
shr eax, 0x10
sub esp, 0x10
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebx + 0x44]
cwde
mov dword [ebp - 8], eax
mov eax, esp
mov dword [ebx + 0x28], 1
mov edx, dword [ecx]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
movups xmm0, xmmword [ebp - 0x14]
push ecx
movups xmmword [eax], xmm0
call dword [edx + 0xac]
movups xmm0, xmmword [ebp - 0x14]
mov edx, dword [ebx]
sub esp, 0x10
mov eax, esp
mov ecx, ebx
movups xmmword [eax], xmm0
call dword [edx + 0x18]
jmp 0x1004abad
cmp esi, 0x113
jne 0x1004ace4
mov eax, dword [ebx + 0x44]
push dword [ebp - 0x24]
mov dword [ebx + 0x28], 1
push eax
mov ecx, dword [eax]
call dword [ecx + 0xb0]
mov eax, dword [ebx]
mov ecx, ebx
push dword [ebp - 0x24]
call dword [eax + 0x1c]
mov dword [edi], 0
cmp dword [ebx + 0x28], 0
jne 0x1004b1e0
mov edx, dword [ebp - 0x34]
movzx eax, dx
movzx ecx, ax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x30], ecx
cmp esi, 0x2a1
jne 0x1004b06a
movsx edi, ax
mov eax, edx
shr eax, 0x10
movsx esi, ax
mov eax, dword [ebx + 0x44]
push esi
push edi
push dword [ebp - 0x24]
mov dword [ebx + 0x28], 1
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc0]
mov eax, dword [ebx]
mov ecx, ebx
push esi
push edi
push dword [ebp - 0x24]
call dword [eax + 0x24]
mov edi, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x30]
movzx eax, ax
mov dword [edi], 0
cmp dword [ebx + 0x28], 0
jne 0x1004b1e0
mov esi, dword [ebp + 0xc]
movzx ecx, ax
movzx eax, cx
mov dword [ebp - 8], ecx
mov dword [ebp - 0x28], eax
cmp esi, 0x202
jne 0x1004b132
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x30]
shr eax, 0x10
push edx
movsx esi, ax
mov eax, dword [ebx + 0x44]
push esi
movsx edi, cx
push edi
push dword [ebp - 0x24]
mov dword [ebx + 0x28], 1
mov dword [ebp - 0x30], 1
mov ecx, dword [eax]
push eax
call dword [ecx + 0xcc]
mov eax, dword [ebx]
mov ecx, ebx
push esi
push edi
push dword [ebp - 0x24]
call dword [eax + 0x30]
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov edi, dword [ebp - 0x2c]
mov eax, dword [ebp - 8]
movzx eax, ax
mov dword [edi], 0
cmp dword [ebx + 0x28], 0
jne 0x1004b1e0
mov esi, dword [ebp + 0xc]
cmp esi, 0x204
jne 0x1004b18e
movsx edi, ax
lea edx, [ebp - 8]
mov eax, dword [ebp - 0x34]
shr eax, 0x10
push edx
movsx esi, ax
mov eax, dword [ebx + 0x44]
push esi
push edi
push dword [ebp - 0x24]
mov dword [ebx + 0x28], 1
mov dword [ebp - 8], 1
mov ecx, dword [eax]
push eax
call dword [ecx + 0xd4]
mov eax, dword [ebx]
mov ecx, ebx
push esi
push edi
push dword [ebp - 0x24]
call dword [eax + 0x38]
jmp 0x1004b1d1
cmp esi, 0x84
jne 0x1004ae60
mov eax, edx
movsx ecx, dx
shr eax, 0x10
cwde
mov dword [ebp - 0x30], eax
mov dword [ebp - 8], eax
mov eax, dword [ebx + 0x18]
mov dword [ebx + 0x28], 1
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x28], 0
test eax, eax
je 0x1004ad37
push dword [eax + 0xc]
push dword [eax + 8]
push dword [eax + 4]
push dword [ebx + 4]
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_CallWindowProcW]
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 8]
jmp 0x1004ad3a
mov eax, dword [ebp - 0x30]
mov edx, dword [ebx]
push eax
push ecx
mov ecx, ebx
call dword [edx + 0x40]
mov eax, dword [ebp - 0x28]
cmp eax, 1
jne 0x1004ae1d
cmp dword [ebx + 0x68], 0
je 0x1004ae1d
lea eax, [ebp - 0xc]
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [ebx + 0x44]
push dword [ebp - 8]
push dword [ebp - 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xf4]
test eax, eax
je 0x1004ad8d
mov ecx, dword [eax]
push eax
call dword [ecx + 0x84]
test eax, eax
je 0x1004ae1a
push 1
mov dword [ebp - 0x28], 2
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test eax, 0x8000
je 0x1004adcb
cmp dword [ebx + 0x58], 0
jne 0x1004add1
push 1
push 0
push 0x3401
push dword [ebx + 4]
mov dword [ebx + 0x58], 1
mov dword [ebx + 0x5c], 0
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x1004ade5
cmp dword [ebx + 0x58], 0
je 0x1004ade5
cmp dword [ebx + 0x5c], 0
jne 0x1004ade5
mov dword [ebx + 0x58], 0
mov dword [ebx + 0x5c], 1
push 2
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test eax, 0x8000
je 0x1004ae41
cmp dword [ebx + 0x60], 0
jne 0x1004ae47
push 1
push 1
push 0x3401
push dword [ebx + 4]
mov dword [ebx + 0x60], 1
mov dword [ebx + 0x5c], 0
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [ebp - 0x28]
mov dword [edi], eax
cmp dword [ebx + 0x28], 0
je 0x1004abbd
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100763b4
mov esp, ebp
pop ebp
ret 0x18
cmp dword [ebx + 0x60], 0
je 0x1004ae1a
cmp dword [ebx + 0x5c], 0
mov eax, dword [ebp - 0x28]
jne 0x1004ae1d
mov dword [ebx + 0x60], 0
mov dword [ebx + 0x5c], 1
jmp 0x1004ae1d
cmp esi, 0x20
jne 0x1004aee3
mov ecx, dword [ebx + 0x44]
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x34]
shr eax, 0x10
push eax
mov eax, dword [ebp - 0x34]
movzx eax, ax
push eax
push dword [ebp - 0x24]
mov dword [ebx + 0x28], 1
mov dword [ebp - 0x28], 0
mov edx, dword [ecx]
push ecx
call dword [edx + 0xb8]
cmp dword [ebp - 0x28], 0
je 0x1004ae9f
lea ecx, [esi - 0x1f]
jmp 0x1004aebf
mov eax, dword [ebx + 0x18]
xor ecx, ecx
test eax, eax
je 0x1004aebf
push dword [eax + 0xc]
push dword [eax + 8]
push dword [eax + 4]
push dword [ebx + 4]
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_CallWindowProcW]
mov ecx, eax
mov dword [edi], ecx
cmp dword [ebx + 0x28], 0
je 0x1004abbd
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100763b4
mov esp, ebp
pop ebp
ret 0x18
cmp esi, 0x14
jne 0x1004af04
mov dword [edi], 1
lea eax, [esi - 0x13]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100763b4
mov esp, ebp
pop ebp
ret 0x18
cmp esi, 0xf
jne 0x1004af2f
lea eax, [ebp - 0x2c]
push eax
push edx
push ecx
push esi
mov ecx, ebx
call fcn.1004a030
mov dword [edi], eax
lea eax, [esi - 0xe]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100763b4
mov esp, ebp
pop ebp
ret 0x18
cmp esi, 0x318
jne 0x1004af5f
lea eax, [ebp - 0x2c]
push eax
push edx
push ecx
push esi
mov ecx, ebx
call fcn.1004a030
mov dword [edi], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100763b4
mov esp, ebp
pop ebp
ret 0x18
cmp esi, 0x3400
jne 0x1004af8f
lea eax, [ebp - 0x2c]
push eax
push edx
push ecx
push esi
mov ecx, ebx
call fcn.10049ea0
mov dword [edi], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100763b4
mov esp, ebp
pop ebp
ret 0x18
lea eax, [esi - 0x200]
cmp eax, 0xe
ja 0x1004afe2
mov eax, dword [ebx + 4]
xorps xmm0, xmm0
push dword [ebx + 0x50]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], edx
movq qword [ebp - 0x10], xmm0
mov dword [ebp - 8], 0
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1004afd9
lea eax, [ebp - 0x20]
push eax
push 0
push 0x407
push dword [ebx + 0x50]
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [ebp - 0x34]
mov dword [edi], 1
cmp esi, 0x200
jne 0x1004abbd
movzx eax, dx
mov ecx, eax
movsx edi, ax
mov eax, edx
mov dword [ebx + 0x28], 1
shr eax, 0x10
movsx esi, ax
mov eax, dword [ebx + 0x44]
push esi
push edi
push dword [ebp - 0x24]
mov dword [ebp - 0x30], ecx
mov ecx, dword [eax]
push eax
call dword [ecx + 0xbc]
mov eax, dword [ebx]
mov ecx, ebx
push esi
push edi
push dword [ebp - 0x24]
call dword [eax + 0x20]
cmp dword [ebx + 0x40], 0
je 0x1004b039
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x54]
mov dword [ebx + 0x40], 0
mov edi, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x30]
movzx eax, ax
mov dword [edi], 0
cmp dword [ebx + 0x28], 0
je 0x1004ac20
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100763b4
mov esp, ebp
pop ebp
ret 0x18
cmp esi, 0x2a3
jne 0x1004b0c7
cmp dword [ebx + 0x40], 0
mov dword [ebx + 0x28], 1
jne 0x1004b09c
mov eax, dword [ebx + 0x44]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc4]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x28]
mov ecx, dword [ebp - 0x30]
mov dword [ebx + 0x40], 1
mov dword [edi], 0
cmp dword [ebx + 0x28], 0
movzx eax, cx
je 0x1004ac23
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100763b4
mov esp, ebp
pop ebp
ret 0x18
movzx eax, cx
cmp esi, 0x201
jne 0x1004ac23
push dword [ebx + 4]
mov eax, edx
mov dword [ebx + 0x28], 1
shr eax, 0x10
movsx edi, cx
movsx esi, ax
call dword [sym.imp.USER32.dll_SetCapture]
mov eax, dword [ebx + 0x44]
lea edx, [ebp - 0x30]
push edx
push esi
push edi
push dword [ebp - 0x24]
mov dword [ebp - 0x30], 1
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc8]
mov eax, dword [ebx]
mov ecx, ebx
push esi
push edi
push dword [ebp - 0x24]
call dword [eax + 0x2c]
mov edi, dword [ebp - 0x2c]
mov dword [edi], 0
cmp dword [ebx + 0x28], 0
jne 0x1004b1e0
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp - 0x28]
cmp esi, 0x203
jne 0x1004ac98
movsx edi, ax
lea edx, [ebp - 8]
mov eax, dword [ebp - 0x34]
shr eax, 0x10
push edx
movsx esi, ax
mov eax, dword [ebx + 0x44]
push esi
push edi
push dword [ebp - 0x24]
mov dword [ebx + 0x28], 1
mov dword [ebp - 8], 1
mov ecx, dword [eax]
push eax
call dword [ecx + 0xd0]
mov eax, dword [ebx]
mov ecx, ebx
push esi
push edi
push dword [ebp - 0x24]
call dword [eax + 0x34]
mov edi, dword [ebp - 0x2c]
mov dword [edi], 0
cmp dword [ebx + 0x28], 0
jne 0x1004b1e0
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp - 0x28]
cmp esi, 0x205
jne 0x1004b1f8
movsx edi, ax
lea edx, [ebp - 8]
mov eax, dword [ebp - 0x34]
shr eax, 0x10
push edx
movsx esi, ax
mov eax, dword [ebx + 0x44]
push esi
push edi
push dword [ebp - 0x24]
mov dword [ebx + 0x28], 1
mov dword [ebp - 8], 1
mov ecx, dword [eax]
push eax
call dword [ecx + 0xd8]
mov eax, dword [ebx]
mov ecx, ebx
push esi
push edi
push dword [ebp - 0x24]
call dword [eax + 0x3c]
mov eax, dword [ebp - 0x2c]
mov dword [eax], 0
cmp dword [ebx + 0x28], 0
je 0x1004b21f
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100763b4
mov esp, ebp
pop ebp
ret 0x18
cmp esi, 0x31a
jne 0x1004b21f
push 0
push 0
push 0x3400
push dword [ebx + 4]
mov dword [ebx + 0x38], 1
call dword [sym.imp.USER32.dll_PostMessageW]
mov dword [edi], 0
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100763b4
mov esp, ebp
pop ebp
ret 0x18