Function at 0x411980
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x294]
push edi
call fcn.00413c00
test eax, eax
jne 0x4119aa
mov ecx, esi
call fcn.004b4125
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0xc
mov eax, dword [edi]
mov ecx, dword [edi + 4]
mov ebx, dword [sym.imp.USER32.dll_GetKeyState]
mov dword [esp + 0x20], eax
xor eax, eax
push 0x11
mov dword [esp + 0x28], ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
call ebx
mov edi, dword [esp + 0x34]
test ah, 0x80
je case.0x4119e8.49
lea eax, [edi - 0x2d]
cmp eax, 0x2b
ja case.0x4119e8.49
xor edx, edx
mov dl, byte [eax + 0x4121e0]
jmp dword [edx*4 + 0x4121cc]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xe4]
jmp case.0x4119e8.49
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0xd8]
jmp case.0x4119e8.49
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xdc]
jmp case.0x4119e8.49
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0xe0]
push 0x10
call ebx
test ah, 0x80
je 0x411a46
cmp edi, 0x2d
jne 0x411a46
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xe0]
mov ecx, esi
call fcn.004b4125
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0xc
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
cmp edi, 0x2e
mov ebx, 1
jne 0x411a65
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0xb8]
jmp 0x411ba6
cmp edi, 0x28
jne 0x411aab
mov eax, dword [esp + 0x20]
mov ecx, dword [esi + 0xe4]
mov edi, eax
inc eax
cmp eax, ecx
mov dword [esp + 0x20], eax
jge 0x411aa2
push eax
mov ecx, esi
call fcn.004193f0
test eax, eax
jg 0x411ba6
mov eax, dword [esp + 0x20]
mov ecx, dword [esi + 0xe4]
inc eax
cmp eax, ecx
mov dword [esp + 0x20], eax
jl 0x411a7f
mov dword [esp + 0x20], edi
jmp 0x411ba6
cmp edi, 0x26
jne 0x411af1
mov eax, dword [esp + 0x20]
mov ecx, dword [esi + 0xe8]
mov edi, eax
dec eax
cmp eax, ecx
mov dword [esp + 0x20], eax
jl 0x411ae8
push eax
mov ecx, esi
call fcn.004193f0
test eax, eax
jg 0x411ba6
mov eax, dword [esp + 0x20]
mov ecx, dword [esi + 0xe8]
dec eax
cmp eax, ecx
mov dword [esp + 0x20], eax
jge 0x411ac5
mov dword [esp + 0x20], edi
jmp 0x411ba6
cmp edi, 0x27
je 0x411ff1
cmp edi, 9
jne 0x411b30
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x10
call edi
test ah, 0x80
je 0x411ff1
push 0x10
call edi
test ah, 0x80
jne 0x411f35
mov ecx, esi
call fcn.004b4125
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0xc
cmp edi, 0x25
je 0x411f35
cmp edi, 0x22
jne 0x411d00
lea eax, [esp + 0x14]
push 0
push eax
mov ecx, esi
call fcn.00416640
mov edi, dword [eax]
mov edx, dword [esi + 0x1c]
push 0
push 3
mov ecx, dword [eax + 4]
push 0x115
push edx
mov dword [esp + 0x28], ecx
call ebp
lea eax, [esp + 0x28]
push 0
push eax
mov ecx, esi
mov dword [esp + 0x1c], ebx
call fcn.00416640
mov ecx, eax
mov eax, dword [ecx]
sub eax, edi
mov edx, dword [ecx + 4]
mov dword [esp + 0x2c], edx
je 0x411cf4
mov ecx, dword [esp + 0x20]
add ecx, eax
mov eax, dword [esi + 0xe4]
dec eax
mov dword [esp + 0x20], ecx
cmp ecx, eax
jle 0x411ba6
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov ecx, dword [esi + 0x294]
cmp edx, ecx
jne 0x411bc4
cmp eax, dword [esi + 0x298]
je 0x4121c2
mov ecx, dword [esi + 0x268]
xor ebx, ebx
cmp ecx, ebx
jne 0x411c99
mov edx, dword [esi + 0x2dc]
cmp edx, ebx
je 0x411bfe
mov eax, dword [esi + 0x2e0]
cmp eax, ebx
jbe 0x411bfe
mov ecx, edx
mov edi, eax
mov eax, dword [ecx]
cmp eax, ebx
je 0x411bf8
mov eax, dword [eax]
cmp eax, ebx
jne 0x411bf2
add ecx, 4
dec edi
jne 0x411bec
push edx
call fcn.004b3c84
mov ecx, dword [esi + 0x2ec]
add esp, 4
mov dword [esi + 0x2dc], ebx
mov dword [esi + 0x2e4], ebx
mov dword [esi + 0x2e8], ebx
call fcn.004b2cb9
mov dword [esi + 0x2ec], ebx
mov eax, dword [esi + 0x90]
neg eax
sbb eax, eax
push 0x10
add eax, 4
mov dword [esi + 0x268], eax
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, dword [esp + 0x20]
test ah, 0x80
mov eax, dword [esp + 0x24]
je 0x411c59
cmp dword [esp + 0x34], 9
jne 0x411c65
mov dword [esi + 0x28c], ecx
mov dword [esi + 0x290], eax
push 0xffffffffffffff9c
push eax
push ecx
mov ecx, esi
call fcn.00410c00
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
call fcn.00414e10
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
push 0xffffffffffffff9b
push edx
push eax
mov ecx, esi
call fcn.00410c00
mov eax, dword [esp + 0x24]
mov dword [esi + 0x268], ebx
mov ecx, dword [esp + 0x20]
push eax
lea edx, [esp + 0x2c]
push ecx
push edx
mov ecx, esi
call fcn.00414410
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push eax
push ecx
mov ecx, esi
call fcn.0041a1e0
test eax, eax
jne 0x412189
mov edx, dword [esp + 0x34]
lea eax, [edx - 9]
cmp eax, 0x1f
ja case.0x411cdc.14
xor ecx, ecx
mov cl, byte [eax + 0x412224]
jmp dword [ecx*4 + 0x41220c]
push ebx
push 1
mov edx, dword [esi + 0x1c]
push 0x114
push edx
jmp 0x412161
mov eax, dword [esi + 0xe4]
dec eax
jmp 0x411ba2
cmp edi, 0x21
jne 0x411d74
lea eax, [esp + 0x28]
push 0
push eax
mov ecx, esi
call fcn.00416640
mov edi, dword [eax]
mov edx, dword [esi + 0x1c]
push 0
push 2
mov ecx, dword [eax + 4]
push 0x115
push edx
mov dword [esp + 0x3c], ecx
call ebp
lea eax, [esp + 0x28]
push 0
push eax
mov ecx, esi
mov dword [esp + 0x1c], ebx
call fcn.00416640
mov ecx, eax
mov eax, dword [ecx]
sub eax, edi
mov edx, dword [ecx + 4]
mov dword [esp + 0x2c], edx
je 0x411d69
mov ecx, dword [esp + 0x20]
add ecx, eax
mov eax, dword [esi + 0xe8]
cmp ecx, eax
mov dword [esp + 0x20], ecx
jge 0x411ba6
jmp 0x411ba2
mov eax, dword [esi + 0xe8]
jmp 0x411ba2
cmp edi, 0x24
jne 0x411e3c
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, 0x80
push 0
push 6
je 0x411dbc
mov ecx, dword [esi + 0x1c]
push 0x115
push ecx
call ebp
mov edx, dword [esi + 0x1c]
push 0
push 6
push 0x114
push edx
call ebp
mov eax, dword [esi + 0xe8]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x20], eax
jmp 0x411dcb
mov ecx, dword [esi + 0x1c]
push 0x114
push ecx
call ebp
mov dword [esp + 0x10], ebx
mov edx, dword [esi + 0xec]
mov eax, dword [esi + 0xf0]
dec edx
mov dword [esp + 0x24], eax
cmp eax, edx
jge 0x411e00
push eax
mov ecx, esi
call fcn.00419420
test eax, eax
mov eax, dword [esp + 0x24]
jg 0x411e00
mov ecx, dword [esi + 0xec]
inc eax
dec ecx
mov dword [esp + 0x24], eax
cmp eax, ecx
jl 0x411de0
mov edx, dword [esi + 0xe4]
mov ecx, dword [esp + 0x20]
dec edx
cmp ecx, edx
jge 0x411baa
push ecx
mov ecx, esi
call fcn.004193f0
test eax, eax
jg 0x411ba6
mov ecx, dword [esp + 0x20]
mov eax, dword [esi + 0xe4]
inc ecx
dec eax
cmp ecx, eax
mov dword [esp + 0x20], ecx
jl 0x411e13
jmp 0x411ba6
cmp edi, 0x23
jne 0x411f06
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, 0x80
push 0
push 7
je 0x411e85
mov ecx, dword [esi + 0x1c]
push 0x115
push ecx
call ebp
mov edx, dword [esi + 0x1c]
push 0
push 7
push 0x114
push edx
call ebp
mov eax, dword [esi + 0xe4]
mov dword [esp + 0x10], ebx
dec eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x20], eax
jmp 0x411e94
mov eax, dword [esi + 0x1c]
push 0x114
push eax
call ebp
mov dword [esp + 0x10], ebx
mov eax, dword [esi + 0xec]
mov ecx, dword [esi + 0xf0]
dec eax
inc ecx
cmp eax, ecx
mov dword [esp + 0x24], eax
jle 0x411eca
push eax
mov ecx, esi
call fcn.00419420
test eax, eax
mov eax, dword [esp + 0x24]
jg 0x411eca
mov edx, dword [esi + 0xf0]
dec eax
inc edx
mov dword [esp + 0x24], eax
cmp eax, edx
jg 0x411eaa
mov edx, dword [esi + 0xe8]
mov ecx, dword [esp + 0x20]
inc edx
cmp ecx, edx
jle 0x411baa
push ecx
mov ecx, esi
call fcn.004193f0
test eax, eax
jg 0x411ba6
mov ecx, dword [esp + 0x20]
mov eax, dword [esi + 0xe8]
dec ecx
inc eax
cmp ecx, eax
mov dword [esp + 0x20], ecx
jg 0x411edd
jmp 0x411ba6
cmp edi, 0x71
jne 0x411999
mov edx, dword [esi]
or ecx, 0xffffffff
or eax, 0xffffffff
push ebx
push ecx
mov ecx, dword [esi + 0x294]
push eax
mov eax, dword [esi + 0x298]
push eax
push ecx
mov ecx, esi
call dword [edx + 0x114]
jmp 0x411ba6
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x34]
xor edi, edi
mov ebx, eax
dec eax
cmp ecx, 9
mov dword [esp + 0x24], eax
jne 0x411fb3
mov edx, dword [esi + 0xf0]
dec edx
cmp eax, edx
jne 0x411fa8
mov eax, dword [esi + 0xe8]
mov ecx, dword [esp + 0x20]
cmp ecx, eax
jle 0x411fa8
dec ecx
cmp ecx, eax
mov dword [esp + 0x20], ecx
jle 0x411f93
push ecx
mov ecx, esi
call fcn.004193f0
test eax, eax
jg 0x411f8e
mov ecx, dword [esp + 0x20]
mov eax, dword [esi + 0xe8]
dec ecx
cmp ecx, eax
mov dword [esp + 0x20], ecx
jg 0x411f6d
jmp 0x411f93
mov edi, 1
mov eax, dword [esi + 0xec]
mov dword [esp + 0x1c], 1
dec eax
mov dword [esp + 0x24], eax
jmp 0x411fb3
mov ecx, esi
call fcn.004b4125
mov eax, dword [esp + 0x24]
cmp eax, dword [esi + 0xf0]
jl 0x411fde
push eax
mov ecx, esi
call fcn.00419420
test eax, eax
jg 0x411ba6
mov eax, dword [esp + 0x24]
mov ecx, dword [esi + 0xf0]
dec eax
cmp eax, ecx
mov dword [esp + 0x24], eax
jge 0x411fbb
test edi, edi
jne 0x411baa
mov eax, ebx
mov dword [esp + 0x24], eax
jmp 0x411baa
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x34]
xor edi, edi
mov ebx, eax
inc eax
cmp ecx, 9
mov dword [esp + 0x24], eax
jne 0x412070
cmp eax, dword [esi + 0xec]
jne 0x412065
mov eax, dword [esi + 0xe4]
mov edx, dword [esp + 0x20]
lea ecx, [eax - 1]
cmp edx, ecx
jge 0x412065
mov ecx, edx
inc ecx
cmp ecx, eax
mov dword [esp + 0x20], ecx
jge 0x412051
push ecx
mov ecx, esi
call fcn.004193f0
test eax, eax
jg 0x41204c
mov ecx, dword [esp + 0x20]
mov eax, dword [esi + 0xe4]
inc ecx
cmp ecx, eax
mov dword [esp + 0x20], ecx
jl 0x41202b
jmp 0x412051
mov edi, 1
mov eax, dword [esi + 0xf0]
mov dword [esp + 0x1c], 1
mov dword [esp + 0x24], eax
jmp 0x412070
mov ecx, esi
call fcn.004b4125
mov eax, dword [esp + 0x24]
cmp eax, dword [esi + 0xec]
jge 0x41209b
push eax
mov ecx, esi
call fcn.00419420
test eax, eax
jg 0x411ba6
mov eax, dword [esp + 0x24]
mov ecx, dword [esi + 0xec]
inc eax
cmp eax, ecx
mov dword [esp + 0x24], eax
jl 0x412078
test edi, edi
jne 0x411baa
mov eax, ebx
mov dword [esp + 0x24], eax
jmp 0x411baa
mov eax, dword [esi + 0x1c]
push ebx
push ebx
push 0x114
push eax
jmp 0x412161
mov ecx, dword [esi + 0x1c]
push ebx
push 1
push 0x115
push ecx
call ebp
mov dword [esp + 0x14], 1
jmp case.0x411cdc.14
mov edx, dword [esi + 0x1c]
push ebx
push ebx
push 0x115
push edx
call ebp
mov dword [esp + 0x14], 1
jmp case.0x411cdc.14
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, 0x80
mov eax, dword [esp + 0x1c]
je 0x412131
cmp eax, ebx
push ebx
push ebx
je 0x411ce6
mov eax, dword [esi + 0x1c]
push 0x115
push eax
call ebp
mov ecx, dword [esi + 0x120]
push 1
push ecx
push ebx
mov ecx, esi
mov dword [esp + 0x20], 1
call fcn.00416a30
jmp case.0x411cdc.14
cmp eax, ebx
push ebx
push 1
je 0x412158
mov eax, dword [esi + 0x1c]
push 0x115
push eax
call ebp
push 1
push ebx
push ebx
mov ecx, esi
mov dword [esp + 0x20], 1
call fcn.00416a30
jmp case.0x411cdc.14
mov ecx, dword [esi + 0x1c]
push 0x114
push ecx
call ebp
mov dword [esp + 0x10], 1
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
push edx
push eax
mov ecx, esi
call fcn.00419e50
mov ecx, dword [esi + 0x1c]
push 1
push ebx
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
push edx
push eax
mov ecx, esi
call fcn.00419e50
cmp dword [esp + 0x10], ebx
je 0x4121ae
mov ecx, dword [esi + 0x1c]
push ebx
push 8
push 0x114
push ecx
call ebp
cmp dword [esp + 0x14], ebx
je 0x4121c2
mov edx, dword [esi + 0x1c]
push ebx
push 8
push 0x115
push edx
call ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0xc