Function at 0x411640
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x28
mov eax, dword [0x4642d0]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
mov ebx, dword [esp + 0x30]
push ebp
push esi
mov esi, ecx
push edi
push 1
mov eax, dword [esi]
call dword [eax + 0x1f8]
lea eax, [esp + 0x24]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClientRect]
mov ebp, dword [esp + 0x48]
mov ecx, esi
mov edi, dword [esp + 0x44]
mov eax, dword [esi]
push ebp
push edi
push dword [esp + 0x48]
push ebx
call dword [eax + 0x170]
test eax, eax
jne 0x411a50
push 0x15
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, dword [esp + 0x30]
sub ecx, eax
cmp ebp, ecx
jg 0x411a50
push 0x15
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, dword [esp + 0x2c]
sub ecx, eax
cmp edi, ecx
jg 0x411a50
mov eax, dword [esi + 0x990]
test dword [eax + 0xd8], 0x200000
je 0x4116d6
cmp ebp, 0x14
jl 0x411a50
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x10
mov dword [esi + 0x904], 0
call edi
shr eax, 0xf
and eax, 1
push 0x11
mov dword [esp + 0x20], eax
call edi
cwde
push ebx
mov dword [esp + 0x24], eax
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [esi + 0x28]
mov ecx, esi
mov edx, dword [esi]
add eax, ebp
mov edi, dword [esp + 0x44]
push eax
mov eax, dword [esi + 0x2c]
add eax, edi
push eax
call dword [edx + 0x98]
test eax, eax
je 0x41177f
mov eax, dword [esi + 0x990]
cmp dword [eax + 0xc], 0
jne 0x41177f
test byte [eax + 0xd8], 4
je 0x41177f
push ebx
mov dword [esi + 0x8a4], 1
call dword [sym.imp.USER32.dll_SetCapture]
mov dword [esi + 0x4c], 1
call dword [sym.imp.USER32.dll_DestroyCaret]
push dword [esi + 0x10]
push 2
push 1
push ebx
call dword [sym.imp.USER32.dll_CreateCaret]
push ebx
call dword [sym.imp.USER32.dll_ShowCaret]
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.0043fe9e
add esp, 0x28
ret 0x14
mov ecx, esi
cmp edi, dword [esi + 0x460]
jge 0x411988
mov eax, dword [esi + 0x28]
mov edx, dword [esi]
add eax, ebp
push eax
mov eax, dword [esi + 0x2c]
add eax, edi
push eax
call dword [edx + 0x48]
mov edx, dword [esi]
mov ebp, eax
lea eax, [esp + 0x18]
mov ecx, esi
push eax
lea eax, [esp + 0x18]
push eax
push ebp
call dword [edx + 0x24]
mov eax, dword [esp + 0x40]
test eax, eax
je 0x411857
mov edx, dword [esp + 0x14]
mov eax, edx
mov edi, dword [esi + 0x454]
add eax, eax
cmp dword [edi + eax*8 + 0xc], 0
je 0x4117e3
dec edx
mov eax, edx
mov dword [esp + 0x14], edx
add eax, eax
cmp dword [edi + eax*8 + 0xc], 0
jne 0x4117d3
mov ebx, dword [esi + 0x458]
lea ecx, [edx + 1]
mov dword [esp + 0x10], ecx
cmp ecx, ebx
je 0x411808
mov eax, ecx
add eax, eax
cmp dword [edi + eax*8 + 0xc], 0
je 0x411808
inc ecx
mov dword [esp + 0x10], ecx
cmp ecx, ebx
jne 0x4117f4
dec ecx
add edx, edx
mov dword [esp + 0x10], ecx
add ecx, ecx
mov eax, dword [edi + edx*8]
mov dword [esi + 0x44], eax
push dword [edi + ecx*8 + 4]
mov ecx, dword [esi + 0x990]
call fcn.00403de0
mov dword [esi + 0x48], eax
mov ecx, esi
mov dword [esi + 0xc], eax
mov eax, dword [esi]
push 1
push 1
call dword [eax + 0xc]
mov eax, dword [esi]
mov ecx, esi
push 0xffffffffffffffff
push 0xffffffffffffffff
call dword [eax + 0x70]
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.0043fe9e
add esp, 0x28
ret 0x14
test dword [esp + 0x20], 0x8000
je 0x411889
push 0
push 0x9c44
push 0x111
push ebx
call dword [sym.imp.USER32.dll_SendMessageA]
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.0043fe9e
add esp, 0x28
ret 0x14
cmp dword [esp + 0x1c], 0
je 0x411915
mov ecx, dword [esi + 0x44]
mov eax, dword [esi + 0x48]
cmp ecx, eax
mov edx, eax
mov edi, eax
cmovl edx, ecx
cmovg edi, ecx
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x14]
push ecx
jne 0x4118b7
push dword [esi + 0xc]
jmp 0x4118bf
cmp ebp, edx
jle 0x4118be
push edx
jmp 0x4118bf
push edi
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x24]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ecx, dword [esi + 0x454]
mov dword [esi + 0x8a0], eax
cmp edx, eax
jl 0x4118ff
add eax, eax
add edx, edx
mov eax, dword [ecx + eax*8]
mov dword [esi + 0x44], eax
push dword [ecx + edx*8 + 4]
mov ecx, dword [esi + 0x990]
call fcn.00403de0
mov dword [esi + 0x48], eax
mov dword [esi + 0xc], eax
jmp 0x411945
add eax, eax
add edx, edx
mov eax, dword [ecx + eax*8 + 4]
mov dword [esi + 0x44], eax
mov eax, dword [ecx + edx*8]
mov dword [esi + 0x48], eax
mov dword [esi + 0xc], eax
jmp 0x411945
mov ecx, dword [esp + 0x14]
shl ecx, 4
add ecx, dword [esi + 0x454]
mov eax, dword [ecx]
mov dword [esi + 0x44], eax
push dword [ecx + 4]
mov ecx, dword [esi + 0x990]
call fcn.00403de0
mov dword [esi + 0x48], eax
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 0x8a0], eax
mov eax, dword [esi]
mov ecx, esi
push 1
push 1
call dword [eax + 0xc]
mov eax, dword [esi]
mov ecx, esi
push 0xffffffffffffffff
push 0xffffffffffffffff
call dword [eax + 0x70]
push ebx
mov dword [esi + 0x89c], 1
call dword [sym.imp.USER32.dll_SetCapture]
pop edi
mov dword [esi + 0x4c], 1
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.0043fe9e
add esp, 0x28
ret 0x14
mov eax, dword [esp + 0x40]
test eax, eax
je 0x4119ec
mov eax, dword [esi + 0x28]
mov edx, dword [esi]
add eax, ebp
push eax
mov eax, dword [esi + 0x2c]
add eax, edi
push eax
call dword [edx + 0x48]
mov edx, dword [esi]
lea edi, [esi + 0x48]
push edi
lea ebx, [esi + 0x44]
mov ecx, esi
push ebx
push eax
call dword [edx + 0x94]
mov eax, dword [edi]
cmp dword [ebx], eax
je 0x411a50
mov dword [esi + 0xc], eax
mov ecx, esi
mov eax, dword [esi]
push 1
push 1
call dword [eax + 0xc]
mov eax, dword [esi]
mov ecx, esi
push 0xffffffffffffffff
push 0xffffffffffffffff
call dword [eax + 0x70]
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.0043fe9e
add esp, 0x28
ret 0x14
cmp dword [esp + 0x1c], 0
je 0x411a16
mov eax, dword [esi + 0x28]
mov edx, dword [esi]
add eax, ebp
push eax
mov eax, dword [esi + 0x2c]
add eax, edi
push eax
call dword [edx + 0x48]
mov edx, dword [esi]
mov edi, eax
push edi
push dword [esi + 0xc]
mov ecx, esi
call dword [edx + 0x5c]
mov dword [esi + 0xc], edi
jmp 0x411a37
mov eax, dword [esi]
call dword [eax + 0x58]
mov eax, dword [esi + 0x28]
mov ecx, esi
mov edx, dword [esi]
add eax, ebp
push eax
mov eax, dword [esi + 0x2c]
add eax, edi
push eax
call dword [edx + 0x48]
mov dword [esi + 0xc], eax
mov dword [esi + 0x48], eax
mov dword [esi + 0x44], eax
push ebx
call dword [sym.imp.USER32.dll_SetCapture]
mov eax, dword [esi]
mov ecx, esi
push 1
push 1
mov dword [esi + 0x4c], 1
call dword [eax + 0xc]
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0043fe9e
add esp, 0x28
ret 0x14