Function at 0x50b590
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
push esi
mov esi, ecx
call fcn.005083f0
mov ebp, eax
test ebp, ebp
je 0x50b5af
cmp dword [ebp + 0x5c], 0
je 0x50b5af
pop esi
mov eax, 2
pop ebp
ret 8
mov ecx, esi
call fcn.0050b2a0
test eax, eax
jne 0x50b5a5
cmp dword [esi + 0x12c], eax
jle 0x50b5cc
pop esi
mov eax, 1
pop ebp
ret 8
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov ecx, esi
call fcn.005099e0
mov edx, dword [eax + 0x20]
push esi
lea ecx, [esp + 0x10]
push ecx
push 0x285a
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, esi
call fcn.00490a22
test eax, eax
je 0x50b5c2
mov eax, dword [esi + 0xcc]
push edi
push eax
mov ecx, esi
call fcn.00508d50
mov edi, eax
test edi, edi
je 0x50b647
mov edx, dword [edi]
mov eax, dword [edx + 0x6c]
mov ecx, edi
call eax
test eax, eax
je 0x50b647
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [edi]
mov edx, dword [edx + 0xd4]
push eax
push ecx
mov ecx, edi
call edx
cmp eax, 1
je 0x50b709
cmp eax, 2
je 0x50b709
cmp dword [esi + 0x20], 0
je 0x50b979
mov eax, dword [esp + 0x10]
add eax, 0xfffffff7
cmp eax, 0x17
ja case.0x50b668.10
movzx eax, byte [eax + 0x50b998]
jmp dword [eax*4 + 0x50b984]
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
call ebx
test ax, ax
jge 0x50b6bb
test ebp, ebp
je 0x50b6bb
mov ecx, esi
call fcn.005083c0
mov edi, eax
push edi
push 0x632980
call fcn.004900e7
add esp, 8
test eax, eax
je 0x50b6bb
push 0x10
call ebx
xor ecx, ecx
test ax, ax
setge cl
lea ecx, [ecx + ecx - 1]
push ecx
push edi
mov ecx, ebp
call fcn.004fdf60
test eax, eax
jne 0x50b703
mov edi, dword [esi]
push 0x10
call ebx
xor edx, edx
test ax, ax
mov eax, dword [edi + 0x1cc]
setl dl
mov ecx, esi
push edx
call eax
mov ecx, dword [esi + 0xcc]
push ecx
mov ecx, esi
call fcn.00508d50
mov esi, eax
test esi, esi
je 0x50b703
mov edx, dword [esi]
mov eax, dword [edx + 0xd0]
mov ecx, esi
call eax
test eax, eax
je 0x50b703
mov edx, dword [esi]
mov eax, dword [edx + 0x68]
push 1
mov ecx, esi
call eax
mov eax, 1
pop ebx
pop edi
pop esi
pop ebp
ret 8
mov edx, dword [esi]
mov eax, dword [edx + 0x1cc]
push 5
mov ecx, esi
call eax
pop edi
pop esi
pop ebp
ret 8
mov edx, dword [esi]
mov eax, dword [edx + 0x1cc]
push 4
mov ecx, esi
call eax
pop edi
pop esi
pop ebp
ret 8
mov edx, dword [esi]
mov eax, dword [edx + 0x1cc]
push 0xa
mov ecx, esi
call eax
test eax, eax
jne 0x50b979
mov edi, dword [sym.imp.USER32.dll_GetFocus]
call edi
test eax, eax
je 0x50b775
call edi
mov ecx, dword [esi + 0x20]
push eax
push ecx
call dword [sym.imp.USER32.dll_IsChild]
test eax, eax
je 0x50b775
pop edi
pop esi
mov eax, 2
pop ebp
ret 8
mov eax, dword [esi + 0x100]
test eax, eax
je 0x50b79b
cmp eax, 1
je 0x50b79b
cmp eax, 4
je 0x50b79b
cmp eax, 5
jne 0x50b797
cmp dword [esi + 0xf8], 1
je 0x50b79b
xor edi, edi
jmp 0x50b7a0
mov edi, 1
mov ecx, esi
call fcn.00508520
mov edx, dword [esp + 0x10]
lea ecx, [edx - 0x23]
cmp ecx, 5
ja case.default.0x50b7b7
jmp dword [ecx*4 + 0x50b9b0]
test edi, edi
je 0x50b7e1
xor edx, edx
test eax, eax
setne dl
mov ecx, esi
add edx, 8
mov eax, edx
mov edx, dword [esi]
push eax
mov eax, dword [edx + 0x1cc]
call eax
pop edi
pop esi
pop ebp
ret 8
mov edx, dword [esi]
xor ecx, ecx
test eax, eax
setne cl
add ecx, 2
mov eax, ecx
push eax
mov eax, dword [edx + 0x1cc]
mov ecx, esi
call eax
pop edi
pop esi
pop ebp
ret 8
test edi, edi
je 0x50b81e
mov edx, dword [esi]
neg eax
sbb eax, eax
add eax, 9
push eax
mov eax, dword [edx + 0x1cc]
mov ecx, esi
call eax
pop edi
pop esi
pop ebp
ret 8
mov edx, dword [esi]
neg eax
sbb eax, eax
add eax, 3
push eax
mov eax, dword [edx + 0x1cc]
mov ecx, esi
call eax
pop edi
pop esi
pop ebp
ret 8
mov edx, dword [esi]
mov edx, dword [edx + 0x1cc]
xor eax, eax
test edi, edi
setne al
mov ecx, esi
inc eax
push eax
call edx
pop edi
pop esi
pop ebp
ret 8
mov eax, dword [esi]
mov edx, dword [eax + 0x1cc]
neg edi
sbb edi, edi
and edi, 3
push edi
mov ecx, esi
call edx
pop edi
pop esi
pop ebp
ret 8
mov eax, dword [esi]
mov edx, dword [eax + 0x1cc]
push 6
mov ecx, esi
call edx
pop edi
pop esi
pop ebp
ret 8
mov eax, dword [esi]
mov edx, dword [eax + 0x1cc]
push 7
mov ecx, esi
call edx
pop edi
pop esi
pop ebp
ret 8
test edx, edx
je 0x50b979
push 2
push edx
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
test eax, eax
je 0x50b979
mov ecx, esi
call fcn.004fd2c0
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
test eax, eax
je 0x50b8df
push 0x11
call edi
test ax, ax
jl 0x50b8df
mov eax, dword [esp + 0x10]
push eax
mov ecx, esi
call fcn.0050b3a0
pop edi
pop esi
mov eax, 1
pop ebp
ret 8
test ebp, ebp
je 0x50b905
push esi
push 0x632980
call fcn.004900e7
add esp, 8
test eax, eax
je 0x50b905
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, ebp
call fcn.004ff470
test eax, eax
jne 0x50b979
push 0x11
mov dword [esp + 0x18], 0
call edi
test ax, ax
jl 0x50b963
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push eax
mov ecx, esi
call fcn.0050ac40
mov edi, eax
cmp edi, 0xffffffff
je 0x50b963
mov edx, dword [esi]
mov eax, dword [edx + 0x148]
push 2
push edi
mov ecx, esi
call eax
cmp dword [esp + 0x14], 0
jne 0x50b958
push edi
mov ecx, esi
call fcn.00508d50
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xa8]
call eax
pop edi
pop esi
mov eax, 1
pop ebp
ret 8
mov eax, dword [esp + 0x10]
cmp eax, 0x10
je 0x50b979
cmp eax, 0x11
je 0x50b979
push 0
call dword [sym.imp.USER32.dll_MessageBeep]
pop edi
pop esi
mov eax, 1
pop ebp
ret 8