Function at 0x52ec62
Capabilities:
Log keystrokes via polling

Disassembly:
push 0x20
mov eax, 0x67c7a3
call fcn.006490f3
mov ebx, dword [ebp + 8]
xor edi, edi
test ebx, ebx
jne 0x52ec7c
mov dword [ebp - 0x24], edi
jmp 0x52ec82
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.0050afa6
mov esi, eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], esi
cmp eax, 0x100
jb 0x52ecb0
cmp eax, 0x109
jbe 0x52ecbe
add eax, 0xfffffe00
cmp eax, 9
ja 0x52edd8
test esi, esi
je 0x52edd8
cmp dword [esi + 0x74], edi
jne 0x52ecf3
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.0050afa6
cmp eax, ebx
je 0x52ecf3
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.0050afa6
mov esi, eax
test esi, esi
jne 0x52ecc6
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x52ed28
mov ecx, dword [esi + 0x74]
test ecx, ecx
je 0x52ed28
mov ecx, dword [ecx + 0x58]
test ecx, ecx
je 0x52ed28
mov eax, dword [ecx]
push dword [ebp + 0xc]
push ecx
mov esi, dword [eax + 0x14]
mov ecx, esi
call dword [0x689b08]
call esi
test eax, eax
jne 0x52ed25
inc eax
jmp 0x52ee86
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
cmp eax, 0x101
je 0x52ed40
cmp eax, 0x100
je 0x52ed40
cmp eax, 0x102
jne 0x52ed7b
test esi, esi
je 0x52ed7b
mov edx, dword [esi + 0x74]
test edx, edx
je 0x52ed7b
mov eax, dword [ebp + 0xc]
push 0xd
pop ecx
movzx esi, word [eax + 8]
cmp si, cx
jne 0x52ed63
test byte [edx + 0x84], 1
jne 0x52ed74
push 0x1b
pop ecx
cmp si, cx
jne 0x52ed7e
test byte [edx + 0x84], 2
je 0x52ed7e
xor eax, eax
jmp 0x52ee86
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp - 0x14]
push dword [eax]
call fcn.0050afa6
mov ecx, dword [ebp - 0x18]
mov edx, eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], edi
sub ecx, 0x100
je 0x52ee8e
dec ecx
sub ecx, 1
je 0x52eddd
sub ecx, 4
jne 0x52eed5
test esi, esi
jne 0x52edc6
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x52eed5
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp + 0xc]
push 0x20
pop eax
cmp word [esi + 8], ax
je 0x52eed8
jmp 0x52ede0
mov eax, dword [ebp + 0xc]
jmp 0x52ed81
mov esi, dword [ebp + 0xc]
push esi
push edx
call fcn.0052f6f4
cmp dword [ebp - 0x18], 0x102
jne 0x52edf8
test al, 0x84
jne 0x52eed8
movzx ecx, word [esi + 8]
push 9
pop edx
cmp cx, dx
jne 0x52ee0c
test al, 2
jne 0x52eed8
push 0x20
pop eax
cmp cx, ax
je 0x52ed74
push esi
push dword [ebp - 0x1c]
push ebx
call fcn.0052f724
test eax, eax
je 0x52eed8
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x52eed8
push esi
call fcn.0052d64d
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 0x52ee84
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call fcn.0050afa6
push eax
push esi
call fcn.0052f2d3
pop ecx
pop ecx
push dword [ebp - 0x24]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x52ee84
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call fcn.0050afa6
push eax
push esi
push ebx
call fcn.0052f360
mov eax, edi
call fcn.00649051
ret 8
push dword [ebp + 0xc]
push edx
call fcn.0052f6f4
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 0x52efb7
je 0x52f015
cmp esi, 3
je 0x52f015
push 9
pop eax
cmp si, ax
je 0x52ef28
push 0xd
pop eax
cmp si, ax
je 0x52efe0
mov esi, dword [ebp + 0xc]
test dword [ebx + 0x60], 0x1000
jne 0x52ee3e
push esi
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_IsDialogMessageW]
mov edi, eax
test edi, edi
je 0x52ee3e
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call fcn.0050afa6
mov esi, dword [ebp - 0x14]
cmp eax, esi
je 0x52ee41
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call fcn.0050afa6
push eax
call fcn.0052f258
pop ecx
jmp 0x52ee41
test dl, 2
jne 0x52eed5
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.00510636
mov ecx, eax
test ecx, ecx
je 0x52eed5
mov eax, dword [ecx + 4]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x52ef76
mov eax, dword [eax]
push dword [ebp + 0xc]
mov esi, dword [eax + 0xac]
mov ecx, esi
call dword [0x689b08]
mov ecx, dword [ebp - 0x20]
call esi
jmp 0x52ee3b
cmp dword [ecx], 0
je 0x52ef84
push dword [ecx]
call fcn.0050afa6
jmp 0x52ef91
push dword [ebp - 0x18]
mov ecx, ebx
push dword [ebp - 0x1c]
call fcn.00511768
mov esi, eax
test esi, esi
je 0x52ee3b
mov eax, dword [ebx + 0x70]
push esi
mov dword [eax + 0x70], edi
call fcn.0052f43e
push esi
push dword [ebp - 0x14]
call fcn.0052f2d3
pop ecx
pop ecx
jmp 0x52ee3b
cmp esi, 0x25
jb 0x52f181
push 0x26
pop ecx
cmp cx, si
jae 0x52f08a
cmp esi, 0x28
jbe 0x52f087
cmp word [ebp - 0x18], 0x2b
jne 0x52f181
test dl, 4
jne 0x52eed5
mov esi, dword [ebp - 0x14]
push esi
call fcn.0052ec18
pop ecx
test al, 0x10
je 0x52f006
mov ecx, esi
mov dword [ebp - 0x20], esi
call fcn.0051043d
mov dword [ebp - 0x1c], eax
jmp 0x52f00c
push ebx
call fcn.0052f909
mov esi, dword [ebp - 0x20]
test esi, esi
jne 0x52f029
jmp 0x52f018
push 2
pop eax
push eax
push ebx
call fcn.0052f46f
mov esi, eax
test esi, esi
je 0x52eed5
mov ecx, esi
call fcn.00510a09
test eax, eax
jne 0x52f040
push edi
call dword [sym.imp.USER32.dll_MessageBeep]
jmp 0x52eed5
cmp dword [esi + 0x74], edi
je 0x52eed5
push edi
push edi
push edi
mov dword [ebp - 4], edi
xor edi, edi
inc edi
push edi
push 0xfffffdd9
push esi
call fcn.00510953
add esp, 0x18
or dword [ebp - 4], 0xffffffff
jmp 0x52ee3e
cmp cx, si
sbb ecx, ecx
push eax
push dword [ebp - 0x14]
inc ecx
mov dword [ebp - 0x1c], ecx
call fcn.0052f6f4
test al, 1
jne 0x52eed5
push 0x26
pop eax
mov ecx, ebx
push edi
cmp si, ax
ja 0x52f0b3
call fcn.005107fb
jmp 0x52f0b8
call fcn.005105e6
mov esi, eax
test esi, esi
je 0x52eed5
cmp dword [esi + 8], edi
je 0x52f0cf
push esi
mov ecx, ebx
call fcn.00510c53
mov eax, dword [esi + 4]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x52f0f4
mov eax, dword [eax]
push dword [ebp + 0xc]
mov esi, dword [eax + 0xac]
mov ecx, esi
call dword [0x689b08]
mov ecx, dword [ebp - 0x20]
jmp 0x52ef6f
cmp dword [esi], 0
je 0x52f107
push dword [esi]
call fcn.0050afa6
mov ecx, eax
mov dword [ebp - 0x18], ecx
jmp 0x52f119
push dword [ebp - 0x1c]
mov ecx, ebx
push dword [ebp - 0x14]
call fcn.0052ec3e
mov ecx, eax
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x52eed5
mov eax, dword [ebx + 0x70]
push ecx
mov dword [eax + 0x70], edi
call fcn.0052f43e
cmp dword [esi + 8], edi
je 0x52ee3b
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.0052f43e
jmp 0x52ee3e
mov esi, eax
jmp 0x52eed8