Function at 0x58172b4f
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
mov ebx, dword [ebp + 8]
cmp dword [0x581ae570], 0
push esi
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 0x58]
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebx + 0x5c]
push edi
mov dword [ebp + 8], eax
mov dword [ebp - 0x10], ecx
je 0x58172b84
push 1
pop eax
jmp 0x58172d54
lea esi, [ebx + 0x28]
lea edi, [ebp - 0x24]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ecx, dword [eax]
push 1
movsd dword es:[edi], dword [esi]
pop edi
mov dword [ebp - 8], ecx
push ebx
mov dword [eax], edi
mov dword [eax + 4], edi
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
test eax, eax
pop ecx
jne 0x58172cd3
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetCapture]
mov eax, dword [ebp - 4]
cmp byte [eax + 1], 0
jne 0x58172ceb
test byte [ebx], 1
je 0x58172c11
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, dword [ebx + 4]
jne 0x58172c11
push edi
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, 0x80
je 0x58172c11
push 3
push 0x209
push 0x100
lea eax, [ebp - 0x40]
push 0
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
jne 0x58172c34
jmp 0x58172bca
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
movzx eax, dx
movzx esi, cx
shl eax, 0x10
or eax, esi
mov dword [ebp - 0x3c], 0x202
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], edx
jmp 0x58172c37
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x3c]
mov esi, 0x200
cmp ecx, esi
jb 0x58172c74
cmp ecx, 0x209
ja 0x58172c74
mov dword [ebx + 0x4c], ecx
mov ecx, dword [ebp - 0x38]
mov dword [ebx + 0x50], ecx
mov dword [ebx + 0x54], eax
movsx ecx, ax
shr eax, 0x10
movsx eax, ax
push ebx
mov dword [ebx + 0x58], ecx
mov dword [ebx + 0x5c], eax
call fcn.5816fe81
test eax, eax
pop ecx
jne 0x58172ccd
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x3c]
sub ecx, esi
je 0x58172c84
dec ecx
dec ecx
je 0x58172ceb
jmp 0x58172bca
sub esp, 0x10
lea esi, [ebp - 0x24]
mov edi, esp
mov edx, dword [ebp + 8]
movsd dword es:[edi], dword [esi]
movsx ecx, ax
mov edx, dword [edx + 4]
mov dword [ebp - 0x14], ecx
movsd dword es:[edi], dword [esi]
shr eax, 0x10
movsx eax, ax
movsd dword es:[edi], dword [esi]
push eax
push ecx
push ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
movsd dword es:[edi], dword [esi]
call fcn.58172d59
mov ecx, dword [ebp + 8]
add esp, 0x1c
cmp dword [ebp - 0xc], eax
mov dword [ecx + 4], eax
je 0x58172cc5
push ebx
call fcn.5816fe23
pop ecx
push 1
pop edi
jmp 0x58172bca
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [ebp + 8]
push ebx
and dword [eax + 4], 0
call fcn.5816fe23
mov eax, dword [ebp - 8]
pop ecx
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
jmp 0x58172d52
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, dword [ebx + 4]
jne 0x58172cfc
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov esi, dword [ebp + 8]
xor edx, edx
cmp dword [esi + 4], edx
je 0x58172d46
mov eax, dword [ebx + 8]
xor ecx, ecx
cmp byte [eax + 4], 1
je 0x58172d33
cmp dword [ebp + 0x10], edx
jne 0x58172d33
cmp dword [ebp + 0xc], edx
jne 0x58172d28
mov eax, dword [ebp - 4]
cmp byte [eax + 5], cl
je 0x58172d33
cmp dword [ebp + 0xc], edx
je 0x58172d2c
xor eax, eax
jmp 0x58172d36
mov eax, dword [ebp + 0xc]
mov ecx, edi
jmp 0x58172d36
or eax, 0xffffffff
push ecx
push eax
push ebx
mov dword [esi + 4], edx
call fcn.5817351b
add esp, 0xc
jmp 0x58172d4d
push ebx
call fcn.5816fe23
pop ecx
mov eax, dword [ebp - 8]
mov dword [esi], eax
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret