Function at 0x410620
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x160
push ebx
mov ebx, ecx
push ebp
xor ebp, ebp
mov eax, dword [ebx + 0x994]
push esi
cmp eax, ebp
push edi
je 0x410648
call fcn.00409030
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x160
ret
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, 0x80
je 0x410667
mov ecx, ebx
call fcn.00410fb0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x160
ret
mov eax, dword [ebx + 0xc]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push ebp
push ebp
push 0x1032
push eax
call edi
mov esi, eax
cmp esi, 1
jl 0x410bf6
jne 0x4109d1
push 0x80
mov dword [esp + 0x14], 0x4cc6f4
call fcn.004be967
mov ecx, dword [ebx + 0xc]
add esp, 4
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ebp
push 1
push 0xffffffffffffffff
push 0x100c
push ecx
mov dword [esp + 0x2c], 0x1f
mov dword [esp + 0x34], 0x40
mov dword [esp + 0x30], 1
call edi
cmp eax, 0xffffffff
jne 0x4106d8
xor esi, esi
jmp 0x4106e2
push eax
mov ecx, ebx
call fcn.00417e00
mov esi, eax
mov edx, dword [ebx + 0xc]
push 1
push 0xffffffffffffffff
push 0x100c
push edx
mov dword [esp + 0x40], ebp
call edi
mov ebp, eax
mov eax, dword [0x4eb338]
test eax, eax
mov dword [esp + 0x3c], ebp
je 0x410851
mov ecx, esi
call fcn.004247f0
test eax, eax
jne 0x410851
push eax
push eax
mov eax, dword [ebx + 0xc]
push 0x1004
push eax
call edi
mov ebp, eax
xor esi, esi
test ebp, ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x2c], esi
jle 0x410945
mov edx, dword [ebx + 0xc]
lea ecx, [esp + 0x40]
push ecx
push 0
push 0x1005
push edx
mov dword [esp + 0x50], 4
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], 0
call edi
test eax, eax
je 0x41083f
mov eax, dword [esp + 0x60]
test eax, eax
je 0x41083f
mov ecx, dword [eax + 0x3c]
test ecx, ecx
jl 0x41083f
cmp esi, dword [esp + 0x3c]
jne 0x41078b
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x30], ecx
mov edx, dword [eax + 0x68]
lea eax, [ebx + 0x20c]
push edx
lea ecx, [esp + 0x6c]
push eax
push ecx
call fcn.0044a2d0
lea edx, [esp + 0x74]
push edx
call fcn.0044a200
add esp, 0x10
mov dword [esp + 0x38], eax
test eax, eax
je 0x41083f
mov ecx, dword [esp + 0x1c]
lea edx, [ecx + 1]
cmp dword [esp + 0x18], edx
jne 0x41082b
mov eax, dword [esp + 0x24]
add ecx, eax
lea ecx, [ecx*4 + 4]
push ecx
call fcn.004be967
mov edx, dword [esp + 0x20]
mov esi, dword [esp + 0x18]
mov ebp, eax
lea ecx, [edx*4 + 4]
mov edi, ebp
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 + 0x18]
push ecx
call fcn.004be975
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov esi, dword [esp + 0x34]
add esp, 8
add eax, edx
mov dword [esp + 0x14], ebp
mov ebp, dword [esp + 0x34]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x38]
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, ebp
mov dword [esp + 0x2c], esi
jl 0x410738
jmp 0x410945
mov ecx, dword [ebx + 0xc]
lea eax, [esp + 0x40]
push eax
push 0
push 0x1005
push ecx
mov dword [esp + 0x50], 4
mov dword [esp + 0x54], ebp
mov dword [esp + 0x58], 0
call edi
test eax, eax
je 0x410945
mov esi, dword [esp + 0x60]
test esi, esi
je 0x410945
mov eax, dword [esi + 0x3c]
test eax, eax
jge 0x4108a1
mov ecx, esi
call fcn.004247f0
test eax, eax
je 0x410945
mov edx, dword [esi + 0x68]
lea eax, [ebx + 0x20c]
push edx
lea ecx, [esp + 0x6c]
push eax
push ecx
call fcn.0044a2d0
lea edx, [esp + 0x74]
push edx
call fcn.0044a200
add esp, 0x10
mov dword [esp + 0x34], eax
test eax, eax
je 0x410945
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
lea edx, [ecx + 1]
cmp esi, edx
jne 0x410931
mov eax, dword [esp + 0x24]
add ecx, eax
lea ecx, [ecx*4 + 4]
push ecx
call fcn.004be967
mov edx, dword [esp + 0x20]
mov esi, dword [esp + 0x18]
mov ebp, eax
lea ecx, [edx*4 + 4]
mov edi, ebp
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 + 0x18]
push ecx
call fcn.004be975
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
add esp, 8
add eax, edx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x14], ebp
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 [ebx]
push 0
lea edx, [esp + 0x14]
push ecx
push edx
mov ecx, ebx
call dword [eax]
test eax, eax
jne 0x41097a
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 0x200]
push eax
mov eax, dword [str.ACDSee_32]
push eax
push 0x207
push ecx
push edx
call fcn.0044ace0
add esp, 0x14
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], 0x4cc6f4
test eax, eax
je 0x4109b9
mov eax, dword [esp + 0x18]
xor esi, esi
test eax, eax
jle 0x4109b9
cmp esi, eax
jge 0x4109a5
test esi, esi
jl 0x4109a5
mov eax, dword [esp + 0x14]
mov eax, dword [eax + esi*4]
jmp 0x4109a7
xor eax, eax
push eax
call fcn.004be975
mov eax, dword [esp + 0x1c]
add esp, 4
inc esi
cmp esi, eax
jl 0x410998
mov ecx, dword [esp + 0x14]
push ecx
call fcn.004be975
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x160
ret
push 0x80
mov dword [esp + 0x14], 0x4cc6f4
call fcn.004be967
mov dword [esp + 0x18], eax
add esp, 4
xor ecx, ecx
or eax, 0xffffffff
cmp esi, ebp
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], 0x1f
mov dword [esp + 0x24], 0x40
mov dword [esp + 0x20], 1
mov dword [esp + 0x2c], ebp
jle 0x410b5b
mov dword [esp + 0x30], esi
jmp 0x410a21
mov eax, dword [esp + 0x34]
mov edx, dword [ebx + 0xc]
push 2
push eax
push 0x100c
push edx
call edi
mov esi, eax
mov eax, dword [ebx + 0xc]
push 1
push esi
push 0x102c
push eax
mov dword [esp + 0x44], esi
call edi
test eax, eax
je 0x410a4f
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x2c], ecx
mov eax, dword [ebx + 0xc]
lea edx, [esp + 0x40]
push edx
push ebp
push 0x1005
push eax
mov dword [esp + 0x50], 4
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], ebp
call edi
test eax, eax
je 0x410b48
mov esi, dword [esp + 0x60]
cmp esi, ebp
je 0x410b48
cmp dword [esi + 0x3c], ebp
jge 0x410a98
mov ecx, esi
call fcn.004247f0
test eax, eax
je 0x410b48
mov ecx, dword [esi + 0x68]
lea edx, [ebx + 0x20c]
push ecx
lea eax, [esp + 0x6c]
push edx
push eax
call fcn.0044a2d0
lea ecx, [esp + 0x74]
push ecx
call fcn.0044a200
add esp, 0x10
cmp eax, ebp
mov dword [esp + 0x38], eax
je 0x410b48
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
lea edx, [ecx + 1]
cmp esi, edx
jne 0x410b34
mov eax, dword [esp + 0x24]
add ecx, eax
lea ecx, [ecx*4 + 4]
push ecx
call fcn.004be967
mov edx, dword [esp + 0x20]
mov esi, dword [esp + 0x18]
mov ebp, eax
lea ecx, [edx*4 + 4]
mov edi, ebp
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 + 0x18]
push ecx
call fcn.004be975
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
add eax, edx
add esp, 8
mov dword [esp + 0x14], ebp
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x38]
xor ebp, ebp
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 0x410a1d
mov ecx, dword [esp + 0x18]
cmp ecx, ebp
je 0x410b8b
mov eax, dword [esp + 0x2c]
dec ecx
cmp eax, ecx
jne 0x410b6c
mov dword [esp + 0x2c], ebp
mov ecx, dword [esp + 0x2c]
mov eax, dword [ebx]
push ebp
lea edx, [esp + 0x14]
push ecx
push edx
mov ecx, ebx
call dword [eax]
test eax, eax
jne 0x410baa
push 0xffffffffffffffff
call dword [sym.imp.USER32.dll_MessageBeep]
jmp 0x410baa
mov eax, dword [str.ACDSee_32]
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 0x200]
push ebp
push eax
push 0x208
push ecx
push edx
call fcn.0044ace0
add esp, 0x14
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], 0x4cc6f4
cmp eax, ebp
je 0x410be9
mov eax, dword [esp + 0x18]
xor esi, esi
cmp eax, ebp
jle 0x410be9
cmp esi, eax
jge 0x410bd5
cmp esi, ebp
jl 0x410bd5
mov eax, dword [esp + 0x14]
mov eax, dword [eax + esi*4]
jmp 0x410bd7
xor eax, eax
push eax
call fcn.004be975
mov eax, dword [esp + 0x1c]
add esp, 4
inc esi
cmp esi, eax
jl 0x410bc8
mov ecx, dword [esp + 0x14]
push ecx
call fcn.004be975
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x160
ret