Function at 0x501f20
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5812f8
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x5fc150]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0x14]
cmp eax, 0x4e
ja 0x5021b4
je 0x501fa4
mov ecx, eax
sub ecx, 2
je 0x501f94
sub ecx, 3
jne 0x5021bb
push 1
movzx esi, bx
shr ebx, 0x10
push ebx
push esi
push ecx
push ecx
push dword [edi + 0x78]
call dword [sym.imp.USER32.dll_MoveWindow]
push esi
lea ecx, [edi + 0x6c]
call fcn.00503670
xor eax, eax
jmp 0x502219
mov eax, dword [edi + 0x6c]
lea ecx, [edi + 0x6c]
call dword [eax + 8]
xor eax, eax
jmp 0x502219
mov eax, dword [ebx + 8]
add eax, 0x9e
cmp eax, 0x9c
ja case.0x501fbe.157
movzx eax, byte [eax + 0x502254]
jmp dword [eax*4 + 0x502238]
cmp dword [ebx + 0xc], 0xffffffff
jne case.0x501fbe.157
push 0
push 0xa029
push 0x111
push dword [edi + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp case.0x501fbe.157
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
call esi
test al, al
js case.0x501fbe.157
push 0x10
call esi
test al, al
js case.0x501fbe.157
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x1004
push dword [edi + 0x78]
call esi
mov ecx, dword [ebx + 0xc]
cmp ecx, 0xffffffff
je case.0x501fbe.157
cmp ecx, eax
jge case.0x501fbe.157
lea eax, [ebp - 0x60]
mov dword [ebp - 0x60], 4
push eax
push 0
push 0x104b
push dword [ebx]
mov dword [ebp - 0x5c], ecx
call esi
push dword [ebp - 0x40]
mov ecx, edi
call fcn.00501e40
jmp case.0x501fbe.157
mov eax, dword [edi + 0x78]
cmp dword [ebx], eax
jne case.0x501fbe.157
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x1004
push eax
call esi
mov ecx, edi
mov dword [ebp - 0x2c], eax
call fcn.0049dec0
cmp eax, 1
jne 0x5020bb
mov ecx, dword [ebx + 0xc]
cmp ecx, 0xffffffff
je case.0x501fbe.157
cmp ecx, dword [ebp - 0x2c]
jge case.0x501fbe.157
lea eax, [ebp - 0x60]
mov dword [ebp - 0x60], 4
push eax
push 0
push 0x104b
push dword [ebx]
mov dword [ebp - 0x5c], ecx
call esi
push dword [ebp - 0x40]
mov ecx, edi
call fcn.00501e40
mov eax, dword [edi + 0xc]
push eax
mov dword [ebp - 0x14], 0xfffffffb
mov dword [ebp - 0x1c], eax
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x18], eax
push ecx
push eax
push 0x4e
push dword [edi + 8]
call esi
jmp case.0x501fbe.157
mov eax, dword [ebx + 0x18]
cmp eax, 0xffffffff
je case.0x501fbe.157
push eax
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.00501ec0
mov dword [ebp - 4], 0
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x50210e
lea eax, [ebp - 0x28]
push dword [ebx + 0x14]
push eax
push dword [ebx + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004038c0
jmp case.0x501fbe.157
push dword [ebx + 0x10]
mov ecx, edi
call fcn.00502300
mov dword [edi + 0x68], eax
mov ecx, dword [ebx + 0x10]
mov dword [edi + 0x64], ecx
cmp eax, 0xffffffff
je 0x502153
mov ecx, edi
call fcn.005023a0
jmp case.0x501fbe.157
lea ecx, [edi + 0x6c]
call fcn.005034b0
mov ecx, edi
call fcn.00502420
jmp case.0x501fbe.157
cmp word [ebx + 0xc], 0xd
jne case.0x501fbe.157
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x1042
push dword [edi + 0x78]
call esi
cmp eax, 0xffffffff
je case.0x501fbe.157
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x60]
push eax
push 0
push 0x104b
push dword [ebx]
mov dword [ebp - 0x60], 4
call esi
push dword [ebp - 0x40]
mov ecx, edi
call fcn.00501e40
jmp case.0x501fbe.157
cmp eax, 0x110
je 0x5021ec
cmp eax, 0x4e
jne 0x5021e8
mov eax, dword [ebx]
cmp eax, dword [edi + 8]
jne 0x5021e8
movzx eax, word [ebx + 8]
sub eax, 0x41c
je 0x5021dd
sub eax, 1
jne 0x5021e8
mov byte [edi + 0x28], 1
jmp 0x502219
movzx eax, word [ebx + 0xa]
mov dword [edi + 0x2c], eax
mov byte [edi + 0x28], 0
xor eax, eax
jmp 0x502219
push dword [edi + 0x84]
mov eax, dword [edi + 0x6c]
lea ecx, [edi + 0x6c]
push dword [edi + 0xc]
push dword [edi + 4]
call dword [eax + 0x30]
lea ecx, [edi + 0x6c]
call fcn.00502ec0
mov eax, dword [edi + 0x6c]
lea ecx, [edi + 0x6c]
push 1
call dword [eax + 0xc]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052c233
mov esp, ebp
pop ebp
ret 0x10