Function at 0x508a10
Capabilities:
Log keystrokes via polling

Disassembly:
push 0x20
mov eax, 0x71bf8d
call fcn.005a9e5e
mov ebx, dword [ebp + 8]
xor edi, edi
test ebx, ebx
jne 0x508a2a
mov dword [ebp - 0x24], edi
jmp 0x508a30
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.00476d2e
mov esi, eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], esi
cmp eax, 0x100
jb 0x508a5e
cmp eax, 0x109
jbe 0x508a6c
add eax, 0xfffffe00
cmp eax, 9
ja 0x508b86
test esi, esi
je 0x508b86
cmp dword [esi + 0x74], edi
jne 0x508aa1
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.00476d2e
cmp eax, ebx
je 0x508aa1
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.00476d2e
mov esi, eax
test esi, esi
jne 0x508a74
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x508ad6
mov ecx, dword [esi + 0x74]
test ecx, ecx
je 0x508ad6
mov ecx, dword [ecx + 0x58]
test ecx, ecx
je 0x508ad6
mov eax, dword [ecx]
push dword [ebp + 0xc]
push ecx
mov esi, dword [eax + 0x14]
mov ecx, esi
call dword [0x728bc4]
call esi
test eax, eax
jne 0x508ad3
inc eax
jmp 0x508c34
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
cmp eax, 0x101
je 0x508aee
cmp eax, 0x100
je 0x508aee
cmp eax, 0x102
jne 0x508b29
test esi, esi
je 0x508b29
mov edx, dword [esi + 0x74]
test edx, edx
je 0x508b29
mov eax, dword [ebp + 0xc]
push 0xd
pop ecx
movzx esi, word [eax + 8]
cmp si, cx
jne 0x508b11
test byte [edx + 0x84], 1
jne 0x508b22
push 0x1b
pop ecx
cmp si, cx
jne 0x508b2c
test byte [edx + 0x84], 2
je 0x508b2c
xor eax, eax
jmp 0x508c34
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp - 0x14]
push dword [eax]
call fcn.00476d2e
mov ecx, dword [ebp - 0x18]
mov edx, eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], edi
sub ecx, 0x100
je 0x508c3c
dec ecx
sub ecx, 1
je 0x508b8b
sub ecx, 4
jne 0x508c83
test esi, esi
jne 0x508b74
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x508c83
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp + 0xc]
push 0x20
pop eax
cmp word [esi + 8], ax
je 0x508c86
jmp 0x508b8e
mov eax, dword [ebp + 0xc]
jmp 0x508b2f
mov esi, dword [ebp + 0xc]
push esi
push edx
call fcn.005094a3
cmp dword [ebp - 0x18], 0x102
jne 0x508ba6
test al, 0x84
jne 0x508c86
movzx ecx, word [esi + 8]
push 9
pop edx
cmp cx, dx
jne 0x508bba
test al, 2
jne 0x508c86
push 0x20
pop eax
cmp cx, ax
je 0x508b22
push esi
push dword [ebp - 0x1c]
push ebx
call fcn.005094d3
test eax, eax
je 0x508c86
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x508c86
push esi
call fcn.005073f3
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 0x508c32
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call fcn.00476d2e
push eax
push esi
call fcn.00509082
pop ecx
pop ecx
push dword [ebp - 0x24]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x508c32
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call fcn.00476d2e
push eax
push esi
push ebx
call fcn.0050910f
mov eax, edi
call fcn.005a9dbc
ret 8
push dword [ebp + 0xc]
push edx
call fcn.005094a3
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 0x508d65
je 0x508dc3
cmp esi, 3
je 0x508dc3
push 9
pop eax
cmp si, ax
je 0x508cd6
push 0xd
pop eax
cmp si, ax
je 0x508d8e
mov esi, dword [ebp + 0xc]
test dword [ebx + 0x60], 0x1000
jne 0x508bec
push esi
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_IsDialogMessageA]
mov edi, eax
test edi, edi
je 0x508bec
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call fcn.00476d2e
mov esi, dword [ebp - 0x14]
cmp eax, esi
je 0x508bef
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call fcn.00476d2e
push eax
call fcn.00509007
pop ecx
jmp 0x508bef
test dl, 2
jne 0x508c83
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.0047beff
mov ecx, eax
test ecx, ecx
je 0x508c83
mov eax, dword [ecx + 4]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x508d24
mov eax, dword [eax]
push dword [ebp + 0xc]
mov esi, dword [eax + 0xac]
mov ecx, esi
call dword [0x728bc4]
mov ecx, dword [ebp - 0x20]
call esi
jmp 0x508be9
cmp dword [ecx], 0
je 0x508d32
push dword [ecx]
call fcn.00476d2e
jmp 0x508d3f
push dword [ebp - 0x18]
mov ecx, ebx
push dword [ebp - 0x1c]
call fcn.0047d02c
mov esi, eax
test esi, esi
je 0x508be9
mov eax, dword [ebx + 0x70]
push esi
mov dword [eax + 0x70], edi
call fcn.005091ed
push esi
push dword [ebp - 0x14]
call fcn.00509082
pop ecx
pop ecx
jmp 0x508be9
cmp esi, 0x25
jb 0x508f2f
push 0x26
pop ecx
cmp cx, si
jae 0x508e38
cmp esi, 0x28
jbe 0x508e35
cmp word [ebp - 0x18], 0x2b
jne 0x508f2f
test dl, 4
jne 0x508c83
mov esi, dword [ebp - 0x14]
push esi
call fcn.005089c6
pop ecx
test al, 0x10
je 0x508db4
mov ecx, esi
mov dword [ebp - 0x20], esi
call fcn.0047bd06
mov dword [ebp - 0x1c], eax
jmp 0x508dba
push ebx
call fcn.005096b8
mov esi, dword [ebp - 0x20]
test esi, esi
jne 0x508dd7
jmp 0x508dc6
push 2
pop eax
push eax
push ebx
call fcn.0050921e
mov esi, eax
test esi, esi
je 0x508c83
mov ecx, esi
call fcn.0047c2d2
test eax, eax
jne 0x508dee
push edi
call dword [sym.imp.USER32.dll_MessageBeep]
jmp 0x508c83
cmp dword [esi + 0x74], edi
je 0x508c83
push edi
push edi
push edi
mov dword [ebp - 4], edi
xor edi, edi
inc edi
push edi
push 0xfffffdd9
push esi
call fcn.0047c21c
add esp, 0x18
or dword [ebp - 4], 0xffffffff
jmp 0x508bec
cmp cx, si
sbb ecx, ecx
push eax
push dword [ebp - 0x14]
inc ecx
mov dword [ebp - 0x1c], ecx
call fcn.005094a3
test al, 1
jne 0x508c83
push 0x26
pop eax
mov ecx, ebx
push edi
cmp si, ax
ja 0x508e61
call fcn.0047c0c4
jmp 0x508e66
call fcn.0047beaf
mov esi, eax
test esi, esi
je 0x508c83
cmp dword [esi + 8], edi
je 0x508e7d
push esi
mov ecx, ebx
call fcn.0047c51c
mov eax, dword [esi + 4]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x508ea2
mov eax, dword [eax]
push dword [ebp + 0xc]
mov esi, dword [eax + 0xac]
mov ecx, esi
call dword [0x728bc4]
mov ecx, dword [ebp - 0x20]
jmp 0x508d1d
cmp dword [esi], 0
je 0x508eb5
push dword [esi]
call fcn.00476d2e
mov ecx, eax
mov dword [ebp - 0x18], ecx
jmp 0x508ec7
push dword [ebp - 0x1c]
mov ecx, ebx
push dword [ebp - 0x14]
call fcn.005089ec
mov ecx, eax
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x508c83
mov eax, dword [ebx + 0x70]
push ecx
mov dword [eax + 0x70], edi
call fcn.005091ed
cmp dword [esi + 8], edi
je 0x508be9
mov eax, dword [ebp - 0x18]
push 0xfffffffffffffff4
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_GetWindowLongA]
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_SendMessageA]
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_SendMessageA]
push dword [ebp - 0x18]
call fcn.005091ed
jmp 0x508bec
mov esi, eax
jmp 0x508c86