Function at 0x40da10
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x138
push ebx
push ebp
mov ebp, ecx
xor ebx, ebx
push esi
push edi
cmp dword [ebp + 0x6e8], ebx
je 0x40da36
call fcn.00408f40
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x138
ret
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, 0x80
je 0x40da55
mov ecx, ebp
call fcn.0040e350
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x138
ret
mov eax, dword [ebp + 8]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push ebx
push ebx
push 0x1032
push eax
call edi
mov esi, eax
cmp esi, 1
jl 0x40df6c
jne 0x40dd5d
push 0x80
mov dword [esp + 0x14], 0x4aa684
call fcn.004985f0
add esp, 4
mov ecx, ebp
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], 0x1f
mov dword [esp + 0x24], 0x40
mov dword [esp + 0x20], 1
call fcn.00413740
mov ecx, dword [ebp + 8]
push 1
push 0xffffffffffffffff
push 0x100c
push ecx
mov esi, eax
mov dword [esp + 0x40], ebx
call edi
mov ebx, eax
mov eax, dword [0x4caa60]
test eax, eax
mov dword [esp + 0x3c], ebx
je 0x40dbfe
mov ecx, esi
call fcn.0041dce0
test eax, eax
jne 0x40dbfe
mov edx, dword [ebp + 8]
push eax
push eax
push 0x1004
push edx
call edi
mov edi, eax
xor esi, esi
test edi, edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x2c], esi
jle 0x40dcd0
push esi
mov ecx, ebp
call fcn.004136f0
test eax, eax
je 0x40dbec
mov ecx, dword [eax + 0x30]
test ecx, ecx
jl 0x40dbec
cmp esi, ebx
jne 0x40db34
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x30], ecx
mov edx, dword [eax + 0x5c]
lea eax, [ebp + 0xa4]
push edx
lea ecx, [esp + 0x44]
push eax
push ecx
call fcn.0043c6e0
add esp, 0xc
lea edx, [esp + 0x40]
push edx
call fcn.0043c610
add esp, 4
mov dword [esp + 0x34], eax
test eax, eax
je 0x40dbec
mov ecx, dword [esp + 0x1c]
lea edx, [ecx + 1]
cmp dword [esp + 0x18], edx
jne 0x40dbd8
mov eax, dword [esp + 0x24]
add ecx, eax
lea ecx, [ecx*4 + 4]
push ecx
call fcn.004985f0
mov edx, dword [esp + 0x20]
mov esi, dword [esp + 0x18]
mov ebx, eax
add esp, 4
lea ecx, [edx*4 + 4]
mov edi, ebx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00498600
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x3c]
mov esi, dword [esp + 0x30]
add esp, 4
add eax, edx
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov dword [edx + ecx*4], eax
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x18], eax
inc esi
cmp esi, edi
mov dword [esp + 0x2c], esi
jl 0x40db0d
jmp 0x40dcd0
push ebx
mov ecx, ebp
call fcn.004136f0
mov esi, eax
test esi, esi
je 0x40dcd0
mov eax, dword [esi + 0x30]
test eax, eax
jge 0x40dc26
mov ecx, esi
call fcn.0041dce0
test eax, eax
je 0x40dcd0
mov eax, dword [esi + 0x5c]
lea ecx, [ebp + 0xa4]
push eax
lea edx, [esp + 0x44]
push ecx
push edx
call fcn.0043c6e0
add esp, 0xc
lea eax, [esp + 0x40]
push eax
call fcn.0043c610
add esp, 4
mov dword [esp + 0x34], eax
test eax, eax
je 0x40dcd0
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
lea edx, [ecx + 1]
cmp esi, edx
jne 0x40dcbc
mov eax, dword [esp + 0x24]
add ecx, eax
lea ecx, [ecx*4 + 4]
push ecx
call fcn.004985f0
mov edx, dword [esp + 0x20]
mov esi, dword [esp + 0x18]
mov ebx, eax
add esp, 4
lea ecx, [edx*4 + 4]
mov edi, ebx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00498600
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
add esp, 4
add eax, edx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [ecx + edx*4], eax
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x30]
mov eax, dword [ebp]
push 0
lea edx, [esp + 0x14]
push ecx
push edx
mov ecx, ebp
call dword [eax]
test eax, eax
jne 0x40dd06
mov ecx, dword [ebp + 4]
mov edx, dword [ebp + 0x90]
push eax
mov eax, dword [str.ACDSee_32]
push eax
push 0x207
push ecx
push edx
call fcn.0043ce30
add esp, 0x14
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], 0x4aa684
test eax, eax
je 0x40dd45
mov eax, dword [esp + 0x18]
xor esi, esi
test eax, eax
jle 0x40dd45
cmp esi, eax
jge 0x40dd31
test esi, esi
jl 0x40dd31
mov eax, dword [esp + 0x14]
mov eax, dword [eax + esi*4]
jmp 0x40dd33
xor eax, eax
push eax
call fcn.00498600
mov eax, dword [esp + 0x1c]
add esp, 4
inc esi
cmp esi, eax
jl 0x40dd24
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00498600
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x138
ret
push 0x80
mov dword [esp + 0x14], 0x4aa684
call fcn.004985f0
mov dword [esp + 0x18], eax
add esp, 4
xor ecx, ecx
or eax, 0xffffffff
cmp esi, ebx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], 0x1f
mov dword [esp + 0x24], 0x40
mov dword [esp + 0x20], 1
mov dword [esp + 0x2c], ebx
jle 0x40deca
mov dword [esp + 0x30], esi
jmp 0x40ddad
mov eax, dword [esp + 0x34]
mov edx, dword [ebp + 8]
push 2
push eax
push 0x100c
push edx
call edi
mov esi, eax
mov eax, dword [ebp + 8]
push 1
push esi
push 0x102c
push eax
mov dword [esp + 0x44], esi
call edi
test eax, eax
je 0x40dddb
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x2c], ecx
push esi
mov ecx, ebp
call fcn.004136f0
mov esi, eax
test esi, esi
je 0x40deb7
mov eax, dword [esi + 0x30]
test eax, eax
jge 0x40de03
mov ecx, esi
call fcn.0041dce0
test eax, eax
je 0x40deb7
mov edx, dword [esi + 0x5c]
lea eax, [ebp + 0xa4]
push edx
lea ecx, [esp + 0x44]
push eax
push ecx
call fcn.0043c6e0
add esp, 0xc
lea edx, [esp + 0x40]
push edx
call fcn.0043c610
add esp, 4
mov dword [esp + 0x38], eax
test eax, eax
je 0x40deb7
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
lea edx, [ecx + 1]
cmp esi, edx
jne 0x40dea3
mov eax, dword [esp + 0x24]
add ecx, eax
lea ecx, [ecx*4 + 4]
push ecx
call fcn.004985f0
mov edx, dword [esp + 0x20]
mov esi, dword [esp + 0x18]
mov ebx, eax
add esp, 4
lea ecx, [edx*4 + 4]
mov edi, ebx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00498600
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
add esp, 4
add eax, edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [ecx + edx*4], eax
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x30]
dec eax
mov dword [esp + 0x30], eax
jne 0x40dda9
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x40df00
mov eax, dword [esp + 0x2c]
dec ecx
cmp eax, ecx
jne 0x40dedf
mov dword [esp + 0x2c], 0
mov ecx, dword [esp + 0x2c]
mov eax, dword [ebp]
push 0
lea edx, [esp + 0x14]
push ecx
push edx
mov ecx, ebp
call dword [eax]
test eax, eax
jne 0x40df20
push 0xffffffffffffffff
call dword [sym.imp.USER32.dll_MessageBeep]
jmp 0x40df20
mov eax, dword [str.ACDSee_32]
mov ecx, dword [ebp + 4]
mov edx, dword [ebp + 0x90]
push 0
push eax
push 0x208
push ecx
push edx
call fcn.0043ce30
add esp, 0x14
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], 0x4aa684
test eax, eax
je 0x40df5f
mov eax, dword [esp + 0x18]
xor esi, esi
test eax, eax
jle 0x40df5f
cmp esi, eax
jge 0x40df4b
test esi, esi
jl 0x40df4b
mov eax, dword [esp + 0x14]
mov eax, dword [eax + esi*4]
jmp 0x40df4d
xor eax, eax
push eax
call fcn.00498600
mov eax, dword [esp + 0x1c]
add esp, 4
inc esi
cmp esi, eax
jl 0x40df3e
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00498600
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x138
ret