Function at 0x53f24a
Capabilities:
Log keystrokes via polling

Disassembly:
push 0x20
mov eax, 0x59c300
call fcn.00571be7
mov ebx, dword [ebp + 8]
xor edi, edi
test ebx, ebx
jne 0x53f264
mov dword [ebp - 0x24], edi
jmp 0x53f26a
mov eax, dword [ebx + 0x20]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
call dword [sym.imp.USER32.dll_GetFocus]
push eax
mov dword [ebp - 0x28], eax
call fcn.0041f940
mov esi, eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], esi
cmp eax, 0x100
jb 0x53f298
cmp eax, 0x109
jbe 0x53f2a6
add eax, 0xfffffe00
cmp eax, 9
ja 0x53f3c0
test esi, esi
je 0x53f3c0
cmp dword [esi + 0x74], edi
jne 0x53f2db
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.0041f940
cmp eax, ebx
je 0x53f2db
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.0041f940
mov esi, eax
test esi, esi
jne 0x53f2ae
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x53f310
mov ecx, dword [esi + 0x74]
test ecx, ecx
je 0x53f310
mov ecx, dword [ecx + 0x58]
test ecx, ecx
je 0x53f310
mov eax, dword [ecx]
push dword [ebp + 0xc]
push ecx
mov esi, dword [eax + 0x14]
mov ecx, esi
call dword [0x5a4a4c]
call esi
test eax, eax
jne 0x53f30d
inc eax
jmp 0x53f46e
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
cmp eax, 0x101
je 0x53f328
cmp eax, 0x100
je 0x53f328
cmp eax, 0x102
jne 0x53f363
test esi, esi
je 0x53f363
mov edx, dword [esi + 0x74]
test edx, edx
je 0x53f363
mov eax, dword [ebp + 0xc]
push 0xd
pop ecx
movzx esi, word [eax + 8]
cmp si, cx
jne 0x53f34b
test byte [edx + 0x84], 1
jne 0x53f35c
push 0x1b
pop ecx
cmp si, cx
jne 0x53f366
test byte [edx + 0x84], 2
je 0x53f366
xor eax, eax
jmp 0x53f46e
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp - 0x14]
push dword [eax]
call fcn.0041f940
mov ecx, dword [ebp - 0x18]
mov edx, eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], edi
sub ecx, 0x100
je 0x53f476
dec ecx
sub ecx, 1
je 0x53f3c5
sub ecx, 4
jne 0x53f4bd
test esi, esi
jne 0x53f3ae
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x53f4bd
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp + 0xc]
push 0x20
pop eax
cmp word [esi + 8], ax
je 0x53f4c0
jmp 0x53f3c8
mov eax, dword [ebp + 0xc]
jmp 0x53f369
mov esi, dword [ebp + 0xc]
push esi
push edx
call fcn.0053fcdc
cmp dword [ebp - 0x18], 0x102
jne 0x53f3e0
test al, 0x84
jne 0x53f4c0
movzx ecx, word [esi + 8]
push 9
pop edx
cmp cx, dx
jne 0x53f3f4
test al, 2
jne 0x53f4c0
push 0x20
pop eax
cmp cx, ax
je 0x53f35c
push esi
push dword [ebp - 0x1c]
push ebx
call fcn.0053fd0c
test eax, eax
je 0x53f4c0
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x53f4c0
push esi
call fcn.0053dc59
xor edi, edi
inc edi
mov esi, dword [ebp - 0x14]
push dword [ebp - 0x28]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x53f46c
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call fcn.0041f940
push eax
push esi
call fcn.0053f8bb
pop ecx
pop ecx
push dword [ebp - 0x24]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x53f46c
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call fcn.0041f940
push eax
push esi
push ebx
call fcn.0053f948
mov eax, edi
call fcn.00571b45
ret 8
push dword [ebp + 0xc]
push edx
call fcn.0053fcdc
mov edx, eax
mov eax, dword [ebp + 0xc]
push 0x1b
movzx ecx, word [eax + 8]
movzx esi, cx
mov dword [ebp - 0x18], ecx
pop ecx
cmp si, cx
ja 0x53f59f
je 0x53f5fd
cmp esi, 3
je 0x53f5fd
push 9
pop eax
cmp si, ax
je 0x53f510
push 0xd
pop eax
cmp si, ax
je 0x53f5c8
mov esi, dword [ebp + 0xc]
test dword [ebx + 0x60], 0x1000
jne 0x53f426
push esi
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_IsDialogMessageW]
mov edi, eax
test edi, edi
je 0x53f426
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call fcn.0041f940
mov esi, dword [ebp - 0x14]
cmp eax, esi
je 0x53f429
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call fcn.0041f940
push eax
call fcn.0053f840
pop ecx
jmp 0x53f429
test dl, 2
jne 0x53f4bd
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
xor ecx, ecx
test ax, ax
sets cl
push ecx
mov dword [ebp - 0x18], ecx
mov ecx, ebx
push edi
call fcn.00438f19
mov ecx, eax
test ecx, ecx
je 0x53f4bd
mov eax, dword [ecx + 4]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x53f55e
mov eax, dword [eax]
push dword [ebp + 0xc]
mov esi, dword [eax + 0xac]
mov ecx, esi
call dword [0x5a4a4c]
mov ecx, dword [ebp - 0x20]
call esi
jmp 0x53f423
cmp dword [ecx], 0
je 0x53f56c
push dword [ecx]
call fcn.0041f940
jmp 0x53f579
push dword [ebp - 0x18]
mov ecx, ebx
push dword [ebp - 0x1c]
call fcn.0049487b
mov esi, eax
test esi, esi
je 0x53f423
mov eax, dword [ebx + 0x70]
push esi
mov dword [eax + 0x70], edi
call fcn.0053fa26
push esi
push dword [ebp - 0x14]
call fcn.0053f8bb
pop ecx
pop ecx
jmp 0x53f423
cmp esi, 0x25
jb 0x53f769
push 0x26
pop ecx
cmp cx, si
jae 0x53f672
cmp esi, 0x28
jbe 0x53f66f
cmp word [ebp - 0x18], 0x2b
jne 0x53f769
test dl, 4
jne 0x53f4bd
mov esi, dword [ebp - 0x14]
push esi
call fcn.0053f224
pop ecx
test al, 0x10
je 0x53f5ee
mov ecx, esi
mov dword [ebp - 0x20], esi
call fcn.00438d3d
mov dword [ebp - 0x1c], eax
jmp 0x53f5f4
push ebx
call fcn.0053fef1
mov esi, dword [ebp - 0x20]
test esi, esi
jne 0x53f611
jmp 0x53f600
push 2
pop eax
push eax
push ebx
call fcn.0053fa57
mov esi, eax
test esi, esi
je 0x53f4bd
mov ecx, esi
call fcn.004392ca
test eax, eax
jne 0x53f628
push edi
call dword [sym.imp.USER32.dll_MessageBeep]
jmp 0x53f4bd
cmp dword [esi + 0x74], edi
je 0x53f4bd
push edi
push edi
push edi
mov dword [ebp - 4], edi
xor edi, edi
inc edi
push edi
push 0xfffffdd9
push esi
call fcn.00439214
add esp, 0x18
or dword [ebp - 4], 0xffffffff
jmp 0x53f426
cmp cx, si
sbb ecx, ecx
push eax
push dword [ebp - 0x14]
inc ecx
mov dword [ebp - 0x1c], ecx
call fcn.0053fcdc
test al, 1
jne 0x53f4bd
push 0x26
pop eax
mov ecx, ebx
push edi
cmp si, ax
ja 0x53f69b
call fcn.004390c0
jmp 0x53f6a0
call fcn.00438ec9
mov esi, eax
test esi, esi
je 0x53f4bd
cmp dword [esi + 8], edi
je 0x53f6b7
push esi
mov ecx, ebx
call fcn.00439514
mov eax, dword [esi + 4]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x53f6dc
mov eax, dword [eax]
push dword [ebp + 0xc]
mov esi, dword [eax + 0xac]
mov ecx, esi
call dword [0x5a4a4c]
mov ecx, dword [ebp - 0x20]
jmp 0x53f557
cmp dword [esi], 0
je 0x53f6ef
push dword [esi]
call fcn.0041f940
mov ecx, eax
mov dword [ebp - 0x18], ecx
jmp 0x53f701
push dword [ebp - 0x1c]
mov ecx, ebx
push dword [ebp - 0x14]
call fcn.00518098
mov ecx, eax
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x53f4bd
mov eax, dword [ebx + 0x70]
push ecx
mov dword [eax + 0x70], edi
call fcn.0053fa26
cmp dword [esi + 8], edi
je 0x53f423
mov eax, dword [ebp - 0x18]
push 0xfffffffffffffff4
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push edi
xor edi, edi
mov esi, eax
mov eax, dword [ebp - 0x18]
inc edi
push edi
push 0xf1
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 0x18]
push dword [eax + 0x20]
movzx eax, si
push eax
push 0x111
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
push dword [ebp - 0x18]
call fcn.0053fa26
jmp 0x53f426
mov esi, eax
jmp 0x53f4c0