Function at 0x58172dd0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov ecx, dword [ebx + 0xc]
mov eax, dword [ebx + 0x10]
push 1
mov dword [ebp + 8], eax
mov edx, dword [ecx + 0xc]
pop ecx
cmp edx, ecx
mov dword [ebp - 8], ecx
jb 0x58172df5
mov dword [ebp - 8], edx
mov edx, dword [ebx + 0x58]
lea esi, [ebx + 0x28]
lea edi, [ebp - 0x30]
mov dword [ebp - 0x18], edx
mov edx, dword [ebx + 0x5c]
push ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x14], edx
mov edx, dword [ebx + 0x38]
mov dword [ebp - 0x20], edx
mov edx, dword [ebx + 0x3c]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x1c], edx
mov edx, dword [eax]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [ebx + 0x44], 0x1a
call fcn.5816fe23
pop ecx
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_UpdateWindow]
push ebx
call fcn.5816fe81
pop ecx
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetCapture]
push ebx
call fcn.5816fd2d
test eax, eax
pop ecx
je 0x58172e5d
push 0xffffffffffffffff
push ebx
call fcn.5816fd0a
pop ecx
pop ecx
mov eax, dword [ebp - 8]
cmp eax, 0x64
jae 0x58172e68
push 0x64
pop eax
push 0
mov esi, 0x1234
push eax
push esi
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetTimer]
mov eax, dword [ebp - 0x20]
and dword [ebp - 4], 0
mov dword [ebx + 0x38], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebx + 0x3c], eax
call dword [sym.imp.USER32.dll_GetCapture]
sub eax, dword [ebx + 4]
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 0xc], eax
je 0x58172ef1
test byte [ebx], 1
je 0x58172ef1
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, 0x80
je 0x58172ef1
push 3
push 0x209
push 0x100
lea eax, [ebp - 0x4c]
push 0
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
jne 0x58172f23
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
movzx eax, dx
movzx edi, cx
shl eax, 0x10
or eax, edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x48], 0x200
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], edx
jmp 0x58172f6d
mov edi, dword [ebp + 8]
push ebx
and dword [edi + 4], 0
call fcn.5816fe23
movzx eax, word [ebp - 0x14]
pop ecx
mov dword [ebp - 0x48], 0x202
mov ecx, dword [ebp - 0x18]
movzx edx, cx
shl eax, 0x10
mov dword [ebp - 0x38], ecx
mov ecx, dword [ebp - 0x14]
or eax, edx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x40], eax
jmp 0x58172f29
mov eax, dword [ebp - 0x40]
mov edi, dword [ebp + 8]
mov ecx, dword [ebp - 0x48]
cmp ecx, 0x200
jb 0x58172f6d
cmp ecx, 0x209
ja 0x58172f6d
mov dword [ebx + 0x4c], ecx
mov ecx, dword [ebp - 0x44]
mov dword [ebx + 0x50], ecx
mov dword [ebx + 0x54], eax
movsx ecx, ax
shr eax, 0x10
movsx eax, ax
mov dword [ebx + 0x5c], eax
mov eax, dword [ebp - 0x20]
mov dword [ebx + 0x38], eax
mov eax, dword [ebp - 0x1c]
push ebx
mov dword [ebx + 0x58], ecx
mov dword [ebx + 0x3c], eax
call fcn.5816fe81
mov eax, dword [ebp - 0x40]
pop ecx
cmp dword [ebp - 0x48], 0x113
jne 0x58172f9e
cmp dword [ebp - 0x44], esi
jne 0x58172f9e
push esi
mov dword [ebp - 4], 1
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_KillTimer]
push 0
push dword [ebp - 8]
push esi
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetTimer]
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x48]
sub ecx, 0x200
je 0x58172fb6
dec ecx
dec ecx
je 0x58173035
jmp 0x58172e8a
mov edx, dword [edi + 4]
sub esp, 0x10
lea esi, [ebp - 0x30]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsx ecx, ax
movsd dword es:[edi], dword [esi]
shr eax, 0x10
movsx eax, ax
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 0x20]
movsd dword es:[edi], dword [esi]
mov dword [ebx + 0x38], edx
mov edx, dword [ebp - 0x1c]
push eax
push ecx
push ebx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], eax
mov dword [ebx + 0x3c], edx
movsd dword es:[edi], dword [esi]
call fcn.58172d59
mov esi, dword [ebp + 8]
add esp, 0x1c
cmp dword [ebp - 0xc], eax
mov dword [esi + 4], eax
je 0x58173007
push ebx
mov dword [ebp - 4], 1
call fcn.5816fe23
pop ecx
xor edi, edi
cmp dword [ebp - 4], edi
je 0x58173028
cmp dword [esi + 4], edi
je 0x58173028
push ebx
call fcn.5816fd2d
test eax, eax
pop ecx
je 0x58173028
push 0xffffffffffffffff
push ebx
call fcn.5816fd0a
pop ecx
pop ecx
mov dword [ebp - 4], edi
mov esi, 0x1234
jmp 0x58172e8a
push esi
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_KillTimer]
cmp dword [ebp - 0xc], 0
je 0x5817304b
call dword [sym.imp.USER32.dll_ReleaseCapture]
and dword [edi + 4], 0
push ebx
call fcn.5816fe23
mov eax, dword [ebp - 0x10]
pop ecx
push 1
mov dword [edi], eax
pop eax
pop edi
pop esi
pop ebx
leave
ret